.site-popup-layer { position: absolute !important; inset: 0; z-index: 2147483647 !important; isolation: isolate; pointer-events: none; }
.site-popup-layer .site-popup { pointer-events: auto; }
.site-popup { position: absolute !important; top: var(--pt); left: var(--pl); width: min(var(--pw), calc(100vw - 40px)); height: fit-content !important; padding: 0 !important; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 24px 80px rgba(16, 24, 40, .3); }
/* 테마의 전역 header/footer 규칙이 팝업에 영향을 주지 않게 되돌린다. */
.site-popup > header, .site-popup > footer { position: relative !important; top: auto !important; right: auto !important; bottom: auto !important; left: auto !important; z-index: auto !important; width: auto !important; max-width: none !important; margin: 0 !important; transform: none !important; background-image: none !important; }
.site-popup > header { display: flex; height: 54px; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid #e4e7ec; background: #fff; }
.site-popup button { border: 0; background: none; color: inherit; cursor: pointer; }
.popup-close-x { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; color: #667085; font-size: 22px; }
.popup-close-x:hover { color: #101828; }
.popup-content { min-height: 0 !important; max-height: calc(100vh - 180px); height: auto !important; margin: 0 !important; padding: 0; overflow: auto; }
.popup-content:not(:has(img)) { min-height: var(--ph); padding: 22px; }
.popup-content img { display: block; width: 100%; height: auto; }
.site-popup > footer { display: flex; min-height: 62px; flex: 0 0 auto; align-items: center; justify-content: space-between; padding: 8px; background: #353541; color: #fff !important; font-size: 14px; }
.site-popup > footer * { color: #fff !important; }
.popup-today { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: #fff; font-weight: 600; line-height: 20px; cursor: pointer; }
.popup-today input { appearance: none; width: 20px; height: 20px; margin: 0; border: 1px solid #d0d5dd; border-radius: 5px; background: #fff; cursor: pointer; }
.popup-today input:checked { border-color: #2563eb; background: #2563eb; box-shadow: inset 0 0 0 4px #fff; }
.popup-close-button { display: inline-flex; align-items: center; gap: 5px; padding: 7px 2px 7px 12px; color: #fff; font-size: 15px; font-weight: 700; line-height: 20px; }
.popup-close-button i { font-size: 18px; transition: transform .2s ease; }
.popup-close-button:hover i { transform: rotate(90deg); }
@media (max-width: 1024px) { .site-popup { top: 0 !important; left: 50% !important; width: min(var(--pw), 100vw); max-width: 100vw; height: auto !important; transform: translateX(-50%) !important; border-radius: 0; } }
