:root {
    --coupon-cta-height: 72px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Coupon Heading Components — Component-based approach replaces element selectors
   Use these classes instead of h2/h3 to maintain consistent hierarchy while
   allowing coupon-specific typography tweaks.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Coupon card brand/title — replaces .cc-stub-main h2 */
.coupon-heading-brand {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--bs-secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin: 0 0 0.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.25;
}

/* Coupon card brand subtitle — replaces .cc-stub-main h2 + p */
.coupon-heading-brand-subtitle {
    font-size: 0.78rem;
    color: var(--bs-secondary-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
    padding: 0;
    display: none; /* hide "Business" subtitle — redundant clutter */
}

/* Coupon card deal name — replaces .cc-stub-main h3 */
.coupon-heading-deal {
    display: -webkit-box;
    font-size: 1rem;
    font-weight: 700;
    color: var(--bs-body-color);
    line-height: 1.35;
    margin: 0 0 0.1rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Coupon detail page H1 merchant link */
.cdt-title-link {
    color: inherit;
    text-decoration: none;
}
.cdt-title-link:hover {
    text-decoration: underline;
}

/* Coupon detail page heading — replaces .cdt-main h2 */
.coupon-heading-detail-section {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--bs-secondary-color);
    margin: 0;
    letter-spacing: 0;
}

/* Coupon detail page heading subtitle — replaces .cdt-main h2 + p */
.coupon-heading-detail-section-subtitle {
    font-size: 0.78rem;
    color: var(--bs-secondary-color);
    margin: 0;
    padding: 0;
}

/* Coupon detail card section heading — replaces .cdt-card-body h2 */
.coupon-heading-card-section {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--bs-body-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

/* Coupon detail card subsection heading — replaces .cdt-card-body h3 */
.coupon-heading-card-subsection {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--bs-body-color);
    margin-top: 0;
    margin-bottom: 0.4rem;
}

/* Coupon listing page */
.cd-wrap {
    margin-top: 1.5rem;
}

.cc-card {
    --c-stub-bg: rgba(var(--bs-primary-rgb), 0.09);
    --c-stub-text: var(--bs-primary);
    --c-code-bg: rgba(var(--bs-primary-rgb), 0.07);
    --c-divider: rgba(var(--bs-primary-rgb), 0.25);
    --c-radius: 1rem;
    position: relative;
    display: flex;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    border-radius: var(--c-radius);
    box-shadow: var(--shadow-base);
    border: 1px solid var(--bs-border-color);
    overflow: hidden;
    min-height: 100%;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
    cursor: pointer;
}
.cc-card:hover,
.cc-card:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevation);
    border-color: rgba(var(--bs-primary-rgb), 0.35);
}
.cc-card:focus {
    outline: 2px solid rgba(var(--bs-primary-rgb), 0.4);
    outline-offset: 3px;
}

.cc-stub-main {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 0.9rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: var(--bs-body-bg);
}

.cc-divider {
    position: absolute;
    left: 28%;
    top: 0;
    bottom: 0;
    width: 0;
    border-left: 2px dashed var(--c-divider);
    z-index: 1;
    pointer-events: none;
}

.cc-stub-left {
    flex: 0 0 28%;
    position: relative;
    padding: 0.75rem 0.6rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    background: var(--c-stub-bg);
    color: var(--c-stub-text);
    z-index: 999;
}
.cc-stub-left::before,
.cc-stub-left::after {
    content: "";
    position: absolute;
    right: -10px;
    width: 20px;
    height: 20px;
    background: var(--bs-body-bg);
    border-radius: 50%;
    z-index: 2;
}
.cc-stub-left::before {
    top: -10px;
}
.cc-stub-left::after {
    bottom: -10px;
}

.cc-stub-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 0.6rem;
    background: rgba(var(--bs-primary-rgb), 0.08);
    padding: 6px;
    border: none;
    display: block;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

/* Ensure logo and the left 'pill' badge sit above other overlays */
.cc-stub-logo,
.cc-left-badge {
    position: relative;
    z-index: 1000;
}

