.banner-popup-bg {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    padding: 18px;
    background: rgba(15, 23, 42, 0.72);
    box-sizing: border-box;
    backdrop-filter: blur(5px);
    animation: bannerPopupFadeIn 0.22s ease;
}

body.banner-popup-open {
    overflow: hidden !important;
}

html.banner-popup-open,
html.coupon-popup-open,
html.minisite-popup-scroll-locked,
html.popup-scroll-locked,
body.banner-popup-open,
body.coupon-popup-open,
body.minisite-popup-scroll-locked,
body.popup-scroll-locked {
    overflow: hidden !important;
    overscroll-behavior: none;
    height: 100%;
}

body.banner-popup-open,
body.coupon-popup-open,
body.minisite-popup-scroll-locked,
body.popup-scroll-locked {
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
}

.banner-popup-card {
    isolation: isolate;
    position: relative;
    width: min(94vw, 680px);
    max-height: 500px;
    height: 500px !important;
    overflow-y: auto;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.34);
    color: #172033;
    overscroll-behavior: contain;
    animation: bannerPopupEnter 0.24s ease;
}

.banner-popup-card::-webkit-scrollbar {
    width: 8px;
}

.banner-popup-card::-webkit-scrollbar-track {
    background: #eef2f7;
}

.banner-popup-card::-webkit-scrollbar-thumb {
    background: #b8c2d2;
    border-radius: 999px;
}

.banner-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2147483647;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #f3f6fb;
    color: #111827;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    transition: background 0.2s ease, transform 0.2s ease;
}

.banner-popup-close:hover,
.banner-popup-close:focus {
    background: #e8edf5;
    transform: scale(1.04);
    outline: none;
}

.banner-popup-content-wrap {
    padding: 46px 34px 34px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.98)),
        repeating-linear-gradient(45deg, rgba(20, 184, 166, 0.05) 0, rgba(20, 184, 166, 0.05) 1px, transparent 1px, transparent 16px);
}

.banner-popup-content {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    color: #172033;
    line-height: 1.55;
    text-align: center;
    overflow-wrap: anywhere;
}

.banner-popup-content .u-close-button,
.banner-popup-content .u-dialog-close-button,
.banner-popup-content .u-popup-close,
.banner-popup-content .u-close,
.banner-popup-content [class*="close-button"] {
    display: none !important;
    pointer-events: none !important;
}

.banner-popup-content img,
.banner-popup-content iframe,
.banner-popup-content video,
.banner-popup-content table {
    max-width: 100% !important;
}

.banner-popup-content img,
.banner-popup-content video {
    height: auto !important;
    border-radius: 12px;
}

.banner-popup-content table {
    margin-inline: auto;
}

.banner-popup-bg.is-closing {
    opacity: 0;
    transition: opacity 0.18s ease;
}

@keyframes bannerPopupFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bannerPopupEnter {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 640px) {
    .banner-popup-bg {
        align-items: flex-start;
        padding: 12px;
    }

    .banner-popup-card {
        width: 100%;
        max-height: calc(100vh - 24px);
        border-radius: 14px;
    }

    .banner-popup-content-wrap {
        padding: 54px 18px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .banner-popup-bg,
    .banner-popup-card {
        animation: none;
    }
}

.u-popup-content {
    padding-right: 0% !important;
}
