/*
 * Rewards — My Account / My Rewards
 * Loaded only on /my-account/my-rewards/
 *
 * Brand system:
 * Purple: #9A75EF
 * Strong purple: #9A75EF
 * Hover purple: #8364CB
 * Soft purple: #F4EFFF
 * Border: #E0E0E0
 * Dark text: #1F1F1F
 * Body text: #333333
 */

/* Page */
.cchr-rewards-wrap {
    width: 100%;
    color: #1F1F1F;
    font-family: "Inter", sans-serif;
}



/* My Rewards page intro — original styling */
.cchr-rewards-intro {
    font-size: 16px !important;
    line-height: 1.45;
    margin: 0 0 23px;
}

.cchr-rewards-intro strong {
    color: #9A75EF;
    font-weight: 600;
}

/* Summary */
.cchr-rewards-summary {
    display: grid;
    grid-template-columns: 180px 180px minmax(0, 1fr);
    width: 100%;
    margin: 0 0 28px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    background: #FFFFFF;
}

.cchr-summary-stat,
.cchr-summary-next {
    min-width: 0;
    padding: 22px 24px;
}

.cchr-summary-stat {
    border-right: 1px solid #E0E0E0;
}

.cchr-summary-eyebrow {
    margin: 0 0 10px;
    color: #1F1F1F;
    font-family: Outfit, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
}

.cchr-summary-number {
    margin: 0;
    font-family: "Outfit", sans-serif;
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
}

.cchr-summary-number-purple {
    color: #9A75EF;
}

.cchr-summary-number-blue {
    color: #6EA1FF;
}

.cchr-summary-unit {
    margin-top: 6px;
    color: #1F1F1F;
    font-family: Inter, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
}

.cchr-summary-next {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    align-items: center;
    gap: 24px;
}

.cchr-summary-next-copy {
    min-width: 0;
}

.cchr-summary-message {
    margin: 0 0 15px;
    color: #333333;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
}

.cchr-summary-message strong {
    color: #9A75EF;
    font-weight: 700;
}

.cchr-summary-progress {
    width: 100%;
}

.cchr-summary-progress-track {
    position: relative;
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #EEEEEE;
}

.cchr-summary-progress-track > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #9A75EF;
}

.cchr-summary-progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    color: #777777;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}

.cchr-summary-reward-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 92px;
    height: 92px;
    box-sizing: border-box;
    border: 0;
    border-radius: 50%;
    background: #9A75EF;
    text-align: center;
    box-shadow: none;
}

.cchr-summary-reward-value {
    color: #FFFFFF;
    font-family: "Outfit", sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.cchr-summary-reward-spend {
    margin-top: 4px;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.15;
}

/* Sections */
.cchr-account-section {
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 28px;
}

.cchr-account-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 14px;
}

.cchr-account-section-heading h2 {
    margin: 0 0 5px !important;
    font-family: Outfit, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1F1F1F;
    line-height: 1.25;
    text-transform: uppercase;
}

.cchr-account-section-heading p {
    margin: 0;
    font-family: Inter, sans-serif;
    font-size: 15px !important;
    font-weight: 500;
    color: #333333;
    line-height: 1.45;
}

/* Claim Rewards */
.cchr-reward-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100%;
    margin: 0 !important;
}

.cchr-reward-card {
    display: flex;
    align-items: center;
    flex-direction: column;
    min-width: 0;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 18px 16px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    background: #FFFFFF;
    text-align: center;
    opacity: 1 !important;
}

.cchr-reward-card.is-available {
    border-color: #E0E0E0;
}

.cchr-reward-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 23px;
    margin: 0 0 12px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #F4EFFF;
    color: #8A5BF8;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.cchr-reward-card.is-locked .cchr-reward-state {
    background: #F3F3F3;
    color: #777777;
}

.cchr-reward-ring {
    --cchr-ring-progress: 0%;
    display: grid;
    place-items: center;
    width: 118px;
    height: 118px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: conic-gradient(
        #9A75EF 0 var(--cchr-ring-progress),
        #EDEDED var(--cchr-ring-progress) 100%
    );
}

.cchr-reward-ring-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 98px;
    height: 98px;
    border-radius: 50%;
    background: #FFFFFF;
}