.cc-stub-value {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.01em;
    text-transform: capitalize;
    color: var(--c-stub-text);
    word-break: break-word;
    overflow-wrap: anywhere;
    text-align: center;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cc-stub-value small {
    display: block;
    font-size: 0.62rem;
    font-weight: 400;
    margin-top: 0.1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.65;
}

.cc-left-badge {
    display: none; /* "Expiring" duplicates the meta row — removed */
}

.cc-card__brand {
    min-width: 0;
    margin-bottom: 0.1rem;
}

.cc-deal-desc {
    font-size: 0.82rem;
    color: var(--bs-secondary-color);
    line-height: 1.45;
    margin: 0;
    padding: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cc-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
}
.cc-meta i {
    color: var(--bs-primary);
}
.cc-meta .text-danger i {
    color: var(--bs-danger);
}

.cc-code-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--c-code-bg);
    color: var(--bs-primary);
    padding: 0.3rem 0.5rem 0.3rem 0.75rem;
    border-radius: 0.5rem;
    border: 1.5px dashed rgba(var(--bs-primary-rgb), 0.3);
    margin-top: 0.1rem;
}
.coupon-code-peek {
    flex: 1;
    font-weight: 600;
    font-size: 0.82rem;
    background: none;
    border: none;
    padding: 0;
    color: var(--bs-primary);
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0.04em;
}
.cc-copy-btn {
    border: none;
    background: var(--bs-primary);
    color: #fff;
    height: 30px;
    min-height: 30px;
    padding: 0 0.65rem;
    border-radius: 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}
.cc-copy-btn:hover,
.cc-copy-btn:focus-visible {
    transform: scale(1.05);
}
.cc-copy-btn:focus-visible {
    outline: 3px solid rgba(var(--bs-primary-rgb, 13,110,253), 0.65);
    outline-offset: 2px;
    border-color: rgba(var(--bs-primary-rgb, 13,110,253), 0.75);
}

.coupon-direct-btn,
.coupon-shop-btn {
    width: auto;
    font-weight: 600;
}

.cc-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.6rem;
    margin-top: auto;
    padding-top: 0.65rem;
    border-top: 1px dashed var(--c-divider);
    font-size: 0.8rem;
    color: var(--bs-secondary-color);
    white-space: nowrap;
    overflow: hidden;
}
.cc-card__footer a {
    color: inherit;
    text-decoration: none;
}
.cc-card__footer a:hover {
    text-decoration: underline;
}
.cc-card__footer-sep {
    margin: 0 0.2rem;
    opacity: 0.5;
}

.coupon-card-top-bar {
    height: 4px;
}

