/* =========================================================
   A1 CASH & CARRY
   AUTOMATIC FOOTER PROMOTIONAL BANNER
========================================================= */

.footer-banner-section {
    width: 100%;
    padding: 25px 0 35px;
    /* background: #ffffff; */
}

.footer-banner-slider {
    position: relative;
    width: calc(100% - 40px);
    max-width: 1580px;
    height: 300px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    background: #0645a5;
    isolation: isolate;
}

/* =========================================================
   SLIDES
========================================================= */

.footer-banner-slide {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.025);
    transition:
        opacity 0.45s ease,
        transform 1s ease,
        visibility 0.45s ease;
}

.footer-banner-slide.active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
}

.footer-banner-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* =========================================================
   NAVIGATION CONTROLS
========================================================= */

.footer-banner-controls {
    position: absolute;
    z-index: 5;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-banner-controls button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 20px;
    background: #ffffff;
    color: #172033;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-banner-controls button:hover {
    transform: translateY(-2px);
    background: #087f23;
    color: #ffffff;
}

.footer-banner-controls button:focus-visible,
.footer-banner-dots button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

/* =========================================================
   DOTS
========================================================= */

.footer-banner-dots {
    position: absolute;
    z-index: 5;
    bottom: 15px;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transform: translateX(-50%);
}

.footer-banner-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid #ffffff;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition:
        width 0.2s ease,
        background 0.2s ease;
}

.footer-banner-dots button.active {
    width: 24px;
    border-radius: 10px;
    background: #ffffff;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {
    .footer-banner-slider {
        height: 250px;
    }

    .footer-banner-controls {
        top: 12px;
        right: 12px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {
    .footer-banner-section {
        padding: 18px 0 25px;
    }

    .footer-banner-slider {
        width: calc(100% - 24px);
        height: 170px;
        border-radius: 9px;
    }

    .footer-banner-slide img {
        object-position: center;
    }

    .footer-banner-controls {
        top: 9px;
        right: 9px;
        gap: 5px;
    }

    .footer-banner-controls button {
        width: 29px;
        height: 27px;
        font-size: 11px;
    }

    .footer-banner-dots {
        bottom: 9px;
        gap: 5px;
    }

    .footer-banner-dots button {
        width: 7px;
        height: 7px;
    }

    .footer-banner-dots button.active {
        width: 18px;
    }
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
    .footer-banner-slide,
    .footer-banner-controls button,
    .footer-banner-dots button {
        transition: none;
    }
}