/**
 * Bongdalu Banner – frontend styles
 * Render logic lives in bongdalu-banner.js.
 * Add zone-specific CSS here as zones are implemented.
 */

/* ── Banner containers ───────────────────────────────────────── */
.bdl-slot {
    display: block;
    text-align: center;
}

.bdl-slot a {
    display: inline-block;
    line-height: 0;
}

.bdl-slot img {
    width: 100%;
    height: auto;
    display: block;
}

.bdl-slot-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.bdl-banner-before-header {
    width: 100%;
    max-width: 1208px;
    margin: 8px auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
}

.banner_before_header {
    width: 100%;
    max-width: 1208px;
    margin: 8px auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
}

.bdl-notice-banner {
    width: 1208px;
    max-width: calc(100% - 24px);
    margin: 0 auto 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: normal;
    border: 1px solid #ffcccc;
    border-radius: 4px;
    background: #fdf2f2;
    color: #333;
    font-size: 14px;
    line-height: 21px;
    height: 50px;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

#bdl_notice_banner .bdl-notice-inner {
    width: 100%;
    display: flex;
    align-items: center;
}

#bdl_notice_banner .bdl-notice-icon {
    width: 20px;
    height: 20px;
    display: block;
    margin: 0;
    flex: 0 0 20px;
}

#bdl_notice_banner .bdl-notice-content {
    flex: 1;
    min-width: 0;
    margin-left: 8px;
    margin-right: 26px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#bdl_notice_banner .bdl-notice-marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

#bdl_notice_banner .bdl-notice-marquee-track {
    display: flex;
    align-items: center;
    gap: 56px;
    width: max-content;
    white-space: nowrap;
    animation: bdlNoticeTicker 32s linear infinite;
    will-change: transform;
}

#bdl_notice_banner .bdl-notice-content .bdl-slot {
    text-align: left;
    display: inline-block;
}

#bdl_notice_banner .bdl-notice-content .bdl-notice-item {
    flex: 0 0 auto;
}

#bdl_notice_banner .bdl-notice-content .bdl-slot,
#bdl_notice_banner .bdl-notice-content .bdl-slot * {
    line-height: 14px;
}

#bdl_notice_banner .bdl-notice-content a {
    display: inline;
    color: #fb2b1c;
    font-size: 14px;
    font-weight: 600;
    line-height: 14px;
    text-decoration: none;
    white-space: nowrap;
}

#bdl_notice_banner .bdl-notice-content .bdl-slot img {
    width: auto;
    max-width: 100%;
    max-height: 30px;
}

#bdl_notice_banner .bdl-notice-close {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    color: #8b8b8b;
    font-size: 16px;
    line-height: 18px;
    cursor: pointer;
}

#bdl_notice_banner .bdl-notice-close:hover {
    color: #555;
}

@keyframes bdlNoticeTicker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 28px));
    }
}

.bdl-banner-before-header .bdl-dual-wrapper {
    margin-top: 0;
    gap: 0;
}

.bdl-banner-before-header .bdl-slot-row .bdl-slot {
    flex: 0 0 calc((100% - 10px) / 2);
    max-width: 599px;
}

.bdl-banner-before-header .bdl-slot img {
    width: 100%;
    height: auto;
    max-height: 74.1px;
}

.floating-banner {
    position: sticky;
    top: 140px;
    width: 1430px;
    height: 0;
    margin: 0 auto;
    z-index: 9998;
}

#left_gutter,
#right_gutter {
    position: absolute;
    top: 0;
    width: 100px;
    height: 384px;
    display: block;
    overflow: visible;
}

#left_gutter {
    left: 0;
}

#right_gutter {
    right: 0;
}

#left_gutter .bdl-slot,
#right_gutter .bdl-slot,
#left_gutter ins,
#right_gutter ins,
#left_gutter ins a,
#right_gutter ins a {
    width: 100%;
    display: block;
}

.bdl-balloon {
    position: fixed;
    bottom: 15px;
    z-index: 999999;
    width: 200px;
    height: 200px;
}

.bdl-balloon-left {
    left: 20px;
}

.bdl-balloon-right {
    right: 20px;
}

.bdl-balloon .bdl-slot,
.bdl-balloon ins,
.bdl-balloon ins a {
    width: 100%;
    display: block;
}

.bdl-balloon img {
    width: 100%;
    height: 100%;
    display: block;
}

.bdl-balloon-close {
    position: absolute;
    top: -10px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    border: 2px solid #fff;
    background: rgb(17, 24, 39);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

.bdl-balloon-left .bdl-balloon-close {
    left: -10px;
}

.bdl-balloon-right .bdl-balloon-close {
    right: -10px;
}

.gwd-hide {
    display: none !important;
}

/* ── Catfish (fixed bottom bar) ──────────────────────────────── */
.gwd-catfish-footer {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 1208px;
    max-width: calc(100% - 24px);
    z-index: 999998;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 12px;
    padding-top: 10px;
    box-sizing: border-box;
    pointer-events: none;
}

.gwd-catfish-footer__item {
    flex: 0 0 586px;
    width: 586px;
    max-width: calc(50% - 6px);
    display: block;
    pointer-events: auto;
}

.gwd-catfish-footer__item ins,
.gwd-catfish-footer__item ins a,
.gwd-catfish-footer__item img {
    width: 100% !important;
    display: block;
}

.gwd-catfish-footer__item img {
    height: auto !important;
    max-height: 72.5px;
    margin: 0 auto;
}

.bdl-dual-wrapper {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;

    .bdl-slot {
        width: 100%;

        ins, a {
            display: block;
            width: 100%;
        }
    }
    img {
        height: 65px;
    }
    .bdl-slot--single img {
        height: auto;
        height: 65px;
    }
}

@media (min-width: 960px) {
    .bdl-catfish-mb, #bdl_mobile_top_slot {
        display: none !important;
    }
}

@media (max-width: 959px) {
    .gwd-catfish-footer, .bdl-dual-wrapper {
        display: none !important;
    }

    .bdl-rail,
    .bdl-balloon {
        display: none !important;
    }

    .floating-banner,
    #left_gutter,
    #right_gutter {
        display: none !important;
    }

    .bdl-catfish-mb {
        bottom: 0;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        width: 100%;

        .bdl-slot {
            width: calc(100% - 20px);
            margin: 0 10px 4px;
        }

        ins, ins a {
            width: 100%;
            display: block;
        }
        img {
            max-height: 55px;
            width: 100%;
        }
    }

    #bdl_mobile_top_slot {
        margin: 0 10px;
        display: flex;
        flex-direction: column;
        gap: 4px;

        ins, ins a {
            width: 100%;
            display: block;
        }

        img {
            height: 55px;
        }
    }
}