@media (max-width: 480px) {
    .cc-card {
        flex-direction: column;
    }
    .cc-stub-left {
        order: 1;
        flex: none;
        padding: 0.85rem 1.2rem;
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.85rem;
        text-align: left;
        border-radius: var(--c-radius) var(--c-radius) 0 0;
    }
    .cc-stub-left::before,
    .cc-stub-left::after {
        display: none;
    }
    .cc-divider {
        order: 2;
        left: 0;
        right: 0;
        top: auto;
        width: 100%;
        height: 0;
        border-left: none;
        border-top: 2px dashed rgba(var(--bs-primary-rgb), 0.25);
        position: relative;
    }
    .cc-stub-main {
        order: 3;
    }
    .cc-stub-value {
        font-size: 1.6rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .cc-card,
    .cc-card:hover,
    .cc-card:focus-within,
    .cc-copy-btn,
    .cdt-copy-btn,
    .coupon-direct-btn,
    .coupon-shop-btn {
        transition: none !important;
        animation: none !important;
    }
}
/* ═══════════════════════════════════════════════════════════════════════════
   Coupon detail page */
.cd-page {
    --c-stub-bg: rgba(var(--bs-primary-rgb), 0.09);
    --c-stub-text: var(--bs-primary);
    --c-divider: rgba(var(--bs-primary-rgb), 0.25);
    --c-radius: 1rem;
}

.cdt-ticket {
    position: relative;
    display: flex;
    overflow: hidden;
    border-radius: var(--c-radius);
    box-shadow: var(--shadow-base);
    border: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
    margin-bottom: 1.5rem;
}
.cdt-ticket--expired {
    opacity: 0.8;
}

.cdt-main {
    flex: 1;
    min-width: 0;
    padding: 1.5rem 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: var(--bs-body-bg);
}

.cdt-divider {
    position: absolute;
    left: 28%;
    top: 0;
    bottom: 0;
    width: 0;
    border-left: 2px dashed var(--c-divider);
    z-index: 1;
    pointer-events: none;
}

.cdt-stub {
    flex: 0 0 28%;
    position: relative;
    padding: 1.5rem 0.85rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
    background: var(--c-stub-bg);
    color: var(--c-stub-text);
}
.cdt-stub::before,
.cdt-stub::after {
    content: "";
    position: absolute;
    right: -10px;
    width: 20px;
    height: 20px;
    background: var(--bs-body-bg);
    border-radius: 50%;
    z-index: 2;
}
.cdt-stub::before { top: -10px; }
.cdt-stub::after  { bottom: -10px; }

.cdt-logo {
    width: 112px;
    height: 112px;
    object-fit: contain;
    border-radius: 0.65rem;
    background: rgba(var(--bs-primary-rgb), 0.08);
    padding: 6px;
}

a.cdt-stub {
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s;
}
a.cdt-stub:hover { opacity: 0.88; transform: translateX(2px); }

.cdt-value {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: var(--c-stub-text);
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
}
.cdt-value small {
    display: block;
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.72;
    margin-top: 0.25rem;
    text-transform: uppercase;
}

.cdt-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(var(--bs-primary-rgb), 0.14);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.28);
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-size: 0.70rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c-stub-text);
}

.cdt-status { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; }
.cdt-status--ok  { color: var(--bs-success); }
.cdt-status--exp { color: var(--bs-danger); }

.cdt-code-wrap { display: flex; align-items: center; gap: 0.5rem; }
.cdt-code-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(var(--bs-primary-rgb), 0.07);
    border: 1.5px dashed rgba(var(--bs-primary-rgb), 0.35);
    border-radius: 0.65rem;
    padding: 0.6rem 0.85rem;
    font-family: var(--font-family-mono);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--c-stub-text);
    letter-spacing: 2px;
    user-select: all;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cdt-copy-btn {
    flex-shrink: 0;
    border: none;
    background: var(--c-stub-text);
    color: #fff;
    height: 42px;
    padding: 0 1rem;
    border-radius: 0.6rem;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: opacity 0.15s;
    white-space: nowrap;
}
.cdt-copy-btn:hover { opacity: 0.88; }

.cdt-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--bs-primary);
    color: #fff;
    border-radius: 0.7rem;
    padding: 0.85rem 1.25rem;
    font-weight: 700;
    font-size: 0.97rem;
    text-decoration: none;
    transition: opacity 0.15s;
    border: none;
    width: 100%;
    cursor: pointer;
}
.cdt-cta:hover { opacity: 0.88; color: #fff; }

.cdt-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; font-size: 0.75rem; color: var(--bs-secondary-color); }
.cdt-meta i { color: var(--bs-primary); }

.cdt-urgency-bar { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--bs-danger); z-index: 3; }

.cdt-card {
    border-radius: var(--c-radius);
    box-shadow: var(--shadow-base);
    border: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
    overflow: hidden;
    margin-bottom: 1.25rem;
}
.cdt-card-head {
    padding: 1rem 1.25rem 0.75rem;
    border-bottom: 1px solid var(--bs-border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--bs-body-color);
}
.cdt-card-head i { color: var(--bs-primary); }
.cdt-card-body { padding: 1.25rem; }

.cdt-steps { list-style: none; margin: 0; padding: 0; }
.cdt-steps li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--bs-border-color);
    font-size: 0.83rem;
    color: var(--bs-secondary-color);
}
.cdt-steps li:last-child { border-bottom: none; }
.cdt-steps li .cdt-step-num {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--c-stub-bg);
    color: var(--c-stub-text);
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
}

