.scb-video-popup {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: rgba(0, 0, 0, 0.92);
    z-index: 2147483646;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overscroll-behavior: contain;
}

.scb-video-popup.is-visible {
    display: flex !important;
}

.scb-video-popup__box {
    width: min(100%, 430px);
    max-height: calc(100dvh - 32px);
    overflow: auto;
    padding: 30px 22px;
    border-radius: 20px;
    background-color: #fff;
    background-size: cover;
    background-position: center;
    text-align: center;
    box-sizing: border-box;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.48);
}

.scb-video-popup__box[style*="background-image"] h2,
.scb-video-popup__box[style*="background-image"] p,
.scb-video-popup__box[style*="background-image"] .scb-video-popup__icon {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
}

.scb-video-popup__icon {
    margin-bottom: 10px;
    font-size: 46px;
    line-height: 1;
}

.scb-video-popup__box h2 {
    margin: 0 0 10px;
    color: #111;
    font-size: clamp(25px, 6vw, 32px);
    line-height: 1.15;
}

.scb-video-popup__box p {
    margin: 0 0 24px;
    color: #555;
    font-size: 17px;
    line-height: 1.45;
}

.scb-video-popup__button {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 14px 18px;
    border: 0;
    border-radius: 12px;
    box-sizing: border-box;
    font: inherit;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    touch-action: manipulation;
    transition: transform .12s ease, opacity .12s ease;
    -webkit-appearance: none;
}

.scb-video-popup__button + .scb-video-popup__button {
    margin-top: 12px;
}

.scb-video-popup__button:active {
    transform: scale(.98);
}

.scb-video-popup__button--primary {
    background: #ef6c00;
    color: #fff;
}

.scb-video-popup__button--secondary {
    background: #111;
    color: #fff;
}

html.scb-video-popup-open,
body.scb-video-popup-open {
    overflow: hidden !important;
    touch-action: none;
}

@media (max-width: 480px) {
    .scb-video-popup__box {
        padding: 26px 18px;
        border-radius: 17px;
    }
}
