.sst-popup { color-scheme: light; position: fixed; inset: 0; z-index: 999991; display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; }
.sst-popup[hidden] { display: none; }
.sst-popup *, .sst-popup *::before, .sst-popup *::after { box-sizing: border-box; }
.sst-popup__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .75); }

.sst-popup__dialog { position: relative; display: grid; grid-template-columns: 1fr; width: 100%; max-width: 800px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; background: var(--sst-pop-bg, var(--sst-surface, #fff)); color: var(--sst-pop-text, var(--sst-text, #111)); border-radius: var(--sst-pop-radius, var(--sst-radius, 4px)); outline: none; font-family: var(--sst-pop-font, var(--sst-font, inherit)); line-height: 1.5; }
.sst-popup.is-open .sst-popup__dialog { animation: sst-popup-in .6s ease both; }
@keyframes sst-popup-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.sst-popup__close { position: absolute; top: 8px; right: 8px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(0, 0, 0, .25); border-radius: 50%; background: #fff; color: #111; cursor: pointer; }
.sst-popup__close:hover { background: #f1f1f1; }

.sst-popup__media { position: relative; height: 200px; overflow: hidden; }
.sst-popup__img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.sst-popup__content { padding: 32px 24px 24px; display: flex; flex-direction: column; justify-content: center; }
.sst-popup__title { margin: 0 0 8px; padding-right: 36px; font-size: 32px; line-height: 1.15; color: inherit; }
.sst-popup__body { margin: 0 0 16px; font-size: 16px; color: inherit; }

.sst-popup__form { display: flex; flex-direction: column; gap: 4px; }
.sst-popup__label { font-size: 16px; font-weight: 600; margin-top: 8px; }
.sst-popup__input { width: 100%; min-height: 44px; padding: 10px 14px; font: inherit; font-size: 16px; color: #111; background: #fff; border: 1px solid #6b6b6b; border-radius: 0; }
.sst-popup__input[aria-invalid="true"] { border-color: #b00020; border-width: 2px; }
.sst-popup__error { margin: 4px 0 0; min-height: 0; font-size: 16px; color: #b00020; }
.sst-popup__error:empty { display: none; }
.sst-popup__submit { min-height: 44px; margin-top: 12px; padding: 10px 20px; font: inherit; font-size: 16px; font-weight: 700; color: var(--sst-pop-btn-text, var(--sst-accent-contrast, #fff)); background: var(--sst-pop-btn, var(--sst-accent, #1a1a1a)); border: 0; border-radius: var(--sst-pop-radius, var(--sst-radius, 0px)); cursor: pointer; }
.sst-popup__submit:hover { filter: brightness(.94); }
.sst-popup__submit[disabled] { opacity: .7; cursor: progress; }
.sst-popup__success { margin: 8px 0 0; padding: 12px 0; font-size: 18px; font-weight: 600; outline: none; }
.sst-popup__decline { align-self: flex-start; min-height: 44px; margin-top: 8px; padding: 8px 4px; font: inherit; font-size: 16px; color: inherit; background: none; border: 0; text-decoration: underline; cursor: pointer; }

/* Honeypot: off-screen, not display:none, so simple bots still fill it. */
.sst-popup__hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.sst-popup__close:focus-visible, .sst-popup__input:focus-visible, .sst-popup__submit:focus-visible, .sst-popup__decline:focus-visible, .sst-popup-trigger:focus-visible { outline: 3px solid #1a56db; outline-offset: 2px; }

.sst-popup-trigger { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 10px 24px; font: inherit; font-family: var(--sst-pop-font, var(--sst-font, inherit)); font-size: 16px; font-weight: 700; color: var(--sst-pop-btn-text, var(--sst-accent-contrast, #fff)); background: var(--sst-pop-btn, var(--sst-accent, #1a1a1a)); border: 0; border-radius: var(--sst-pop-radius, var(--sst-radius, 4px)); cursor: pointer; }

html.sst-popup-lock { overflow: hidden; }

@media (min-width: 700px) {
    .sst-popup__dialog.has-image { grid-template-columns: 1fr 1fr; }
    .sst-popup__media { height: auto; min-height: 320px; }
    .sst-popup__content { padding: 40px 36px; }
}

@media (prefers-reduced-motion: reduce) {
    .sst-popup.is-open .sst-popup__dialog { animation: none; }
}
