/* Cashdo (domain 0) home page. Loaded only by templates/home/cashdo_home.vm; everything is scoped under .cd-home. */

.cd-home {
    /* Single brand colour (#52a36a); teal/blue kept as aliases so former gradients render solid */
    --cd-green: #52a36a;
    --cd-green-dark: #3a7f50;
    --cd-teal: #52a36a;
    --cd-blue: #52a36a;
    --cd-ink: #14261b;
    --cd-muted: #5b6b62;
    --cd-card: #ffffff;
    --cd-soft: #f3f8f4;
    --cd-radius: 18px;
    --cd-shadow: 0 10px 30px rgba(20, 38, 27, .08);
    --cd-shadow-hover: 0 18px 40px rgba(82, 163, 106, .22);
    color: var(--cd-ink);
    overflow-x: hidden;
}

.cd-home *,
.cd-home *::before,
.cd-home *::after {
    box-sizing: border-box;
}

/* ---------- Buttons ---------- */
.cd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 12px 30px;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
    will-change: transform;
}

.cd-btn:hover,
.cd-btn:focus-visible {
    transform: translateY(-3px);
}

.cd-btn:focus-visible {
    outline: 3px solid #ffd54a;
    outline-offset: 3px;
}

.cd-btn--primary {
    background: #ffd54a;
    color: #1b2a12 !important;
    box-shadow: 0 10px 24px rgba(255, 213, 74, .45);
    position: relative;
    overflow: hidden;
}

.cd-btn--primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
    transform: skewX(-20deg);
    animation: cd-shine 3.6s ease-in-out infinite;
}

.cd-btn--primary:hover {
    box-shadow: 0 16px 32px rgba(255, 213, 74, .6);
}

.cd-btn--ghost {
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, .75);
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(4px);
}

.cd-btn--ghost:hover {
    background: #fff;
    color: var(--cd-green-dark) !important;
}

.cd-btn--light {
    background: #fff;
    color: var(--cd-green-dark) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .15);
}

/* ---------- Hero ---------- */
.cd-hero {
    position: relative;
    color: #fff;
    padding: 56px 0 56px;
    background: var(--cd-green);
    overflow: hidden;
    isolation: isolate;
    border-radius: 28px;
}

.cd-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.cd-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: .45;
    animation: cd-blob 14s ease-in-out infinite alternate;
}

/* Soft white light spots that drift slowly; the hero stays one colour */
.cd-blob--1 { width: 360px; height: 360px; background: #fff; top: -140px; right: 10%; opacity: .12; }
.cd-blob--2 { width: 300px; height: 300px; background: #fff; bottom: -140px; left: 5%; animation-delay: -5s; opacity: .1; }
.cd-blob--3 { display: none; }

.cd-hero__inner {
    display: flex;
    align-items: center;
    gap: 40px;
}

.cd-hero__text {
    flex: 1 1 55%;
    min-width: 0;
}

.cd-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .35);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 18px;
}

.cd-hero__title {
    font-size: 48px;
    line-height: 1.15;
    font-weight: 800;
    margin: 0 0 16px;
    color: #fff;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .15);
}

.cd-hero__subtitle {
    font-size: 20px;
    line-height: 1.6;
    max-width: 560px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, .92);
}

.cd-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.cd-hero__logos {
    flex: 1 1 45%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 460px;
}

.cd-float {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 10px 12px;
    background: rgba(255, 255, 255, .96);
    border-radius: var(--cd-radius);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
    text-decoration: none !important;
    animation: cd-float 6s ease-in-out infinite;
    transition: transform .3s ease, box-shadow .3s ease;
}

.cd-float:nth-child(2n) { animation-delay: -2s; margin-top: 24px; }
.cd-float:nth-child(3n) { animation-delay: -4s; }

.cd-float:hover {
    animation-play-state: paused;
    transform: scale(1.06) rotate(-1deg);
    box-shadow: 0 20px 44px rgba(0, 0, 0, .25);
}

.cd-float img {
    width: 100%;
    max-width: 110px;
    height: 54px;
    object-fit: contain;
}