.cchr-reward-lock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin: 0 0 3px;
    color: #777777;
}

.cchr-reward-lock svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cchr-reward-value {
    color: #1F1F1F;
    font-family: "Outfit", sans-serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
}

.cchr-reward-min-spend {
    margin-top: 4px;
    color: #1F1F1F;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}

.cchr-reward-points {
    margin: 0 0 16px;
    color: #1F1F1F;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}

.cchr-rewards-wrap .cchr-reward-card .button,
.cchr-rewards-wrap .cchr-offer-card .button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-width: 0 !important;
    height: 34px !important;
    margin: auto 0 0 !important;
    padding: 9px 20px !important;
    border: none !important;
    border-radius: 6px !important;
    background-color: #9A75EF !important;
    color: #FFFFFF !important;
    font-family: "Outfit", sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-transform: capitalize !important;
    text-decoration: none !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.cchr-rewards-wrap .cchr-reward-card .button:hover,
.cchr-rewards-wrap .cchr-reward-card .button:focus,
.cchr-rewards-wrap .cchr-offer-card .button:not(:disabled):hover,
.cchr-rewards-wrap .cchr-offer-card .button:not(:disabled):focus {
    background: #8364CB !important;
    color: #FFFFFF !important;
}

.cchr-rewards-wrap .cchr-reward-card .button:disabled,
.cchr-rewards-wrap .cchr-reward-card .cchr-reward-disabled-button,
.cchr-rewards-wrap .cchr-offer-card .cchr-reward-disabled-button {
    background: #F2F2F2 !important;
    color: #777777 !important;
    text-transform: none !important;
    cursor: not-allowed;
}

/* Claimed Rewards */
.cchr-claimed-card {
    padding: 20px 20px 15px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    background: #FFFFFF;
}

.cchr-claimed-card .cchr-account-section-heading {
    margin-bottom: 0;
}

.cchr-claimed-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.cchr-rewards-wrap .cchr-claimed-table {
    width: 100%;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: collapse;
    background: transparent !important;
}

.cchr-rewards-wrap .cchr-claimed-table th,
.cchr-rewards-wrap .cchr-claimed-table td {
    padding-top: 19px;
    padding-bottom: 14px;
    vertical-align: middle !important;
}

.cchr-rewards-wrap .cchr-claimed-table thead th {
    font-family: Outfit, sans-serif;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1F1F1F;
    text-transform: uppercase;
}

.cchr-rewards-wrap .cchr-claimed-table td {
    font-family: Inter, sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #1F1F1F !important;
    line-height: 1.45;
}

.cchr-rewards-wrap .cchr-claimed-table td[data-title="Reward"],
.cchr-rewards-wrap .cchr-claimed-table td:first-child:not(.cchr-claimed-empty-cell) {
    font-family: Inter, sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333333 !important;
    line-height: 1.45;
}

.cchr-rewards-wrap .cchr-code {
    display: inline-block;
    margin-right: 8px !important;
    background: transparent !important;
    padding: 0 !important;
    border: 0 !important;
    letter-spacing: 0;
    font-family: Inter, sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #1F1F1F !important;
    line-height: 1.45;
}

@media (min-width: 768px) and (max-width: 992px) {
    .cchr-rewards-wrap .cchr-claimed-table thead th {
        padding-bottom: 16px !important;
    }
}

.cchr-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #F2F2F2;
    color: #555555;
    font-family: Inter, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.cchr-status-unused,
.cchr-status-in-progress {
    background: #ECF8E9;
    color: #2E7D32;
}

.cchr-status-used,
.cchr-status-completed {
    background: #F4EFFF;
    color: #8A5BF8;
}

/* Pending (order placed, awaiting its outcome) has its own blue so it reads differently from Completed. */
.cchr-status-pending {
    background: #EAF2FF;
    color: #6EA1FF;
}

.cchr-status-cancelled,
.cchr-status-expired,
.cchr-status-replaced,
.cchr-status-switched {
    background: #F2F2F2;
    color: #666666;
}

/* Offer History: switched / expired rows are slightly de-emphasised. */
.cchr-rewards-wrap .cchr-offer-history-table tr.cchr-offer-history-row.is-muted td {
    color: #777777 !important;
}
.cchr-rewards-wrap .cchr-offer-history-table tr.cchr-offer-history-row.is-muted td:first-child {
    color: #777777 !important;
    font-weight: 500 !important;
}

/*
 * Keep the real Actions column right aligned.
 * The empty colspan cell is deliberately excluded because it is also
 * technically the last child in its row.
 */
.cchr-rewards-wrap .cchr-claimed-table th:last-child,
.cchr-rewards-wrap .cchr-claimed-table td:last-child:not(.cchr-claimed-empty-cell) {
    text-align: right;
}

.cchr-rewards-wrap .cchr-copy-code {
    font-family: "Outfit", sans-serif !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    border-radius: 100px !important;
    background-color: #9A75EF !important;
    color: #FFFFFF !important;
    border: none !important;
    width: 75px !important;
    min-width: 75px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    height: 33px !important;
    line-height: 0.75 !important;
    text-decoration: none !important;
    transition: background-color 0.25s ease, color 0.25s ease;
    text-transform: capitalize !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
    cursor: pointer;
}

.cchr-rewards-wrap .cchr-copy-code:hover,
.cchr-rewards-wrap .cchr-copy-code:focus,
.cchr-rewards-wrap .cchr-copy-code.is-copied {
    background-color: #8364CB !important;
    color: #FFFFFF !important;
}

/*
 * Empty state must always remain flush-left.
 * The stronger selector prevents generic table/last-child styling from
 * overriding this cell.
 */
.cchr-rewards-wrap .cchr-claimed-table td.cchr-claimed-empty-cell {
    padding: 18px 0 !important;
    font-family: Inter, sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #333333 !important;
    line-height: 1.45 !important;
    text-align: left !important;
}

.cchr-claimed-pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding-bottom: 0 !important;
    margin: 14px 0 0 !important;
}

.cchr-rewards-wrap .cchr-claimed-pagination .button {
    width: 90px;
    min-width: 0;
    height: 33px;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border: 1px solid #E0E0E0 !important;
    border-radius: 100px !important;
    background-color: #F7F8FA !important;
    color: #0C0C0C !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 0.75 !important;
    text-transform: capitalize !important;
}

.cchr-rewards-wrap .cchr-claimed-pagination .button:hover,
.cchr-rewards-wrap .cchr-claimed-pagination .button:focus {
    background-color: #E1E1E1 !important;
    color: #0C0C0C !important;
}

/* Tablet: keep the desktop rewards layout for longer. */
@media (max-width: 1200px) {
    .cchr-rewards-summary {
        grid-template-columns: 150px 150px minmax(0, 1fr);
    }

    .cchr-summary-stat,
    .cchr-summary-next {
        padding: 18px;
    }
}

/* Claim Rewards switches to two cards per row at 1210px and below. */
@media (max-width: 1210px) {
    .cchr-reward-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }
}

