/**
 * Bongdanet Banner – frontend styles
 * Render logic lives in bongdanet-banner.js.
 */

/* ── Top banner wrapper overrides ───────────────────────────── */
#bdn_top_desktop_wrap {
    margin: 0 -15px 12px;
}

/* ── Banner containers ───────────────────────────────────────── */
.bdn-slot {
    display: block;
    text-align: center;
}

.bdn-slot a {
    display: inline-block;
    line-height: 0;
}

.bdn-slot img {
    width: 100%;
    height: auto;
    display: block;
}

.bdn-slot-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}

/* ── Catfish (fixed bottom bar) ──────────────────────────────── */
.bdn-catfish {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    background: transparent;
    pointer-events: none;
}

.bdn-catfish > * {
    pointer-events: auto;
}

.bdn-dual-wrapper {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;

    .bdn-slot {
        width: 100%;

        ins, a {
            display: block;
            width: 100%;
        }
    }
    img {
        height: 65px;
    }
    .bdn-slot--single img {
        height: 65px;
    }
}

@media (min-width: 960px) {
    .bdn-catfish-pc {
        bottom: 20px;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 730px;
        margin: auto;
        gap: 4px;

        .bdn-slot, ins, ins a {
            width: 100%;
            display: block;
        }

        img {
            max-height: 60px;
            width: auto;
            margin: auto;
        }
    }

    .banner_show_mobile_bongdanet, 
    .bdn-catfish-mb, #bdn_mobile_top_slot {
        display: none !important;
    }
}

@media (max-width: 959px) {
    .banner_show_pc,
    .sport_theme_banner_header,
    .sport_theme_banner_before_content,
    .bdn-catfish-pc,
    .bdn-dual-wrapper {
        display: none !important;
    }
    .banner_show_mobile_bongdanet {
        margin: 0 -15px 10px;

        .banner_top_mb {
            margin-bottom: 4px;
        }
    }

    .bdn-catfish-mb {
        bottom: 0;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        width: 100%;

        .bdn-slot {
            width: calc(100% - 20px);
            margin: 0 10px 4px;
        }

        ins, ins a {
            width: 100%;
            display: block;
        }
        img {
            max-height: 55px;
            width: 100%;
        }
    }

    #bdn_mobile_top_slot {
        margin: 0 10px;
        display: flex;
        flex-direction: column;
        gap: 4px;

        ins, ins a {
            width: 100%;
            display: block;
        }

        img {
            height: 55px;
        }
    }
}
