/* ---------- Section wrapper ---------- */
.cb-tabs-slider {
    width: 100%;
    box-sizing: border-box;
    padding: 0 2.4rem;
    margin: 96px auto;
    max-width: 1715px;
}

@media (min-width: 1024px) {
    .cb-tabs-slider--wide-desktop {
        max-width: 1715px;
        width: 100%;
    }

    .cb-tabs-slider--wide-desktop .cb-tabs-slider__panels,
    .cb-tabs-slider--wide-desktop .cb-tabs-slider__panel,
    .cb-tabs-slider--wide-desktop .cb-tabs-slider__slider {
        width: 100%;
        max-width: 100%;
    }

    .cb-tabs-slider--wide-desktop .cb-tabs-slider__pagination {
        display: none !important;
    }
}

/* ---------- Head (title + desc) ---------- */
.cb-tabs-slider__head {
    text-align: center;
    margin-bottom: 48px;
}

/* ---------- Kicker / intro label ---------- */
.cb-tabs-slider__kicker {
    color: #888;
    font-family: Nunito, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 21px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
    margin: 0 auto 16px;
}

.cb-tabs-slider__kicker--mobile {
    display: none;
}

@media (max-width: 1023px) {
    .cb-tabs-slider__kicker--desktop {
        display: none;
    }
    .cb-tabs-slider__kicker--mobile {
        display: block;
        width: 304px;
    }
}

@media (min-width: 1024px) {
    .cb-tabs-slider__kicker--desktop {
        display: block;
    }
}