.cd-float__rate {
    font-size: 13px;
    font-weight: 700;
    color: var(--cd-green-dark);
    background: #e8f6ea;
    border-radius: 999px;
    padding: 3px 10px;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cd-hero__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 60px;
}

.cd-hero__wave path {
    fill: #fff;
}

/* ---------- Section titles ---------- */
.cd-section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 28px;
    color: var(--cd-ink);
}

.cd-section-title::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin: 12px auto 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--cd-green), var(--cd-blue));
}

.cd-section-title--sm {
    font-size: 20px;
    color: var(--cd-muted);
    font-weight: 600;
    margin-bottom: 18px;
}

.cd-section-title--sm::after {
    display: none;
}

/* ---------- Marquee ---------- */
.cd-marquee-wrap {
    padding: 18px 0 8px;
}

.cd-marquee {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.cd-marquee__track {
    display: flex;
    gap: 18px;
    width: max-content;
    padding: 12px 0 18px;
    animation: cd-marquee 45s linear infinite;
}

[dir="rtl"] .cd-marquee__track {
    animation-name: cd-marquee-rtl;
}

.cd-marquee:hover .cd-marquee__track,
.cd-marquee:focus-within .cd-marquee__track {
    animation-play-state: paused;
}

.cd-marquee__item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 84px;
    padding: 12px 16px;
    background: var(--cd-card);
    border: 1px solid #e6eee8;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(20, 38, 27, .05);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.cd-marquee__item img {
    max-width: 100%;
    max-height: 56px;
    object-fit: contain;
    filter: grayscale(.6);
    opacity: .85;
    transition: filter .25s ease, opacity .25s ease;
}

.cd-marquee__item:hover {
    transform: translateY(-4px);
    border-color: var(--cd-green);
    box-shadow: var(--cd-shadow-hover);
}

.cd-marquee__item:hover img {
    filter: none;
    opacity: 1;
}

/* ---------- Stats ---------- */
.cd-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px auto 40px;
}

.cd-stat {
    flex: 1 1 220px;
    max-width: 300px;
    text-align: center;
    padding: 24px 16px;
    border-radius: var(--cd-radius);
    background: linear-gradient(180deg, #fff, var(--cd-soft));
    border: 1px solid #e3efe6;
    box-shadow: var(--cd-shadow);
}

.cd-stat__num {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--cd-green), var(--cd-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--cd-green);
    direction: ltr;
    unicode-bidi: isolate;
}

.cd-stat__label {
    margin-top: 6px;
    font-size: 17px;
    color: var(--cd-muted);
    font-weight: 600;
}

/* ---------- Promo carousel ---------- */
.cd-promo {
    margin-bottom: 40px;
}

.cd-promo .toppromo {
    float: none !important;
    width: 100%;
    padding: 0 !important;
    position: relative;
    background: transparent !important;
    box-shadow: none !important;
    min-height: 0;
}

.cd-promo .toppromo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--cd-radius);
}

/* Dots float over the banner instead of sitting on a white strip below it */
.cd-promo .owl-carousel,
.cd-promo .owl-carousel .owl-stage-outer {
    background: transparent !important;
}

.cd-promo .owl-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: center;
    line-height: 0;
}

.cd-promo .owl-dots .owl-dot span {
    background: rgba(255, 255, 255, .7) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}

.cd-promo .owl-dots .owl-dot.active span {
    background: #fff !important;
    width: 22px !important;
    border-radius: 6px;
}

.cd-promo--top {
    margin-top: 16px;
}

/* ---------- Steps ---------- */
.cd-steps {
    margin-bottom: 50px;
}

.cd-steps__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}

.cd-step {
    position: relative;
    text-align: center;
    padding: 34px 22px 26px;
    background: var(--cd-card);
    border-radius: var(--cd-radius);
    border: 1px solid #e6eee8;
    box-shadow: var(--cd-shadow);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.cd-step:hover {
    transform: translateY(-8px);
    border-color: var(--cd-green);
    box-shadow: var(--cd-shadow-hover);
}

.cd-step__icon {
    position: relative;
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    background: linear-gradient(135deg, var(--cd-green), var(--cd-teal));
    box-shadow: 0 10px 22px rgba(82, 163, 106, .3);
    transition: transform .4s ease;
}

.cd-step:hover .cd-step__icon {
    transform: rotate(-8deg) scale(1.08);
}

.cd-step__num {
    position: absolute;
    top: -10px;
    inset-inline-end: -10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ffd54a;
    color: #1b2a12;
    font-size: 15px;
    font-weight: 800;
    line-height: 30px;
}

.cd-step h3 {
    font-size: 21px;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--cd-ink);
}

