/**
 * Age verification gate — UK 18+ (alcohol brand).
 */

.kc-age-gate {
  --kc-gate-bg: #4a1c14;
  --kc-gate-panel: #f4f2e1;
  --kc-gate-text: #183a37;
  --kc-gate-muted: #55737d;
  --kc-gate-enter: #cc9648;
  --kc-gate-enter-hover: #b85c28;
  --kc-gate-leave: transparent;
  --kc-gate-on-accent: #fff;

  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
  background: rgb(74 28 20 / 0.94);
  color: var(--kc-gate-on-accent);
}

.kc-age-gate[hidden] {
  display: none;
}

.kc-age-gate__panel {
  width: min(100%, 22rem);
  padding: clamp(1.75rem, 5vw, 2.25rem);
  background: var(--kc-gate-panel);
  color: var(--kc-gate-text);
  border: 2px solid #824532;
  border-radius: 0.35rem;
  box-shadow: 0 1rem 3rem rgb(0 0 0 / 0.35);
}

.kc-age-gate__title {
  font-family: Georgia, "Cormorant Garamond", serif;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.kc-age-gate__legal,
.kc-age-gate__note {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  line-height: 1.5;
  margin: 0 0 0.65rem;
}

.kc-age-gate__note {
  font-weight: 600;
  color: #824532;
  margin-bottom: 1.35rem;
}

.kc-age-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.kc-age-gate__enter,
.kc-age-gate__leave {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: clamp(0.82rem, 2.5vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  cursor: pointer;
  border: 2px solid transparent;
}

.kc-age-gate__enter {
  color: #fff;
  background: linear-gradient(145deg, #f74f1c 0%, #b85c28 100%);
  border-color: #824532;
  box-shadow: 0 4px 16px rgb(130 69 40 / 0.45);
}

.kc-age-gate__enter:hover,
.kc-age-gate__enter:focus-visible {
  background: linear-gradient(145deg, #e04514 0%, #824532 100%);
  outline: 2px solid #cc9648;
  outline-offset: 2px;
}

.kc-age-gate__leave {
  color: var(--kc-gate-text);
  background: var(--kc-gate-leave);
  border-color: var(--kc-gate-muted);
}

.kc-age-gate__leave:hover,
.kc-age-gate__leave:focus-visible {
  background: rgb(85 115 125 / 0.12);
  outline: 2px solid var(--kc-gate-muted);
  outline-offset: 2px;
}

.kc-age-gate__denied {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.kc-age-gate__denied a {
  color: #824532;
  font-weight: 600;
}

.kc-age-gate--denied .kc-age-gate__actions {
  display: none;
}

html.kc-age-gate-active {
  overflow: hidden;
}

html.kc-age-gate-active body > *:not(.kc-age-gate) {
  visibility: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  .kc-age-gate__panel {
    animation: kc-age-gate-in 0.2s ease-out;
  }
}

@keyframes kc-age-gate-in {
  from {
    opacity: 0;
    transform: translateY(0.35rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .kc-age-gate__panel {
    animation: none;
  }
}