.cdt-related-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--bs-border-color);
    text-decoration: none;
    color: var(--bs-body-color);
    transition: background 0.12s;
}
.cdt-related-item:last-child { border-bottom: none; }
.cdt-related-item:hover { color: var(--bs-primary); }
.cdt-related-logo { width: 38px; height: 38px; flex-shrink: 0; object-fit: contain; border-radius: 0.4rem; background: var(--c-stub-bg); padding: 2px; }
.cdt-related-logo-fb { width: 38px; height: 38px; flex-shrink: 0; border-radius: 0.4rem; background: var(--c-stub-bg); color: var(--c-stub-text); font-size: 0.8rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.cdt-related-title { font-size: 0.83rem; font-weight: 600; line-height: 1.3; }
.cdt-related-discount { font-size: 0.75rem; color: var(--bs-success); }
.cdt-code-pill { flex-shrink: 0; font-family: var(--font-family-mono); font-size: 0.72rem; font-weight: 700; background: var(--c-stub-bg); color: var(--c-stub-text); border: 1px solid rgba(var(--bs-primary-rgb), 0.25); border-radius: 0.4rem; padding: 0.15rem 0.45rem; letter-spacing: 1px; }

.cdt-faq-item { border-bottom: 1px solid var(--bs-border-color); }
.cdt-faq-item:last-child { border-bottom: none; }
/* On mobile, the sticky .coupon-mobile-cta is fixed at the bottom of the
   viewport. Without this margin, a focused/expanded FAQ body near the
   bottom of the visible area gets hidden behind that CTA bar. */
.cdt-faq-item { scroll-margin-bottom: calc(var(--coupon-cta-height, 0px) + 1rem); }
/* Native <details>/<summary> accordion — hide the browser's default
   disclosure triangle in all engines so we can render our own chevron. */
.cdt-faq-summary { list-style: none; cursor: pointer; }
.cdt-faq-summary::-webkit-details-marker { display: none; }
.cdt-faq-summary::marker { display: none; content: ''; }
.cdt-faq-summary {
    display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 0.5rem;
    padding: 0.85rem 0; font-size: 0.85rem; font-weight: 600; color: var(--bs-body-color);
}
.cdt-faq-summary:hover { color: var(--bs-primary); }
.cdt-faq-summary:hover .cdt-faq-chevron { color: var(--bs-primary); }
.cdt-faq-chevron { flex-shrink: 0; transition: transform 0.2s; color: var(--bs-secondary-color); }
.cdt-faq-item[open] > .cdt-faq-summary .cdt-faq-chevron { transform: rotate(180deg); color: var(--bs-primary); }
.cdt-faq-q { flex: 1 1 auto; min-width: 0; }
.cdt-faq-body { font-size: 0.82rem; color: var(--bs-secondary-color); padding: 0 0 0.85rem 0; line-height: 1.55; }

.cdt-trust { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; font-size: 0.75rem; color: var(--bs-secondary-color); }
.cdt-trust--spaced { margin-bottom: 1.5rem; }
.cdt-trust span { display: flex; align-items: center; gap: 0.3rem; }
.cdt-trust i { font-size: 0.9rem; }
.cdt-trust-success { color: var(--bs-success); }
.cdt-trust-primary { color: var(--bs-primary); }
.cdt-trust-warning { color: var(--bs-warning); }
.cdt-trust-muted   { color: var(--bs-secondary-color); }

.cdt-description { font-size: 0.8rem; color: var(--bs-secondary-color); margin: 0; line-height: 1.5; }
.cdt-meta-expired { color: var(--bs-danger); }
.cdt-related-chevron { color: var(--bs-secondary-color); font-size: 0.75rem; }
.cdt-related-more { margin-top: 0.75rem; }
.cdt-related-more a { font-size: 0.8rem; color: var(--bs-primary); text-decoration: none; font-weight: 600; }
.cdt-related-more a:hover { text-decoration: underline; }

.cdt-store-summary { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.85rem; }
.cdt-store-logo { object-fit: contain; border-radius: 0.5rem; background: var(--c-stub-bg); padding: 4px; }
.cdt-store-title { font-size: 1rem; font-weight: 800; color: var(--bs-body-color); }
.cdt-store-category, .cdt-store-desc, .cdt-store-count { color: var(--bs-secondary-color); }
.cdt-store-category { font-size: 0.78rem; }
.cdt-store-desc { font-size: 0.82rem; margin: 0 0 0.75rem; line-height: 1.55; }
.cdt-store-count { font-size: 0.8rem; margin: 0 0 0.85rem; }
.cdt-store-count i { color: var(--bs-primary); }
.cdt-store-link { display: inline-flex; align-items: center; gap: 0.35rem; background: var(--bs-primary); color: #fff; border-radius: 0.5rem; padding: 0.45rem 0.9rem; font-size: 0.82rem; font-weight: 700; text-decoration: none; }
.cdt-store-link:hover { color: #fff; opacity: 0.9; }

.cdt-share-check { display: none; }
.cdt-share-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35rem; }
.cdt-share-bar .sbi .btn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.78rem; }
.cdt-share-extra { display: none; margin-top: 0.4rem; }
.cdt-share-check:checked ~ .cdt-share-extra { display: block; }
.sxt-hide { display: none; }

.cdt-product-card { border-radius: 0.65rem; overflow: hidden; border: 1px solid var(--bs-border-color); background: var(--bs-body-bg); }
.cdt-product-image { height: 120px; object-fit: cover; }
.cdt-product-image-fallback { height: 120px; background: var(--bs-tertiary-bg); display: flex; align-items: center; justify-content: center; }
.cdt-product-body { padding: 0.6rem 0.7rem; }
.cdt-product-title { font-size: 0.78rem; margin: 0 0 0.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--bs-body-color); }
.cdt-product-price-row { margin: 0; font-size: 0.8rem; }
.cdt-product-price { color: var(--bs-success); font-weight: 700; }
.cdt-product-original-price { color: var(--bs-secondary-color); text-decoration: line-through; font-size: 0.73rem; margin-left: 0.3rem; }

