/*
 * NextBuy Offers & Promotions — shared customer-facing color contract.
 *
 * Validity is informational, not a danger/urgency state.
 * Every "Valid till..." / "Valid for..." treatment uses the same calm green.
 */

:root{
    --nextbuy-offer-validity:#0F8177;
}

/* Catalogue cards + Offers pages */
.nb-product-card__deal-expiry,
.nb-product-card__deal-expiry.is-calm,
.nb-product-card__deal-expiry.is-warning,
.nb-product-card__deal-expiry.is-urgent,
.nb-product-card__deal-expiry.is-critical{
    color:var(--nextbuy-offer-validity)!important;
}

/* Product pages */
body.single-product .nbp-live-offer__expiry,
body.single-product .nbp-live-offer__expiry.is-calm,
body.single-product .nbp-live-offer__expiry.is-warning,
body.single-product .nbp-live-offer__expiry.is-urgent,
body.single-product .nbp-live-offer__expiry.is-critical{
    color:var(--nextbuy-offer-validity)!important;
}

/* Any shared Offers renderer using the generic urgency classes */
.nextbuy-offer-expiry,
.nextbuy-offer-expiry.is-calm,
.nextbuy-offer-expiry.is-warning,
.nextbuy-offer-expiry.is-urgent,
.nextbuy-offer-expiry.is-critical{
    color:var(--nextbuy-offer-validity)!important;
}


/* ============================================================
 * v1.0.4 — OFFER SCOPE EMPHASIS
 * Underline only the configuration/scope statement.
 * Labels such as "T&C:" remain plain.
 * ============================================================ */

/* Catalogue + Offers cards: "Offer on Graphite", "2 options on offer", etc. */
.nb-product-card__deal-variation {
    text-decoration-line: underline !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 3px !important;
    text-decoration-color: currentColor !important;
}

/* Product pages: underline only the text after "T&C:" */
body.single-product .nbp-live-offer__terms-text {
    text-decoration-line: underline !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 3px !important;
    text-decoration-color: currentColor !important;
}

/* Explicitly keep the T&C label itself plain. */
body.single-product .nbp-live-offer__terms > strong {
    text-decoration: none !important;
}


/* v1.0.6 — validity color is permanently green regardless of urgency. */
body .nb-product-card__deal-expiry,
body .nb-product-card__deal-expiry.is-calm,
body .nb-product-card__deal-expiry.is-warning,
body .nb-product-card__deal-expiry.is-urgent,
body .nb-product-card__deal-expiry.is-critical,
body.single-product .nbp-live-offer__expiry,
body.single-product .nbp-live-offer__expiry.is-calm,
body.single-product .nbp-live-offer__expiry.is-warning,
body.single-product .nbp-live-offer__expiry.is-urgent,
body.single-product .nbp-live-offer__expiry.is-critical {
    color:#0F8177 !important;
}
