/* Exit-intent WhatsApp popup (partials/exit-popup, js/exit-popup.js). Loaded late, only where the popup is on: it opens
   seconds after the page (a <dialog> in the top layer: nothing on the page moves). Desktop: a small centred box;
   phones / tablets (.is-sheet): a bottom sheet, never full screen. */
.sj-exit { width: min(560px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 16px; background: #fff; color: var(--bodyColor, #555); box-shadow: 0 24px 60px rgba(24, 16, 20, .35); overflow: visible; }
.sj-exit::backdrop { background: rgba(24, 16, 20, .6); }
.sj-exit-box { position: relative; display: flex; align-items: stretch; overflow: hidden; border-radius: 16px; }
.sj-exit-photo { flex: 0 0 42%; background: #f3ece4; }
.sj-exit-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sj-exit-body { flex: 1 1 auto; padding: 32px 28px 28px; }
.sj-exit .icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
.sj-exit-title { margin: 0 0 10px; padding-right: 28px; font-family: var(--headerFonts); font-size: 24px; font-weight: 400; line-height: 1.25; color: var(--titleColor, #202031); }
.sj-exit-text { margin: 0 0 20px; font-family: var(--bodyFonts); font-size: 16px; line-height: 1.6; color: var(--bodyColor, #555); }
.sj-exit-wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 6px; background: #1b7d3c; color: #fff; font-family: var(--bodyFonts); font-size: 16px; font-weight: 600; text-decoration: none; }
.sj-exit-wa:hover, .sj-exit-wa:focus { background: #14612e; color: #fff; }
.sj-exit-close { position: absolute; top: 8px; right: 8px; z-index: 1; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--titleColor, #202031); cursor: pointer; }
.sj-exit :focus-visible { outline: 3px solid var(--titleColor, #202031); outline-offset: 2px; }
.sj-exit-wa:focus-visible { outline-color: #14612e; outline-offset: 3px; }

/* phones / tablets: a bottom sheet (a small thumbnail instead of the photo column) */
.sj-exit.is-sheet { width: 100%; max-width: 100%; max-height: 60vh; margin: auto 0 0; border-radius: 16px 16px 0 0; }
.sj-exit.is-sheet::backdrop { background: rgba(24, 16, 20, .35); }
.sj-exit.is-sheet .sj-exit-box { align-items: flex-start; gap: 14px; padding: 20px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; }
.sj-exit.is-sheet .sj-exit-photo { flex: 0 0 72px; height: 72px; overflow: hidden; border-radius: 10px; }
.sj-exit.is-sheet .sj-exit-body { padding: 0; }
.sj-exit.is-sheet .sj-exit-title { font-size: 19px; margin-bottom: 6px; }
.sj-exit.is-sheet .sj-exit-text { font-size: 15px; margin-bottom: 14px; }
.sj-exit.is-sheet .sj-exit-wa { width: 100%; }
@media (prefers-reduced-motion: no-preference) {
    .sj-exit[open] { animation: sj-exit-in .2s ease-out; }
    .sj-exit.is-sheet[open] { animation-name: sj-exit-up; }
}
@keyframes sj-exit-in { from { opacity: 0; transform: scale(.96); } }
@keyframes sj-exit-up { from { transform: translateY(100%); } }