.coupon-mobile-cta { display: none; }

@media (min-width: 768px) {
    .cdt-share-bar { display: flex; flex-wrap: nowrap; gap: 0.35rem; }
    .cdt-share-bar .sbi { flex: 1 1 0; min-width: 0; }
}
@media (max-width: 768px) {
    body { padding-bottom: calc(var(--coupon-cta-height) + 1rem); }
    .coupon-mobile-cta {
        display: flex;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
        background: rgba(var(--bs-body-bg-rgb), 0.98);
        border-top: 1px solid var(--bs-border-color);
        padding: 0.75rem 1rem 0.9rem;
        gap: 0.75rem; align-items: center; justify-content: center;
        box-shadow: 0 -12px 40px -20px rgba(0,0,0,.25);
    }
    .coupon-mobile-cta .btn { flex: 1; min-width: 0; font-size: 0.95rem; padding: 0.95rem 1rem; }
    .coupon-mobile-cta .btn-secondary { display: none; }
    .cdt-card, .cdt-ticket { margin-bottom: 1rem; }
    .cdt-ticket { flex-direction: column; }
    .cdt-divider { right: 0; left: 0; top: auto; width: 100%; height: 0; border-left: none; border-top: 2px dashed var(--c-divider); position: relative; order: 2; }
    .cdt-stub { flex: none; flex-direction: row; justify-content: flex-start; padding: 1rem 1.2rem; text-align: left; gap: 0.75rem; order: 1; border-radius: var(--c-radius) var(--c-radius) 0 0; }
    .cdt-stub::before, .cdt-stub::after { display: none; }
    .cdt-main { order: 3; }
    .cdt-value { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
    .cdt-ticket, .cdt-cta, .cdt-copy-btn { transition: none !important; }
}

/* ============================================================
   CDF — Coupon filter bar — Bootstrap nav-tabs style
   ============================================================ */
.cdf-bar {
    margin: 0.75rem 0 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: none;
    border-bottom: 1px solid var(--bs-border-color);
}
.cdf-bar::-webkit-scrollbar { display: none; }

.cdf-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    padding-bottom: 0;
    margin-bottom: -1px; /* overlap the border-bottom */
}

