/* =====================================================
   ATC TOP AD ROTATOR
   Desktop: 728x90
   Mobile : 300x250
   ===================================================== */

.atc-top-ad-slot {
    box-sizing: border-box;
    width: 100%;
    margin: 18px auto;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-align: center;
    line-height: normal;
}

.atc-top-ad-slot *,
.atc-top-ad-slot *::before,
.atc-top-ad-slot *::after {
    box-sizing: border-box;
}

/* =========================
   Desktop
   ========================= */

.atc-top-ad-slot--desktop {
    min-height: 90px;
}

.atc-top-ad-slot--desktop .atc-top-ad-frame {
    width: 728px;
    height: 90px;
    max-width: 100%;
}

/* =========================
   Mobile
   ========================= */

.atc-top-ad-slot {
    margin: 0 auto;
    padding: 0;
    line-height: 0;
}

.atc-top-ad-slot--mobile {
    min-height: 0;
    margin: 6px auto 8px;
    padding: 0;
}

.atc-top-ad-slot--mobile .atc-top-ad-frame {
    width: 300px;
    height: 250px;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

.atc-top-ad-direct,
.atc-top-ad-direct img {
    display: block;
    margin: 0 auto;
}
/* =========================
   Image banners (B-Quik + House)
   ========================= */

.atc-top-ad-direct {
    display: block;
    overflow: hidden;
    text-decoration: none;
}

.atc-top-ad-direct img {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

/* =========================
   AdSense
   ========================= */

.atc-top-ad-adsense {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.atc-top-ad-slot--mobile {
    min-height: 0;
    margin: 4px auto 8px;
    padding: 0;
}

.atc-top-ad-slot--mobile .atc-top-ad-frame {
    width: 300px;
    height: 250px;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

#div-gpt-ad-1667727055812-0 {
    min-height: 0 !important;
    margin: 4px auto 8px !important;
    padding: 0 !important;
    line-height: 0;
}
/* =====================================================
   Mobile Top Ad - exact 300x250
   Remove legacy 336x280 empty space
   ===================================================== */

@media (max-width: 767px) {

    #div-gpt-ad-1667727055812-0 {
        width: 300px !important;
        max-width: 300px !important;

        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;

        margin: 4px auto 8px !important;
        padding: 0 !important;

        overflow: hidden !important;
        line-height: 0 !important;
    }

    #div-gpt-ad-1667727055812-0 .atc-top-ad-frame,
    #div-gpt-ad-1667727055812-0 .atc-top-ad-direct,
    #div-gpt-ad-1667727055812-0 .atc-top-ad-adsense {
        width: 300px !important;
        height: 250px !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    #div-gpt-ad-1667727055812-0 img,
    #div-gpt-ad-1667727055812-0 iframe,
    #div-gpt-ad-1667727055812-0 ins {
        display: block !important;

        width: 300px !important;
        height: 250px !important;

        margin: 0 !important;
        padding: 0 !important;
    }
}
/* ==========================================
   Desktop responsive AdSense
   ========================================== */

@media (min-width: 768px) {

    .atc-top-ad-slot--desktop:has(.atc-top-ad-adsense) {
        width: 100%;
        max-width: 1268px;
        min-height: 90px;
        height: auto;
        overflow: visible;
    }

    .atc-top-ad-slot--desktop .atc-top-ad-adsense {
        width: 100%;
        max-width: 1268px;
        height: auto;
        min-height: 90px;
        margin: 0 auto;
        overflow: visible;
    }

    .atc-top-ad-slot--desktop .atc-top-ad-adsense ins.adsbygoogle {
        width: 100% !important;
        height: auto;
        min-height: 90px;
    }
}
/* =====================================================
   DESKTOP RESPONSIVE ADSENSE
   B-Quik / House remain 728x90
   AdSense can use available desktop width
   ===================================================== */

@media (min-width: 768px) {

    .atc-top-ad-slot--desktop.atc-top-ad-slot--adsense {
        width: 100%;
        max-width: 1268px;

        height: auto;
        min-height: 90px;

        margin: 10px auto;
        padding: 0 16px;

        overflow: visible;
    }

    .atc-top-ad-slot--desktop.atc-top-ad-slot--adsense
    .atc-top-ad-frame {

        width: 100%;
        max-width: 1268px;

        height: auto;
        min-height: 90px;

        margin: 0 auto;
        overflow: visible;
    }

    .atc-top-ad-slot--desktop.atc-top-ad-slot--adsense
    .atc-top-ad-adsense {

        display: block;

        width: 100%;
        max-width: 1268px;

        height: auto;
        min-height: 90px;

        margin: 0 auto;
        overflow: visible;
    }

    .atc-top-ad-slot--desktop.atc-top-ad-slot--adsense
    ins.adsbygoogle {

        display: block !important;

        width: 100% !important;
        max-width: 100% !important;

        height: auto;
        min-height: 90px;

        margin: 0 auto !important;
    }
}
/* =====================================================
   ATC GLOBAL A1 ZONE
   Same outer spacing on every template
   ===================================================== */

.atc-a1-zone {
    box-sizing: border-box;
    width: 100%;

    margin: 0;
    padding: 14px 16px;

    text-align: center;
}

/* A1 zone owns outer spacing */
.atc-a1-zone .atc-top-ad-slot {
    margin: 0 auto !important;
}


/* Desktop */
@media (min-width: 768px) {

    .atc-a1-zone {
        padding-top: 14px;
        padding-bottom: 14px;
    }

}


/* Mobile */
@media (max-width: 767px) {

    .atc-a1-zone {
        padding: 8px 0;
    }

    .atc-a1-zone .atc-top-ad-slot--mobile {
        margin: 0 auto !important;
    }

}