.cd-step p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--cd-muted);
    margin: 0;
}

/* ---------- Mobile category select ---------- */
.cd-mobile-cats {
    margin-bottom: 20px;
}

.cd-mobile-cats select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid #cfe3d4;
    background: #fff;
    color: #002311;
    font-size: 16px;
}

/* ---------- Top stores (existing grid markup) ---------- */
.cd-top__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.cd-top__head .cd-section-title {
    margin-bottom: 8px;
}

.cd-link {
    font-weight: 700;
    color: var(--cd-green) !important;
}

.cd-home #bestStores .storeDiv {
    padding: 8px;
}

.cd-home #bestStores .storeBlock {
    border-radius: 16px;
    background: #fff;
    transition: transform .3s ease, box-shadow .3s ease;
}

.cd-home #bestStores .storeDiv:hover .storeBlock {
    transform: translateY(-6px);
    box-shadow: var(--cd-shadow-hover);
}

.cd-home #bestStores .storeBlock img {
    transition: transform .35s ease;
}

.cd-home #bestStores .storeDiv:hover .storeBlock img {
    transform: scale(1.06);
}

.cd-home #bestStores .cashback {
    font-weight: 800;
    color: var(--cd-green-dark);
}

.cd-home #bestStores .btn.buy {
    border-radius: 999px;
}

/* ---------- Final CTA ---------- */
.cd-final {
    margin: 50px auto 40px;
}

.cd-final__box {
    text-align: center;
    color: #fff;
    padding: 44px 24px;
    border-radius: 24px;
    background: var(--cd-green);
    box-shadow: 0 20px 40px rgba(82, 163, 106, .25);
}

.cd-final__box h2 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 10px;
    color: #fff;
}

.cd-final__box p {
    font-size: 18px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, .92);
}

.cd-siteinfo {
    margin-bottom: 60px;
}

/* ---------- Scroll reveal (only when JS is available) ---------- */
.cd-js .cd-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}

.cd-js .cd-reveal.is-visible {
    opacity: 1;
    transform: none;
}

.cd-js .cd-steps__grid .cd-step:nth-child(2) { transition-delay: .12s; }
.cd-js .cd-steps__grid .cd-step:nth-child(3) { transition-delay: .24s; }
.cd-js .cd-stats .cd-stat:nth-child(2) { transition-delay: .12s; }
.cd-js .cd-stats .cd-stat:nth-child(3) { transition-delay: .24s; }

/* ---------- Keyframes ---------- */
@keyframes cd-gradient {
    0% { background-position: 0 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

@keyframes cd-blob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 30px) scale(1.15); }
}

@keyframes cd-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes cd-shine {
    0%, 60% { left: -60%; }
    100% { left: 130%; }
}

@keyframes cd-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 9px)); }
}

@keyframes cd-marquee-rtl {
    from { transform: translateX(0); }
    to { transform: translateX(calc(50% + 9px)); }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .cd-hero__inner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .cd-hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .cd-hero__ctas {
        justify-content: center;
    }

    .cd-hero__logos {
        max-width: 520px;
        width: 100%;
    }

    .cd-hero__title {
        font-size: 38px;
    }
}

@media (max-width: 767px) {
    .cd-hero {
        padding: 34px 0 34px;
    }

    .cd-hero__title {
        font-size: 30px;
    }

    .cd-hero__subtitle {
        font-size: 17px;
    }

    .cd-btn {
        width: 100%;
        font-size: 17px;
    }

    .cd-hero__logos {
        gap: 10px;
    }

    .cd-float {
        padding: 10px 6px 8px;
        border-radius: 14px;
    }

    .cd-float:nth-child(2n) {
        margin-top: 12px;
    }

    .cd-float img {
        height: 40px;
    }

    .cd-float__rate {
        font-size: 11px;
        padding: 2px 6px;
    }

    .cd-section-title {
        font-size: 25px;
    }

    .cd-marquee__item {
        width: 120px;
        height: 68px;
    }

    .cd-marquee__track {
        animation-duration: 35s;
    }

    .cd-stats {
        gap: 12px;
    }

    .cd-stat {
        flex: 1 1 140px;
        padding: 18px 10px;
    }

    .cd-stat__num {
        font-size: 30px;
    }

    .cd-stat__label {
        font-size: 15px;
    }

    .cd-steps__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cd-final__box h2 {
        font-size: 25px;
    }
}