.cdf-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    min-height: 38px;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 0.375rem 0.375rem 0 0;
    background: transparent;
    color: var(--bs-secondary-color);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.15s, background-color 0.15s, border-color 0.15s;
    margin-bottom: -1px;
}
.cdf-tab:hover {
    color: var(--bs-body-color);
    border-color: var(--bs-border-color) var(--bs-border-color) transparent;
    background: var(--bs-tertiary-bg);
    text-decoration: none;
}
.cdf-tab--active,
.cdf-tab--active:hover {
    color: var(--bs-body-color);
    background: var(--bs-body-bg);
    border-color: var(--bs-border-color) var(--bs-border-color) var(--bs-body-bg);
    font-weight: 600;
}
.cdf-tab em {
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--bs-secondary-color);
    background: var(--bs-secondary-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 999px;
    padding: 0.05rem 0.4rem;
    line-height: 1.4;
}
.cdf-tab--active em {
    background: rgba(var(--bs-primary-rgb), 0.1);
    border-color: rgba(var(--bs-primary-rgb), 0.2);
    color: var(--bs-primary);
}

.cdf-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.65rem; }
.cdf-chip { display: inline-flex; align-items: center; gap: 0.25em; padding: 0.2rem 0.55rem; border-radius: 2rem; background: var(--bs-secondary-bg); border: 1px solid var(--bs-border-color); font-size: 0.78rem; font-weight: 500; color: var(--bs-body-color); }
.cdf-chip__x { display: inline-flex; align-items: center; justify-content: center; margin-left: 0.15em; width: 1.1em; height: 1.1em; border-radius: 50%; background: var(--bs-secondary-color); color: var(--bs-body-bg); font-size: 0.7rem; font-weight: 700; line-height: 1; text-decoration: none; opacity: 0.7; transition: opacity 0.15s; }
.cdf-chip__x:hover { opacity: 1; }
.cdf-clear { display: inline-flex; align-items: center; font-size: 0.78rem; color: var(--bs-secondary-color); text-decoration: underline; text-underline-offset: 2px; padding: 0.2rem 0.1rem; }
.cdf-clear:hover { color: var(--bs-body-color); }

@media (prefers-reduced-motion: reduce) {
    .cdf-tab, .cdf-chip__x { transition: none !important; }
}

/* ── Store group "See all" banner ──────────────────────────────────────── */
.cd-store-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.25rem 0 2rem;
    padding: 0.85rem 1.1rem;
    border-radius: 0.625rem;
    background: var(--bs-primary-bg-subtle, #e7f1ff);
    border: 1.5px solid var(--bs-primary-border-subtle, #9ec5fe);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s, border-color 0.15s;
}
.cd-store-banner:hover {
    background: var(--bs-primary-bg-subtle, #cfe2ff);
    border-color: var(--bs-primary, #0d6efd);
    text-decoration: none;
    color: inherit;
}
.cd-store-banner__logo-wrap {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.cd-store-banner__logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
}
.cd-store-banner__initials {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--bs-primary);
    line-height: 1;
}
.cd-store-banner__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.cd-store-banner__name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--bs-body-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cd-store-banner__sub {
    font-size: 0.8rem;
    color: var(--bs-secondary-color);
}
.cd-store-banner__cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.2em;
    padding: 0.35rem 0.85rem;
    border-radius: 2rem;
    background: var(--bs-primary);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}
.cd-store-banner:hover .cd-store-banner__cta {
    background: var(--bs-primary-text-emphasis, #052c65);
}
@media (max-width: 480px) {
    .cd-store-banner__cta { display: none; }
}
