/*
 * Spendstream theme for the v2 whitelabel design (the Spendstream demo site).
 * Colours come from spendstream.co.uk: cream #fbfaf7, ink #1a1f2e, navy #1f3a5f,
 * coral #e2725b. Tokens are set in wl_v2_theme_tokens(); this file covers the font
 * and the places where the base design hard-codes its own look.
 * Spendstream's headings use Neue Montreal (a licensed font); DM Sans, Spendstream's
 * body font (SIL Open Font Licence), is used throughout here.
 */
@font-face {
  font-family: "DMSans";
  src: url("../fonts/DMSans-Variable.woff2?v=1") format("woff2-variations");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

.wl-theme-spendstream { background: var(--color-canvas); color: var(--color-text); }
.wl-theme-spendstream,
.wl-theme-spendstream button,
.wl-theme-spendstream input,
.wl-theme-spendstream select,
.wl-theme-spendstream textarea { font-family: var(--font-family-brand); }

/* Headings: medium weight with tight tracking, as on spendstream.co.uk. */
.wl-theme-spendstream :is(h1, h2, h3, .wl-h3, .wl-h4) { font-family: var(--font-family-brand); font-weight: 600; letter-spacing: -0.02em; }
.wl-theme-spendstream .fw-800 { font-weight: 600; }

/* Highlighted words: solid coral. Deeper coral on light backgrounds, lighter coral on navy. */
.wl-theme-spendstream .gradient-text { background: none; -webkit-text-fill-color: currentColor; color: #b9503a; }
.wl-theme-spendstream :is(.wl-welcome, .wl-bp, .cta-section, .brand-banner, .reward-section) .gradient-text,
.wl-theme-spendstream .wl-bp-rate { color: #f0907c; -webkit-text-fill-color: #f0907c; }
.wl-theme-spendstream .wl-stat-extra { color: #f0907c; }
.wl-theme-spendstream .wl-bp-last a { color: #f7b4a5; }

/* Buttons and controls: flat with 6px corners. */
.wl-theme-spendstream :is(.btn, .wl-usual-btn, .voucher-continue-btn, .amount-chip, .wl-buy-bar-btn, .wl-again-row .btn),
.wl-theme-spendstream .header-search-form button,
.wl-theme-spendstream .wl-welcome-search button { border-radius: 6px !important; }
.wl-theme-spendstream .header-search-form,
.wl-theme-spendstream .wl-welcome-search { border-radius: 8px; }
.wl-theme-spendstream .btn { font-weight: 600; }
.wl-theme-spendstream .dark-green-btn,
.wl-theme-spendstream .voucher-continue-btn { background: var(--color-brand-dark) !important; color: #fff !important; }
.wl-theme-spendstream .dark-green-btn:hover,
.wl-theme-spendstream .voucher-continue-btn:hover { background: var(--color-brand-mid) !important; }
.wl-theme-spendstream .wl-text-btn { color: var(--color-brand-dark); }
.wl-theme-spendstream :is(.wl-welcome, .wl-bp, .cta-section) .wl-text-btn { color: #fff; }
.wl-theme-spendstream .wl-welcome-card .wl-text-btn { color: var(--color-brand-dark); }

/* Navy bands: plain navy, with the design's green/yellow imagery removed. */
.wl-theme-spendstream .cta-section { background: var(--color-brand-dark); }
.wl-theme-spendstream .brand-detail-banner,
.wl-theme-spendstream .brand-listing-banner { background-image: none; background-color: var(--color-brand-dark); }
.wl-theme-spendstream .wl-welcome::after,
.wl-theme-spendstream .wl-bp::after { border-color: rgba(226, 114, 91, 0.12); }

/* Cards, tags and badges. */
.wl-theme-spendstream .card-box { border: 1px solid var(--color-border); box-shadow: none; }
.wl-theme-spendstream .card-box .gradient-text { color: #b9503a; }
.wl-theme-spendstream .badge.ending-soon,
.wl-theme-spendstream .wl-bp-badge { background: #b9503a !important; color: #fff !important; }
.wl-theme-spendstream .wl-news { box-shadow: 0 14px 30px rgba(26, 31, 46, 0.12); }
.wl-theme-spendstream .menu-btn, .wl-theme-spendstream .step-pill, .wl-theme-spendstream .wl-buy-bar-btn { border-radius: 6px !important; }

/* Page banners (My vouchers, Help, Legal): navy with white text instead of the accent colour. */
.wl-theme-spendstream .subpage-brand-banner { background-color: var(--color-brand-dark); }
.wl-theme-spendstream .subpage-brand-banner :is(h1, p, .ft-16) { color: #fff; }
.wl-theme-spendstream .subpage-brand-banner .gradient-text { color: #f0907c; -webkit-text-fill-color: #f0907c; }

/* Text on coral buttons: ink, not navy (navy on coral is 3.7:1; ink is 5.1:1). */
.wl-theme-spendstream form.header-search-form button:not(:hover) span,
.wl-theme-spendstream header .menu-btn:not(:hover) span { color: var(--color-on-accent); }

/* Coral support panel (help, legal): ink text and links, full-strength notes. */
.wl-theme-spendstream .support-panel,
.wl-theme-spendstream .support-panel :is(h2, p, label, small, a:not(.btn)) { color: var(--color-on-accent); opacity: 1; }
.wl-theme-spendstream .support-panel a:not(.btn) { text-decoration: underline; text-underline-offset: 2px; }
.wl-theme-spendstream .legal-nav a { color: var(--color-on-accent); }
/* Main buttons on the navy bands: coral, so they don't disappear into the navy. */
.wl-theme-spendstream :is(.wl-welcome, .wl-bp, .cta-section, .wl-feat-band) .dark-green-btn { background: var(--color-accent) !important; color: var(--color-on-accent) !important; }
.wl-theme-spendstream :is(.wl-welcome, .wl-bp, .cta-section, .wl-feat-band) .dark-green-btn:hover { background: var(--color-accent-strong) !important; }