/* ---------- Home: category chips above "חנויות קאשבק" ---------- */
.cd-cat-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 6px 0 26px;
}

.cd-cat-chip {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border: 1px solid #dfe9e2;
    border-radius: 999px;
    background: #fff;
    color: var(--cd-ink) !important;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(20, 38, 27, .04);
    transition: transform .2s ease, border-color .2s ease, background-color .2s ease, color .2s ease;
}

.cd-cat-chip:hover,
.cd-cat-chip:focus-visible {
    transform: translateY(-2px);
    border-color: var(--cd-green);
    background: #f1f8f3;
    color: var(--cd-green-dark) !important;
}

.cd-cat-chip--all {
    background: var(--cd-green);
    border-color: var(--cd-green);
    color: #fff !important;
    box-shadow: 0 6px 14px rgba(82, 163, 106, .3);
}

.cd-cat-chip--all:hover,
.cd-cat-chip--all:focus-visible {
    background: var(--cd-green-dark);
    border-color: var(--cd-green-dark);
    color: #fff !important;
}

@media (max-width: 767px) {
    .cd-cat-chips {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 2px 4px 8px;
        margin-bottom: 18px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .cd-cat-chips::-webkit-scrollbar {
        display: none;
    }

    .cd-cat-chip {
        flex: 0 0 auto;
    }
}
/* Hero sits clear of the menu bar so its rounded top corners are visible */
.cd-home > .cd-hero {
    margin-top: 22px;
}

/* ---------- Home: category results loaded by AJAX into #bestStores ---------- */
.cd-cat-chip.is-active {
    background: var(--cd-green);
    border-color: var(--cd-green);
    color: #fff !important;
    box-shadow: 0 6px 14px rgba(82, 163, 106, .3);
}

.cd-cat-chip.is-active:hover,
.cd-cat-chip.is-active:focus-visible {
    background: var(--cd-green-dark);
    border-color: var(--cd-green-dark);
    color: #fff !important;
}

#bestStores {
    transition: opacity .2s ease;
}

#bestStores.is-loading {
    opacity: .45;
    pointer-events: none;
}

.cd-cat-results {
    width: 100%;
}

.cd-cat-results #allStoresContainer .products {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cd-cat-more {
    clear: both;
    text-align: center;
    padding: 14px 0 6px;
    font-size: 16px;
}
/* Closing banner "מוכנים להתחיל לקבל כסף בחזרה?": same soft light circles as the header/title bands */
.cd-final__box {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.cd-final__box::before,
.cd-final__box::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: #fff;
    z-index: -1;
    pointer-events: none;
}

.cd-final__box::before {
    width: 360px;
    height: 360px;
    top: -210px;
    left: -90px;
    opacity: .09;
}

.cd-final__box::after {
    width: 240px;
    height: 240px;
    bottom: -150px;
    right: -60px;
    opacity: .07;
}
/* Hero store cards: identical size, logo in a fixed box, pill at the bottom, even grid */
.cd-hero__logos {
    align-items: stretch;
}

.cd-float {
    height: 150px;
    justify-content: space-between;
    padding: 18px 12px 14px;
    margin-top: 0 !important;
}

.cd-float:nth-child(2n) {
    margin-top: 0 !important;
}

.cd-float img {
    flex: 0 0 auto;
    width: 100%;
    max-width: 120px;
    height: 64px;
    object-fit: contain;
}