.cb-tabs-slider__title {
    color: #fff;
    font-family: Nunito, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.cb-tabs-slider__desc {
    color: #bfbfbf;
    font-family: Nunito, sans-serif;
    font-weight: 500;
    line-height: 1.5;
    max-width: 880px;
    margin: 0 auto;
}

/* mobile / desktop variants */
.cb-tabs-slider__title--mobile,
.cb-tabs-slider__desc--mobile {
    display: none;
}

/* ---------- Tab navigation ---------- */
.cb-tabs-slider__nav {
    display: flex;
    padding: 8px;
    align-items: center;
    gap: 8px;
    border-radius: 48px;
    background: var(--Shades-Dark-Side-Antracite, #222);
    width: fit-content;
    margin: 52px auto 51px;
    flex-wrap: wrap;
}

/* ---------- Tab button – inactive ---------- */
.cb-tabs-slider__tab {
    display: flex;
    padding: 24px 32px;
    justify-content: center;
    align-items: center;
    border-radius: 64px;
    background: #222;
    border: none;
    cursor: pointer;
    color: #fff;
    font-family: Nunito, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.cb-tabs-slider__tab:hover:not(.cb-tabs-slider__tab--active) {
    background: #2e2e2e;
}

/* ---------- Tab label desktop/mobile ---------- */
.cb-tabs-slider__tab-label--mobile {
    display: none;
}

@media (max-width: 1023px) {
    .cb-tabs-slider__tab-label--desktop {
        display: none;
    }
    .cb-tabs-slider__tab-label--mobile {
        display: inline;
    }
}

/* ---------- Tab button – active ---------- */
.cb-tabs-slider__tab--active {
    border-radius: 64px;
    background: var(--Accent-Green, #22E243);
    color: #000;
}

/* ---------- Panels ---------- */
.cb-tabs-slider__panel {
    display: none;
}

.cb-tabs-slider__panel--active {
    display: block;
}

/* ---------- Slider ---------- */
.cb-tabs-slider__slider {
    width: 100%;
    overflow: hidden;
    padding-bottom: 40px; /* room for pagination */
    margin-top: 64px;
}

@media (min-width: 1024px) {
    .cb-tabs-slider__slider {
        margin-top: 80px;
    }
}

/* Center slides when all fit (slider is locked / no scrolling needed) */
.cb-tabs-slider__slider--locked .swiper-wrapper {
    justify-content: center;
}

/* Allow 3D flip overflow when slider contains flip slides */
.cb-tabs-slider__slider--has-flip,
.cb-tabs-slider__slider--has-flip.swiper {
    overflow: visible !important;
}

.cb-tabs-slider__slide {
    box-sizing: border-box;
    border-radius: 16px;
    background: #222;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cb-tabs-slider__slide-img-wrap {
    width: 100%;
    overflow: hidden;
}

.cb-tabs-slider__slide-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.cb-tabs-slider__slide-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cb-tabs-slider__slide-title {
    color: #fff;
    font-family: Nunito, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.cb-tabs-slider__slide-text {
    color: #bfbfbf;
    font-family: Nunito, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}

/* slide mobile / desktop text variants */
.cb-tabs-slider__slide-title--mobile,
.cb-tabs-slider__slide-text--mobile {
    display: none;
}

/* ---------- Flip slide ---------- */
.cb-tabs-slider__slider .swiper-wrapper {
    align-items: stretch;
}

.cb-tabs-slider__slide--flip,
.swiper-slide.cb-tabs-slider__slide--flip {
    overflow: visible;
    background: transparent;
    perspective: 1000px;
    width: 302px !important;
    min-width: 302px;
    max-width: 302px;
    height: auto !important;
    max-height: none;
    min-height: 440px;
}

.cb-flip-box {
    width: 302px;
    min-width: 302px;
    max-width: 302px;
    height: 100%;
    min-height: 440px;
    perspective: 1000px;
}

.cb-flip-box .flip-box-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: grid;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    will-change: transform;
}

.cb-flip-box.flipped .flip-box-inner {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

.cb-flip-box .flip-box-front,
.cb-flip-box .flip-box-back {
    grid-area: 1 / 1;
    position: relative;
    inset: unset;
    width: 100%;
    height: auto;
    min-height: 100%;
    border-radius: 16px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 32px;
    box-sizing: border-box;
}

.cb-flip-box .flip-box-front {
    background-color: #222;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.cb-flip-box .flip-box-back {
    background: #222;
    color: #fff;
    transform: translate3d(0, 0, 0) rotateY(180deg);
    -webkit-transform: translate3d(0, 0, 0) rotateY(180deg);
    align-items: flex-start;
}

.cb-flip-box .flip-box-content {
    display: flex;
    gap: 10px;
    flex: 1;
}

.cb-flip-box .flip-box-content h3,
.cb-flip-box .flip-box-content [class*="slide-title"] {
    color: #fff;
    font-family: Nunito, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    font-style: normal;
    font-feature-settings: 'liga' off, 'clig' off;
    width: 246px;
    margin: 0;
}

.cb-tabs-slider__slide-front-text {
    color: #fff;
    font-family: Nunito, sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 32px;
    font-feature-settings: 'liga' off, 'clig' off;
    text-align: left;
    margin: 0;
}

.cb-tabs-slider__slide-front-text--mobile {
    display: none;
}

@media (max-width: 1023px) {
    .cb-tabs-slider__slide-front-text--desktop {
        display: none;
    }
    .cb-tabs-slider__slide-front-text--mobile {
        display: block;
    }
}

.cb-flip-box .flip-box-content-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0 !important;
    width: 242px;
}

.cb-flip-back-intro {
    color: #888 !important;
    font-family: Nunito, sans-serif !important;
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: 600 !important;
    line-height: 21px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    font-feature-settings: 'liga' off, 'clig' off !important;
    leading-trim: both;
    text-edge: cap;
    margin: 0 0 24px !important;
}

.cb-flip-box .flip-box-content-title {
    color: #fff;
    font-family: Nunito, sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 32px;
    font-feature-settings: 'liga' off, 'clig' off;
    text-transform: none;
    width: 246px;
    margin-bottom: 32px;
}

.cb-tabs-slider__slide-title--mobile {
    padding: unset !important;
}

.cb-flip-back-desc {
    color: #fff;
    font-family: Nunito, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    font-feature-settings: 'liga' off, 'clig' off;
    margin: 0;
}

.cb-flip-green,
.cb-green {
    color: #22E243;
}


.cb-flip-btn {
    display: flex;
    align-self: flex-end;
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    position: absolute;
    right: 32px;
    bottom: 32px;
}

.cb-flip-btn svg {
    display: block;
}

/* ---------- Pagination ---------- */
.cb-tabs-slider__pagination:not(.swiper-pagination-lock) {
    display: flex !important;
}

.cb-tabs-slider__pagination.swiper-pagination-lock {
    display: none !important;
}

.cb-tabs-slider__pagination {
    justify-content: center;
    margin-top: 32px;
    margin-bottom: unset !important;
    position: relative !important;
    bottom: unset !important;

    border-radius: 64px;
    background: var(--Shades-Dark-Side-Antracite, #222);
    padding: 8px;
    align-items: center;
    width: fit-content !important;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1023px) {
    .cb-tabs-slider__pagination {
        margin-top: 64px;
    }
}

.cb-tabs-slider__pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    padding: 8px;
    background-clip: content-box;
    background-color: var(--Shades-Dark-Side-Soft-Grey, #888) !important;
    border-radius: 50%;
    opacity: 1 !important;
    margin: 0 !important;
    box-sizing: content-box;
}

.cb-tabs-slider__pagination .swiper-pagination-bullet-active {
    background-color: var(--Accent-Green, #22E243) !important;
}

/* ============================================================
   Mobile  (< 1024px)
   ============================================================ */
@media (max-width: 1023px) {

    .cb-tabs-slider {
        margin: 64px auto;
        padding: 0 1.6rem;
    }

    .cb-tabs-slider__head {
        margin-bottom: 32px;
    }

    .cb-tabs-slider__title--desktop {
        display: none;
    }

    .cb-tabs-slider__title--mobile {
        display: block;
        font-size: 28px;
        line-height: 40px;
    }

    @media (max-width: 400px) {
        .cb-tabs-slider__title--mobile {
            max-width: 304px;
            margin-left: auto;
            margin-right: auto;
        }
    }

    .cb-tabs-slider__desc--mobile {
        display: block;
        font-size: 16px;
    }

    /* keep desktop desc hidden when mobile version provided */
    .cb-tabs-slider__head:has(.cb-tabs-slider__desc--mobile) .cb-tabs-slider__desc--desktop {
        display: none;
    }

    .cb-tabs-slider__nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        width: fit-content;
        max-width: 100%;
        box-sizing: border-box;
        margin-top: 52px;
        margin-bottom: 51px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .cb-tabs-slider__nav::-webkit-scrollbar {
        display: none;
    }

    .cb-tabs-slider__tab {
        padding: 12px 16px;
        font-family: Nunito, sans-serif;
        font-size: 12px;
        font-style: normal;
        font-weight: 700;
        line-height: 16px;
        color: #fff;
        leading-trim: both;
        text-edge: cap;
        font-feature-settings: 'liga' off, 'clig' off;
    }

    .cb-tabs-slider__tab--active {
        color: #222;
    }

    /* .cb-tabs-slider__slide-title--desktop {
        display: none;
    } */

    /* .cb-tabs-slider__slide-title--mobile {
        display: block;
    } */

    .cb-tabs-slider__slide-text--desktop {
        display: none;
    }

    .cb-tabs-slider__slide-text--mobile {
        display: block;
    }
}

/* ============================================================
   Desktop  (>= 1024px)
   ============================================================ */
@media (min-width: 1024px) {

    .cb-tabs-slider {
        margin: 128px auto;
    }

    .cb-tabs-slider__head {
        margin-bottom: 64px;
    }

    .cb-tabs-slider__title--desktop {
        display: block;
        font-size: 48px;
        line-height: 64px;
    }

    .cb-tabs-slider__title--mobile {
        display: none;
    }

    .cb-tabs-slider__desc--desktop {
        font-size: 18px;
    }

    .cb-tabs-slider__nav {
        margin-top: 64px;
        margin-bottom: 80px;
    }

    .cb-tabs-slider__slide-title {
        font-size: 24px;
    }

    .cb-tabs-slider__slide-text {
        font-size: 18px;
    }
}

.cb-tabs-slider--tabs-section {
    margin-top: 128px;
    margin-bottom: 64px;
}

@media (min-width: 1024px) {
    .cb-tabs-slider--tabs-section {
        margin-top: 256px;
        margin-bottom: 128px;
    }
}

.cb-tabs-slider--four-section {
    margin-top: 128px;
    margin-bottom: 64px;
}

#co-branding-tabs-2.cb-tabs-slider--four-section {
    margin-top: 202px;
}

@media (min-width: 1024px) {
    .cb-tabs-slider--four-section {
        margin-top: 128px;
        margin-bottom: 256px;
    }
}

/* ---------- CTA button ---------- */
.cb-tabs-slider__cta {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.cb-tabs-slider__cta-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 24px 32px;
    height: 64px;
    box-sizing: border-box;
    border-radius: 64px;
    background: #22E243;
    border: 2px solid #22E243;
    color: #000;
    font-family: Nunito, sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 24px;
    text-decoration: none;
    width: max-content;
    transition: background 0.3s ease-in-out, border-color 0.3s ease-in-out, color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.cb-tabs-slider__cta-btn:hover {
    background: #f7f7f7;
    background-image: url('https://www.zen.com/wp-content/themes/zen/images/deals-landing/patern.webp');
    background-position: center;
    background-size: cover;
    border-color: #000;
    color: #222;
    box-shadow: 1px 2px 4px 0 rgba(0, 0, 0, 0.15);
}

/* ============================================================
   Title — light variant
   ============================================================ */
.cb-tabs-slider--title-light .cb-tabs-slider__title {
    color: #000;
}

.cb-tabs-slider--title-light .cb-tabs-slider__kicker {
    color: #888;
}

.cb-tabs-slider--title-light .cb-tabs-slider__desc {
    color: #222;
}

/* ============================================================
   Flip back — light variant
   ============================================================ */
.cb-tabs-slider--flip-back-light .flip-box-back {
    background: #f5f5f5;
    color: #000;
}

.cb-tabs-slider--flip-back-light .cb-tabs-slider__slide-title--desktop,
.cb-tabs-slider--flip-back-light .cb-tabs-slider__slide-title--mobile,
.cb-tabs-slider--flip-back-light .flip-box-content-title {
    color: #000;
}

.cb-tabs-slider--flip-back-light .cb-tabs-slider__slide-text--desktop,
.cb-tabs-slider--flip-back-light .cb-tabs-slider__slide-text--mobile,
.cb-tabs-slider--flip-back-light .cb-flip-back-desc {
    color: #444;
}

/* ============================================================
   Dots — light variant
   ============================================================ */
.cb-tabs-slider--dots-light .cb-tabs-slider__pagination.swiper-pagination {
    border-radius: 64px;
    background: var(--Shades-Dark-Side-White, #FFF);
}

.cb-tabs-slider--dots-light .cb-tabs-slider__pagination.swiper-pagination .swiper-pagination-bullet {
    background-color: var(--Shades-Dark-Side-Soft-Grey, #888) !important;
}

.cb-tabs-slider--dots-light .cb-tabs-slider__pagination.swiper-pagination .swiper-pagination-bullet-active {
    background-color: var(--Accent-Green, #22E243) !important;
}

/* ============================================================
   Light theme (full)
   ============================================================ */
.cb-tabs-slider--theme-light {
    background: transparent;
}

.cb-tabs-slider--theme-light .cb-tabs-slider__title {
    color: #000;
}

.cb-tabs-slider--theme-light .cb-tabs-slider__kicker {
    color: #888;
}

.cb-tabs-slider--theme-light .cb-tabs-slider__desc {
    color: #222;
}

.cb-tabs-slider--theme-light .cb-tabs-slider__nav {
    background: #f0f0f0;
}

.cb-tabs-slider--theme-light .cb-tabs-slider__tab {
    background: #f0f0f0;
    color: #222;
}

.cb-tabs-slider--theme-light .cb-tabs-slider__tab:hover:not(.cb-tabs-slider__tab--active) {
    background: #e0e0e0;
}

.cb-tabs-slider--theme-light .cb-tabs-slider__tab--active {
    background: var(--Accent-Green, #22E243);
    color: #000;
}

.cb-tabs-slider--theme-light .cb-tabs-slider__slider {
    background: transparent;
}

.cb-tabs-slider--theme-light .cb-tabs-slider__slide {
    background: #f5f5f5;
}

.cb-tabs-slider--theme-light .cb-tabs-slider__slide-title {
    color: #000;
}

.cb-tabs-slider--theme-light .cb-tabs-slider__slide-text {
    color: #444;
}

.cb-tabs-slider--theme-light .flip-box-front,
.cb-tabs-slider--theme-light .flip-box-back {
    background: #f5f5f5;
    color: #000;
}

.cb-tabs-slider--theme-light .cb-tabs-slider__slide-title--desktop,
.cb-tabs-slider--theme-light .cb-tabs-slider__slide-title--mobile {
    color: #000;
}

.cb-tabs-slider--theme-light .cb-tabs-slider__pagination.swiper-pagination .swiper-pagination-bullet {
    background-color: #888 !important;
}

.cb-tabs-slider--theme-light .cb-tabs-slider__pagination.swiper-pagination .swiper-pagination-bullet-active {
    background-color: var(--Accent-Green, #22E243) !important;
}

@media (max-width: 800px) {
    .cb-tabs-slider__cta-btn {
        height: 48px;
        font-size: 14px;
        padding: 12px 24px;
    }
}
