/* Public offers: inherit the storefront, keep savings and choices in the foreground.
   Prices stay blue like the product price, savings read green, motion is brief. */
.tlc-offers-host, .tlc-offers, .tlc-offers-preview-price {
    --offer-ink: var(--tlc-color-ink, var(--wp--preset--color--ink, #202020));
    --offer-paper: var(--tlc-color-paper, var(--wp--preset--color--paper, #fff));
    --offer-surface: var(--tlc-color-surface, var(--wp--preset--color--surface, #f3f3f3));
    --offer-brand: var(--tlc-color-brand, var(--wp--preset--color--brand, #ffb91f));
    --offer-urgent: var(--tlc-color-brand-strong, var(--wp--preset--color--brand-strong, #d43811));
    /* The theme sets this blue on the main product price. */
    --offer-price: var(--tlc-color-price, #2457a7);
    --offer-success: var(--tlc-color-success, #207c3c);
    --offer-muted: color-mix(in srgb, var(--offer-ink) 67%, var(--offer-paper));
    --offer-line: color-mix(in srgb, var(--offer-ink) 10%, transparent);
    --offer-line-strong: color-mix(in srgb, var(--offer-ink) 20%, transparent);
    --offer-wash: color-mix(in srgb, var(--offer-surface) 55%, var(--offer-paper));
    --offer-tint: color-mix(in srgb, var(--offer-price) 6%, var(--offer-paper));
    --offer-saving-wash: color-mix(in srgb, var(--offer-success) 9%, var(--offer-paper));
    --offer-lift: 0 1px 2px rgb(32 32 32 / .05), 0 14px 28px -18px rgb(32 32 32 / .3);
    --offer-ease: cubic-bezier(.32, .72, 0, 1);
    --offer-spring: cubic-bezier(.34, 1.36, .64, 1);
}
.tlc-offers {
    box-sizing: border-box;
    width: 100%; min-width: 0; flex-basis: 100%;
    margin: 0 0 1.25rem; padding: 0; border: 0;
    color: var(--offer-ink); font-family: var(--tlc-font-sans, inherit); text-align: start;
    -webkit-font-smoothing: antialiased;
}
.tlc-offers *, .tlc-offers *::before, .tlc-offers *::after { box-sizing: border-box; }
.tlc-offers-host { flex: 0 0 100%; width: 100%; min-width: 0; container: tlc-offer / inline-size; }
.tlc-offers-host [hidden], .tlc-offers [hidden] { display: none !important; }
.tlc-offers .woocommerce-Price-amount, .tlc-offers .woocommerce-Price-currencySymbol { font-size: inherit; font-weight: inherit; color: inherit; }
.tlc-offers legend, .tlc-offers .tlc-offers__title {
    float: none; width: auto; max-width: 100%; padding: 0; margin: 0;
    font-size: 1.0625rem; font-weight: 650; line-height: 1.35; letter-spacing: -.02em;
    color: var(--offer-ink); overflow-wrap: anywhere;
}
.tlc-offers .tlc-offers__intro { margin: .25rem 0 .875rem; color: var(--offer-muted); font-size: .8125rem; line-height: 1.5; }
/* Operation label (e.g. "Black Friday"): a compact ink tag above the offer. */
.tlc-offers .tlc-offers__event { display: inline-flex; align-items: center; gap: .375rem; width: fit-content; margin: 0 0 .5rem; padding: .1875rem .625rem; border-radius: 999px; background: var(--offer-ink); color: var(--offer-brand); font-size: .6875rem; font-weight: 700; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; }
.tlc-offers--quantity .tlc-offers__event { margin: .5rem 0 0; }
.tlc-offers__price { min-width: 0; max-width: 100%; color: var(--offer-price); font-size: 1.375rem; font-weight: 700; line-height: 1.15; letter-spacing: -.035em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tlc-offers__price bdi { white-space: normal; }
.tlc-offers .tlc-offers__status { display: flex; align-items: center; gap: .5rem; margin: .625rem 0 .5rem; padding: .625rem .875rem; border-radius: .875rem; background: var(--offer-wash); box-shadow: inset 0 0 0 1px var(--offer-line); color: var(--offer-ink); font-size: .8125rem; font-weight: 600; line-height: 1.45; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tlc-offers .tlc-offers__status::before { content: ""; flex: none; width: 1rem; height: 1rem; background: var(--offer-price); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 11.1a1 1 0 0 1-1 .9H7.2a1 1 0 0 1-1-.9z'/%3E%3Cpath d='M9 10V6.5a3 3 0 0 1 6 0V10'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 11.1a1 1 0 0 1-1 .9H7.2a1 1 0 0 1-1-.9z'/%3E%3Cpath d='M9 10V6.5a3 3 0 0 1 6 0V10'/%3E%3C/svg%3E") center / contain no-repeat; }
.tlc-offers .tlc-offers__help { margin: 0; color: var(--offer-muted); font-size: .75rem; line-height: 1.6; overflow-wrap: anywhere; }
.tlc-offers > .tlc-offers__help { padding-inline: .25rem; }
.tlc-offers .tlc-offers__sr, .tlc-offers .tlc-offers__status--quiet {
    position: absolute !important; width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important; border: 0 !important;
    overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important;
}

/* Temporary promotion: a shallow outer tray and an inner surface with concentric corners. */
.tlc-offers__frame { padding: .3125rem; border-radius: 1.25rem; background: var(--offer-surface); box-shadow: inset 0 0 0 1px var(--offer-line); }
.tlc-offers__surface { min-width: 0; overflow: hidden; border-radius: .9375rem; background: var(--offer-paper); box-shadow: inset 0 0 0 1px var(--offer-line), 0 1px 2px rgb(32 32 32 / .04); }
.tlc-offers__flash-main { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem 1rem; padding: 1rem 1.125rem; }
.tlc-offers__flash-copy { min-width: 0; }
.tlc-offers .tlc-offers__benefit { margin: .375rem 0 0; color: var(--offer-muted); font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }
.tlc-offers__benefit strong { color: var(--offer-success); font-size: 1.25rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tlc-offers .tlc-offers__equal { margin: .375rem 0 0; color: var(--offer-muted); font-size: .8125rem; line-height: 1.6; }
.tlc-offers__chip { display: inline-flex; flex: none; align-items: center; padding: .375rem .75rem; border-radius: 999px; background: var(--offer-ink); color: var(--offer-brand); box-shadow: 0 8px 16px -10px rgb(32 32 32 / .55); font-size: 1rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tlc-offers__foot { padding: .5rem .25rem 0; }
.tlc-offers__foot .tlc-offers__status:not(.tlc-offers__status--quiet) { margin: 0 0 .5rem; }
.tlc-offers-preview-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .625rem; margin: 0 0 .875rem; font-family: var(--tlc-font-sans, inherit); font-size: .8125rem; line-height: 1.5; }
.tlc-offers-preview-price strong { color: var(--offer-price); font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* A quiet clock: one instrument, stable numeric tiles, no motion on ticks. */
.tlc-offers__countdown { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .625rem 1rem; min-width: 0; margin: .75rem 0 .25rem; padding: .75rem .875rem; border-radius: 1rem; background: var(--offer-wash); box-shadow: inset 0 0 0 1px var(--offer-line); }
.tlc-offers--flash .tlc-offers__countdown { margin: 0; padding: .75rem 1.125rem; border-radius: 0; box-shadow: inset 0 1px 0 var(--offer-line); }
.tlc-offers__countdown-copy { display: grid; gap: .125rem; flex: 1 1 8.75rem; min-width: 0; }
.tlc-offers__countdown-label { display: inline-flex; align-items: center; gap: .5rem; color: var(--offer-ink); font-size: .8125rem; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.tlc-offers__live { position: relative; flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--offer-urgent); }
.tlc-offers__live::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit; animation: tlc-offer-ping 2.4s var(--offer-ease) infinite; }
.tlc-offers__deadline { padding-inline-start: 1rem; color: var(--offer-muted); font-size: .75rem; line-height: 1.5; overflow-wrap: anywhere; }
.tlc-offers__digits { display: inline-flex; flex: 0 1 auto; flex-wrap: wrap; align-items: stretch; gap: .25rem; min-width: 0; font-variant-numeric: tabular-nums; }
.tlc-offers__segment { display: grid; align-content: center; justify-items: center; min-width: 2.75rem; padding: .375rem .375rem .3125rem; border-radius: .625rem; background: var(--offer-paper); box-shadow: inset 0 0 0 1px var(--offer-line), 0 1px 2px rgb(32 32 32 / .04); }
.tlc-offers__digit { color: var(--offer-ink); font-size: 1.125rem; font-weight: 650; line-height: 1.1; letter-spacing: -.02em; }
.tlc-offers__time-unit { color: var(--offer-muted); font-size: .625rem; font-weight: 500; line-height: 1.3; letter-spacing: .04em; }

/* Quantity choices: cards nested in a tray, the selected one lifted and outlined. */
.tlc-offers__quantity-shell { padding: .3125rem; border-radius: 1.25rem; background: var(--offer-surface); box-shadow: inset 0 0 0 1px var(--offer-line); }
.tlc-offers__quantity-shell:has(.tlc-offers__badge) { padding-top: .875rem; }
.tlc-offers__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3125rem; }
.tlc-offers__grid:is(:has(> :nth-child(2):last-child), :has(> :nth-child(4):last-child)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tlc-offers .tlc-offers__card { position: relative; display: flex; flex-direction: column; align-items: center; gap: .25rem; min-width: 0; margin: 0; padding: 1rem .5rem 0; border: 0; border-radius: .9375rem; background: var(--offer-paper); box-shadow: inset 0 0 0 1px var(--offer-line); color: var(--offer-ink); cursor: pointer; font-weight: 400; text-align: center; transition: transform .5s var(--offer-ease), box-shadow .4s var(--offer-ease); }
.tlc-offers__card:has(input:checked) { box-shadow: inset 0 0 0 2px var(--offer-price), 0 12px 24px -16px color-mix(in srgb, var(--offer-price) 60%, transparent); transform: translateY(-1px); }
.tlc-offers__card:has(input:focus-visible) { outline: 3px solid var(--offer-price); outline-offset: 3px; transition: none; }
.tlc-offers__card:has(input:disabled) { cursor: not-allowed; background: var(--offer-wash); box-shadow: inset 0 0 0 1px var(--offer-line); transform: none; }
.tlc-offers__card:has(input:disabled) > :not(.tlc-offers__badge) { opacity: .6; }
.tlc-offers__card:has(input:disabled) .tlc-offers__price { color: var(--offer-muted); }
.tlc-offers .tlc-offers__card input[type=radio] { position: static; display: grid; flex: none; place-items: center; width: 1.25rem; min-width: 1.25rem; height: 1.25rem; margin: 0 0 .25rem; padding: 0; border: 0; border-radius: 50%; background: var(--offer-paper); box-shadow: inset 0 0 0 1.5px var(--offer-line-strong); opacity: 1; cursor: inherit; -webkit-appearance: none; appearance: none; transition: background-color .35s var(--offer-ease), box-shadow .35s var(--offer-ease); }
.tlc-offers .tlc-offers__card input[type=radio]::before { content: ""; width: .75rem; height: .75rem; background: var(--offer-paper); transform: scale(0); transition: transform .45s var(--offer-spring); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.tlc-offers .tlc-offers__card input[type=radio]::after { content: none; }
.tlc-offers .tlc-offers__card input[type=radio]:checked { background: var(--offer-price); box-shadow: none; }
.tlc-offers .tlc-offers__card input[type=radio]:checked::before { transform: scale(1); }
.tlc-offers .tlc-offers__card input[type=radio]:focus-visible { outline: none; }
.tlc-offers__badge { position: absolute; inset-block-start: -.625rem; inset-inline: .25rem; z-index: 1; width: fit-content; max-width: calc(100% - .5rem); margin-inline: auto; padding: .25rem .625rem; overflow: hidden; border-radius: 999px; background: var(--offer-ink); color: var(--offer-paper); box-shadow: 0 0 0 3px var(--offer-surface); font-size: .625rem; font-weight: 600; line-height: 1.3; letter-spacing: .02em; text-overflow: ellipsis; white-space: nowrap; }
.tlc-offers__quantity { display: inline-flex; align-items: baseline; gap: .25rem; color: var(--offer-muted); font-size: .8125rem; font-weight: 500; line-height: 1.2; }
.tlc-offers__quantity b { color: var(--offer-ink); font-size: 1.5rem; font-weight: 650; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.tlc-offers__saving-slot { display: grid; place-items: center; min-height: 2.25rem; }
.tlc-offers__saving { display: inline-block; padding: .125rem .5rem; border-radius: .625rem; color: var(--offer-muted); font-size: .6875rem; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
.tlc-offers__saving[data-positive=true] { background: var(--offer-saving-wash); color: var(--offer-success); font-weight: 600; }
.tlc-offers__card .tlc-offers__price { max-width: 100%; font-size: clamp(1.0625rem, 1.4vw, 1.3125rem); overflow-wrap: anywhere; }
.tlc-offers__original { min-height: 1.3em; color: var(--offer-muted); font-size: .75rem; line-height: 1.4; text-decoration-thickness: 1px; }
.tlc-offers .tlc-offers__original[hidden] { display: block !important; visibility: hidden; }
.tlc-offers__unit { align-self: stretch; margin: .375rem 2px 2px; padding: .4375rem .375rem; border-radius: 0 0 calc(.9375rem - 2px) calc(.9375rem - 2px); background: var(--offer-wash); color: var(--offer-muted); font-size: .6875rem; line-height: 1.35; overflow-wrap: anywhere; transition: background-color .4s var(--offer-ease), color .4s var(--offer-ease); }
.tlc-offers__card:has(input:checked) .tlc-offers__unit { background: var(--offer-tint); color: var(--offer-price); }
.tlc-offers__network { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; margin: 0 0 1rem; padding: .75rem 1rem; border-radius: 1rem; background: var(--offer-wash); box-shadow: inset 0 0 0 1px var(--offer-line); color: var(--offer-ink); font-size: .8125rem; line-height: 1.6; }
.tlc-offers__network a { color: inherit; font-weight: 600; text-underline-offset: .2em; }
.tlc-offers__network a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
    .tlc-offers__card:not(:has(input:disabled)):not(:has(input:checked)):hover { box-shadow: inset 0 0 0 1px var(--offer-line-strong), var(--offer-lift); transform: translateY(-1px); }
}
@media (prefers-reduced-motion: no-preference) {
    .tlc-offers__card:not(:has(input:disabled)):not(:has(input:focus-visible)):active { transform: scale(.98); }
}
/* Container width matters more than viewport width in a product's purchase column. */
@container tlc-offer (max-width: 380px) {
    .tlc-offers__flash-main { padding: .875rem 1rem; }
    .tlc-offers__chip { padding: .3125rem .625rem; font-size: .875rem; }
    .tlc-offers--flash .tlc-offers__countdown { padding: .75rem 1rem; gap: .5rem .75rem; }
    .tlc-offers__grid, .tlc-offers__grid:is(:has(> :nth-child(2):last-child), :has(> :nth-child(4):last-child)) { grid-template-columns: minmax(0, 1fr); }
    .tlc-offers .tlc-offers__card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "radio qty price" "radio saving original" "radio unit unit"; align-items: center; justify-items: start; gap: .1875rem .75rem; padding: .875rem 1rem; text-align: start; }
    .tlc-offers .tlc-offers__card input[type=radio] { grid-area: radio; margin: 0; }
    .tlc-offers__quantity { grid-area: qty; }
    .tlc-offers__quantity b { font-size: 1.25rem; }
    .tlc-offers__saving-slot { grid-area: saving; min-height: 0; }
    .tlc-offers__card .tlc-offers__price { grid-area: price; justify-self: end; font-size: 1.125rem; text-align: end; }
    .tlc-offers__original { grid-area: original; justify-self: end; min-height: 0; text-align: end; }
    .tlc-offers__unit, .tlc-offers__card:has(input:checked) .tlc-offers__unit { grid-area: unit; margin: 0; padding: 0; border-radius: 0; background: none; text-align: start; }
    .tlc-offers__badge { inset-inline: auto .875rem; margin: 0; }
}
/* Also cover isolated editor previews, which do not have a storefront host. */
@media (max-width: 420px) {
    .tlc-offers__flash-main { padding: .875rem 1rem; }
    .tlc-offers__chip { padding: .3125rem .625rem; font-size: .875rem; }
    .tlc-offers--flash .tlc-offers__countdown { padding: .75rem 1rem; gap: .5rem .75rem; }
    .tlc-offers__grid, .tlc-offers__grid:is(:has(> :nth-child(2):last-child), :has(> :nth-child(4):last-child)) { grid-template-columns: minmax(0, 1fr); }
    .tlc-offers .tlc-offers__card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "radio qty price" "radio saving original" "radio unit unit"; align-items: center; justify-items: start; gap: .1875rem .75rem; padding: .875rem 1rem; text-align: start; }
    .tlc-offers .tlc-offers__card input[type=radio] { grid-area: radio; margin: 0; }
    .tlc-offers__quantity { grid-area: qty; }
    .tlc-offers__quantity b { font-size: 1.25rem; }
    .tlc-offers__saving-slot { grid-area: saving; min-height: 0; }
    .tlc-offers__card .tlc-offers__price { grid-area: price; justify-self: end; font-size: 1.125rem; text-align: end; }
    .tlc-offers__original { grid-area: original; justify-self: end; min-height: 0; text-align: end; }
    .tlc-offers__unit, .tlc-offers__card:has(input:checked) .tlc-offers__unit { grid-area: unit; margin: 0; padding: 0; border-radius: 0; background: none; text-align: start; }
    .tlc-offers__badge { inset-inline: auto .875rem; margin: 0; }
}
@keyframes tlc-offer-ping { 0% { opacity: .5; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(2.6); } }
@media (prefers-reduced-motion: reduce) {
    .tlc-offers .tlc-offers__card, .tlc-offers .tlc-offers__card input[type=radio], .tlc-offers .tlc-offers__card input[type=radio]::before, .tlc-offers__unit { transition: none; }
    .tlc-offers__card:has(input:checked), .tlc-offers__card:not(:has(input:disabled)):hover { transform: none; }
    .tlc-offers__live::after { animation: none; }
}
@media (forced-colors: active) {
    .tlc-offers__surface, .tlc-offers__card, .tlc-offers__segment { outline: 1px solid CanvasText; outline-offset: -1px; }
    .tlc-offers__card:has(input:checked) { outline: 2px solid Highlight; outline-offset: -2px; }
    .tlc-offers .tlc-offers__card input[type=radio] { -webkit-appearance: radio; appearance: auto; }
    .tlc-offers .tlc-offers__card input[type=radio]::before { content: none; }
}