/* At 767px, keep Balance and Pending side-by-side and move Next Reward underneath. */
@media (max-width: 767px) {
    .cchr-claimed-pagination {
        justify-content: center;
    }

    .cchr-rewards-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cchr-summary-stat {
        border-right: 0;
    }

    .cchr-summary-balance {
        border-right: 1px solid #E0E0E0;
    }

    .cchr-summary-next {
        grid-column: 1 / -1;
        border-top: 1px solid #E0E0E0;
    }
}

/* Claimed Rewards table keeps its existing mobile stacked layout. */
@media (max-width: 767px) {
    .cchr-claimed-card {
        padding: 14px 16px;
    }

    .cchr-rewards-wrap .cchr-claimed-table thead {
        display: none;
    }

    .cchr-rewards-wrap .cchr-claimed-table,
    .cchr-rewards-wrap .cchr-claimed-table tbody,
    .cchr-rewards-wrap .cchr-claimed-table tr {
        display: block;
        width: 100%;
    }

    .cchr-rewards-wrap .cchr-claimed-table tr {
        padding: 12px 0;
        border-top: 1px solid #E0E0E0;
    }

    .cchr-rewards-wrap .cchr-claimed-table tr:first-child {
        border-top: 0;
    }

    .cchr-rewards-wrap .cchr-claimed-table td {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        width: 100%;
        padding: 6px 0 !important;
        border: 0 !important;
        text-align: right !important;
        box-sizing: border-box;
    }

    .cchr-rewards-wrap .cchr-claimed-table td::before {
        content: attr(data-title);
        flex: 0 0 auto;
        font-family: Inter, sans-serif;
        font-size: 15px;
        font-weight: 600;
        color: #1F1F1F;
        text-align: left;
        text-transform: capitalize;
    }

    .cchr-rewards-wrap .cchr-claimed-table td[data-title="Actions"] {
        align-items: center;
    }

    .cchr-rewards-wrap .cchr-claimed-table td[data-title="Actions"] .cchr-copy-code {
        margin-left: auto !important;
    }

    .cchr-rewards-wrap .cchr-code {
        max-width: 60%;
        margin-left: auto !important;
        white-space: normal;
        word-break: break-word;
        text-align: right;
    }

    /*
     * Override the generic mobile td rule above for the single empty-state
     * colspan cell only.
     */
    .cchr-rewards-wrap .cchr-claimed-table td.cchr-claimed-empty-cell {
        display: block !important;
        padding: 6px 0 !important;
        text-align: left !important;
    }

    .cchr-rewards-wrap .cchr-claimed-table td.cchr-claimed-empty-cell::before {
        display: none !important;
        content: "" !important;
    }
}

