/* All selectors are prefixed to minimize collisions with the active theme. */
#sbp-popup-root[hidden] { display: none !important; }
#sbp-popup-root.sbp-root {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 24px;
    isolation: isolate;
}
#sbp-popup-root *, #sbp-popup-root *::before, #sbp-popup-root *::after { box-sizing: border-box; }
#sbp-popup-root .sbp-backdrop {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(0, 0, 0, var(--sbp-opacity, .65));
}
#sbp-popup-root .sbp-dialog {
    position: relative;
    width: min(var(--sbp-width, 520px), 92vw, calc(88vh - 30px));
    max-height: calc(100dvh - 48px);
    min-width: 0;
    outline: none;
    border-radius: 14px;
    filter: drop-shadow(0 20px 48px rgba(0,0,0,.25));
}
#sbp-popup-root .sbp-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: calc(100dvh - 48px);
    object-fit: contain;
    border-radius: 14px;
    border: 0;
    box-shadow: none;
    margin: 0;
    padding: 0;
}
#sbp-popup-root .sbp-banner-link {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    line-height: 0;
    background: transparent;
    border: 0;
    text-decoration: none;
}
#sbp-popup-root .sbp-close {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    z-index: 2;
    top: -16px;
    right: -16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #171a20;
    color: #fff;
    cursor: pointer;
    padding: 0;
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 27px;
    font-weight: 400;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(0,0,0,.27);
}
#sbp-popup-root .sbp-close:hover { background: #2d3748; }
#sbp-popup-root .sbp-close:focus-visible,
#sbp-popup-root .sbp-banner-link:focus-visible { outline: 3px solid #77c5ff; outline-offset: 3px; }
body.sbp-scroll-locked { overflow: hidden !important; }
@media (max-width: 767px) {
    #sbp-popup-root.sbp-root { padding: 16px; }
    #sbp-popup-root .sbp-dialog { width: min(92vw, calc(86dvh - 30px)); max-height: calc(100dvh - 40px); }
    #sbp-popup-root .sbp-image { max-height: calc(100dvh - 40px); }
    #sbp-popup-root .sbp-close { top: -14px; right: -10px; width: 36px; height: 36px; }
    #sbp-popup-root.sbp-desktop-only { display: none !important; }
}
@media (min-width: 768px) {
    #sbp-popup-root.sbp-mobile-only { display: none !important; }
}
@media (prefers-reduced-motion: no-preference) {
    #sbp-popup-root:not([hidden]) .sbp-dialog { animation: sbp-pop-in .23s ease-out both; }
    @keyframes sbp-pop-in { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
}
