/* Existing theme age verification styles. */

.age-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background: rgba(13, 26, 13, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.age-popup.show {
  display: flex;
}

.age-popup__box {
  width: 100%;
  max-width: 460px;

  padding: 40px 32px;

  background: #f7f7f5;
  border: 1px solid #e2e2de;
  border-radius: 12px;

  text-align: center;

  box-shadow: 0 20px 60px rgba(0,0,0,0.28);
}

.age-popup__label {
  margin-bottom: 12px;

  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: #4a7a30;
}

.age-popup__title {
  margin-bottom: 16px;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.1;
  color: #1a1a1a;
}

.age-popup__text {
  margin-bottom: 28px;
  font-size: 14px;
  line-height: 1.8;
  color: #555;
}

.age-popup__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.age-popup__btn {
  width: 100%;
  padding: 14px 16px;
  border-radius: 4px;
  border: 1.5px solid #4a7a30;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;

  cursor: pointer;
}

.age-popup__btn--yes {
  background: #4a7a30;
  color: #fff;
}

.age-popup__btn--no {
  background: transparent;
  color: #4a7a30;
}

/* v4 top: the gate is drawn before any web font arrives. Use the device's own UI font so the box keeps one size
   (with the page font, the text re-wrapped when M PLUS 1p arrived and the box jumped: CLS 0.032 on phones). */
.age-popup__box,
.age-popup__btn {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Sans", "Yu Gothic UI", sans-serif;
}

/* MOBILE */
@media (max-width: 520px) {
  .age-popup {
    padding: 18px;
    align-items: center;
  }

  .age-popup__box {
    max-width: 100%;
    padding: 34px 22px;
    border-radius: 10px;
  }

  .age-popup__label {
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  .age-popup__title {
    font-size: 30px;
  }

  .age-popup__text {
    font-size: 13px;
    line-height: 1.75;
    margin-bottom: 24px;
  }

  .age-popup__actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .age-popup__btn {
    padding: 13px 14px;
    font-size: 11px;
  }
}