@media (max-width: 767px) {
    .cd-float {
        height: 118px;
        padding: 12px 6px 10px;
    }

    .cd-float img {
        height: 46px;
    }
}
/* Step 3 icon: shekel sign */
.cd-step__shekel {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}
/* Money counter: unit word (ש"ח) placed by the page direction; the number itself stays LTR */
.cd-stat__num--money {
    direction: inherit !important;
    unicode-bidi: normal !important;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
}

.cd-stat__amount {
    direction: ltr;
    unicode-bidi: isolate;
}

.cd-stat__num--money span {
    -webkit-text-fill-color: var(--cd-green);
    color: var(--cd-green);
}

.cd-stat__unit {
    font-size: .6em;
    font-weight: 800;
}
/* Small lead-in line above the money counter */
.cd-stat__pre {
    font-size: 14px;
    font-weight: 700;
    color: var(--cd-muted);
    margin-bottom: 2px;
    line-height: 1.4;
}
/* ---------- All stores page header band (store/tmpl_all_stores.vm) ---------- */
.cd-as-hero-wrap {
    margin: 18px 0 26px;
    overflow: visible;
}

.cd-as-hero {
    position: relative;
    background: var(--cd-green);
    color: #fff;
    border-radius: 24px;
    padding: 34px 32px 22px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(82, 163, 106, .25);
    isolation: isolate;
}

.cd-as-hero::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    top: -220px;
    left: -120px;
    border-radius: 50%;
    background: #fff;
    opacity: .08;
    z-index: -1;
}

.cd-as-hero h1 {
    margin: 0 0 8px;
    font-size: 36px;
    font-weight: 800;
    color: #fff;
}

.cd-as-hero p {
    margin: 0 0 16px;
    font-size: 18px;
    color: rgba(255, 255, 255, .92);
}

.cd-as-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.cd-as-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .35);
    font-size: 16px;
}

.cd-as-chip b {
    font-size: 18px;
    direction: ltr;
    unicode-bidi: isolate;
}

.cd-marquee--hero {
    margin: 0 -32px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.cd-marquee--hero .cd-marquee__item {
    border: 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .1);
}

.cd-marquee--hero .cd-marquee__item img {
    filter: none;
    opacity: 1;
}

@media (max-width: 767px) {
    .cd-as-hero {
        padding: 24px 18px 16px;
        border-radius: 18px;
    }

    .cd-as-hero h1 {
        font-size: 26px;
    }

    .cd-as-hero p {
        font-size: 16px;
    }

    .cd-marquee--hero {
        margin: 0 -18px;
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .cd-home *,
    .cd-home *::before,
    .cd-home *::after {
        animation: none !important;
        transition: none !important;
    }

    .cd-js .cd-reveal {
        opacity: 1;
        transform: none;
    }

    .cd-marquee {
        overflow-x: auto;
    }

    .cd-marquee__item--dup {
        display: none;
    }
}

/* Promo carousel without flicker: reserve the banner's height and show the first banner
   until owl carousel initialises (it waits for window.load) */
.cd-promo .toppromo {
    aspect-ratio: 1730 / 454;
    overflow: hidden;
    border-radius: var(--cd-radius);
}

.cd-promo .toppromo.cd-promo-app {
    aspect-ratio: 720 / 400;
}

.cd-promo .toppromo .owl-carousel:not(.owl-loaded) {
    display: block !important;
}

.cd-promo .toppromo .owl-carousel:not(.owl-loaded) > a:not(:first-child) {
    display: none;
}

.cd-promo .toppromo .owl-carousel:not(.owl-loaded) > a:first-child img {
    width: 100%;
    height: auto;
    display: block;
}
/* Once owl is running, let the box size itself (dots sit below the banner) */
.cd-promo .toppromo:has(.owl-carousel.owl-loaded) {
    aspect-ratio: auto;
    overflow: visible;
    border-radius: 0;
}

.cd-promo .toppromo .owl-stage-outer {
    border-radius: var(--cd-radius);
}

/* Slide dots below the carousel, in the brand colours */
.cd-promo .owl-dots {
    position: static !important;
    margin: 14px 0 0 !important;
    line-height: 0;
}

.cd-promo .owl-dots .owl-dot span {
    background: #cfe3d5 !important;
    box-shadow: none !important;
}

.cd-promo .owl-dots .owl-dot.active span {
    background: var(--cd-green) !important;
}