/* =====================================================================
   Cookie Consent Popup — cookie-consent.css
   martinjason.com

   Same glass technique as booking-popup.css:
   ─ Standard frosted glass for Safari / Firefox
   ─ Liquid glass (Chrome/Edge) via @supports backdrop-filter: url()
   ─ ::before pseudo-element for glass rim glow
   ===================================================================== */


/* ── Overlay ─────────────────────────────────────────────────────────── */

.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.22);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
          backdrop-filter: blur(10px) saturate(140%);
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}


/* ── Popup shell — glass layer (no overflow, no scroll) ─────────────── */

.cookie-popup-shell {
  border-radius: 28px;
  width: 100%;
  max-width: 480px;
  position: relative;
  overflow: clip;

  /* Standard frosted glass — Safari / Firefox */
  background: var(--glass-bg, rgba(255, 255, 255, 0.55));
  -webkit-backdrop-filter: blur(var(--glass-blur, 24px)) saturate(var(--glass-saturation, 180%));
          backdrop-filter: blur(var(--glass-blur, 24px)) saturate(var(--glass-saturation, 180%));
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.65));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    var(--glass-shadow-strong, 0 1px 1px rgba(10,10,10,0.05), 0 18px 48px rgba(10,10,10,0.10));

  transform: scale(0.95) translateY(10px);
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-overlay.is-open .cookie-popup-shell {
  transform: scale(1) translateY(0);
}

/* Hard fallback — no backdrop-filter support */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .cookie-popup-shell { background: rgba(247, 245, 241, 0.97); }
}


/* ── Liquid glass enhancement (Chrome / Edge only) ───────────────────── */

@supports (backdrop-filter: url('#')) {

  .cookie-popup-shell {
    background: rgba(255, 255, 255, 0.50);
    border: none;
    -webkit-backdrop-filter: brightness(1.05) blur(2px) url(#cc-glass);
            backdrop-filter: brightness(1.05) blur(2px) url(#cc-glass);
    filter:
      drop-shadow(-6px -8px 40px rgba(255, 255, 255, 0.10))
      drop-shadow( 0px  20px 56px rgba(0,   0,   0,   0.24));
    box-shadow: none;
  }

  .cookie-popup-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
    overflow: hidden;
    -webkit-box-shadow:
      inset  6px  6px 0px -6px rgba(255, 255, 255, 0.80),
      inset  0    0   8px  1px rgba(255, 255, 255, 0.55),
      inset  0   -4px 8px -3px rgba(255, 255, 255, 0.30);
    box-shadow:
      inset  6px  6px 0px -6px rgba(255, 255, 255, 0.80),
      inset  0    0   8px  1px rgba(255, 255, 255, 0.55),
      inset  0   -4px 8px -3px rgba(255, 255, 255, 0.30);
  }

}


/* ── Popup content ───────────────────────────────────────────────────── */

.cookie-popup {
  position: relative;
  z-index: 1;
  padding: 2rem 2.25rem 2.25rem;
}

.cp-header {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1rem;
}

.cp-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1em;
}

.cp-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.5);
  margin: 0 0 0.3rem;
  line-height: 1;
}

.cp-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: #1a1a1a;
  line-height: 1.2;
}

.cp-body {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(10, 10, 10, 0.65);
  margin: 0 0 0.5rem;
}

.cp-link {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(10, 10, 10, 0.35);
  margin-bottom: 1.75rem;
  transition: opacity 150ms;
}

.cp-link:hover {
  opacity: 0.6;
}

.cp-actions {
  display: flex;
  gap: 0.625rem;
  justify-content: flex-end;
}

.cp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.375rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: none;
  outline: none;
  transition: opacity 150ms, transform 150ms;
  white-space: nowrap;
}

.cp-btn:focus-visible {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}

.cp-btn:active {
  transform: scale(0.97);
}

/* Secondary — subtle glass pill */
.cp-btn--secondary {
  background: rgba(10, 10, 10, 0.07);
  color: #1a1a1a;
}

.cp-btn--secondary:hover {
  background: rgba(10, 10, 10, 0.12);
}

/* Primary — dark pill (matches booking popup submit) */
.cp-btn--primary {
  background: #1a1a1a;
  color: #fff;
}

.cp-btn--primary:hover {
  opacity: 0.82;
}


/* ── Mobile ──────────────────────────────────────────────────────────── */

@media (max-width: 520px) {
  .cookie-popup-shell { border-radius: 22px; }
  .cookie-popup { padding: 1.5rem 1.5rem 1.75rem; }
  .cp-actions {
    flex-direction: column-reverse;
    gap: 0.5rem;
  }
  .cp-btn {
    width: 100%;
    padding: 0.7rem 1rem;
  }
}