/* Claim Rewards switches to a single-column mobile layout at 460px. */
@media (max-width: 460px) {
    .cchr-reward-grid {
        grid-template-columns: 1fr !important;
    }

    .cchr-reward-card {
        padding: 18px 16px;
    }
}

/*
 * Small phones:
 * Keep Balance and Pending side-by-side.
 * Next Reward remains the full-width row underneath rather than turning
 * the whole summary into a block layout.
 */
@media (max-width: 400px) {
    .cchr-summary-stat,
    .cchr-summary-next {
        padding: 16px;
    }

    .cchr-summary-next {
        grid-template-columns: minmax(0, 1fr) 82px;
        gap: 14px;
    }

    .cchr-summary-reward-badge {
        width: 78px;
        height: 78px;
    }

    .cchr-summary-reward-value {
        font-size: 22px;
    }
}

/* EARN MORE campaigns */
.cchr-earn-more { position: relative; }
.cchr-earn-more .cchr-account-section-heading { align-items: center; }

/* Subtle previous/next controls, vertically centred on the EARN MORE heading. */
.cchr-offer-nav { display: none; gap: 6px; margin: 0; }
.cchr-earn-more.has-overflow .cchr-offer-nav { display: inline-flex; }
.cchr-offer-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid #E0E0E0;
    border-radius: 999px;
    background: #FFFFFF;
    color: #8A5BF8;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.cchr-offer-nav-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cchr-offer-nav-button:hover:not(:disabled),
