/**
 * Age verification gate styles.
 *
 * Uses CSS custom properties from the brand tokens (--paper, --bordeaux,
 * etc.) where available, with hard-coded fallbacks for Odoo-served pages
 * that don't include the tokens stylesheet. The fallbacks match the
 * brand palette.
 *
 * Class names are contractual — age_gate.js renders the markup. Style
 * freely, but do NOT rename a class.
 */

html.cv-age-gate-open {
  overflow: hidden;
}

.cv-age-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: var(--font-body, 'Inter', system-ui, -apple-system, sans-serif);
  animation: cv-age-gate-fade 0.2s ease both;
}

@keyframes cv-age-gate-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cv-age-gate__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 22, 20, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cv-age-gate__modal {
  position: relative;
  z-index: 1;
  background: var(--paper, #faf7f2);
  padding: clamp(38px, 5vw, 58px) clamp(28px, 5vw, 54px);
  max-width: 460px;
  width: 100%;
  border: 1px solid var(--border, #e4ddd0);
  border-radius: 3px;
  text-align: center;
  box-shadow: 0 32px 70px rgba(26, 22, 20, 0.45);
  /* Hairline gold keyline inside the border — small luxury detail. */
  outline: 1px solid rgba(217, 168, 42, 0.18);
  outline-offset: -5px;
  animation: cv-age-gate-pop 0.3s cubic-bezier(0.2, 0.72, 0.3, 1) both;
}

@keyframes cv-age-gate-pop {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.cv-age-gate__brand {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--bordeaux, #a8262d);
  letter-spacing: 0.01em;
  margin: 0;
}
/* Gold hairline rule under the brand — echoes the .divider primitive. */
.cv-age-gate__brand::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold, #d9a82a);
  margin: 18px auto 24px;
}

.cv-age-gate__modal h2 {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(1.7rem, 3.4vw, 2rem);
  font-weight: 500;
  line-height: 1.18;
  color: var(--ink, #1a1614);
  margin: 0 0 14px;
}

.cv-age-gate__modal p {
  margin: 0 0 30px;
  color: var(--muted, #6b625a);
  line-height: 1.6;
  font-size: 0.94rem;
}

.cv-age-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cv-age-gate__btn {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 15px 24px;
  border-radius: 2px;
  transition: background 0.14s ease, color 0.14s ease, transform 0.1s ease;
}
.cv-age-gate__btn:active { transform: translateY(1px); }

.cv-age-gate__btn--accept {
  background: var(--bordeaux, #a8262d);
  color: var(--paper, #faf7f2);
  box-shadow: 0 8px 20px rgba(168, 38, 45, 0.28);
}
.cv-age-gate__btn--accept:hover {
  background: var(--bordeaux-dark, #8b1d23);
}

/* The "under 18" path is intentionally quiet — a low-key text button,
   not a competing CTA. */
.cv-age-gate__btn--decline {
  background: transparent;
  color: var(--muted, #6b625a);
  font-weight: 500;
  padding: 10px 24px;
}
.cv-age-gate__btn--decline:hover {
  color: var(--bordeaux, #a8262d);
}

/* Locked-out state after the user declines. Removes action buttons,
   so the modal becomes informational only. */
.cv-age-gate__modal--blocked {
  outline-color: rgba(107, 98, 90, 0.2);
}

@media (max-width: 480px) {
  .cv-age-gate__modal {
    padding: 34px 22px;
  }
}
