body.has-popup { overflow: hidden; }
.popup {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(32, 24, 29, .64);
  overscroll-behavior: contain;
}
.popup[hidden] { display: none; }
.popup__dialog {
  width: 480px;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 32px;
  border: 1px solid #f2e9df;
  border-radius: 12px;
  background: #fffdfa;
  box-shadow: 0 24px 80px rgba(27, 17, 25, .24);
  outline: none;
}
.popup__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.popup__close { position: relative; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; border-radius: 4px; background: #fff0df; }
.popup__close::before, .popup__close::after { content: ''; position: absolute; left: 11px; top: 19px; width: 18px; height: 2px; border-radius: 2px; background: #b56b21; transform: rotate(45deg); }
.popup__close::after { transform: rotate(-45deg); }
.popup__close:hover { background: #ffe5c9; }
.popup__eyebrow { margin: 0; color: #9b673b; font-size: 11px; font-weight: 500; line-height: 17px; letter-spacing: 1px; text-transform: uppercase; }
.popup__dialog h2 { margin: 0 0 12px; padding: 0; color: #302b28; font-size: 32px; font-weight: 700; line-height: 1.15; }
.popup__description { margin: 0 0 24px; color: #7b7169; font-size: 15px; line-height: 23px; }

.popup__close:focus-visible { outline: 2px solid #70418b !important; outline-offset: 3px; }
@media (max-width: 575px) {
  .popup { padding: 16px; }
  .popup__dialog { padding: 24px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
  .popup__dialog h2 { font-size: 28px; }
}
@media (max-width: 359px) {
  .popup { padding: 12px; }
  .popup__dialog { padding: 20px; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  .popup__dialog h2 { font-size: 26px; }
  .popup__eyebrow { font-size: 10px; letter-spacing: .8px; }
}
@media (prefers-reduced-motion: reduce) {
  .popup__close { transition: none; }
}