.cchr-offer-nav-button:focus-visible { background: #F4EFFF; }
.cchr-offer-nav-button:disabled { opacity: 0.35; cursor: default; }

/*
 * Carousel track: horizontal scroll with the native scrollbar hidden.
 * Scrolling stays fully functional (touch swipe, desktop drag, prev/next,
 * keyboard when the track is focused).
 */
.cchr-offer-track {
    display: flex;
    align-items: stretch;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 3px 0 8px;
    scroll-padding-inline: 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    cursor: default !important;
}
.cchr-offer-track::-webkit-scrollbar { display: none; width: 0; height: 0; }
.cchr-offer-track:focus-visible { outline: 2px solid #9A75EF; outline-offset: 2px; }
.cchr-offer-track.is-dragging { scroll-snap-type: none; user-select: none; }

/*
 * 4 / 2 / 1 visible cards, reusing the Claim Rewards breakpoints
 * (four columns, two at 1210px and below, one at 460px and below).
 * Cards are flex columns so the button sits at the bottom and every card in
 * the track stretches to the tallest content — no hardcoded heights.
 */
.cchr-offer-card {
    display: flex;
    flex: 0 0 calc((100% - 48px) / 4);
    flex-direction: column;
    min-width: 0;
    box-sizing: border-box;
    padding: 18px 16px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    background: #FFFFFF;
    scroll-snap-align: start;
}
@media (max-width: 1210px) {
    .cchr-offer-track { gap: 14px; }
    .cchr-offer-card { flex-basis: calc((100% - 14px) / 2); }
}
@media (max-width: 460px) {
    .cchr-offer-card { flex-basis: 100%; }
}

/* Campaign title lives in the Rewards pill: purple, left aligned, fit-content, whatever the state. */
.cchr-offer-title {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    width: fit-content;
    max-width: 100%;
    min-height: 23px;
    margin: 0 0 12px !important;
    padding: 3px 9px;
    border-radius: 999px;
    background: #F4EFFF;
    color: #8A5BF8;
    font-family: Inter, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}
.cchr-offer-reward { color: #1F1F1F; font-family: Outfit, sans-serif; font-size: 23px; font-weight: 700; line-height: 1.2; }
.cchr-offer-requirement { margin: 10px 0 0; color: #1F1F1F; font-family: Inter, sans-serif; font-size: 14px; font-weight: 600; line-height: 1.4; }
.cchr-offer-requirement-more-wrap { position: relative; display: inline-flex; }
.cchr-offer-requirement-more {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8A5BF8;
    font: inherit;
    font-weight: 600 !important;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}
.cchr-offer-requirement-tooltip {
    position: absolute;
    z-index: 20;
    top: calc(100% + 7px);
    left: 0;
    display: none;
    width: max-content;
    max-width: min(260px, calc(100vw - 32px));
    padding: 8px 10px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    background: #F7F8FA;
    box-shadow: 0 2px 6px rgba(31, 31, 31, 0.06);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0s linear 0.25s;
}
.cchr-offer-requirement-more-wrap.is-above .cchr-offer-requirement-tooltip { top: auto; bottom: calc(100% + 7px); }
.cchr-offer-requirement-more-wrap.is-above .cchr-offer-requirement-tooltip::before { top: auto; bottom: -9px; }
/* Invisible bridge over the 7px gap so moving the pointer down into the list keeps it open. */
.cchr-offer-requirement-tooltip::before {
    content: "";
    position: absolute;
    left: -6px;
    right: -6px;
    top: -9px;
    height: 10px;
}
.cchr-offer-requirement-tooltip > span,
.cchr-offer-requirement-tooltip > a { display: block; color: #222222; font-size: 13px; font-weight: 500; line-height: 1.45; }
.cchr-offer-requirement-tooltip > .cchr-offer-requirement-tooltip-heading { margin-bottom: 5px; color: #555555; font-size: 11px; font-weight: 600; line-height: 1.3; }
.cchr-offer-requirement-more-wrap:hover .cchr-offer-requirement-tooltip,
.cchr-offer-requirement-more-wrap:focus-within .cchr-offer-requirement-tooltip,
.cchr-offer-requirement-more:focus-visible + .cchr-offer-requirement-tooltip,
.cchr-offer-requirement-more-wrap.is-open .cchr-offer-requirement-tooltip { display: block; opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }

/*
 * In Progress targets: the text keeps its colour; a small purple chevron
 * marks the link and is the only thing that changes on hover/focus, using the
 * Start Now button colour feedback (#9A75EF → #8364CB, 0.25s). No underline.
 */
.cchr-rewards-wrap .cchr-offer-target {
    color: inherit;
    font-weight: inherit;
    text-decoration: none;
}
.cchr-rewards-wrap .cchr-offer-target:hover,
.cchr-rewards-wrap .cchr-offer-target:focus-visible { color: inherit; text-decoration: none; outline: none; }
.cchr-rewards-wrap .cchr-offer-target:focus-visible { outline: 2px solid #9A75EF; outline-offset: 2px; border-radius: 2px; }
.cchr-rewards-wrap .cchr-offer-target-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 4px;
    vertical-align: -2px;
    fill: currentColor;
    color: #9A75EF;
    transition: color 0.25s ease;
}
.cchr-rewards-wrap .cchr-offer-target:hover .cchr-offer-target-icon,
.cchr-rewards-wrap .cchr-offer-target:focus-visible .cchr-offer-target-icon { color: #8364CB; }
.cchr-offer-requirement.is-linkable .cchr-offer-requirement-more-wrap { margin-left: 6px; }
.cchr-offer-copy { margin: 8px 0 0; color: #555555; font-size: 13px; line-height: 1.45; }

/*
 * Compact single-line progress row: "1 / 2 ORDERS   18 DAYS LEFT" (no separator;
 * the gap does the spacing). It takes the card's spare height so it always sits
 * directly above the bottom button/status; the requirement line (e.g. "Ends
 * 17 September") stays with the content above.
 */
.cchr-offer-progress { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.cchr-offer-progress + .cchr-offer-actions { margin-top: 0; padding-top: 12px; }
.cchr-offer-detail { color: #666666; font-size: 12px; font-weight: 700; }
.cchr-offer-actions { margin-top: auto; padding-top: 15px; }
.cchr-offer-actions .button { text-align: center; }
.cchr-rewards-wrap .cchr-offer-card .button.is-starting { cursor: progress; }
.cchr-rewards-wrap .cchr-offer-card .button.cchr-offer-review-temporary {
    background: #F2F2F2 !important;
    color: #777777 !important;
    cursor: default;
}

/*
 * Card button states mirror the Offer History status pills so one colour
 * language runs across the whole Rewards page: green = currently in progress,
 * blue = pending, lilac/purple = completed, grey = expired/switched (history only).
 */
.cchr-rewards-wrap .cchr-offer-card .cchr-offer-disabled.is-state-in_progress {
    background: #ECF8E9 !important;
    color: #2E7D32 !important;
    cursor: default;
}
.cchr-rewards-wrap .cchr-offer-card .cchr-offer-disabled.is-state-pending {
    background: #EAF2FF !important;
    color: #6EA1FF !important;
    cursor: default;
}
.cchr-rewards-wrap .cchr-offer-card .cchr-offer-disabled.is-state-completed {
    background: #F4EFFF !important;
    color: #8A5BF8 !important;
    cursor: default;
}
.cchr-offer-message { min-height: 0; margin-top: 0; color: #a32a2a; font-size: 12px; }
.cchr-offer-message:not(:empty) { min-height: 18px; margin-top: 7px; }
.cchr-offer-message.is-error { color: #a32a2a; }
.cchr-offer-switch[hidden] { display: none; }
.cchr-offer-switch { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; padding: 20px; background: rgba(20,20,25,.5); }
.cchr-offer-switch-panel { width: min(420px, 100%); padding: 24px; border-radius: 14px; background: #fff; box-shadow: 0 18px 60px rgba(0,0,0,.22); text-align: left; }
.cchr-offer-switch-panel h3 { margin: 0 0 12px; font-family: Outfit, sans-serif; font-size: 20px; font-weight: 700; color: #1F1F1F; line-height: 1.25; text-transform: uppercase; }
.cchr-offer-switch-panel p { margin: 0 0 8px; font-family: Inter, sans-serif; font-size: 15px; font-weight: 500; color: #333333; line-height: 1.45; }
.cchr-offer-switch-panel p[hidden] { display: none; }
.cchr-offer-switch-panel div { display: flex; justify-content: flex-start; gap: 10px; margin-top: 18px; }
.cchr-rewards-wrap .cchr-offer-switch-panel .button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 36px !important;
    padding: 9px 18px !important;
    border-radius: 6px !important;
    font-family: "Outfit", sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    box-shadow: none !important;
}
/* Keep Current is neutral (no border); Switch Offer is the primary purple action. */
.cchr-rewards-wrap .cchr-offer-switch-panel .cchr-offer-keep {
    border: none !important;
    background: #F7F8FA !important;
    color: #1F1F1F !important;
}
.cchr-rewards-wrap .cchr-offer-switch-panel .cchr-offer-keep:hover,
.cchr-rewards-wrap .cchr-offer-switch-panel .cchr-offer-keep:focus { background: #E6E8EC !important; color: #1F1F1F !important; }
.cchr-rewards-wrap .cchr-offer-switch-panel .cchr-offer-confirm-switch { border: none !important; background: #9A75EF !important; color: #FFFFFF !important; }
.cchr-rewards-wrap .cchr-offer-switch-panel .cchr-offer-confirm-switch:hover,
.cchr-rewards-wrap .cchr-offer-switch-panel .cchr-offer-confirm-switch:focus { background: #8364CB !important; color: #FFFFFF !important; }
