/*
 * Light page headers (body.wl-light-bands): the hero, brand page and listing banners are a pale tint with
 * dark text, like the publisher's own site, instead of a coloured band with white text. Each theme sets
 *   --wl-lb-bg    the header background (colour or gradient)
 *   --wl-lb-ink   the text colour on it
 *   --wl-lb-sub   secondary text
 *   --wl-lb-tile  the background of stat tiles and chips on it
 *   --wl-lb-line  borders on it
 * Feature panels (.cta-section, .wl-feat-band) stay in the theme's accent colour and keep white text.
 */
body.wl-light-bands :is(.wl-welcome, .wl-bp, .page-hero, .voucher-intro, .brand-detail-banner, .brand-listing-banner, .subpage-brand-banner, .wl-acct-top) {
  background: var(--wl-lb-bg); color: var(--wl-lb-ink);
  --color-white: var(--wl-lb-ink);
}
body.wl-light-bands :is(.wl-welcome, .wl-bp, .page-hero, .voucher-intro, .brand-detail-banner, .brand-listing-banner, .subpage-brand-banner) :is(h1, h2, h3, h4, p, li, strong, label, .wl-stat strong) { color: var(--wl-lb-ink); }
body.wl-light-bands :is(.wl-welcome, .wl-bp, .page-hero, .voucher-intro, .brand-detail-banner, .brand-listing-banner, .subpage-brand-banner) :is(.wl-welcome-intro, .wl-stat span, .wl-stat-source, .wl-bp-meta, .wl-bp-rate-small, .wl-bp-trust, .wl-bp-last span, .wl-bp-yearly, .wl-bp-rate-note, .wl-bp-back, .wl-bp-rate s) { color: var(--wl-lb-sub); opacity: 1; }
body.wl-light-bands :is(.wl-welcome, .wl-bp) :is(.gradient-text, .wl-bp-rate, .wl-bp-lead strong, .wl-stat .wl-stat-extra, em) { color: var(--wl-lb-hl); -webkit-text-fill-color: var(--wl-lb-hl); background: none; }
body.wl-light-bands :is(.wl-welcome, .wl-bp) .wl-stat,
body.wl-light-bands :is(.wl-welcome, .wl-bp) :is(.wl-bp-rates, .wl-welcome-chip, .wl-chip, .wl-buyagain a, .wl-usual-btn) { background: var(--wl-lb-tile); border-color: var(--wl-lb-line); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05); }
body.wl-light-bands :is(.wl-bp-rate-row + .wl-bp-rate-row) { border-color: var(--wl-lb-line); }
body.wl-light-bands :is(.wl-welcome, .wl-bp) :is(.wl-usual-btn, .wl-buyagain a, [class*="wl-chip"]) { color: var(--wl-lb-ink); }
body.wl-light-bands .wl-welcome-card, body.wl-light-bands .wl-bp-card { background: #fff; color: var(--wl-lb-ink); box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08); border: 1px solid var(--wl-lb-line); }
body.wl-light-bands :is(.wl-welcome-card, .wl-bp-card) :is(h1, h2, h3, h4, p, li, strong, label, span) { color: inherit; }
body.wl-light-bands :is(.wl-welcome, .wl-bp, .page-hero, .voucher-intro, .brand-detail-banner, .brand-listing-banner, .subpage-brand-banner) a:not(.btn):not(.dark-green-btn):not(.white-btn):not(.wl-usual-btn):not(.wl-spot-btn) { color: var(--wl-lb-ink); }
body.wl-light-bands :is(.wl-welcome, .wl-bp, .page-hero, .voucher-intro) :is(a, button, input, select):focus-visible { outline-color: var(--wl-lb-hl) !important; box-shadow: none; }
body.wl-light-bands :is(.cashback-estimator__summary, .wl-bp-calc-result) { background: var(--wl-lb-bg); color: var(--wl-lb-ink); border: 1px solid var(--wl-lb-line); }
body.wl-light-bands :is(.cashback-estimator__summary, .wl-bp-calc-result) :is(h1, h2, h3, p, li, strong, span, label) { color: var(--wl-lb-ink); }
/* White buttons on these headers become outlined */
body.wl-light-bands :is(.wl-welcome, .wl-bp, .page-hero, .voucher-intro) .white-btn { background: #fff !important; color: var(--wl-lb-ink) !important; border: 1px solid var(--wl-lb-line) !important; }
/* The milestone ring and its text */
body.wl-light-bands :is(.wl-welcome, .wl-bp) :is(.wl-milestone, .wl-milestone *) { color: var(--wl-lb-ink); }
body.wl-light-bands .wl-milestone { background: var(--wl-lb-tile); border: 1px solid var(--wl-lb-line); }

/* Light bands remap --color-white to the dark ink so text reads on the pale header. Surfaces that sit inside
   the header (the buy box, cards) must keep a real white background and normal text colours. */
body.wl-light-bands :is(.wl-bp-buy, .wl-welcome-card, .wl-bp-card) { --color-white: #fff; }
/* The quick-buy card in the first-visit hero (partials/buy-box.php, hero variant) is a white surface too: white background,
   dark text, white fields and chips. Without this it took the remapped dark ink as its background on light-band themes. */
body.wl-light-bands .wl-buy-hero { --color-white: #fff; background: #fff; color: var(--color-text, #1a1a1a); border: 1px solid var(--wl-lb-line); box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08); }
body.wl-light-bands .wl-buy-hero :is(p, li, strong, label, span) { color: inherit; }
body.wl-light-bands .wl-buy-hero .wl-buy-result strong { color: var(--wl-lb-hl); }
body.wl-light-bands .wl-bp-buy .wl-amount-panel { background: #fff; color: var(--color-text); }
body.wl-light-bands .wl-bp-buy .wl-amount-panel :is(label, p, span, strong, small, div):not(.wl-amount-cta *):not(.voucher-continue-btn):not(.amount-chip.active) { color: inherit; }
body.wl-light-bands .wl-bp-buy .wl-amount-panel .amount-chip:not(.active) { background: #fff; color: var(--color-text); }
body.wl-light-bands .wl-bp-buy .wl-amount-panel .voucher-continue-btn { color: var(--color-on-accent, #fff); }
/* "Your first gift card" tile uses the accent colour, so its text must use the on-accent colour. */
body.wl-light-bands .wl-bp .wl-bp-first :is(strong, span, p, a) { color: var(--color-on-accent); }
/* The support panel is an accent-coloured block: its heading takes the on-accent colour too. */
body.wl-light-bands main .support-panel :is(h2, p, label, small, a:not(.btn)) { color: var(--color-on-accent); }

/* The small line beside the star at the top of a hero was white on the light page. Use the theme's highlight colour. */
body.wl-light-bands :is(.hero-section .hero-content, .brand-banner) .high-lights, body.wl-light-bands :is(.hero-section .hero-content, .brand-banner) .high-lights span { color: var(--wl-lb-hl); }
