/* AFCMall v1.3.6 — Premium Promo Popup */

.afc-promo-popup {
    position: fixed;
    z-index: 2147482500;
    inset: 0;
    display: grid;
    place-items: center;
    padding:
        max(18px, env(safe-area-inset-top))
        max(18px, env(safe-area-inset-right))
        max(18px, env(safe-area-inset-bottom))
        max(18px, env(safe-area-inset-left));
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.afc-promo-popup.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.afc-promo-popup__overlay {
    position: absolute;
    inset: 0;
    background: color-mix(
        in srgb,
        var(--afc-popup-overlay, #061426)
        calc(var(--afc-popup-overlay-opacity, .72) * 100%),
        transparent
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.afc-promo-popup__dialog {
    position: relative;
    z-index: 2;
    display: grid;
    width: min(100%, 920px);
    max-height: min(90dvh, 860px);
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 28px;
    background:
        radial-gradient(circle at 92% 8%, rgba(201,162,39,.18), transparent 28%),
        linear-gradient(145deg, rgba(255,255,255,.99), rgba(247,248,250,.985));
    box-shadow:
        0 40px 120px rgba(2,12,25,.42),
        inset 0 1px 0 rgba(255,255,255,.95);
    transform-origin: center;
    scrollbar-width: thin;
}

.afc-popup-size-compact {
    width: min(100%, 700px);
}

.afc-popup-size-standard {
    width: min(100%, 920px);
}

.afc-popup-size-large {
    width: min(100%, 1120px);
}

.afc-popup-size-custom {
    width: min(100%, var(--afc-popup-custom-width, 920px));
}

.afc-promo-popup__dialog.has-media.afc-popup-layout-premium_split,
.afc-promo-popup__dialog.has-media.afc-popup-layout-luxury {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
}

.afc-promo-popup__dialog.has-media.afc-popup-layout-image_focus {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
}

.afc-promo-popup__dialog.afc-popup-layout-minimal {
    grid-template-columns: 1fr;
}

.afc-promo-popup__dialog.no-media {
    grid-template-columns: 1fr;
    max-width: 680px;
}

.afc-promo-popup__close {
    position: absolute;
    z-index: 8;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.44);
    border-radius: 50%;
    color: #fff;
    background: rgba(6,20,38,.72);
    box-shadow: 0 10px 28px rgba(2,12,25,.25);
    backdrop-filter: blur(10px);
    font: 300 30px/1 system-ui, sans-serif;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.afc-promo-popup__close:hover {
    transform: rotate(8deg) scale(1.06);
    background: rgba(6,20,38,.92);
}

.afc-promo-popup__media {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 360px;
    overflow: hidden;
    border-radius: 27px 0 0 27px;
    background:
        radial-gradient(circle at 50% 42%, rgba(39,74,108,.72), transparent 68%),
        #061525;
}

.afc-promo-popup__media.is-both {
    align-content: start;
    gap: 0;
    max-height: min(90dvh, 860px);
    overflow-y: auto;
}

.afc-popup-image {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 360px;
    margin: 0;
    padding: clamp(12px, 2vw, 22px);
    background:
        radial-gradient(circle at 18% 12%, rgba(201,162,39,.20), transparent 30%),
        linear-gradient(145deg, #f7f8f8, #e8edf1);
}

.afc-popup-image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(72dvh, 720px);
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 54px rgba(6,25,46,.18);
}

.afc-popup-video {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 320px;
    background: #040e1a;
}

.afc-popup-video--iframe {
    aspect-ratio: 16 / 9;
    min-height: 0;
}

.afc-popup-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.afc-popup-video video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: min(72dvh, 720px);
    object-fit: contain;
    background: #040e1a;
}

.afc-promo-popup__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: clamp(30px, 5vw, 58px);
}

.afc-promo-popup__eyebrow {
    margin-bottom: 13px;
    color: #9a7415;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .18em;
}

.afc-promo-popup__content h2 {
    margin: 0;
    color: #0d243e;
    font-size: clamp(29px, 4vw, 48px);
    line-height: 1.06;
    letter-spacing: -.035em;
}

.afc-promo-popup__content p {
    margin: 18px 0 0;
    color: #586a80;
    font-size: clamp(15px, 1.65vw, 18px);
    line-height: 1.75;
}

.afc-promo-popup__expiry {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    padding: 8px 12px;
    border: 1px solid rgba(201,162,39,.28);
    border-radius: 999px;
    color: #76580c;
    background: rgba(201,162,39,.10);
    font-size: 13px;
}

.afc-promo-popup__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.afc-promo-popup__cta {
    position: relative;
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 22px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 999px;
    color: #fff;
    background:
        linear-gradient(110deg, #916b0d, #d6b34e 45%, #99720f 82%);
    background-size: 220% 100%;
    box-shadow:
        0 15px 34px rgba(137,99,8,.26),
        inset 0 1px 0 rgba(255,255,255,.36);
    font-weight: 800;
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease, background-position .5s ease;
}

.afc-promo-popup__cta:hover {
    color: #fff;
    transform: translateY(-2px);
    background-position: 100% 0;
    box-shadow:
        0 20px 42px rgba(137,99,8,.32),
        inset 0 1px 0 rgba(255,255,255,.42);
}

.afc-promo-popup__later {
    min-height: 46px;
    padding: 10px 14px;
    border: 0;
    color: #657488;
    background: transparent;
    font-weight: 700;
    cursor: pointer;
}

.afc-promo-popup__later:hover {
    color: #102945;
}

/* Design presets */
.afc-popup-layout-luxury {
    background:
        radial-gradient(circle at 92% 8%, rgba(213,177,75,.22), transparent 30%),
        linear-gradient(145deg, #fffdf8, #f3eee2);
}

.afc-popup-layout-luxury .afc-promo-popup__content h2 {
    font-family: Georgia, "Times New Roman", serif;
}

.afc-popup-layout-image_focus .afc-promo-popup__content {
    padding-inline: clamp(26px, 4vw, 46px);
}

.afc-popup-layout-minimal .afc-promo-popup__media {
    min-height: 280px;
    border-radius: 27px 27px 0 0;
}

.afc-popup-layout-minimal .afc-promo-popup__content {
    padding-top: 32px;
}

/* Entrance animations */
.afc-popup-animation-fade_scale {
    opacity: 0;
    transform: scale(.94) translateY(14px);
    transition: opacity .28s ease, transform .34s cubic-bezier(.22,.8,.24,1);
}

.is-open .afc-popup-animation-fade_scale {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.afc-popup-animation-slide_up {
    opacity: 0;
    transform: translateY(52px);
    transition: opacity .30s ease, transform .36s cubic-bezier(.22,.8,.24,1);
}

.is-open .afc-popup-animation-slide_up {
    opacity: 1;
    transform: translateY(0);
}

.afc-popup-animation-zoom_soft {
    opacity: 0;
    transform: scale(.86);
    filter: blur(5px);
    transition: opacity .30s ease, transform .38s ease, filter .30s ease;
}

.is-open .afc-popup-animation-zoom_soft {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

.afc-popup-animation-none {
    opacity: 1;
    transform: none;
}

html.afc-popup-open,
body.afc-popup-open {
    overflow: hidden !important;
    overscroll-behavior: none;
}

@media (max-width: 820px) {
    .afc-promo-popup {
        padding: 10px;
    }

    .afc-promo-popup__dialog,
    .afc-promo-popup__dialog.has-media.afc-popup-layout-premium_split,
    .afc-promo-popup__dialog.has-media.afc-popup-layout-luxury,
    .afc-promo-popup__dialog.has-media.afc-popup-layout-image_focus {
        grid-template-columns: 1fr;
        width: min(100%, 640px);
        max-height: calc(100dvh - 20px);
        border-radius: 22px;
    }

    .afc-promo-popup__media {
        min-height: 240px;
        max-height: 50dvh;
        border-radius: 21px 21px 0 0;
    }

    .afc-popup-image {
        min-height: 240px;
        padding: 9px;
    }

    .afc-popup-image img,
    .afc-popup-video video {
        max-height: 46dvh;
        border-radius: 12px;
    }

    .afc-popup-video {
        min-height: 230px;
    }

    .afc-promo-popup__content {
        padding: 25px 22px 26px;
    }

    .afc-promo-popup__content h2 {
        font-size: clamp(27px, 8vw, 39px);
    }

    .afc-promo-popup__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .afc-promo-popup__cta,
    .afc-promo-popup__later {
        width: 100%;
    }

    .afc-promo-popup__close {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 420px) {
    .afc-promo-popup__media {
        max-height: 44dvh;
    }

    .afc-popup-image img,
    .afc-popup-video video {
        max-height: 40dvh;
    }

    .afc-promo-popup__content p {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .afc-promo-popup__dialog,
    .afc-promo-popup__cta,
    .afc-promo-popup__close {
        transition: none !important;
        animation: none !important;
    }
}


/* ==================================================================
   AFCMall v1.3.8 — Multi Promo Popup Carousel
================================================================== */
.afc-promo-popup__dialog {
    display: block !important;
    overflow: hidden !important;
}

.afc-promo-popup__viewport {
    position: relative;
    width: 100%;
    max-height: min(90dvh, 860px);
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
}

.afc-promo-popup__track {
    display: flex;
    width: 100%;
    transform: translate3d(0,0,0);
    transition: transform .48s cubic-bezier(.22,.78,.22,1);
    will-change: transform;
}

.afc-promo-popup__slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    max-height: min(90dvh, 860px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.afc-promo-popup__slide[aria-hidden="true"] {
    visibility: hidden;
}

.afc-promo-popup__slide.is-active {
    visibility: visible;
}

.afc-promo-popup__slide-inner {
    display: grid;
    width: 100%;
    min-height: 480px;
}

.afc-promo-popup__slide-inner.has-media.afc-popup-layout-premium_split,
.afc-promo-popup__slide-inner.has-media {
    grid-template-columns: minmax(0,1.05fr) minmax(320px,.95fr);
}

.afc-popup-layout-image_focus .afc-promo-popup__slide-inner.has-media {
    grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr);
}

.afc-popup-layout-minimal .afc-promo-popup__slide-inner,
.afc-promo-popup__slide-inner.no-media {
    grid-template-columns: 1fr;
}

.afc-popup-layout-minimal .afc-promo-popup__media {
    border-radius: 27px 27px 0 0;
}

.afc-promo-popup__arrow {
    position: absolute;
    z-index: 20;
    top: 50%;
    display: grid;
    place-items: center;
    width: 48px;
    height: 64px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 999px;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(8,28,51,.88), rgba(20,51,82,.82));
    box-shadow:
        0 15px 38px rgba(2,13,26,.27),
        inset 0 1px 0 rgba(255,255,255,.24);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font: 300 40px/1 system-ui,sans-serif;
    cursor: pointer;
    transform: translateY(-50%);
    transition: transform .2s ease, opacity .2s ease, background .2s ease;
}

.afc-promo-popup__arrow:hover:not(:disabled) {
    transform: translateY(-50%) scale(1.07);
    background:
        linear-gradient(145deg, rgba(145,107,13,.94), rgba(211,176,73,.92));
}

.afc-promo-popup__arrow:disabled {
    opacity: .30;
    cursor: not-allowed;
}

.afc-promo-popup__arrow--prev {
    left: 12px;
}

.afc-promo-popup__arrow--next {
    right: 12px;
}

.afc-promo-popup__dots {
    position: absolute;
    z-index: 22;
    left: 50%;
    bottom: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    background: rgba(5,19,35,.60);
    box-shadow: 0 10px 28px rgba(2,12,25,.22);
    backdrop-filter: blur(12px);
    transform: translateX(-50%);
}

.afc-promo-popup__dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.48);
    cursor: pointer;
    transition: width .22s ease, border-radius .22s ease, background .22s ease;
}

.afc-promo-popup__dot.is-active {
    width: 28px;
    border-radius: 999px;
    background: linear-gradient(90deg,#c49a27,#f0d47c);
}

.afc-promo-popup__counter {
    position: absolute;
    z-index: 21;
    right: 18px;
    bottom: 15px;
    min-width: 54px;
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    color: rgba(255,255,255,.92);
    background: rgba(5,19,35,.60);
    backdrop-filter: blur(12px);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.afc-promo-popup[data-slide-count="1"] .afc-promo-popup__counter,
.afc-promo-popup[data-slide-count="1"] .afc-promo-popup__dots,
.afc-promo-popup[data-slide-count="1"] .afc-promo-popup__arrow {
    display: none !important;
}

/* Keep controls clear of the final CTA and content. */
.afc-promo-popup__slide-inner .afc-promo-popup__content {
    padding-bottom: clamp(62px, 7vw, 78px);
}

.afc-promo-popup__slide-inner .afc-promo-popup__media {
    border-radius: 27px 0 0 27px;
}

.afc-popup-layout-minimal .afc-promo-popup__slide-inner .afc-promo-popup__content {
    padding-bottom: 70px;
}

/* Smooth content change without fading the complete dialog. */
.afc-promo-popup__slide.is-active .afc-promo-popup__content > * {
    animation: afcPopupContentEnter .42s ease both;
}

.afc-promo-popup__slide.is-active .afc-promo-popup__content > *:nth-child(2) { animation-delay: .04s; }
.afc-promo-popup__slide.is-active .afc-promo-popup__content > *:nth-child(3) { animation-delay: .08s; }
.afc-promo-popup__slide.is-active .afc-promo-popup__content > *:nth-child(4) { animation-delay: .12s; }
.afc-promo-popup__slide.is-active .afc-promo-popup__content > *:nth-child(5) { animation-delay: .16s; }

@keyframes afcPopupContentEnter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 820px) {
    .afc-promo-popup__slide-inner,
    .afc-promo-popup__slide-inner.has-media,
    .afc-popup-layout-image_focus .afc-promo-popup__slide-inner.has-media {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .afc-promo-popup__slide-inner .afc-promo-popup__media {
        min-height: 230px;
        max-height: 47dvh;
        border-radius: 21px 21px 0 0;
    }

    .afc-promo-popup__arrow {
        top: 42%;
        width: 42px;
        height: 56px;
        font-size: 34px;
    }

    .afc-promo-popup__arrow--prev { left: 7px; }
    .afc-promo-popup__arrow--next { right: 7px; }

    .afc-promo-popup__dots {
        bottom: 10px;
    }

    .afc-promo-popup__counter {
        right: 12px;
        bottom: 12px;
    }

    .afc-promo-popup__slide-inner .afc-promo-popup__content {
        padding-bottom: 66px;
    }
}

@media (max-width: 480px) {
    .afc-promo-popup__arrow {
        top: 38%;
        width: 38px;
        height: 50px;
        font-size: 31px;
    }

    .afc-promo-popup__dots {
        gap: 6px;
        padding: 7px 9px;
    }

    .afc-promo-popup__counter {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .afc-promo-popup__track,
    .afc-promo-popup__arrow,
    .afc-promo-popup__dot {
        transition: none !important;
    }

    .afc-promo-popup__slide.is-active .afc-promo-popup__content > * {
        animation: none !important;
    }
}
