.decanter-age-unverified,
.decanter-age-unverified body {
  overflow: hidden;
}

.decanter-age-gate {
  align-items: center;
  background: rgb(15 18 16 / 94%);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 1.25rem;
  position: fixed;
  z-index: 2147483647;
}

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

/*
 * Класс ставит age-gate.js синхронно в <head>, а сам экран скрипт открывает только
 * на DOMContentLoaded — после всех отложенных скриптов WooCommerce. Заголовок экрана
 * у нового посетителя и есть LCP, и ожидание стоило ~0,6 с (карточка товара на
 * телефоне: 3,3 с при норме 2,5, PSI 24.09.2026). Показываем экран стилем сразу, как
 * только разметка разобрана; блокировку страницы и фокус скрипт добавит на DCL.
 */
.decanter-age-unverified .decanter-age-gate[hidden] {
  display: flex;
}

.decanter-age-gate__dialog {
  background: #f5f0e6;
  border: 1px solid #b8955a;
  border-radius: 0.75rem;
  color: #181b18;
  max-width: 38rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  text-align: center;
}

.decanter-age-gate__dialog h2 {
  /* SITE-1: заголовок темы (84 px) не помещался в окно 510 px и рвался посреди слова. */
  font-size: clamp(1.5rem, 1.1rem + 2.4vw, 2.5rem);
  hyphens: none;
  line-height: 1.2;
  margin: 0.5rem 0 1rem;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
}

.decanter-age-gate__eyebrow {
  color: #725428;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.decanter-age-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.decanter-age-gate__actions .button:focus-visible {
  outline: 3px solid #b8955a;
  outline-offset: 3px;
}
