/*
 * v2 whitelabel design: publisher-neutral additions to the Raffle House Rewards design.
 *
 * Loaded after tokens/components/responsive. Colours come from the :root tokens that
 * the v2 header writes from each publisher's style JSON (see wl_v2_tokens()).
 * Sections:
 *   1. Shared pieces the design did not have (demo bar, logo, account link, text button)
 *   2. Home and how-it-works additions (static hero image, calculator, brand marquee)
 *   3. Brand listing additions (categories, limited-time deals, empty state)
 *   4. My vouchers, help and legal
 *   5. Old page markup restyled to the new design (brand page, purchase modals,
 *      account pages, landing pages, policy pages)
 */

/* Older stylesheets ask for "Plus Jakarta Sans" by name: serve it from the bundled file. */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-Variable.woff2?v=20") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-on-dark: #ffffff;
  --wl-radius: 20px;
  --wl-card-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  --black: var(--color-text);
  --darkgreen: var(--color-brand-dark);
  --greenyellow: var(--color-accent);
}

/* ---------- 1. Shared ---------- */

.wl-demo-bar {
  background: var(--color-surface);
  color: var(--color-text);
  font: 500 14px/1.4 var(--font-family-brand);
  text-align: center;
  padding: 8px 16px;
}
.wl-demo-bar a { color: inherit; text-decoration: underline; }

header .header-logo { max-width: 220px; text-align: center; }
header .header-logo .wl-logo { max-height: 43px; width: auto; max-width: 100%; display: inline-block; }
header .header-logo:not(.has-trust):before { display: none; }
footer .wl-logo { max-height: 40px; width: auto; max-width: 240px; }
.wl-logo-text { font-weight: 800; font-size: 20px; color: var(--color-brand-dark); }
header .wl-stars { color: #00b67a; letter-spacing: 2px; }
header .right-menu ul li a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

.btn.dark-green-btn,
.btn.light-green-btn,
header .menu-btn { white-space: nowrap; }
.btn.light-green-btn,
header .menu-btn,
.how-does-section .step-box .green-badge,
.voucher-card .btn { color: var(--color-on-accent); }
.wl-icon { flex: 0 0 auto; }
header .menu-btn .wl-icon,
form.header-search-form button .wl-icon { margin-left: 4px; transition: var(--transition-fast); }
header .menu-btn:hover .wl-icon,
form.header-search-form button:hover .wl-icon { transform: translateX(3px); }

.wl-account-link { display: flex !important; flex-direction: column; line-height: 1.15; }
.wl-account-link .wl-account-name { font-size: 14px; }
.wl-account-link .wl-account-balance { font-weight: 700; }

.btn.wl-text-btn {
  background: transparent;
  color: var(--color-brand-dark);
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-left: 12px;
  padding-right: 12px;
}
.btn.wl-text-btn:hover { color: var(--color-brand-mid); text-decoration: underline; }
.hero-section .hero-btn { gap: 12px; align-items: center; }

footer .footer-text .left a { color: inherit; text-decoration: underline; }
footer .footer-text .left span { margin-top: 4px; }

.gradient-text s,
.wl-was { color: var(--color-text); opacity: 0.6; font-weight: 500; -webkit-text-fill-color: currentColor; }

/* ---------- 2. Home and how-it-works ---------- */

.wl-thumb-static { cursor: default; }
.hero-section .wl-thumb-static .video-content { padding-left: 0; }

.wl-calculator-section { padding: 80px 0; background: var(--color-surface); }
.wl-calculator-section .cashback-estimator { margin: 0 auto; }
.wl-calculator-section .cashback-estimator h2 { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -0.02em; }
.wl-v2 .cashback-estimator { font-family: var(--font-family-brand); border-radius: var(--wl-radius); overflow: hidden; }

.marquee-section .marquee-row .wl-logo-tile {
  width: 155px;
  height: 120px;
  border-radius: 14px;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-shadow: var(--wl-card-shadow);
}
.marquee-section .marquee-row .wl-logo-tile img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ---------- 3. Brand listing ---------- */

.brand-listing-banner .wl-banner-logos {
  display: grid;
  grid-template-columns: repeat(4, 96px);
  gap: 14px;
  justify-content: end;
}
.brand-listing-banner .wl-banner-logos span {
  width: 96px;
  height: 72px;
  border-radius: 12px;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: var(--wl-card-shadow);
}
.brand-listing-banner .wl-banner-logos img { max-width: 100%; max-height: 100%; object-fit: contain; }

.category-section .cate-box { cursor: pointer; border: 0; width: 100%; font: inherit; }
.category-section .cate-box.is-active { outline: 3px solid var(--color-brand-dark); outline-offset: -3px; }
.category-section .cate-box .wl-cat-initial {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-brand-dark);
  font-weight: 800;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.wl-deals { padding: 40px 0 0; }
.wl-deal {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--color-white);
  border-radius: var(--wl-radius);
  padding: 20px 24px;
  box-shadow: var(--wl-card-shadow);
}
.wl-deal + .wl-deal { margin-top: 16px; }
.wl-deal .wl-deal-logo { width: 96px; height: 72px; object-fit: contain; flex: 0 0 auto; }
.wl-deal h3 { font-size: 22px; margin-bottom: 4px; }
.wl-deal p { margin: 0; }
.wl-deal .wl-deal-timer {
  margin-left: auto;
  text-align: center;
  background: var(--color-accent);
  color: var(--color-on-accent);
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 700;
  min-width: 150px;
}
.wl-deal .wl-deal-timer small { display: block; font-weight: 500; font-size: 13px; }

.card-section .wl-reset {
  background: none;
  border: 0;
  color: var(--color-brand-dark);
  text-decoration: underline;
  font-weight: 600;
  padding: 0;
}
.card-section .wl-empty { grid-column: 1 / -1; padding: 24px 0; }
.card-section .wl-loading { opacity: 0.45; transition: opacity 0.2s; }
.card-section .search { flex: 1 1 auto; }

/* ---------- 4. My vouchers, help, legal ---------- */

.wl-v2 .faq-list details p a { color: var(--color-brand-dark); text-decoration: underline; }
.help-page .support-panel .help-status { margin-top: 12px; }
.help-page .support-panel small { display: block; margin-top: 6px; opacity: 0.75; }
.wl-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.legal-page .wl-legal-doc { scroll-margin-top: 120px; }
.legal-page .wl-legal-doc + .wl-legal-doc { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--color-border); }
.legal-page .wl-legal-doc h1,
.legal-page .wl-legal-doc h2 { font-size: clamp(24px, 2.4vw, 32px); }
.legal-page .wl-legal-doc h3,
.legal-page .wl-legal-doc h4 { font-size: 20px; margin-top: 24px; }
.legal-page .wl-legal-doc table { width: 100%; margin: 16px 0; border-collapse: collapse; font-size: 15px; }
.legal-page .wl-legal-doc th,
.legal-page .wl-legal-doc td { border: 1px solid var(--color-border); padding: 8px 10px; vertical-align: top; }
.legal-page .wl-legal-doc a { color: var(--color-brand-dark); text-decoration: underline; word-break: break-word; }
/* Legal documents read at a normal 16px, on every site (theme type scales must not enlarge them). */
.legal-page .wl-legal-doc :is(p, li, dd, dt, blockquote) { font-size: 16px !important; line-height: 1.65 !important; font-weight: 400 !important; }
.legal-page .wl-legal-doc.wl-legal-doc :is(h1, h2) { font-size: clamp(22px, 2.2vw, 26px) !important; }
.legal-page .wl-legal-doc :is(h3, h4) { font-size: 18px !important; }
.legal-page .wl-legal-doc table { font-size: 14px; }
.legal-page .wl-legal-doc section { padding: 0 !important; background: none !important; }
.legal-page .wl-legal-doc .container { padding: 0; max-width: none; }

/* ---------- 5. Old page markup in the new design ---------- */

.wl-v2-legacy {
  font-family: var(--font-family-brand);
  color: var(--color-text);
  background: var(--color-canvas);
}
.wl-v2-legacy main.main { background: var(--color-canvas); }
.wl-v2-legacy h1, .wl-v2-legacy h2, .wl-v2-legacy h3, .wl-v2-legacy h4, .wl-v2-legacy h5, .wl-v2-legacy h6 {
  font-family: var(--font-family-brand);
  letter-spacing: -0.02em;
}
.wl-v2-legacy .btn-get-started,
.wl-v2-legacy .btn-getstarted {
  background: var(--color-brand-dark) !important;
  color: var(--color-white) !important;
  border-radius: 50px !important;
  border: 0;
  font-family: var(--font-family-brand);
  font-weight: 600;
}
.wl-v2-legacy .btn-get-started:hover,
.wl-v2-legacy .btn-getstarted:hover { background: var(--color-brand-mid) !important; }
.wl-v2-legacy [data-aos] { opacity: 1 !important; transform: none !important; }

/* Brand page: banner, logo and offer */
.wl-v2-legacy #brands_details .back_site {
  background: linear-gradient(180deg, var(--color-brand-dark) 0, var(--color-brand-dark) 210px, var(--color-canvas) 210px) !important;
  padding: 70px 0 30px;
}
.wl-v2-legacy #brands_details .back_site .left_dots,
.wl-v2-legacy #brands_details .back_site .right_dots,
.wl-v2-legacy #brands_details .back_site svg circle { opacity: 0.6; }
.wl-v2-legacy #brands_details .white_sec {
  background: transparent !important;
  box-shadow: none !important;
  padding-top: 0;
}
.wl-v2-legacy #brands_details .center-img {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto 28px;
  border: 0 !important;
}
.wl-v2-legacy #brands_details .center-img img { max-width: 76%; max-height: 76%; object-fit: contain; }
.wl-v2-legacy #brands_details .form_se h5 {
  font-family: var(--font-family-brand);
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.15;
  font-weight: 700;
  color: var(--color-text) !important;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.wl-v2-legacy #brands_details .form_se h5 .text-danger { color: var(--color-brand-dark) !important; }

/* Brand page: information columns and "how it works" */
.wl-v2-legacy #brands_details .how_works .container,
.wl-v2-legacy #brands_details #how_works .container { max-width: 1240px; }
.wl-v2-legacy #brands_details .how_works .ins_start,
.wl-v2-legacy #brands_details .how_works .accordion-item,
.wl-v2-legacy #brands_details .how_works .how_it_box,
.wl-v2-legacy #brands_details .how_works .grey_bg {
  border-radius: var(--wl-radius);
}
.wl-v2-legacy #brands_details .how_works h6 { font-size: 20px; font-weight: 700; }
.wl-v2-legacy #brands_details .how_works a { color: var(--color-brand-dark); }

/* Purchase and payment modals keep their behaviour; only the look changes */
.wl-v2-legacy .modal-content {
  border-radius: 24px;
  border: 0;
  font-family: var(--font-family-brand);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}
.wl-v2-legacy .modal-content h1, .wl-v2-legacy .modal-content h2,
.wl-v2-legacy .modal-content h3, .wl-v2-legacy .modal-content h4,
.wl-v2-legacy .modal-content h5 { color: var(--color-text); }
.wl-v2-legacy .modal-content .form-control,
.wl-v2-legacy .modal-content .form-select {
  border-radius: 12px;
  border-color: var(--color-border);
  min-height: 48px;
}
.wl-v2-legacy .modal-content .form-control:focus,
.wl-v2-legacy .modal-content .form-select:focus {
  border-color: var(--color-brand-dark);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

/* Open-your-gift-card modal (common/reveal-gift-card.php): sending state, six code boxes that fit any phone, resend line */
#reveal-gift-card .modal-body { padding: 8px 24px 28px; }
#reveal-gift-card .wl-reveal-sending { display: flex; align-items: center; gap: 14px; padding: 24px 0; }
#reveal-gift-card .wl-reveal-sending p { margin: 0; font-size: 1.05rem; color: var(--color-text); }
#reveal-gift-card .wl-reveal-sending .spinner-border { width: 1.6rem; height: 1.6rem; border-width: 3px; color: var(--color-brand-dark); flex: none; }
#reveal-gift-card .login-title { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; }
#reveal-gift-card .login-param { margin: 8px 0 18px; font-size: 1rem; line-height: 1.5; color: var(--color-text); }
#reveal-gift-card .wl-reveal-email { overflow-wrap: anywhere; }
#reveal-gift-card .verification_code_reveal .otp-field { display: flex; gap: 8px; justify-content: space-between; margin: 0; }
#reveal-gift-card .verification_code_reveal .otp-field input { flex: 1 1 0; min-width: 0; width: auto; max-width: 56px; height: 56px; padding: 0; border: 1.5px solid var(--color-border); border-radius: 12px; font-size: 1.4rem; font-weight: 700; text-align: center; color: var(--color-text); background: #fff; }
#reveal-gift-card .verification_code_reveal .otp-field input:focus { outline: 0; border-color: var(--color-brand-dark); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1); }
#reveal-gift-card .wl-reveal-error { margin: 0 0 12px; font-size: 0.95rem; font-weight: 600; color: #b42318; }
#reveal-gift-card :is(.verification_btn, .wl-reveal-retry) { display: block; width: 100% !important; box-sizing: border-box; }
#reveal-gift-card .verification_btn[disabled] { opacity: 0.5; cursor: not-allowed; }
#reveal-gift-card .wl-reveal-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 14px 0 0; font-size: 0.95rem; color: var(--color-text); }
#reveal-gift-card .wl-reveal-resend { padding: 6px 0; min-height: 32px; border: 0; background: none; font: inherit; font-weight: 700; text-decoration: underline; color: var(--color-brand-dark); cursor: pointer; }
#reveal-gift-card .wl-reveal-resend[disabled] { color: inherit; opacity: 0.6; text-decoration: none; cursor: default; }
#reveal-gift-card .wl-reveal-help { margin: 4px 0 0; font-size: 0.9rem; opacity: 0.75; }
#reveal-gift-card .wl-reveal-failed-msg { margin: 0 0 14px; font-size: 1rem; color: var(--color-text); }
@media (max-width: 400px) {
  #reveal-gift-card .modal-body { padding: 4px 16px 22px; }
  #reveal-gift-card .verification_code_reveal .otp-field { gap: 6px; }
  #reveal-gift-card .verification_code_reveal .otp-field input { height: 50px; font-size: 1.25rem; }
}

/* My vouchers: voucher cards from the old markup (the "load more" script adds the same markup) */
.vouchers-page #choose_brands { background: transparent !important; padding: 60px 0 40px; }
.vouchers-page #choose_brands .stores_text h3 { font-size: clamp(28px, 3vw, 40px); font-weight: 700; color: var(--color-text) !important; }
.vouchers-page #choose_brands .stores_text p { color: var(--color-text) !important; opacity: 0.8; }
.vouchers-page .card_box {
  background: var(--color-white);
  border-radius: var(--wl-radius);
  padding: 12px 12px 16px;
  box-shadow: var(--wl-card-shadow);
  border: 0;
  height: 100%;
}
.vouchers-page .card_box .layer { display: none; }
.vouchers-page .card_box .card_img {
  background: var(--color-surface);
  border-radius: 14px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vouchers-page .card_box .card_img img { max-height: 110px; max-width: 80%; object-fit: contain; width: auto; height: auto; border-radius: 0 !important; padding: 0 !important; }
.vouchers-page .card_box .gft_text { text-align: center; padding-top: 12px; }
.vouchers-page .card_box .gft_head :is(h5, h2) { font-size: 18px; font-weight: 700; color: var(--color-text) !important; margin: 0 0 4px; }
.vouchers-page .card_box .price_sec :is(h6, .wl-voucher-price) { font-size: 22px; font-weight: 800; color: var(--color-text) !important; }
.vouchers-page .card_box .price_sec p { font-size: 13px; font-style: italic; opacity: 0.7; margin-bottom: 10px; }
.vouchers-page .card_box .reveal_gift .btn-get-started {
  display: block;
  width: 100%;
  background: var(--color-accent) !important;
  color: var(--color-on-accent) !important;
  border-radius: 50px;
  font-weight: 700;
  padding: 10px 16px;
  text-decoration: none;
}
.vouchers-page .card_box .small_text { display: block; margin-top: 10px; font-size: 13px; }
.vouchers-page .loadMore,
.vouchers-page .view-more a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--color-brand-dark) !important;
}
.vouchers-page .view-more { text-align: center; padding-top: 32px; }
.vouchers-page .view-more svg path { stroke: currentColor; }
.vouchers-page .modal-content { border-radius: 24px; border: 0; font-family: var(--font-family-brand); }
.vouchers-page .modal-content .btn-get-started {
  background: var(--color-brand-dark) !important;
  color: var(--color-white) !important;
  border-radius: 50px;
  padding: 12px 20px;
}
.vouchers-page .modal-content .form-control { border-radius: 12px; min-height: 48px; }

@media (max-width: 991px) {
  .brand-listing-banner .wl-banner-logos { display: none; }
  .wl-deal { flex-wrap: wrap; }
  .wl-deal .wl-deal-timer { margin-left: 0; width: 100%; }
  .wl-calculator-section { padding: 48px 0; }
}
@media (max-width: 767px) {
  .hero-section .hero-btn { flex-direction: column; align-items: stretch; }
  .hero-section .hero-btn .btn { text-align: center; justify-content: center; }
  .wl-v2-legacy #brands_details .back_site {
    background: linear-gradient(180deg, var(--color-brand-dark) 0, var(--color-brand-dark) 150px, var(--color-canvas) 150px) !important;
    padding-top: 50px;
  }
  .wl-v2-legacy #brands_details .center-img { width: 116px; height: 116px; }
  footer .footer-text { flex-direction: column; gap: 12px; }
}

/* Wide containers: keep a gutter at large widths (the design's 1540px container touched the edges at 1440px). */
@media (min-width: 1400px) {
  .big-container.container { padding-left: 40px; padding-right: 40px; }
}
.marquee-section .marquee-row .regular .wl-logo-tile img {
  width: auto;
  height: auto;
  border-radius: 0;
  object-fit: contain;
}

/* Old stylesheet variables point at the new font. */
:root {
  --default-font: var(--font-family-brand);
  --heading-font: var(--font-family-brand);
  --nav-font: var(--font-family-brand);
}
.wl-v2-legacy p, .wl-v2-legacy li, .wl-v2-legacy span, .wl-v2-legacy a, .wl-v2-legacy label,
.wl-v2-legacy button, .wl-v2-legacy input, .wl-v2-legacy select, .wl-v2-legacy textarea {
  font-family: var(--font-family-brand);
}
header .header-search-form .search-icon { width: 18px !important; height: 18px !important; position: static; }

/* Brand page: offer card and logo */
.wl-v2-legacy #brands_details .center-div.brand-details-img { background: transparent !important; box-shadow: none !important; }
.wl-v2-legacy #brands_details .center-img img { width: 76%; height: auto; }

/* Brand page: important information as the design's dark information panel */
.wl-v2-legacy #brands_details #how_works { background: transparent !important; margin: 20px 0 60px !important; }
.wl-v2-legacy #brands_details #how_works > .container {
  background: var(--color-brand-dark);
  color: var(--color-on-dark);
  border-radius: 24px;
  padding: 44px 48px;
}
.wl-v2-legacy #brands_details #how_works h6,
.wl-v2-legacy #brands_details #how_works .accordion-button {
  color: var(--color-accent) !important;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}
.wl-v2-legacy #brands_details #how_works,
.wl-v2-legacy #brands_details #how_works p,
.wl-v2-legacy #brands_details #how_works li,
.wl-v2-legacy #brands_details #how_works div { color: var(--color-on-dark); }
.wl-v2-legacy #brands_details #how_works a { color: var(--color-accent) !important; text-decoration: underline; }
.wl-v2-legacy #brands_details #how_works .ins_start { padding: 0 0 18px; border: 0; background: transparent; }
.wl-v2-legacy #brands_details #how_works .accordion,
.wl-v2-legacy #brands_details #how_works .accordion-item,
.wl-v2-legacy #brands_details #how_works .accordion-button,
.wl-v2-legacy #brands_details #how_works .accordion-body { background: transparent !important; border: 0; box-shadow: none; padding-left: 0; padding-right: 0; }
.wl-v2-legacy #brands_details #how_works .accordion-button::after { filter: invert(1); }
.wl-v2-legacy #brands_details #how_works .hows_works {
  background: rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px;
  padding: 28px;
}
.wl-v2-legacy #brands_details #how_works .bullet-number {
  background: var(--color-accent) !important;
  color: var(--color-on-accent) !important;
}

/* Brand page: other popular brands as design cards */
.wl-v2-legacy #fav_stores { background: var(--color-surface) !important; padding: 80px 0; }
.wl-v2-legacy #fav_stores h3 { font-size: clamp(28px, 3vw, 44px); font-weight: 700; color: var(--color-text) !important; }
.wl-v2-legacy #fav_stores .stores_card {
  background: var(--color-white);
  border-radius: var(--wl-radius);
  padding: 10px 10px 16px;
  box-shadow: var(--wl-card-shadow);
  border: 0;
}
.wl-v2-legacy #fav_stores .stores_card .c_img {
  background: var(--color-surface);
  border-radius: 14px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.wl-v2-legacy #fav_stores .stores_card .c_img img { max-height: 96px; max-width: 80%; object-fit: contain; border: 0; border-radius: 0; }
.wl-v2-legacy #fav_stores .stores_card .card_bottom { padding: 12px 6px 0; }
.wl-v2-legacy #fav_stores .stores_card h6,
.wl-v2-legacy #fav_stores .stores_card p { color: var(--color-brand-dark) !important; font-weight: 600; font-size: 15px; }
.wl-v2-legacy #fav_stores .swiper-button-next,
.wl-v2-legacy #fav_stores .swiper-button-prev { background: var(--color-white) !important; border-radius: 50%; }
.wl-v2-legacy #brands_details > section.how_works:last-of-type { background: transparent !important; }
@media (max-width: 767px) {
  .wl-v2-legacy #brands_details #how_works > .container { padding: 28px 20px; border-radius: 0; }
}
.amount-modal.filter .modal-dialog li button {
  background: none;
  border: 0;
  width: 100%;
  font: inherit;
  color: var(--color-text);
}
.amount-modal.filter .modal-dialog li button:hover { color: var(--color-brand-dark); text-decoration: underline; }

/* Headings are h3 where the design used h4, so the page outline has no skipped levels; same look. */
h3.wl-h4:not(.ft-24) { font-size: 20px; line-height: 30px; font-weight: 700; letter-spacing: -0.5px; }
.hero-section .thumb .wl-video-title { font-size: 24px; line-height: 34px; font-weight: 700; color: var(--color-white); margin: 0; }

/* Header: three columns (search | logo | menu) that never overflow, at every width. */
header#header > .container {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 24px;
  max-width: 1440px;
  padding-left: 24px;
  padding-right: 24px;
}
header#header .left-search { justify-self: start; max-width: 440px; width: 100%; display: flex; align-items: center; }
header#header .right-menu { justify-self: end; max-width: none; width: auto; }
header#header .header-logo { justify-self: center; }
@media (max-width: 1279px) {
  header#header .right-menu ul { column-gap: 18px; }
  header#header form.header-search-form button span { display: none; }
  header#header form.header-search-form button { padding: 0 12px; }
}
@media (max-width: 1099px) and (min-width: 992px) {
  header#header .left-search form.header-search-form { display: none !important; }
  header#header .header-logo .wl-logo { max-height: 36px; }
}
@media (max-width: 991px) {
  header#header > .container { padding-left: 16px; padding-right: 16px; column-gap: 12px; }
}

/* Comfortable tap targets (at least 44px high) for small links and controls. */
.how-does-section .step-box .link,
.wl-deal .link,
.wl-v2-legacy #brands_details #how_works .accordion-button { min-height: 44px; display: inline-flex; align-items: center; }
.wl-demo-bar a { display: inline-block; padding: 6px 0; }
.wl-v2 .cashback-estimator__range { min-height: 28px; }

/* Brand page on small screens: keep the logo clear of the offer and keep the button on one or two lines. */
@media (max-width: 767px) {
  .wl-v2-legacy #brands_details .back_site .container-fluid { padding-left: 16px; padding-right: 16px; }
  .wl-v2-legacy #brands_details .center-div.brand-details-img,
  .wl-v2-legacy #brands_details .white_sec { width: 100%; padding: 0 !important; margin: 0 !important; }
  .wl-v2-legacy #brands_details .center-img { position: relative !important; top: auto !important; left: auto !important; transform: none !important; margin: 0 auto 20px !important; }
  .wl-v2-legacy #brands_details .form_se { padding-top: 0 !important; margin-top: 0 !important; }
  .wl-v2-legacy #brands_details .form_se h5 { font-size: 28px; margin-bottom: 20px; }
  .wl-v2-legacy #brands_details .form_se .btn-get-started { width: 100%; max-width: 340px; padding: 14px 20px; white-space: normal; }
  .wl-v2-legacy #brands_details .left_dots,
  .wl-v2-legacy #brands_details .right_dots { display: none !important; }
}

/* Brand page "other popular brands": equal-width cards. */
.wl-v2-legacy #fav_stores .swiper-slide { height: auto; }
.wl-v2-legacy #fav_stores .swiper-slide > a,
.wl-v2-legacy #fav_stores .stores_card { display: block; width: 100%; height: 100%; }
.wl-v2-legacy #fav_stores .stores_card .c_img img { width: auto; }

/* Landing pages: stop the old grid's negative margins pushing past the screen edge. */
@media (max-width: 767px) {
  .wl-v2-legacy .container > .row { margin-left: 0; margin-right: 0; }
}
header#header form.header-search-form input { height: 100%; align-self: stretch; }

/* The old stylesheet pushed the page down for its fixed header; the new header is sticky. */
.wl-v2 main.main { margin-top: 0 !important; }
@media (max-width: 767px) {
  .wl-v2-legacy #brands_details .back_site {
    padding-top: 56px !important;
    background: linear-gradient(180deg, var(--color-brand-dark) 0, var(--color-brand-dark) 130px, var(--color-canvas) 130px) !important;
  }
  .wl-v2-legacy #brands_details .center-div { top: 0 !important; }
}
@media (max-width: 1099px) and (min-width: 992px) {
  header#header > .container { grid-template-columns: auto minmax(0, 1fr); }
  header#header .left-search { display: none; }
  header#header .header-logo { justify-self: start; }
}
@media (max-width: 767px) {
  .wl-v2-legacy #brands_details .center-img { top: 0 !important; }
  .wl-v2-legacy #brands_details .form_se .btn-get-started { font-size: 16px; letter-spacing: 0; }
}
.wl-v2-legacy #brands_details .back_site { margin-bottom: 24px !important; }
/* Brand search in the homepage hero on phones and tablets (the old design had it; the header search is desktop-only). */
.hero-section form.wl-hero-search { max-width: 480px; width: 100%; margin: 0 auto 16px; background: var(--color-white); box-shadow: var(--wl-card-shadow); }
.hero-section form.wl-hero-search input { height: 100%; flex: 1 1 auto; min-width: 0; border: 0; background: transparent; outline: none; }

/* ---------- Brand page: amount picker on the page (moved from the old pop-up by brand.js) ---------- */
.wl-inline-amount #brands_details .buy_for_me,
.wl-inline-amount #brands_details .form_se .d-none-hidden,
.wl-inline-amount #brands_details .form_se .discount_type_text { display: none !important; }
.wl-amount-panel {
  max-width: 560px;
  margin: 8px auto 0;
  background: var(--color-white);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  padding: 28px 28px 24px;
  text-align: left;
}
.wl-amount-panel .wl-amount-title { font-size: 24px; line-height: 32px; font-weight: 700; margin: 0 0 18px; letter-spacing: -0.5px; text-align: center; }
.wl-amount-panel .voucher-brand-box {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--color-border); border-radius: 14px; padding: 12px 14px; margin-bottom: 20px;
}
.wl-amount-panel .voucher-brand-logo { width: 56px; height: 56px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.wl-amount-panel .voucher-brand-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.wl-amount-panel .voucher-brand-name { font-weight: 700; font-size: 16px; }
.wl-amount-panel .voucher-brand-sub { font-size: 13px; opacity: 0.7; }
.wl-amount-panel .voucher-amount-label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.wl-amount-panel .voucher-amount-input-group { display: flex; align-items: stretch; border: 2px solid var(--color-border); border-radius: 14px; overflow: hidden; background: var(--color-white); }
.wl-amount-panel .voucher-amount-input-group:focus-within { border-color: var(--color-brand-dark); }
.wl-amount-panel .voucher-amount-prefix { display: flex; align-items: center; padding: 0 14px; font-weight: 700; background: var(--color-surface); }
.wl-amount-panel .voucher-amount-input,
.wl-amount-panel .voucher-amount-select { border: 0 !important; box-shadow: none !important; min-height: 52px; font-size: 18px; font-weight: 600; }
.wl-amount-panel .voucher-amount-select { border: 2px solid var(--color-border) !important; border-radius: 14px; }
.wl-amount-panel .min-max-text { font-size: 13px; opacity: 0.7; margin: 8px 0 12px; }
.wl-amount-panel .amount-chip-row { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.wl-amount-panel .amount-chip {
  min-width: 72px; min-height: 44px; border-radius: 40px; border: 2px solid var(--color-border);
  background: var(--color-white); font-weight: 700; padding: 8px 16px;
}
.wl-amount-panel .amount-chip.active,
.wl-amount-panel .amount-chip:hover { border-color: var(--color-brand-dark); background: var(--color-surface); }
.wl-amount-panel .cashback-highlight-box {
  display: flex; align-items: center; gap: 12px; border-radius: 16px; padding: 14px 16px; margin-bottom: 18px;
  background: var(--color-surface);
}
.wl-amount-panel .cashback-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--color-accent); color: var(--color-on-accent); flex: 0 0 auto; }
.wl-amount-panel .cashback-text p { margin: 0; font-size: 13px; opacity: 0.75; }
.wl-amount-panel .cashback-text p:first-child { font-size: 18px !important; font-weight: 700; opacity: 1; color: var(--color-text); }
.wl-amount-panel .voucher-continue-btn {
  width: 100%; max-width: none; min-height: 54px; border-radius: 40px !important; border: 0;
  background: var(--color-brand-dark) !important; color: var(--color-white) !important; font-weight: 700; font-size: 17px;
}
.wl-amount-panel .voucher-continue-btn:hover { background: var(--color-brand-mid) !important; }

.wl-buy-bar { display: none; }
@media (max-width: 767px) {
  .wl-amount-panel { padding: 20px 16px; border-radius: 20px; }
  .wl-buy-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--color-white); box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(110%); transition: transform 0.25s ease;
  }
  .wl-buy-bar.is-visible { transform: translateY(0); }
  .modal-open .wl-buy-bar { transform: translateY(110%); }
  .wl-buy-bar-text { display: flex; flex-direction: column; min-width: 0; font-size: 13px; line-height: 1.3; }
  .wl-buy-bar-text strong { font-size: 16px; }
  .wl-buy-bar-btn { flex: 0 0 auto; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .wl-buy-bar { transition: none; } }
/* Brand banner: logo overlaps the bottom of the coloured band at every width. */
.wl-v2-legacy #brands_details .back_site {
  padding-top: 110px !important;
  background: linear-gradient(180deg, var(--color-brand-dark) 0, var(--color-brand-dark) 190px, var(--color-canvas) 190px) !important;
}
.wl-v2-legacy #brands_details .center-div,
.wl-v2-legacy #brands_details .center-img { top: 0 !important; }
.wl-v2-legacy #brands_details .center-img { position: relative !important; margin: 0 auto 28px !important; }
@media (max-width: 767px) {
  .wl-v2-legacy #brands_details .back_site {
    padding-top: 56px !important;
    background: linear-gradient(180deg, var(--color-brand-dark) 0, var(--color-brand-dark) 130px, var(--color-canvas) 130px) !important;
  }
}
.wl-buy-bar-text { flex: 1 1 auto; }
.wl-buy-bar .wl-buy-bar-btn { width: auto !important; flex: 0 0 auto; white-space: nowrap; padding-left: 22px; padding-right: 22px; }
.wl-v2-legacy #brands_details .back_site { height: auto !important; min-height: 0 !important; }

/* ---------- All brands: paging, tags, sticky filters ---------- */
.card-list .card-box[hidden] { display: none !important; }
.wl-load-more-wrap { margin-top: -20px; }
.card-box .wl-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 10px 8px; }
.card-box .wl-tag {
  font-size: 12px; line-height: 1; font-weight: 600; padding: 5px 8px; border-radius: 20px;
  background: var(--color-surface); color: var(--color-text); opacity: 0.85;
}
@media (max-width: 767px) {
  .card-section.brand-page form.wl-brand-filters {
    position: sticky; top: 64px; z-index: 50;
    background: var(--color-canvas); padding: 10px 0; margin-left: -4px; margin-right: -4px;
    box-shadow: 0 8px 12px -12px rgba(0, 0, 0, 0.25);
  }
}

/* ---------- My vouchers: reward status and search ---------- */
.wl-voucher-status {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 4px 10px;
  border-radius: 20px; font-size: 13px; font-weight: 600; line-height: 1.3;
}
.wl-voucher-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.wl-voucher-status.is-added { background: #e6f6ea; color: #17663a; }
.wl-voucher-status.is-pending { background: #fff4dc; color: #8a5a00; }
.wl-voucher-search { max-width: 420px; margin: 0 0 24px; }
.wl-voucher-search input {
  width: 100%; min-height: 48px; border-radius: 40px; border: 2px solid var(--color-border);
  padding: 0 20px; background: var(--color-white); font: inherit;
}
.wl-voucher-search input:focus { outline: none; border-color: var(--color-brand-dark); }
.wl-voucher-search-empty, .wl-faq-none { margin-top: 12px; font-weight: 600; }
#loadMoreBlock > .col-lg-3[hidden] { display: none !important; }

/* ---------- Home: earned so far ---------- */
.wl-earned {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; align-self: flex-start;
  background: var(--color-white); border-radius: 40px; padding: 8px 18px; margin-bottom: 18px;
  box-shadow: var(--wl-card-shadow); font-size: 15px;
}
.wl-earned-amount { font-size: 20px; color: var(--color-brand-dark); }
@media (max-width: 991px) { .wl-earned { align-self: center; } }

/* ---------- Calculator: estimate first, details on request ---------- */
.wl-calc-compact .wl-calc-intro { margin: 12px 0 20px; opacity: 0.8; }
.wl-calc-compact .wl-calc-toggle { min-height: 48px; }
.wl-calc-compact .wl-calc-details { margin-top: 24px; }
.wl-calc-compact .wl-calc-details[hidden] { display: none !important; }

/* ---------- Demo banner: one line on phones ---------- */
.wl-demo-short { display: none; }
@media (max-width: 767px) {
  .wl-demo-long { display: none; }
  .wl-demo-short { display: inline; }
  .wl-demo-bar { font-size: 13px; padding: 6px 12px; }
}

/* ---------- Help and legal ---------- */
.wl-faq-search { max-width: 520px; margin: 0 0 20px; }
/* Same search pill as the one on All brands: icon inside, white, rounded. */
.wl-faq-search .search { position: relative; width: 100%; }
.wl-faq-search .search img { position: absolute; top: 50%; transform: translateY(-50%); left: 20px; }
.wl-faq-search input { width: 100%; height: 48px; border: 1px solid var(--color-border); border-radius: 40px; background: var(--color-white); font-size: 15px; padding: 10px 20px 10px 48px; outline: unset; }
.wl-faq-search input::placeholder { opacity: 0.75; }
.wl-faq-search input:focus-visible { outline: 2px solid var(--color-brand-dark); outline-offset: 2px; }
.faq-list details[hidden] { display: none !important; }
.legal-nav a.is-active { font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.legal-nav { position: sticky; top: 100px; align-self: flex-start; }
.contact-form select {
  appearance: none; -webkit-appearance: none; min-height: 52px;
  background: var(--color-white) url("../images/common/select-arrow.svg?v=20") no-repeat right 16px center;
  padding-right: 44px;
}
@media (max-width: 767px) {
  /* Compact sticky filters on phones: search on top, the two filters side by side. */
  .card-section.brand-page form.wl-brand-filters { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; }
  .card-section.brand-page form.wl-brand-filters .search { grid-column: 1 / -1; margin: 0; }
  .card-section.brand-page form.wl-brand-filters select { width: 100%; margin: 0; min-width: 0; font-size: 14px; }
}

/* ---------- Home for returning buyers: welcome, stats, news, buy again ---------- */
.wl-welcome {
  background: var(--color-brand-dark);
  color: var(--color-white);
  padding: 64px 0 96px;
  position: relative;
  overflow: hidden;
}
.wl-welcome::after {
  content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%;
  border: 70px solid rgba(255, 255, 255, 0.05); pointer-events: none;
}
.wl-welcome-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; position: relative; z-index: 1; }
.wl-welcome h1 { color: var(--color-white); font-size: clamp(34px, 4.2vw, 56px); line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 12px; }
.wl-welcome-intro { color: rgba(255, 255, 255, 0.85); font-size: 17px; line-height: 1.5; max-width: 560px; margin-bottom: 28px; }
.wl-stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.wl-stat {
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 16px;
  padding: 18px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.wl-stat strong { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; color: var(--color-white); }
.wl-stat span { font-size: 13px; color: rgba(255, 255, 255, 0.8); line-height: 1.35; }
/* Account summary tiles link to the account overview: the whole tile is the link. */
.wl-stat-link { display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; margin: -18px -16px; padding: 18px 16px; border-radius: inherit; }
.wl-stat-link:hover, .wl-stat-link:focus-visible { background: rgba(255, 255, 255, 0.08); }
.wl-stat-link:focus-visible { outline: 2px solid var(--color-white); outline-offset: 2px; }
.wl-welcome-card {
  background: var(--color-white); color: var(--color-text); border-radius: 24px; padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}
.wl-welcome-card-title { font-size: 22px; line-height: 30px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 14px; }
.wl-welcome-card form.wl-welcome-search { max-width: none; width: 100%; margin-bottom: 18px; }
.wl-welcome-card form.wl-welcome-search input { height: 100%; flex: 1 1 auto; min-width: 0; border: 0; background: transparent; outline: none; }
.wl-welcome-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.wl-news-wrap { position: relative; z-index: 2; margin-top: -48px; }
.wl-news {
  display: flex; align-items: center; gap: 16px; text-decoration: none;
  background: var(--color-accent); color: var(--color-on-accent); border-radius: 18px; padding: 18px 22px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}
.wl-news:hover { color: var(--color-on-accent); filter: brightness(0.97); }
.wl-news-icon {
  width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  background: var(--color-brand-dark); color: var(--color-white);
}
.wl-news-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.wl-news-text strong { font-size: 16px; }
.wl-news-text span { font-size: 14px; }
.wl-news-cta { margin-left: auto; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

.wl-buy-again { padding: 56px 0 24px; }
.wl-welcome + .wl-buy-again { padding-top: 64px; }
.wl-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.wl-section-head h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; letter-spacing: -1px; }
.wl-head-link { font-weight: 700; color: var(--color-brand-dark); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; min-height: 44px; }
.wl-buy-again-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.wl-buy-again-list .wl-again-card { width: auto !important; }
.wl-again-date { font-size: 13px; opacity: 0.7; padding: 0 10px; margin: -6px 0 12px; }
.wl-again-btn { display: block; margin: 0 10px 10px; text-align: center; }

@media (max-width: 991px) {
  .wl-welcome { padding: 44px 0 84px; }
  .wl-welcome-grid { grid-template-columns: 1fr; gap: 28px; }
  .wl-buy-again-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .wl-welcome h1 { text-align: left; }
  .wl-stats { gap: 8px; }
  .wl-stat { padding: 14px 10px; border-radius: 12px; }
  .wl-stat-link { margin: -14px -10px; padding: 14px 10px; }
  .wl-stat strong { font-size: 20px; }
  .wl-stat span { font-size: 12px; }
  .wl-welcome-card { padding: 20px; border-radius: 20px; }
  .wl-welcome-links .btn { flex: 1 1 auto; text-align: center; justify-content: center; }
  .wl-news { flex-wrap: wrap; padding: 16px; gap: 12px; }
  .wl-news-cta { margin-left: 52px; }
  .wl-section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}
/* The design hides the last five brand cards on phones (homepage grid); never hide "Buy again". */
.wl-buy-again-list .card-box { display: flex !important; flex-direction: column; }
.wl-buy-again-list .card-box .wl-again-btn { margin-top: auto; }
@media (max-width: 575px) {
  .wl-news-cta { margin-left: 0; flex-basis: 100%; }
}
/* The design's phone rule hides the last five cards of every card list. Only the homepage
   grid should be shortened; brand listings, sliders and "Buy again" must show every brand. */
@media (max-width: 767px) {
  .brand-page .card-list .card-box:nth-last-of-type(-n+5),
  .featured-slider .card-box:nth-last-of-type(-n+5),
  .popular-slider .card-box:nth-last-of-type(-n+5) { display: block !important; }
  .brand-page .card-list .card-box[hidden] { display: none !important; }
}
.wl-stat .wl-stat-extra { font-style: normal; font-size: 12px; font-weight: 700; color: var(--color-accent); }
@media (max-width: 575px) {
  .wl-again-btn { font-size: 14px; padding: 10px 8px !important; white-space: normal; margin: 0 6px 6px; }
  .wl-again-date { padding: 0 6px; }
}

/* ---------- First-visit homepage: popular brands to start with ---------- */
.wl-starters-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; opacity: 0.65; margin: 0 0 10px; }
.wl-starters { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.wl-starters a {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; border-radius: 14px;
  background: var(--color-white); border: 1px solid rgba(0, 0, 0, 0.08); padding: 8px; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wl-starters a:hover, .wl-starters a:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1); }
.wl-starters img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }

/* Category shortcuts (signed-in homepage). */
.wl-home-cats { padding: 64px 0 8px; }
.wl-news-wrap + .wl-home-cats, .wl-welcome + .wl-home-cats { padding-top: 56px; }
.wl-cat-tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.wl-cat-tile {
  display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 14px 16px; border-radius: 14px;
  background: rgba(101, 200, 233, 0.15); color: var(--color-text); font-weight: 700; text-decoration: none; line-height: 1.25;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.wl-cat-tiles li:nth-child(5n + 1) .wl-cat-tile { background: rgba(233, 156, 101, 0.15); }
.wl-cat-tiles li:nth-child(5n + 2) .wl-cat-tile { background: rgba(226, 101, 233, 0.15); }
.wl-cat-tiles li:nth-child(5n + 3) .wl-cat-tile { background: rgba(101, 200, 233, 0.15); }
.wl-cat-tiles li:nth-child(5n + 4) .wl-cat-tile { background: rgba(222, 233, 101, 0.18); }
.wl-cat-tiles li:nth-child(5n + 5) .wl-cat-tile { background: rgba(101, 130, 233, 0.15); }
.wl-cat-tile:hover, .wl-cat-tile:focus-visible { color: var(--color-text); transform: translateY(-2px); filter: brightness(0.97); }
.wl-cat-tile img { width: 40px; height: 40px; object-fit: contain; flex: 0 0 auto; }
.wl-cat-tile .wl-cat-initial {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--color-brand-dark); color: var(--color-white); font-weight: 800;
}
.wl-deals-title { margin-bottom: 18px; }
.wl-home-cats + .wl-deals { padding-top: 48px; }
.wl-popular .wl-section-head h2 { margin-bottom: 4px; }
/* Show every popular brand on phones (the design's phone rule hides the last five). */
@media (max-width: 767px) {
  .wl-popular .card-list .card-box:nth-last-of-type(-n+5) { display: block !important; }
}

/* ---------- All-brands for returning buyers: account summary and Buy again ---------- */
.wl-account { padding: 48px 0 88px; }
.wl-account .wl-welcome-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.wl-account .wl-welcome-intro { margin-bottom: 22px; }
.wl-again-panel { padding: 22px 24px; }
.wl-again-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.wl-again-head .wl-welcome-card-title { margin: 0; }
.wl-again-rows { list-style: none; padding: 0; margin: 0; }
.wl-again-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.wl-again-row + .wl-again-row { border-top: 1px solid rgba(0, 0, 0, 0.08); }
.wl-again-row img { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; border: 1px solid rgba(0, 0, 0, 0.08); background: var(--color-white); flex: 0 0 auto; }
.wl-again-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; line-height: 1.3; }
.wl-again-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-again-text small { font-size: 13px; opacity: 0.7; }
.wl-again-row .btn { flex: 0 0 auto; width: auto !important; min-width: 0; margin: 0 !important; padding: 10px 16px !important; font-size: 14px; white-space: nowrap; }
@media (max-width: 991px) {
  .wl-account { padding: 36px 0 80px; }
  .wl-account .wl-welcome-grid { grid-template-columns: 1fr; gap: 22px; }
  .wl-home-cats { padding-top: 48px; }
}
@media (max-width: 575px) {
  .wl-starters { gap: 8px; }
  .wl-again-panel { padding: 18px; }
  .wl-again-row img { width: 48px; height: 48px; }
  .wl-again-row .btn { padding: 9px 12px !important; }
  .wl-cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .wl-cat-tile { min-height: 64px; padding: 12px; gap: 10px; font-size: 14px; }
  .wl-cat-tile img, .wl-cat-tile .wl-cat-initial { width: 32px; height: 32px; }
}

/* ---------- Brand logos fill their tiles ----------
   Brand logos are square images with their own background, so tiles are square and the
   logo covers the whole tile instead of floating small in a grey box. */
.card-box .img { height: auto !important; aspect-ratio: 1 / 1; padding: 0; overflow: hidden; background: var(--color-white); }
.card-box .img img { width: 100%; height: 100%; max-width: none !important; max-height: none !important; object-fit: cover; border-radius: inherit; }
.card-box .img:hover { background: var(--color-white); }
.wl-starters a { padding: 8px; overflow: hidden; }
.wl-starters img { border-radius: 0; object-fit: contain; }
.wl-again-row img { object-fit: cover; }


/* All-brands, no purchases yet. */
.wl-first .wl-welcome-card .wl-starters { margin-bottom: 18px; }
.wl-first h1 { font-size: clamp(30px, 3.6vw, 48px); }
/* Logos that aren't square are fitted inside the tile rather than cropped (set by whitelabel.js). */
img.wl-logo-contain { object-fit: contain !important; padding: 10%; background: var(--color-white); }
.wl-bp-similar .wl-section-head h2, .wl-popular .wl-section-head h2 { margin-bottom: 4px; }
#how_it_works, #how_we_works, #calculator { scroll-margin-top: 100px; }


/* Brand logos are 180x180: they fill smaller tiles, but are never enlarged past their
   real size in bigger tiles; there they sit centred at 180px on white. */
.card-box .img { display: flex; align-items: center; justify-content: center; }
.card-box .img img { width: 100%; height: auto; max-width: 180px !important; max-height: 180px !important; aspect-ratio: 1 / 1; border-radius: 8px; }


/* ---------- Brand page (/brands/{slug}) ----------
   Dark band with the brand and its offer, amount card on the right (as in the feature mockups),
   then same-category brands, How it works / Important information, and About.
   The old brand sections after .wl-bp stay in the page for the payment scripts, hidden. */
.wl-bp-page > .wl-bp ~ section:not(.wl-bp-similar):not(.wl-bp-info):not(.wl-bp-about):not(.wl-bp-calc-section) { display: none !important; }
.brand-detail-page .cta-section { display: none; }
.wl-bp { background: var(--color-brand-dark); color: var(--color-white); padding: 20px 0 56px; position: relative; overflow: hidden; }
.wl-bp::after {
  content: ""; position: absolute; right: -140px; top: -180px; width: 520px; height: 520px; border-radius: 50%;
  border: 70px solid rgba(255, 255, 255, 0.05); pointer-events: none;
}
.wl-bp .container { position: relative; z-index: 1; }
.wl-bp-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: rgba(255, 255, 255, 0.85); min-height: 44px; text-decoration: none; margin-bottom: 12px; }
.wl-bp-back:hover { color: var(--color-white); }
.wl-bp-back .wl-icon { transform: rotate(180deg); }
.wl-bp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); gap: 48px; align-items: center; }
.wl-bp-main { display: flex; gap: 32px; align-items: center; min-width: 0; }
.wl-bp-logo { flex: 0 0 auto; width: 180px; height: 180px; border-radius: 24px; overflow: hidden; background: var(--color-white); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2); }
.wl-bp-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wl-bp-intro { min-width: 0; }
.wl-bp-intro h1 { color: var(--color-white); font-size: clamp(34px, 4vw, 56px); line-height: 1.05; letter-spacing: -1.5px; margin: 0 0 10px; }
.wl-bp-rate { font-size: clamp(18px, 1.7vw, 22px); font-weight: 800; line-height: 1.35; margin: 0; color: var(--color-accent); }
.wl-bp-rate s { color: rgba(255, 255, 255, 0.6); font-weight: 600; margin-right: 4px; }
.wl-bp-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0 0; font-size: 15px; color: rgba(255, 255, 255, 0.85); }
.wl-bp-ends { font-weight: 600; }
.wl-bp-ends strong { font-variant-numeric: tabular-nums; color: var(--color-white); }
.wl-bp-last {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 18px; padding: 14px 18px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.14); font-size: 15px;
}
.wl-bp-last strong { flex-basis: 100%; }
.wl-bp-last span { color: rgba(255, 255, 255, 0.85); }
.wl-bp-last a { color: var(--color-accent); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.wl-bp-buy { min-height: 360px; color: var(--color-text); }
.wl-bp-buy .wl-amount-panel { margin: 0; background: var(--color-white); border-radius: 24px; padding: 24px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22); }
/* The brand is named alongside, so the card drops its title and brand box. */
.wl-bp-buy .wl-amount-title, .wl-bp-buy .voucher-brand-box { display: none !important; }
.wl-bp-buy .amount-chip-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wl-bp-buy .amount-chip { min-width: 0; border-radius: 12px; }
.wl-bp-buy .amount-chip.active { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-accent); }
.wl-bp-buy .cashback-highlight-box { margin-bottom: 14px; }
.wl-usual-btn {
  display: block; width: 100%; min-height: 50px; margin-top: 10px; border-radius: 40px; border: 0; font-weight: 700; font-size: 16px;
  background: var(--color-accent); color: var(--color-on-accent);
}
.wl-usual-btn:hover { filter: brightness(0.96); }

.wl-bp-similar { background: var(--color-surface); padding: 48px 0 24px; }
.wl-bp-similar .wl-section-head h2 { margin-bottom: 4px; }
.wl-bp-similar .card-list .card-box:nth-last-of-type(-n+5) { display: block !important; }

.wl-bp-info { background: var(--color-surface); padding: 24px 0 8px; }
.wl-bp-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.wl-bp-cols > div { background: var(--color-white); border-radius: 20px; padding: 28px; }
.wl-bp-cols h2 { margin-bottom: 14px; }
.wl-bp-cols p { line-height: 1.6; font-size: 15px; opacity: 0.85; }
.wl-bp-how { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 14px; }
.wl-bp-how li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.wl-bp-how strong { display: block; }
.wl-bp-how-num {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--color-accent); color: var(--color-on-accent); font-weight: 800; font-size: 14px;
}
.wl-bp-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--color-brand-dark); cursor: pointer; min-height: 44px; }
.wl-bp-terms-box summary { list-style: none; }
.wl-bp-terms-box summary::-webkit-details-marker { display: none; }
.wl-bp-terms-box[open] summary .wl-icon { transform: rotate(90deg); }
.wl-bp-terms { font-size: 13px !important; overflow-wrap: anywhere; opacity: 0.8; margin-top: 8px; }

.wl-bp-about { background: var(--color-surface); padding: 32px 0 56px; }
.wl-bp-about h2 { margin-bottom: 8px; }
.wl-bp-about p { max-width: 820px; margin: 0; line-height: 1.65; opacity: 0.8; font-size: 15px; }
.wl-bp-clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wl-bp-clamp.is-open { display: block; -webkit-line-clamp: unset; }
.wl-bp-more { background: none; border: 0; padding: 0; min-height: 44px; font-weight: 700; color: var(--color-brand-dark); text-decoration: underline; cursor: pointer; }

@media (max-width: 1199px) {
  .wl-bp-main { flex-direction: column; align-items: flex-start; gap: 20px; }
  .wl-bp-logo { width: 140px; height: 140px; }
}
@media (max-width: 991px) {
  .wl-bp { padding: 12px 0 32px; }
  .wl-bp-grid { grid-template-columns: 1fr; gap: 24px; }
  .wl-bp-main { flex-direction: row; align-items: center; }
  .wl-bp-cols { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .wl-bp-main { gap: 16px; align-items: flex-start; }
  .wl-bp-logo { width: 88px; height: 88px; border-radius: 18px; }
  .wl-bp-intro h1 { font-size: 30px; letter-spacing: -0.8px; margin-bottom: 6px; }
  .wl-bp-rate { font-size: 17px; }
  .wl-bp-meta { font-size: 14px; }
  .wl-bp-last { padding: 12px 14px; font-size: 14px; margin-top: 12px; }
  .wl-bp-buy .wl-amount-panel { padding: 18px 16px; border-radius: 20px; }
  .wl-bp-cols > div { padding: 20px 18px; }
}
.wl-bp-first { background: var(--color-accent); color: var(--color-on-accent); border-color: transparent; }
.wl-bp-first span { color: var(--color-on-accent); opacity: 0.9; }
.wl-bp-left { min-width: 0; }
.wl-bp-left .wl-bp-last { margin-top: 24px; }
.wl-bp-cols h2, .wl-bp-about h2 { font-size: 26px; line-height: 1.2; letter-spacing: -0.5px; }
@media (max-width: 575px) {
  .wl-bp-left .wl-bp-last { margin-top: 16px; }
  .wl-bp-cols h2, .wl-bp-about h2 { font-size: 22px; }
}

/* ---------- Demo site markers (every demo site: non-production, or listed in demoSites) ---------- */
.wl-demo .wl-demo-bar {
  background: var(--color-brand-deep, #1a1f2e); color: #fbfaf7; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.wl-demo .wl-demo-bar a { color: #fbfaf7; }
.wl-demo-pill {
  display: inline-block; background: #e2725b; color: #1a1f2e; font-weight: 800; font-size: 12px; line-height: 1;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 8px; border-radius: 4px;
}
.wl-demo-badge {
  display: inline-block; margin-left: 8px; vertical-align: middle; border: 1.5px solid #e2725b; color: #b9503a;
  font: 800 10px/1 var(--font-family-brand); letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 6px; border-radius: 4px;
}
.wl-demo header .header-logo { display: flex; align-items: center; justify-content: center; }
@media (max-width: 575px) {
  .wl-demo-badge { margin-left: 6px; padding: 3px 5px; }
}
@media (max-width: 575px) {
  .wl-demo .wl-demo-bar { flex-wrap: nowrap; gap: 8px; text-align: left; }
  .wl-demo-pill { flex: 0 0 auto; }
}

/* Brand card labels: New (added in the last 14 days) and Popular (most bought this month). */
.badge-box .badge.new { background: var(--color-brand-dark); color: #fff; }
.badge-box .badge.popular { background: var(--color-accent); color: var(--color-on-accent); }

/* My vouchers: Buy again on each voucher, and the empty state. */
.wl-voucher-again { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--color-brand-dark); margin: 4px 0 8px; min-height: 44px; }
.wl-empty-card {
  background: var(--color-white); border: 1px solid var(--color-border); border-radius: 20px; padding: 40px 24px;
  text-align: center; max-width: 760px; margin: 0 auto 48px;
}
.wl-empty-icon {
  width: 60px; height: 60px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-accent); color: var(--color-on-accent); margin-bottom: 16px;
}
.wl-empty-card h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; margin-bottom: 10px; }
.wl-empty-card p { max-width: 560px; margin: 0 auto 22px; opacity: 0.8; line-height: 1.6; }
.wl-empty-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.wl-empty-head h2 { font-size: clamp(26px, 2.8vw, 36px); margin-bottom: 4px; }
.wl-empty-cards .card-box:nth-last-of-type(-n+5) { display: block !important; }

/* Recently viewed brands. */
.wl-recent { padding: 40px 0 8px; }
.wl-recent .wl-section-head h2 { font-size: clamp(26px, 2.8vw, 36px); margin-bottom: 4px; }
.wl-recent-clear { background: none; border: 0; cursor: pointer; }
.wl-recent-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.wl-recent-item {
  display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: var(--color-white);
  border: 1px solid var(--color-border); text-decoration: none; color: var(--color-text); min-height: 64px;
}
.wl-recent-item:hover { color: var(--color-text); border-color: var(--color-brand-dark); }
.wl-recent-item img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; background: var(--color-surface); }
.wl-recent-item span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.wl-recent-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-recent-item small { font-size: 13px; opacity: 0.75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 575px) {
  .wl-recent-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .wl-recent-item { flex-direction: column; align-items: flex-start; min-width: 0; }
  .wl-recent-item span { max-width: 100%; }
  .wl-empty-card { padding: 28px 18px; }
}
.wl-empty-cards { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.wl-empty-cards .card-box { width: auto !important; margin: 0 !important; }
.vouchers-page .wl-voucher-again { display: flex; justify-content: center; width: 100%; }
@media (max-width: 575px) {
  .wl-empty-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* Account chip for publishers with withdrawable balances (as on the Leeds United site). */
.wl-account-chip { display: inline-flex !important; align-items: center; gap: 10px; padding: 4px 12px 4px 4px !important; border-radius: 999px; text-decoration: none; min-height: 44px; }
.wl-account-chip:hover, .wl-account-chip[aria-current="page"] { background: var(--color-surface); }
.wl-account-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  background: var(--color-brand-dark); color: #fff; font-weight: 700; font-size: 15px; text-transform: uppercase;
}
.wl-account-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.wl-account-chip .wl-account-name { font-size: 13px; opacity: 0.8; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-account-chip .wl-account-balance { font-weight: 700; font-size: 15px; }
@media (max-width: 991px) {
  .wl-demo .wl-demo-bar { flex-wrap: nowrap; gap: 10px; }
  .wl-demo-pill { flex: 0 0 auto; }
}
.wl-account-chip .wl-account-balance small { font-size: 12px; font-weight: 500; opacity: 0.75; }
.wl-account-chip .wl-account-balance { white-space: nowrap; }

/* ---------- Account area (/overview, /cashback-details, /withdraw, /my-details) ---------- */
.wl-acct-top { padding: 48px 0 40px; }
.wl-acct-top h1 { margin-bottom: 6px; }
.wl-acct-stats { max-width: 900px; }
.wl-acct-stats .wl-stat-main strong { color: var(--color-white); }
.wl-stat-link { margin-top: 6px; display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; color: var(--color-accent); text-decoration: none; }
.wl-theme-spendstream .wl-stat-link { color: #f0907c; }
.wl-acct-tabs { background: var(--color-white); border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 5; }
.wl-acct-tabs ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.wl-acct-tabs ul::-webkit-scrollbar { display: none; }
.wl-acct-tabs a {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 16px; white-space: nowrap; font-weight: 600;
  color: var(--color-text); text-decoration: none; border-bottom: 3px solid transparent;
}
.wl-acct-tabs a[aria-current="page"] { border-bottom-color: var(--color-brand-dark); color: var(--color-brand-dark); }
.wl-acct-section { padding: 40px 0 24px; }
.wl-acct-section .wl-section-head h2 { font-size: clamp(26px, 2.8vw, 36px); margin-bottom: 4px; }
.wl-acct-narrow { max-width: 760px; }
.wl-acct-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: 20px; padding: 28px; margin-bottom: 20px; }
.wl-acct-card h2 { font-size: 24px; line-height: 1.25; margin-bottom: 8px; }
.wl-acct-card p { opacity: 0.85; line-height: 1.6; }
.wl-acct-note { font-size: 14px; margin: 12px 0 0; }
.wl-acct-bank { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 14px 16px; border-radius: 12px; background: var(--color-surface); margin-top: 12px; }
.wl-acct-bank strong { flex-basis: 100%; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.7; }
.wl-acct-bank a { font-weight: 700; color: var(--color-brand-dark); }
.wl-acct-dl { margin: 12px 0 0; display: grid; gap: 12px; }
.wl-acct-dl div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-bottom: 12px; border-bottom: 1px solid var(--color-border); }
.wl-acct-dl dt { font-weight: 600; }
.wl-acct-dl dd { margin: 0; opacity: 0.85; overflow-wrap: anywhere; }
.wl-acct-field { margin-top: 18px; }
.wl-acct-field label { display: block; font-weight: 700; margin-bottom: 6px; }
.wl-acct-field-row { display: flex; gap: 10px; }
.wl-acct-field input { flex: 1 1 auto; min-width: 0; min-height: 48px; border: 2px solid var(--color-border); border-radius: 10px; padding: 0 14px; font-size: 16px; background: var(--color-white); }
.wl-acct-field input:focus { border-color: var(--color-brand-dark); outline: none; }
.wl-acct-field small { display: block; margin-top: 6px; font-size: 13px; opacity: 0.7; }
.wl-acct-status { margin: 6px 0 0; font-size: 14px; font-weight: 600; min-height: 1em; }
.wl-acct-status.is-ok { color: #1f7a4d; }
.wl-acct-status.is-error { color: #b42318; }
.wl-acct-vouchers { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.wl-acct-voucher { display: flex; align-items: center; gap: 16px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: 16px; padding: 12px 16px; }
.wl-acct-voucher img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; }
.wl-acct-voucher-main { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; line-height: 1.35; }
.wl-acct-voucher-main span { font-size: 14px; opacity: 0.8; }
.wl-acct-voucher-main .wl-acct-earned { opacity: 1; font-weight: 700; color: #1f7a4d; }
.wl-acct-voucher-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.wl-acct-voucher-actions .wl-voucher-again { margin: 0; }
.wl-acct-table-wrap { background: var(--color-white); border: 1px solid var(--color-border); border-radius: 16px; overflow: hidden; margin-bottom: 20px; }
.wl-acct-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.wl-acct-table th { text-align: left; font-size: 13px; font-weight: 600; opacity: 0.7; padding: 14px 16px; border-bottom: 1px solid var(--color-border); }
.wl-acct-table td { padding: 12px 16px; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.wl-acct-table tr:last-child td { border-bottom: 0; }
.wl-acct-table .tl-box { display: flex; align-items: center; gap: 12px; }
.wl-acct-table .table-icon-box img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.wl-acct-table .text-warning { color: #1f7a4d !important; }
.wl-acct-table .badge { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.wl-acct-table .badge.pending { background: #fff4d6; color: #7a5200; }
.wl-acct-table .badge.payable { background: #e3f4ea; color: #1f7a4d; }
.wl-acct-table .badge.confirmed { background: #e6eef8; color: #1f3a5f; }
.wl-acct-none { padding: 16px; margin: 0; }
@media (max-width: 767px) {
  .wl-acct-top { padding: 32px 0 28px; }
  .wl-acct-card { padding: 20px 18px; }
  .wl-acct-voucher { flex-wrap: wrap; }
  .wl-acct-voucher-actions { width: 100%; justify-content: space-between; }
  /* The table becomes one card per purchase, with each value labelled. */
  .wl-acct-table thead { display: none; }
  .wl-acct-table, .wl-acct-table tbody, .wl-acct-table tr, .wl-acct-table td { display: block; width: 100%; }
  .wl-acct-table tr { padding: 12px 16px; border-bottom: 1px solid var(--color-border); }
  .wl-acct-table td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: 12px; }
  .wl-acct-table td:first-child { padding-bottom: 8px; }
  .wl-acct-table td:nth-child(2)::before { content: "Purchase date"; opacity: 0.7; }
  .wl-acct-table td:nth-child(3)::before { content: "Spend"; opacity: 0.7; }
  .wl-acct-table td:nth-child(4)::before { content: "Status"; opacity: 0.7; }
  .wl-acct-table td:nth-child(5)::before { content: "Earned"; opacity: 0.7; }
  .wl-acct-table td:nth-child(6)::before { content: "Last updated"; opacity: 0.7; }
  .wl-acct-table td:nth-child(7)::before { content: "Est. payable"; opacity: 0.7; }
  .wl-acct-field-row { flex-direction: column; }
  .wl-acct-field-row .btn { width: 100%; }
}
.wl-account-chip .wl-account-balance { font-size: 15px; line-height: 1.15; }
.wl-account-chip .wl-account-name { font-size: 12px; opacity: 0.75; max-width: 130px; }
.wl-account-chip { gap: 8px; }
/* With the account chip the right-hand menu is wider: let it take the space it needs and
   the search box shrink, rather than the menu running under the centred logo. */
@media (min-width: 992px) {
  header#header > .container:has(.wl-account-chip) { grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 24px; }
  header#header > .container:has(.wl-account-chip) .right-menu { max-width: none; width: auto; }
  header#header > .container:has(.wl-account-chip) .left-search { min-width: 0; }
}
@media (min-width: 992px) and (max-width: 1279px) {
  header#header > .container:has(.wl-account-chip) .header-search-form button span { display: none; }
}

/* My vouchers: balance left (recorded by the member, saved on their device). */
.wl-balance { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; margin: 6px 0 2px; font-size: 14px; min-height: 32px; }
.wl-balance-label { font-weight: 600; }
.wl-balance-edit, .wl-balance-cancel { background: none; border: 0; padding: 4px 2px; min-height: 32px; font-weight: 700; color: var(--color-brand-dark); text-decoration: underline; cursor: pointer; }
.wl-balance-form { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.wl-balance-form input { width: 96px; min-height: 36px; border: 2px solid var(--color-border); border-radius: 8px; padding: 0 8px; font-size: 16px; }
.wl-balance-prefix { font-weight: 700; }
.wl-balance-save { min-height: 36px; border: 0; border-radius: 8px; padding: 0 12px; font-weight: 700; background: var(--color-brand-dark); color: #fff; }
.wl-balance-note { font-size: 13px; opacity: 0.8; margin: 8px 0 18px; }
.wl-account-chip, .wl-account-chip * { text-decoration: none !important; }

/* ---------- Yearly value and the weekly shop ---------- */
.wl-yearly { font-size: 13px; line-height: 1.4; padding: 6px 10px 2px; opacity: 0.85; }
.wl-yearly strong { color: var(--color-text); }
.wl-weekly { padding-top: 48px; padding-bottom: 32px; }
.wl-weekly .wl-section-head h2 { font-size: clamp(26px, 2.8vw, 36px); margin-bottom: 4px; }
.wl-weekly .wl-section-head p { max-width: 640px; }
.wl-weekly .card-list .card-box:nth-last-of-type(-n+5) { display: block !important; }
.wl-source, .wl-stat-source { font-size: 12px; opacity: 0.7; margin: 12px 0 0; }
.wl-welcome .wl-stat-source { color: rgba(255, 255, 255, 0.75); opacity: 1; }
.wl-hero-value { display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 15px; padding: 10px 14px; border-radius: 12px; background: var(--color-surface); }
.wl-bp-yearly { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, 0.92); }
.wl-bp-yearly .wl-icon { flex: 0 0 auto; margin-top: 3px; color: var(--color-accent); }
.wl-theme-spendstream .wl-bp-yearly .wl-icon { color: #f0907c; }
.wl-bp-rates { margin-top: 18px; border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); }
.wl-bp-rate-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 15px; }
.wl-bp-rate-row + .wl-bp-rate-row { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.wl-bp-rate-row.is-best { background: rgba(255, 255, 255, 0.1); }
.wl-bp-rate-row em { font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; margin-left: 8px; padding: 3px 8px; border-radius: 999px; background: var(--color-accent); color: var(--color-on-accent); }
.wl-bp-rate-note { margin: 0; padding: 8px 16px 12px; font-size: 12px; color: rgba(255, 255, 255, 0.75); }
.wl-bp-trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 18px; margin: 12px 0 0; font-size: 13px; line-height: 1.3; color: rgba(255, 255, 255, 0.85); }
.wl-bp-trust-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.wl-bp-trust-item svg { flex: 0 0 auto; }
.wl-empty-tip { font-size: 14px; }
@media (max-width: 575px) {
  .wl-bp-rate-row { font-size: 14px; padding: 10px 12px; }
  .wl-hero-value { font-size: 14px; }
}
/* Brand page: brand + offer, then the amount card, then the extras (first-voucher note,
   rates by payment method). Desktop keeps the card on the right across both rows. */
.wl-bp-grid { grid-template-areas: "main buy" "extra buy"; align-items: start; row-gap: 20px; }
.wl-bp-main-wrap { grid-area: main; min-width: 0; align-self: end; }
.wl-bp-buy { grid-area: buy; align-self: center; }
.wl-bp-extra { grid-area: extra; min-width: 0; }
.wl-bp-extra > :first-child { margin-top: 0; }
.wl-bp-yearly { font-size: 17px; }
.wl-bp-yearly strong { color: #fff; }
@media (max-width: 991px) {
  .wl-bp-grid { grid-template-areas: "main" "buy" "extra"; }
}
.wl-weekly .wl-section-head > div { flex: 1 1 auto; max-width: 760px; }

/* ---------- Brand cards lead with the yearly figure ---------- */
.card-box .wl-card-yearly { padding: 0 10px; font-size: 15px; line-height: 1.35; color: var(--color-text); }
.card-box .wl-card-yearly strong { display: block; font-size: 24px; line-height: 1.15; letter-spacing: -0.5px; color: var(--color-brand-dark); }
.wl-theme-spendstream .card-box .wl-card-yearly strong { color: #b9503a; }
.card-box.has-yearly .wl-card-rate { font-size: 13px !important; line-height: 1.4; margin-top: 4px; opacity: 1; background: none !important; -webkit-text-fill-color: currentColor !important; color: var(--color-text) !important; font-weight: 600; }
.card-box .wl-info { display: inline-block; background: none; border: 0; padding: 4px 10px 10px; min-height: 32px; font-size: 12px; font-weight: 700; color: var(--color-brand-dark); text-decoration: underline; cursor: pointer; text-align: left; }
.card-box .wl-info-panel { margin: 0 10px 10px; padding: 10px 12px; border-radius: 10px; background: var(--color-surface); font-size: 12px; line-height: 1.5; }
@media (max-width: 575px) {
  .card-box .wl-card-yearly strong { font-size: 20px; }
}

/* Brand page: yearly figure leads; spend calculator; member proof. */
.wl-bp-lead { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; font-weight: 700; margin: 0; color: #fff; letter-spacing: -0.5px; }
.wl-bp-lead strong { color: var(--color-accent); }
.wl-theme-spendstream .wl-bp-lead strong { color: #f0907c; }
.wl-bp-rate-small { margin: 6px 0 0; font-size: 15px; color: rgba(255, 255, 255, 0.85); }
.wl-bp-rate-small s { opacity: 0.7; margin-right: 4px; }
.wl-bp-proof::before { content: "★ "; color: var(--color-accent); }
.wl-theme-spendstream .wl-bp-proof::before { color: #f0907c; }
.wl-proof { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; font-weight: 600; }
.wl-proof li { display: inline-flex; align-items: center; gap: 6px; }
.wl-proof .wl-icon { color: #1f7a4d; }
.wl-proof.is-dark { color: rgba(255, 255, 255, 0.9); }
.wl-proof.is-dark .wl-icon { color: var(--color-accent); }
.wl-theme-spendstream .wl-proof.is-dark .wl-icon { color: #f0907c; }

/* Accessibility: secondary text on cream/white backgrounds meets 4.5:1. */
.o-75 { opacity: 0.85; }
.wl-section-head p.o-75, .wl-source, .wl-bp-about p, .wl-acct-card p { opacity: 1; color: #57534e; }
.wl-theme-spendstream .wl-section-head p.o-75 { color: #4a4f5c; }

.vouchers-page .card_box .price_sec .wl-voucher-price { line-height: 1.2; }

/* Keyboard focus: one clear ring everywhere. Navy ring with a white gap, so it shows on
   light and dark backgrounds alike. Bare search inputs ring their whole search bar. */
body :is(a, button, select, textarea, summary, input, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 3px solid var(--color-brand-dark) !important; outline-offset: 2px !important; box-shadow: 0 0 0 2px #fff !important;
}
body form:is(.header-search-form, .wl-welcome-search, .wl-hero-search) input:not([type="hidden"]):focus-visible { outline: none !important; box-shadow: none !important; }
body form:is(.header-search-form, .wl-welcome-search, .wl-hero-search):has(input:focus-visible) { outline: 3px solid var(--color-brand-dark); outline-offset: 2px; }
:is(.wl-welcome, .wl-bp, .cta-section, .brand-banner, .reward-section, footer, .wl-acct-top) :is(a, button, input, select):focus-visible { outline-color: #fff !important; box-shadow: 0 0 0 2px var(--color-brand-dark) !important; }


/* Brand page: spending calculator (below the hero). Slider per week/month/year, result per year. */
.wl-bp-calc-section { padding: 40px 0 16px; background: var(--color-surface); }
.wl-bp-calc {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, 1fr); gap: 0;
  background: #fff; border: 1px solid var(--color-border); border-radius: 20px; overflow: hidden;
}
.wl-bp-calc-input { padding: 28px 32px 24px; min-width: 0; }
.wl-bp-calc-input h2 { font-size: 26px; line-height: 1.2; margin: 0 0 16px; }
.wl-bp-calc-period { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--color-surface); margin-bottom: 20px; }
.wl-bp-calc-period button { min-height: 40px; min-width: 76px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--color-text); font-weight: 600; font-size: 15px; cursor: pointer; }
.wl-bp-calc-period button[aria-pressed="true"] { background: var(--color-brand-dark); color: #fff; }
.wl-bp-calc-q { display: block; font-weight: 600; font-size: 16px; margin: 0 0 4px; }
.wl-bp-calc-amount { margin: 0 0 8px; font-size: 34px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.wl-bp-calc-amount small { font-size: 16px; font-weight: 500; color: #57534e; letter-spacing: 0; }
.wl-bp-calc-range {
  --fill: 25%; -webkit-appearance: none; appearance: none; width: 100%; height: 36px; margin: 0; background: transparent; cursor: pointer;
}
.wl-bp-calc-range::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--color-brand-dark) var(--fill), var(--color-surface) var(--fill)); }
.wl-bp-calc-range::-moz-range-track { height: 8px; border-radius: 999px; background: var(--color-surface); }
.wl-bp-calc-range::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--color-brand-dark); }
.wl-bp-calc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: #fff; border: 3px solid var(--color-brand-dark); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); }
.wl-bp-calc-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--color-brand-dark); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); }
.wl-bp-calc-scale { display: flex; justify-content: space-between; font-size: 13px; color: #57534e; margin-top: 2px; }
.wl-bp-calc-result {
  display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 28px 32px;
  background: var(--color-brand-dark); color: #fff;
}
.wl-bp-calc-label { font-size: 14px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.85; }
.wl-bp-calc-total { font-size: 56px; line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; color: var(--color-accent); }
.wl-theme-spendstream .wl-bp-calc-total { color: #f0907c; }
.wl-bp-calc-noun { font-size: 18px; font-weight: 600; }
.wl-bp-calc-sum { margin-top: 10px; font-size: 14px; opacity: 0.85; }
.wl-bp-calc-basis { grid-column: 1 / -1; margin: 0; padding: 12px 32px; font-size: 13px; color: #57534e; border-top: 1px solid var(--color-border); background: var(--color-canvas); }
@media (max-width: 767px) {
  .wl-bp-calc-section { padding-top: 32px; }
  .wl-bp-calc { grid-template-columns: 1fr; border-radius: 16px; }
  .wl-bp-calc-input, .wl-bp-calc-result { padding: 20px; }
  .wl-bp-calc-input h2 { font-size: 22px; }
  .wl-bp-calc-period { display: flex; }
  .wl-bp-calc-period button { flex: 1; min-width: 0; }
  .wl-bp-calc-total { font-size: 44px; }
  .wl-bp-calc-basis { padding: 12px 20px; }
}

/* Footer band: the photo pops out of the top of the band. Reserve the same space above the
   band so the head never covers the section before it (on any page). */
.wl-v2 .cta-section { --cta-pop: 120px; margin-top: var(--cta-pop); }
.wl-v2 .cta-section img { margin-top: calc(-1 * var(--cta-pop)); }
@media (max-width: 1470px) { .wl-v2 .cta-section { --cta-pop: 100px; } }
@media (max-width: 991px) { .wl-v2 .cta-section { --cta-pop: 60px; } }
@media (max-width: 767px) { .wl-v2 .cta-section { margin-top: 0; } .wl-v2 .cta-section img { margin-top: 15px; } }

/* Homepage steps: same height cards (the illustrations differ in height). */
.how-does-section .how-does-slider { align-items: stretch; }
.how-does-section .step-box { display: flex; flex-direction: column; height: auto; }
.how-does-section .step-box .top { height: 132px; flex: 0 0 auto; }
.how-does-section .step-box .top img { max-height: 124px; width: auto; object-fit: contain; }
.how-does-section .step-box .link { margin-top: auto; }

/* Homepage hero: the brand card ends with the logos now. */
.wl-welcome-card .wl-starters { margin-bottom: 0; }

/* Featured brands carousel: clip at the container edge instead of masking the overflow with
   blocks in the old template's grey (which showed as a box on themed pages). */
.featured-section .container:before, .featured-section:after { display: none !important; }
.featured-section .featured-slider .slick-list { overflow: hidden; }

/* All brands hero (returning members): "Buy again" as tiles in the same frosted style as the
   stats, instead of a white card. The whole tile is the link. */
.wl-account .wl-welcome-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; }
.wl-again-panel { padding: 0; color: #fff; }
.wl-again-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.wl-again-title { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); }
.wl-again-all { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; }
.wl-again-all:hover { text-decoration: underline; color: #fff; }
.wl-again-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wl-again-tile {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 12px; border-radius: 16px; text-decoration: none; color: #fff;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); transition: background 0.15s ease, transform 0.15s ease;
}
.wl-again-tile:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-2px); color: #fff; }
.wl-again-logo { display: grid; place-items: center; height: 92px; padding: 12px 16px; margin-bottom: 4px; border-radius: 12px; background: #fff; }
.wl-again-logo img { width: 100%; height: 100%; object-fit: contain; }
.wl-again-name { font-weight: 700; font-size: 15px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-again-cta { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 700; color: var(--color-accent); }
.wl-theme-spendstream .wl-again-cta { color: #f7b4a5; }
.wl-again-empty { margin: 0; color: rgba(255, 255, 255, 0.85); }
@media (max-width: 991px) {
  .wl-account .wl-welcome-grid { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 575px) {
  .wl-again-tiles { gap: 8px; }
  .wl-again-tile { padding: 8px; border-radius: 12px; }
  .wl-again-logo { padding: 8px; border-radius: 10px; }
  .wl-again-name { font-size: 13px; }
  .wl-again-cta { font-size: 12.5px; }
}

/* Header (desktop): logo left, plain text links, then a slim search and the account chip on
   the right. Replaces the search | centred logo | buttons layout, which read as busy. */
@media (min-width: 992px) {
  header#header > .container,
  header#header > .container:has(.wl-account-chip) { grid-template-columns: auto minmax(0, 1fr); column-gap: 40px; }
  header#header .left-search { display: none; }
  header#header .header-logo { justify-self: start; text-align: left; }
  header#header .right-menu { justify-self: stretch; min-width: 0; }
  header#header .right-menu nav { width: 100%; }
  header#header .right-menu nav > ul { width: 100%; column-gap: 28px; margin: 0; }
  header#header .right-menu nav > ul > li > a:not(.menu-btn):not(.wl-account-chip) { font-weight: 600; white-space: nowrap; }
  header#header .wl-nav-search-item { margin-left: auto; flex: 0 1 280px; min-width: 150px; }
  header#header .right-menu nav > ul > li:has(.menu-btn) { margin-left: auto; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  header#header > .container, header#header > .container:has(.wl-account-chip) { column-gap: 24px; }
  header#header .right-menu nav > ul { column-gap: 18px; }
  header#header .wl-account-chip .wl-account-name { display: none; }
}
.wl-nav-search { position: relative; display: flex; width: 100%; margin: 0; align-items: center; height: 42px; border-radius: 999px; background: var(--color-surface); border: 1px solid transparent; transition: border-color 0.15s ease, background 0.15s ease; }
.wl-nav-search:hover { border-color: var(--color-border); }
.wl-nav-search:has(input:focus) { background: #fff; border-color: var(--color-brand-dark); }
.wl-nav-search input { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0 8px 0 16px; border: 0; background: transparent; font-size: 15px; color: var(--color-text); outline: none; }
.wl-nav-search input::placeholder { color: #6b6b6b; }
.wl-nav-search input::-webkit-search-cancel-button { display: none; }
.wl-nav-search button { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; margin-right: 1px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.wl-nav-search button:hover { background: rgba(0, 0, 0, 0.06); }
/* The input must not draw its own square ring inside the pill: the global focus rule above is more specific than a plain
   ".wl-nav-search input:focus-visible", so this one is made stronger (11 Nov 2026: square corners showed at the left of the pill). */
body .wl-nav-search input:not([type="hidden"]):focus-visible { outline: none !important; box-shadow: none !important; }
/* The pill itself carries the focus ring, so it shows on dark and light headers (white halo; navy border from the rule above). */
.wl-nav-search:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6); }
body .wl-nav-search:has(input:focus-visible) { outline: 3px solid var(--color-brand-dark); outline-offset: 2px; }
.wl-theme-spendstream .wl-nav-search { border-radius: 8px; }
.wl-theme-spendstream .wl-nav-search button { border-radius: 6px; }

/* All brands: space between the new-brands banner and Featured brands (the categories used to sit here). */
.wl-v2 .featured-section { padding-top: 48px; }
@media (max-width: 575px) { .wl-again-logo { height: 64px; padding: 8px 10px; } }
@media (max-width: 767px) {
  .featured-section .container > h2, .category-section .container > h2 { padding: 0 16px; }
}
.wl-section-head :is(h2, p) { text-align: left; }

/* One page width everywhere: header, page sections, wide sections and footer all line up
   (Bootstrap's container widths). Brand pages also load the old stylesheet, whose wider
   container (1240px / 1765px) made them wider than the rest of the site. */
@media (min-width: 992px) {
  .wl-v2 .container, .wl-v2 .big-container.container, header#header > .container,
  header#header > .container:has(.wl-account-chip) { max-width: 960px !important; padding-left: 12px !important; padding-right: 12px !important; }
}
@media (min-width: 1200px) {
  .wl-v2 .container, .wl-v2 .big-container.container, header#header > .container,
  header#header > .container:has(.wl-account-chip) { max-width: 1140px !important; }
}
@media (min-width: 1400px) {
  .wl-v2 .container, .wl-v2 .big-container.container, header#header > .container,
  header#header > .container:has(.wl-account-chip) { max-width: 1320px !important; }
}

/* Buy again logos: fixed pixel limits (a percentage height didn't resolve in every browser,
   so a logo could spill out of its white box). */
.wl-again-logo { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.wl-again-logo img { width: auto !important; height: auto !important; max-width: 100% !important; max-height: 68px !important; object-fit: contain; }
@media (max-width: 575px) { .wl-again-logo img { max-height: 48px !important; } }

/* Homepage steps (carousel): equal-height cards and less space between the picture and the title. */
.how-does-section .how-does-slider .slick-track { display: flex !important; }
.how-does-section .how-does-slider .slick-slide { height: auto !important; float: none; }
.how-does-section .step-box .top { min-height: 0 !important; height: 128px; margin-bottom: 16px; }
.how-does-section .step-box .top img { max-height: 120px; }
@media (max-width: 991px) {
  .how-does-section .step-box .top { height: 104px; }
  .how-does-section .step-box .top img { max-height: 96px; }
}

/* Brand tiles (every page): less space around the logo, so the logo and the brand name sit closer. */
.card-box .img { aspect-ratio: 5 / 4 !important; margin-bottom: 12px !important; display: flex; align-items: center; justify-content: center; }
.card-box .img img { width: 100% !important; height: 100% !important; max-width: 180px !important; max-height: 180px !important; object-fit: contain !important; }

/* Homepage calculator sliders: a thin track whose fill ends at the centre of the handle
   (the fill was a share of the full width while the handle travels the width minus itself). */
.wl-v2 .cashback-estimator__range { height: 28px !important; min-height: 28px; background: transparent !important; }
.wl-v2 .cashback-estimator__range::-webkit-slider-runnable-track {
  height: 10px; border-radius: 10px;
  background: linear-gradient(to right, var(--ce-accent, #611ef0) 0, var(--ce-accent, #611ef0) calc(13px + (100% - 26px) * var(--ce-p, 0)), #ddd8e6 calc(13px + (100% - 26px) * var(--ce-p, 0)), #ddd8e6 100%);
}
.wl-v2 .cashback-estimator__range::-webkit-slider-thumb { width: 26px; height: 26px; margin-top: -8px; }
.wl-v2 .cashback-estimator__range::-moz-range-track { height: 10px; border-radius: 10px; background: #ddd8e6; }
.wl-v2 .cashback-estimator__range::-moz-range-progress { height: 10px; border-radius: 10px; background: var(--ce-accent, #611ef0); }
.wl-v2 .cashback-estimator__range::-moz-range-thumb { width: 20px; height: 20px; }

/* My vouchers: compact horizontal voucher cards. */
.wl-vc-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 20px; }
.wl-vc-heading { margin: 0; font-size: 26px; line-height: 1.2; }
.wl-vc-toolbar .wl-voucher-search { flex: 0 1 340px; margin: 0; }
.wl-vc-toolbar .wl-voucher-search input { min-height: 44px; }
.wl-vc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.wl-vc-col[hidden] { display: none !important; }
.wl-vc-grid > .spinner-border { grid-column: 1 / -1; justify-self: center; }
.wl-vc {
  display: flex; flex-direction: column; height: 100%; padding: 18px; border-radius: 16px;
  background: var(--color-white); border: 1px solid var(--color-border); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.wl-vc-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.wl-vc-logo { flex: 0 0 64px; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; padding: 6px; border-radius: 12px; border: 1px solid var(--color-border); background: #fff; overflow: hidden; }
.wl-vc-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.wl-vc-info { flex: 1 1 auto; min-width: 0; }
.wl-vc-name { margin: 0; font-size: 18px; line-height: 1.25; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-vc-date { margin: 2px 0 0; font-size: 13px; color: #57534e; }
.wl-vc-value { flex: 0 0 auto; margin: 0; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.wl-vc-value strong { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.wl-vc-value span { font-size: 12px; color: #57534e; }
.wl-vc .wl-voucher-status { align-self: flex-start; margin: 0 0 14px; }
.wl-vc-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: auto; }
.wl-vc-actions .btn { flex: 1 1 auto; justify-content: center; min-height: 44px; padding: 10px 16px; margin: 0; }
.wl-vc-actions .wl-voucher-again { display: inline-flex !important; width: auto !important; justify-content: flex-start; margin: 0; flex: 0 0 auto; }
.wl-vc .wl-balance { justify-content: flex-start; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--color-border); font-size: 13px; }
.vouchers-page .wl-balance-note { margin: 16px 0 0; font-size: 13px; color: #57534e; opacity: 1; }
@media (max-width: 1199px) { .wl-vc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .wl-vc-grid { grid-template-columns: 1fr; gap: 12px; }
  .wl-vc { padding: 14px; }
  .wl-vc-heading { font-size: 22px; }
  .wl-vc-toolbar .wl-voucher-search { flex: 1 1 100%; }
  .wl-vc-logo { flex-basis: 56px; width: 56px; height: 56px; }
  .wl-vc-value strong { font-size: 21px; }
}

/* Footer band: the photo sits inside the band (popping out above it overlapped the section
   before, and reserving space for it left a stripe on pages with a coloured background). */
.wl-v2 .cta-section { margin-top: 0 !important; }
.wl-v2 .cta-section .container { align-items: flex-end; }
.wl-v2 .cta-section img { margin-top: 32px !important; max-height: 440px; width: auto; display: block; }
@media (max-width: 1470px) { .wl-v2 .cta-section img { max-height: 400px; } }
@media (max-width: 991px) { .wl-v2 .cta-section img { max-height: 320px; } }
@media (max-width: 767px) { .wl-v2 .cta-section img { margin-top: 15px !important; max-height: 300px; } }
.wl-vc-actions { flex-wrap: nowrap; }
.wl-vc-actions .btn { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; white-space: nowrap; }

/* Brand cards: "Get £180 (i) / a year in site credit", with the explanation in a small pop-over. */
.card-box .wl-card-yearly { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
.card-box .wl-card-yearly .wl-card-pre { font-size: 15px; font-weight: 600; color: var(--color-text); }
.card-box .wl-card-yearly strong { display: inline; }
.card-box .wl-card-yearly .wl-card-post { flex-basis: 100%; }
.card-box .wl-tip {
  align-self: center; display: inline-grid; place-items: center; width: 28px; height: 28px; margin: -4px 0 -4px -4px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: #57534e; cursor: pointer;
}
.card-box .wl-tip:hover, .card-box .wl-tip[aria-expanded="true"] { color: var(--color-brand-dark); background: var(--color-surface); }
.card-box .wl-tip-pop {
  position: absolute; z-index: 20; left: 4px; right: 4px; top: calc(100% + 8px); display: block;
  padding: 10px 12px; border-radius: 10px; background: var(--color-text); color: #fff;
  font-size: 12.5px; font-weight: 500; line-height: 1.45; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}
.card-box .wl-tip-pop::before { content: ""; position: absolute; top: -6px; left: 70px; width: 12px; height: 12px; background: inherit; transform: rotate(45deg); border-radius: 2px; }
.card-box .wl-tip-pop[hidden] { display: none; }

/* Brand cards for brands that are back soon: greyed art and rate, a small "Unavailable" label with a tooltip. The card stays clickable (the brand page lets people ask to be emailed). */
.card-box.is-unavailable .img, .card-box.is-unavailable :is(.wl-card-pct, .wl-card-pct-sub, .wl-card-rate, .wl-card-entries) { filter: grayscale(1); opacity: 0.55; }
.card-box.is-unavailable .wl-card-yearly strong { color: #6b6560; }
.card-box .wl-unavail { position: relative; display: flex; align-items: center; gap: 4px; padding: 0 10px; margin: 2px 0 6px; }
.card-box .wl-unavail-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #e7e5e4; color: #44403c; font-size: 12px; font-weight: 700; line-height: 1.5; }
.card-box, .featured-slider .slick-slide, .card-list { overflow: visible; }

/* All brands hero: "Buy again" as a frosted panel of rows (works for one purchase or three). */
.wl-account .wl-welcome-grid { align-items: center; }
.wl-again-panel { padding: 20px 22px; border-radius: 18px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); }
.wl-again-head { margin-bottom: 8px; }
.wl-again-list { list-style: none; margin: 0; padding: 0; }
.wl-again-item { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.wl-again-item + .wl-again-item { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.wl-again-panel .wl-again-logo { flex: 0 0 52px; width: 52px; height: 52px; padding: 6px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; margin: 0; }
.wl-again-panel .wl-again-logo img { max-width: 100% !important; max-height: 100% !important; width: auto !important; height: auto !important; object-fit: contain; }
.wl-again-panel .wl-again-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; color: #fff; }
.wl-again-panel .wl-again-text strong { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-again-panel .wl-again-text small { font-size: 13px; color: rgba(255, 255, 255, 0.78); opacity: 1; }
.wl-again-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 999px;
  background: var(--color-accent); color: var(--color-on-accent, var(--color-brand-dark)); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap;
}
.wl-theme-spendstream .wl-again-btn { border-radius: 6px; }
.wl-again-btn:hover { filter: brightness(1.06); color: var(--color-on-accent, var(--color-brand-dark)); }
@media (max-width: 575px) {
  .wl-again-panel { padding: 14px 16px; }
  .wl-again-panel .wl-again-logo { flex-basis: 44px; width: 44px; height: 44px; }
  .wl-again-btn { padding: 8px 12px; font-size: 13px; }
}
/* Space between the category sections (now at the bottom) and the footer band. */
.wl-home-cats { padding-bottom: 88px; }
.wl-v2-page .category-section { padding-bottom: 88px; }
@media (max-width: 767px) { .wl-home-cats, .wl-v2-page .category-section { padding-bottom: 56px; } }

/* Brand page: Important information | How it works, then small links. */
.wl-bp-cols.is-single { grid-template-columns: minmax(0, 1fr); }
.wl-bp-box { display: flex; flex-direction: column; }
.wl-bp-box h2 { margin: 0 0 16px; }
.wl-bp-clamp-box { position: relative; max-height: 11.5em; overflow: hidden; }
.wl-bp-clamp-box p { margin: 0 0 10px; }
.wl-bp-clamp-box.is-clamped:not(.is-open)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3em; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.wl-bp-clamp-box.is-open { max-height: none; }
.wl-bp-box .wl-bp-more { align-self: flex-start; margin-top: 6px; padding: 6px 0; min-height: 36px; background: none; border: 0; font-weight: 700; color: var(--color-brand-dark); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.wl-bp-steps { list-style: none; margin: 0; padding: 0; }
.wl-bp-steps li { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.wl-bp-steps li:last-child { padding-bottom: 0; }
.wl-bp-steps li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--color-border); }
.wl-bp-step-num { flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--color-brand-dark); color: #fff; font-weight: 800; font-size: 14px; position: relative; z-index: 1; }
.wl-bp-steps strong { display: block; font-size: 16px; line-height: 1.3; margin-top: 5px; }
.wl-bp-steps p { margin: 3px 0 0; font-size: 14.5px; line-height: 1.5; opacity: 1; color: #57534e; }
.wl-bp-links { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 24px; margin-top: 14px; padding: 0 4px; }
.wl-bp-links > a, .wl-bp-links summary { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; font-size: 14px; font-weight: 600; color: var(--color-brand-dark); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.wl-bp-links summary { list-style: none; }
.wl-bp-links summary::-webkit-details-marker { display: none; }
.wl-bp-links details[open] summary .wl-icon { transform: rotate(90deg); }
.wl-bp-links details { flex: 1 1 100%; order: 2; }
.wl-bp-links details[open] { padding-bottom: 8px; }
.wl-bp-links .wl-bp-terms { margin: 4px 0 0; padding: 16px 18px; border-radius: 12px; background: #fff; font-size: 13.5px; line-height: 1.6; color: #57534e; max-height: 320px; overflow: auto; }
@media (min-width: 768px) { .wl-bp-links details:not([open]) { flex: 0 0 auto; order: 0; } }

/* Payment pop-ups: theme colours instead of the old admin yellow and fixed greens. */
.wl-v2 .modal :is(.btn-custom-yellow, .submit_button, .payBankForm, .pay_by_bank) {
  background: var(--color-brand-dark) !important; color: #fff !important; border: 0 !important;
  min-height: 48px; border-radius: 10px; font-weight: 700; box-shadow: none;
}
.wl-v2 .modal :is(.btn-custom-yellow, .submit_button, .payBankForm, .pay_by_bank) * { color: inherit !important; }
.wl-v2 .modal :is(.btn-custom-yellow, .submit_button, .payBankForm, .pay_by_bank):hover { background: var(--color-brand-mid, var(--color-brand-dark)) !important; }
.wl-theme-spendstream .modal :is(.btn-custom-yellow, .submit_button, .payBankForm, .pay_by_bank) { border-radius: 6px; }
.wl-v2 .modal .back_option_selection_step { color: var(--color-text) !important; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
.wl-v2 .modal .back_option_selection_step:hover { background: var(--color-surface); }
.wl-v2 .modal .back_option_selection_step svg { width: 20px; height: 20px; }
.wl-v2 .modal .back_option_selection_step svg path[fill] { fill: currentColor; }
.wl-v2 .modal .back_option_selection_step svg path[stroke] { stroke: currentColor; }
/* "Best rate" and "You'll earn rewards" boxes: a tint of the theme accent. */
.wl-v2 .modal .best-rate-option,
.wl-v2 .modal :is(.reward-earn-box, .checkout-reward-box, .earn-rewards-box) {
  background: color-mix(in srgb, var(--color-accent) 12%, #fff) !important;
  border-color: color-mix(in srgb, var(--color-accent) 45%, #fff) !important;
}
.wl-v2 .modal .best-rate-badge { background: var(--color-brand-dark) !important; color: #fff !important; }
.wl-v2 .modal .best-rate-icon { background: #fff !important; color: var(--color-brand-dark) !important; }
.wl-v2 .modal :is(.best-rate-percent, .best-rate-label, .checkout-reward-amount, .payment-option-text .best-rate-percent) { color: var(--color-brand-dark) !important; }
/* Review step: the same soft rows as the rest of the checkout. */
.wl-v2 .modal :is(.reivewPay, .banksSetSeleced) { border: 1px solid var(--color-border) !important; border-radius: 12px !important; padding: 12px 16px !important; font-size: 16px; }
.wl-v2 .modal .banksSetSeleced hr { margin: 10px 0; border-color: var(--color-border); opacity: 1; }
.wl-v2 .modal .payment-method-heading { font-size: 24px; font-weight: 700; margin: 0 0 6px; }

/* My vouchers: each purchase drawn as a gift card (card face with logo and value), then one action. */
.wl-vc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 52px 20px; }
@media (max-width: 575px) { .wl-vc-grid { row-gap: 40px; } }
@media (max-width: 1199px) { .wl-vc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991px) { .wl-vc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wl-gc { display: flex; flex-direction: column; height: 100%; padding: 10px 10px 16px; background: #fff; border: 1px solid var(--color-border); border-radius: 12px; }
.wl-gc-face {
  position: relative; aspect-ratio: 5 / 4; display: flex; align-items: center; justify-content: center; padding: 8px 18% 34px;
  border-radius: 8px; background: #fff; border: 0; box-shadow: none; overflow: hidden;
}
.wl-gc-face img { max-width: 180px; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.wl-gc-value { position: absolute; left: 0; bottom: 4px; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--color-brand-dark); }
.wl-gc-kind { position: absolute; right: 0; bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #57534e; }
.wl-gc-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1 1 auto; padding: 8px 0 0; }
.wl-gc .wl-gc-name { margin: 0 0 4px; font-size: 20px; line-height: 30px; font-weight: 700; letter-spacing: -0.5px; color: var(--color-text); }
.wl-gc .wl-gc-meta { margin: 0 0 6px; font-size: 13.5px; font-weight: 500; line-height: 1.4; color: #57534e; }
.wl-gc .wl-gc-expiry { margin: 0 0 8px; font-size: 13.5px; line-height: 1.4; }
.wl-gc .wl-voucher-status { margin: 0 0 14px; font-size: 12px; font-weight: 600; line-height: 12px; padding: 5px 8px; }
.wl-gc-reveal { align-self: stretch; justify-content: center; display: inline-flex; align-items: center; min-height: 44px; margin-top: auto !important; }
.wl-gc-links { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; align-self: stretch; margin-top: 4px; }
.wl-gc-links .wl-voucher-again { display: inline-flex !important; width: auto !important; margin: 0 !important; min-height: 40px; font-size: 14px; }
.wl-gc-links .wl-balance { margin: 0; padding: 0; border: 0; min-height: 40px; justify-content: flex-end; gap: 4px 8px; font-size: 13px; }
.wl-gc-links .wl-balance-edit { font-size: 13px; font-weight: 600; color: #57534e; }
.wl-vc-search { margin: 0; flex: 0 1 360px; }
.wl-vc-search .search { position: relative; display: flex; align-items: center; width: 100%; height: 48px; padding: 0 18px 0 46px; border-radius: 999px; background: #fff; border: 1px solid var(--color-border); }
.wl-vc-search .search img { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); }
.wl-vc-search input { width: 100%; height: 100%; border: 0; background: transparent; font: inherit; font-size: 15px; outline: none; }
body .wl-vc-search input:focus-visible { outline: none !important; box-shadow: none !important; }
.wl-vc-search .search:has(input:focus-visible) { outline: 3px solid var(--color-brand-dark); outline-offset: 2px; }
.wl-theme-spendstream .wl-vc-search .search { border-radius: 8px; }
.wl-vc-more { padding: 56px 0 72px; }
@media (max-width: 575px) {
  /* Phones: a compact row per voucher, with a mini card on the left. */
  .wl-vc-grid { grid-template-columns: 1fr; gap: 36px; }
  .wl-gc { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 0 14px; align-items: start; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--color-border); }
  .wl-gc-face { padding: 10px 18% 20px; border-radius: 10px; box-shadow: none; }
  .wl-gc-value { left: 0; bottom: 4px; font-size: 14px; }
  .wl-gc-kind { display: none; }
  .wl-gc-body { padding: 0; }
  .wl-gc .wl-gc-name { font-size: 16px; line-height: 1.3; }
  .wl-gc .wl-voucher-status { margin-bottom: 10px; }
  .wl-gc-reveal { min-height: 42px; }
  .wl-vc-toolbar .wl-vc-search { flex: 1 1 100%; }
}
@media (max-width: 575px) {
  .wl-gc-links { justify-content: flex-start; gap: 0 16px; margin-top: 2px; }
  .wl-gc-links .wl-voucher-again, .wl-gc-links .wl-balance { min-height: 36px; }
  .wl-gc-links .wl-balance { justify-content: flex-start; }
}

/* "Back to <publisher site>" (footer on every page, and the phone menu). */
footer .footer-logo { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.wl-back-site { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: 15px; font-weight: 600; color: var(--color-text); text-decoration: underline; text-underline-offset: 3px; }
.wl-back-site .wl-icon { transform: rotate(180deg); }
.mobile-menu .wl-back-site { font-size: 16px; }

/* "Back to <publisher site>": a slim bar at the top of the sticky header, on every page. */
header#header:has(.wl-back-bar) { padding-top: 0; }
.wl-back-bar { background: var(--color-surface); border-bottom: 1px solid var(--color-border); margin-bottom: 14px; }
.wl-back-bar .container { display: flex; align-items: center; min-height: 34px; }
.wl-back-bar a { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; font-size: 13.5px; font-weight: 600; color: var(--color-text); text-decoration: none; }
.wl-back-bar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wl-back-bar .wl-icon { transform: rotate(180deg); }
@media (max-width: 991px) { .wl-back-bar { margin-bottom: 10px; } .wl-back-bar .container { padding-left: 16px; padding-right: 16px; } }
/* Sticky things below the header and in-page jumps clear the taller header. */
@media (max-width: 767px) { body:has(.wl-back-bar) .card-section.brand-page form.wl-brand-filters { top: 98px; } }
body:has(.wl-back-bar) :is(#how_it_works, #how_we_works, #calculator) { scroll-margin-top: 136px; }
body:has(.wl-back-bar) .legal-page .wl-legal-doc { scroll-margin-top: 156px; }
body:has(.wl-back-bar) .legal-nav { top: 136px; }

/* Tiles with a yearly £ amount: the rate as a short italic line ("10% back on every purchase").
   The rates view (All brands toggle) shows the full offer instead. */
.card-box .wl-card-rate .wl-card-rate-yearly { font-style: italic; font-weight: 500; font-size: 13.5px; color: #57534e; -webkit-text-fill-color: #57534e; background: none; }
.card-box .wl-card-rate .wl-card-rate-full { display: none; }
.wl-bp-links .wl-icon-external, .wl-bp-step-link .wl-icon-external { transform: none; }
.wl-bp-step-link { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; color: var(--color-brand-dark); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* Tile tooltips open upwards (over the logo area), so carousels and grids never cut them off. */
.card-box .wl-tip-pop { top: auto; bottom: calc(100% + 10px); }
.card-box .wl-tip-pop::before { top: auto; bottom: -6px; }

/* Every brand tile in a row is the same height (carousels and grids). */
.featured-slider .slick-track, .popular-slider .slick-track, .card-list .slick-track { display: flex !important; }
.featured-slider .slick-slide, .popular-slider .slick-slide, .card-list .slick-slide { height: auto !important; float: none; }
.card-list { align-items: stretch; }
.card-list > .card-box, .featured-slider .card-box { height: auto; align-self: stretch; }

/* All brands hero (returning members): greeting | stats, then a "Buy again" strip of chips. */
.wl-acct-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; position: relative; z-index: 1; }
.wl-acct-hero-text { flex: 1 1 380px; min-width: 0; }
.wl-acct-hero-text .wl-welcome-intro { margin-bottom: 0; }
.wl-acct-stats { flex: 0 1 560px; margin: 0 !important; }
.wl-again-strip {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap;
  margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.wl-again-strip .wl-again-title { margin: 0 4px 0 0; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); }
.wl-again-chips { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; flex: 1 1 auto; }
.wl-again-chip {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: #fff; color: var(--color-text); text-decoration: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); transition: transform 0.15s ease;
}
.wl-again-chip:hover { transform: translateY(-1px); color: var(--color-text); }
.wl-again-chip-logo { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--color-border); }
.wl-again-chip-logo img { max-width: 80% !important; max-height: 80% !important; width: auto !important; height: auto !important; object-fit: contain; }
.wl-again-chip-name { font-weight: 700; font-size: 15px; white-space: nowrap; }
.wl-again-chip-cta { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-size: 14px; color: var(--color-brand-dark); white-space: nowrap; }
.wl-theme-spendstream .wl-again-chip { border-radius: 10px; }
.wl-theme-spendstream .wl-again-chip-logo { border-radius: 8px; }
.wl-theme-spendstream .wl-again-chip-cta { color: #b9503a; }
.wl-again-strip .wl-again-all { margin-left: auto; color: #fff; }
.wl-again-strip .wl-again-empty { margin: 0; color: rgba(255, 255, 255, 0.85); flex: 1 1 auto; }
@media (max-width: 767px) {
  .wl-acct-stats { flex-basis: 100%; }
  .wl-again-strip { margin-top: 20px; padding-top: 16px; }
  .wl-again-strip .wl-again-title { flex: 1 1 auto; }
  .wl-again-strip .wl-again-all { order: 1; margin-left: 0; }
  .wl-again-chips { order: 2; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; }
  .wl-again-chips::-webkit-scrollbar { display: none; }
  .wl-again-chips li { flex: 0 0 auto; }
}

/* My vouchers: the card face opens the voucher too (same as "Reveal voucher"). */
a.wl-gc-face { text-decoration: none; color: inherit; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
a.wl-gc-face:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 14px 28px rgba(20, 30, 50, 0.12); color: inherit; }

/* Brand page: the amount you type sits on the left, next to the £. */
#wl-buy-slot input#amount_paid, #wl-buy-slot .voucher-amount-input { text-align: left !important; }

/* Brand page hero: breathing room around the brand logo. */
.wl-bp-logo { padding: 18px !important; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.wl-bp-logo img { width: 100% !important; height: 100% !important; object-fit: contain !important; }
@media (max-width: 767px) { .wl-bp-logo { padding: 12px !important; } }

/* Brand page buy bar (every screen size): slides up once the buy box has scrolled away. */
.wl-buy-bar {
  display: block !important; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  background: var(--color-white); border-top: 1px solid var(--color-border); box-shadow: 0 -10px 28px rgba(10, 20, 30, 0.12);
  transform: translateY(110%); transition: transform 0.25s ease; visibility: hidden;
}
.wl-buy-bar.is-visible { transform: translateY(0); visibility: visible; }
.modal-open .wl-buy-bar { transform: translateY(110%); }
.wl-buy-bar-inner { display: flex; align-items: center; gap: 12px 20px; }
.wl-buy-bar-brand { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; }
.wl-buy-bar-brand img { flex: 0 0 44px; width: 44px; height: 44px; object-fit: contain; padding: 4px; border-radius: 10px; border: 1px solid var(--color-border); background: #fff; }
.wl-buy-bar-brand span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.wl-buy-bar-brand strong { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-buy-bar-brand small { font-size: 13px; color: #57534e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-buy-bar-amount { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.wl-buy-bar-field, .wl-buy-bar-input { height: 46px; border-radius: 10px; border: 1px solid var(--color-border); background: #fff; font: inherit; font-size: 16px; }
select.wl-buy-bar-field { min-width: 170px; padding: 0 36px 0 14px; }
.wl-buy-bar-input { display: inline-flex; align-items: center; gap: 4px; padding: 0 12px; width: 150px; }
.wl-buy-bar-input span { font-weight: 700; }
.wl-buy-bar-input input { width: 100%; height: 100%; border: 0; outline: none; background: transparent; font: inherit; text-align: left; }
.wl-buy-bar-input:has(input:focus-visible) { outline: 3px solid var(--color-brand-dark); outline-offset: 2px; }
body .wl-buy-bar-input input:focus-visible { outline: none !important; box-shadow: none !important; }
.wl-buy-bar-chips { display: flex; gap: 6px; }
.wl-buy-bar-chip { height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--color-border); background: #fff; font-weight: 700; cursor: pointer; }
.wl-buy-bar-chip:hover { border-color: var(--color-brand-dark); }
.wl-buy-bar-reward { margin: 0; flex: 0 1 220px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.wl-buy-bar .wl-buy-bar-btn { flex: 0 0 auto; width: auto !important; min-height: 46px; padding: 0 22px !important; white-space: nowrap; }
.wl-theme-spendstream :is(.wl-buy-bar-field, .wl-buy-bar-input, .wl-buy-bar-chip) { border-radius: 6px; }
/* Keep the page's last content clear of the bar while it is showing. */
body.wl-has-buy-bar { padding-bottom: 84px; }
@media (max-width: 1199px) { .wl-buy-bar-chips { display: none; } .wl-buy-bar-reward { flex-basis: 180px; } }
@media (max-width: 991px) {
  .wl-buy-bar-brand small { display: none; }
}
@media (max-width: 767px) {
  .wl-buy-bar { padding-top: 10px; }
  .wl-buy-bar-inner { flex-wrap: wrap; gap: 8px 10px; }
  .wl-buy-bar-brand { display: none; }
  .wl-buy-bar-amount { flex: 1 1 0; min-width: 0; }
  select.wl-buy-bar-field, .wl-buy-bar-input { width: 100%; min-width: 0; }
  .wl-buy-bar .wl-buy-bar-btn { flex: 0 0 auto; padding: 0 16px !important; }
  .wl-buy-bar-reward { order: 3; flex: 1 1 100%; font-size: 13px; text-align: center; }
  body.wl-has-buy-bar { padding-bottom: 120px; }
}
@media (prefers-reduced-motion: reduce) { .wl-buy-bar { transition: none; } }

/* Jumping to search results: stop below the sticky header (and back bar). */
#choose_brands, #loadMoreBlock { scroll-margin-top: 112px; }
body:has(.wl-back-bar) :is(#choose_brands, #loadMoreBlock) { scroll-margin-top: 150px; }
@media (max-width: 991px) {
  #choose_brands, #loadMoreBlock { scroll-margin-top: 84px; }
  body:has(.wl-back-bar) :is(#choose_brands, #loadMoreBlock) { scroll-margin-top: 120px; }
}

/* Buy bar amount box: one focused state on the whole box (no second outline on the inner input). */
.wl-buy-bar-input input, .wl-buy-bar-input input:focus, .wl-buy-bar-input input:focus-visible {
  border: 0 !important; outline: none !important; box-shadow: none !important; border-radius: 0 !important; background: transparent !important; padding: 0 !important; height: 100%;
}
.wl-buy-bar-input:has(input:focus-visible), .wl-buy-bar-input:focus-within {
  outline: none !important; border-color: var(--color-brand-dark); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-brand-dark) 18%, transparent);
}
select.wl-buy-bar-field:focus-visible { outline: none !important; border-color: var(--color-brand-dark); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-brand-dark) 18%, transparent) !important; }

/* After a purchase: confirmation, what happens next, Open voucher / Buy another. */
.wl-pc { padding: 32px 0 0; }
.wl-pc-card {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 28px 40px; padding: 28px 32px;
  border-radius: 20px; background: #fff; border: 1px solid var(--color-border); box-shadow: 0 12px 30px rgba(20, 30, 50, 0.08);
  border-top: 6px solid #17663a;
}
.wl-pc-card.is-pending { border-top-color: #b07d12; }
.wl-pc-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.wl-pc-icon { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #e6f6ea; color: #17663a; }
.is-pending .wl-pc-icon { background: #fff4dc; color: #8a5a00; }
.wl-pc-head h2 { margin: 0 0 4px; font-size: 26px; line-height: 1.2; }
.wl-pc-head p { margin: 0; color: #57534e; font-size: 15px; }
.wl-pc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.wl-pc-steps li { display: flex; gap: 10px; padding: 14px; border-radius: 14px; background: var(--color-surface); }
.wl-pc-num { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--color-brand-dark); color: #fff; font-size: 13px; font-weight: 800; }
.wl-pc-steps strong { display: block; font-size: 15px; line-height: 1.3; margin-bottom: 2px; }
.wl-pc-steps span:not(.wl-pc-num) { display: block; font-size: 13.5px; line-height: 1.45; color: #57534e; }
.wl-pc-side { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.wl-pc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; width: 100%; font-weight: 700; }
.wl-pc-btn-alt { background: #fff !important; color: var(--color-brand-dark) !important; border: 2px solid var(--color-brand-dark) !important; }
.wl-pc-btn-alt:hover { background: var(--color-surface) !important; }
.wl-pc-picks-label { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: #57534e; }
.wl-pc-picks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wl-pc-picks .wl-again-chip { border: 1px solid var(--color-border); box-shadow: none; justify-content: flex-start; }
.wl-pc-picks .wl-again-chip-cta { margin-left: auto; }
@media (max-width: 991px) {
  .wl-pc-card { grid-template-columns: 1fr; padding: 22px 20px; }
  .wl-pc-steps { grid-template-columns: 1fr; gap: 8px; }
  .wl-pc-head h2 { font-size: 22px; }
}
@media (max-width: 991px) {
  /* Phones: heading, then the two buttons, then what happens next, then quick picks. */
  .wl-pc-card { display: flex; flex-direction: column; gap: 14px; }
  .wl-pc-main, .wl-pc-side { display: contents; }
  .wl-pc-head { order: 1; margin-bottom: 0; }
  .wl-pc-side > .wl-pc-btn { order: 2; }
  .wl-pc-steps { order: 3; }
  .wl-pc-picks-label { order: 4; margin-top: 4px; }
  .wl-pc-picks { order: 5; }
}

/* My vouchers: "Track balance" opens as one compact row under the links, without moving the cards. */
.wl-gc-reveal { margin-top: 0 !important; }
.wl-gc-links .wl-balance:has(.wl-balance-form) { flex: 1 1 100%; justify-content: flex-start; min-height: 0; padding-top: 2px; }
.wl-gc-links .wl-balance-form { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; width: 100%; }
.wl-gc-links .wl-balance-prefix { font-weight: 700; }
.wl-gc-links .wl-balance-form input {
  width: 96px; min-height: 36px; height: 36px; padding: 0 8px; border: 1px solid var(--color-border); border-radius: 8px;
  font: inherit; font-size: 15px; background: #fff; -moz-appearance: textfield; appearance: textfield;
}
.wl-gc-links .wl-balance-form input::-webkit-outer-spin-button, .wl-gc-links .wl-balance-form input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
body .wl-gc-links .wl-balance-form input:focus-visible { outline: none !important; border-color: var(--color-brand-dark); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-brand-dark) 18%, transparent) !important; }
.wl-gc-links .wl-balance-save { height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--color-brand-dark); color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; }
.wl-gc-links .wl-balance-cancel { min-height: 36px; padding: 0 4px; font-size: 13px; }
.wl-theme-spendstream .wl-gc-links :is(.wl-balance-form input, .wl-balance-save) { border-radius: 6px; }
.wl-gc-links .wl-balance:has(.wl-balance-form), .wl-gc-links .wl-balance-form { justify-content: flex-start !important; margin-left: 0 !important; padding-left: 0; }

/* Brand tiles: the Popular / New / Limited badge stays above the logo when it grows on hover. */
.badge-box .badge { z-index: 3; }

/* Brand tiles: the rate leads ("10% back / on every purchase"), the yearly £ sits underneath. */
.card-box .wl-card-pct { padding: 0 10px; font-size: 17px; font-weight: 700; line-height: 1.1; color: var(--color-brand-dark); }
.card-box .wl-card-pct strong { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; color: var(--color-brand-dark); }
.wl-theme-spendstream .card-box .wl-card-pct, .wl-theme-spendstream .card-box .wl-card-pct strong { color: #b9503a; }
.card-box .wl-card-pct .wl-was { font-size: 15px; font-weight: 600; color: #57534e; margin-right: 2px; }
.card-box .wl-card-pct-sub { padding: 2px 10px 0; font-size: 13.5px; color: #57534e; }
/* The rate pill ("2.25% off") stays on one line; on very narrow phones (320px) it shrinks a little instead of wrapping. */
.card-box .wl-card-pct { white-space: nowrap; }
@media (max-width: 359px) {
  .card-box .wl-card-pct { font-size: 13px; padding: 0 6px; }
  .card-box .wl-card-pct strong { font-size: 20px; }
}
/* Dark-header themes: tuck the first hero band 2px under the header so no white hairline shows between them at fractional
   header heights (some zoom levels and phones). */
:is(.wl-theme-goroqit, .wl-theme-surgepadel, .wl-theme-cleanglossy, .wl-theme-onepmobile) main > :is(.wl-welcome, .wl-bp, .page-hero, .voucher-intro, .brand-detail-banner, .brand-listing-banner, .subpage-brand-banner, .wl-acct-top, .brand-banner):first-child,
:is(.wl-theme-goroqit, .wl-theme-surgepadel, .wl-theme-cleanglossy, .wl-theme-onepmobile) main > :first-child > :is(.wl-welcome, .wl-bp, .page-hero, .brand-detail-banner, .brand-listing-banner, .subpage-brand-banner, .wl-acct-top, .brand-banner):first-child,
:is(.wl-theme-goroqit, .wl-theme-surgepadel, .wl-theme-cleanglossy, .wl-theme-onepmobile) main > .wl-bp-page > .wl-bp:first-child { margin-top: -2px; }
.card-box .wl-card-yearly { display: block; margin: 10px 10px 0; padding: 8px 0 0; border-top: 1px dashed var(--color-border); font-size: 13.5px; line-height: 1.4; color: var(--color-text); }
.card-box .wl-card-yearly strong { display: inline; font-size: 14.5px; letter-spacing: 0; color: var(--color-text) !important; }
.card-box .wl-card-yearly .wl-tip { width: 24px; height: 24px; margin: -3px 0 -3px 0; vertical-align: middle; }
.card-box .wl-card-yearly .wl-tip-pop { left: 0; right: 0; }
@media (max-width: 575px) {
  .card-box .wl-card-pct strong { font-size: 24px; }
  .card-box .wl-card-pct { font-size: 15px; }
}

/* "Watch how it works" (the publisher's explainer video) and its pop-up player. */
.wl-video-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 16px 6px 6px; border-radius: 999px;
  border: 1px solid var(--color-border); background: #fff; color: var(--color-text); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
}
.wl-video-btn:hover { border-color: var(--color-brand-dark); }
.wl-video-play { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--color-accent); color: var(--color-on-accent, var(--color-brand-dark)); }
.wl-video-play svg { margin-left: 2px; }
.wl-video-btn.is-light { margin-top: 18px; background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.wl-video-btn.is-light:hover { background: rgba(255, 255, 255, 0.18); border-color: #fff; }
.wl-video-btn.is-small { margin-top: 16px; font-size: 14px; min-height: 40px; }
.wl-video-btn.is-small .wl-video-play { width: 28px; height: 28px; }
.wl-video-row { display: flex; justify-content: center; margin: 4px 0 8px; }
.wl-video-row:empty { display: none; }
.help-page-content .wl-video-btn { margin: 0 0 18px; }
.wl-theme-spendstream .wl-video-btn { border-radius: 8px; }
.wl-theme-spendstream .wl-video-play { border-radius: 6px; }
.wl-video-dialog { width: min(960px, calc(100vw - 32px)); max-width: none; padding: 0; border: 0; border-radius: 16px; background: #000; overflow: visible; }
.wl-video-dialog::backdrop { background: rgba(10, 15, 25, 0.75); }
.wl-video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; }
.wl-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wl-video-close { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: var(--color-text); font-size: 26px; line-height: 1; cursor: pointer; }
.wl-video-dialog { margin: auto !important; inset: 0; position: fixed; height: fit-content; }
.wl-stat-source { line-height: 1.5 !important; max-width: 680px; }
header .wl-stars .wl-star-off { color: #dcdce6; }
.wl-bp-last a { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 0; }
.card_custom_text h1.h2 { font-family: var(--heading-font); font-weight: 800; margin: 0 0 16px; color: #fff; font-size: clamp(32px, 5vw, 48px); line-height: clamp(40px, 5vw, 58px); }

/* Voucher expiry */
.wl-gc-expiry { margin: -2px 0 6px; font-size: 14px; color: var(--color-text-muted, #5b6472); }
.wl-gc-expiry.is-soon { color: #8a4b00; font-weight: 600; }
.wl-gc-expiry.is-expired { color: #a12727; font-weight: 600; }

/* Header search suggestions */
.wl-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 1100; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--color-border); border-radius: 14px; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14); max-height: 320px; overflow-y: auto; }
.wl-suggest[hidden] { display: none; }
.wl-suggest li { padding: 10px 12px; border-radius: 9px; font-size: 15px; color: var(--color-text, #1a1a1a); cursor: pointer; }
.wl-suggest li:hover, .wl-suggest li.is-active { background: var(--color-surface); }
.wl-suggest li.is-active { outline: 2px solid var(--color-brand-dark, #1a1a1a); outline-offset: -2px; }
.wl-nav-search .wl-suggest { min-width: 240px; }

/* One-off notice after a failed or cancelled payment */
.wl-flash { padding: 14px 0; border-bottom: 1px solid var(--color-border); background: #fff4e5; color: #5a3200; }
.wl-flash.is-error { background: #fdecea; color: #7a1d12; }
.wl-flash p { margin: 0; font-size: 16px; font-weight: 500; }

/* Mobile menu: start under the header (set by JS) rather than at a fixed 49px, and centre wrapped links. */
@media (max-width: 991.98px) {
  .active-menu header .mobile-menu { top: var(--wl-menu-top, 49px); height: calc(100vh - var(--wl-menu-top, 49px)); height: calc(100dvh - var(--wl-menu-top, 49px)); overflow-y: auto; }
  .mobile-menu ul li { width: 100%; text-align: center; }
  .mobile-menu ul li a { display: inline-block; text-align: center; line-height: 1.3; }
}

/* Audit B5/B7/B9 (2 Nov 2026) */
/* B5: inputs under 16px make iOS Safari zoom the page on focus. */
@media (max-width: 767.98px) {
  #welcome-brand-search, #page-brand-search, #wl-faq-search, #brand-category-filter, #brand-type-filter, #brand-sort, #help-topic { font-size: 16px; }
}
/* B7: bigger touch areas without changing how things look. */
/* Only the small info buttons get the larger touch area. (This used to match the Top tips panel too, whose invisible overlay then blocked its close button.) */
button.wl-tip { position: relative; }
button.wl-tip::after { content: ""; position: absolute; inset: -10px; }
@media (max-width: 767.98px) {
  footer li a, .legal-nav a { display: inline-flex; align-items: center; min-height: 44px; }
}
/* B9: keep "£0" on one line in the calculator scale. */
.wl-bp-calc-scale span { white-space: nowrap; }

/* Mobile: text fields are 16px everywhere, so iOS Safari never zooms the page when one is focused (the menu search was 15px). */
@media (max-width: 991.98px) {
  .wl-v2 :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]), select, textarea) { font-size: 16px !important; }
  /* Burger menu: calmer type and a clean search field (the input had its own border inside the pill). */
  .mobile-menu ul li a { font-size: 20px !important; }
  .mobile-menu form.header-search-form input { border: 0 !important; background: transparent !important; box-shadow: none !important; outline: 0; }
  .mobile-menu form.header-search-form:focus-within { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); }
}

/* Mobile polish: full-width buttons in panels, filter selects, compact Top tips */
@media (max-width: 991.98px) {
  .wl-v2 :is(.wl-amount-panel, .wl-again-row, .wl-balance, .wl-welcome) .btn { max-width: none; }
  .wl-v2 select { min-width: 0; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 640px) {
  #ss-rewards-tip { max-width: calc(100vw - 24px); }
  #ss-rewards-tip .ss-tip__brands { display: none !important; }
}
.wl-demo-bar a { font: inherit; }

/* Hero stat tile: the "how is this worked out" note lives in a tooltip next to the figure, not as a paragraph under the tiles. */
.wl-stats { position: relative; }
.wl-stats .wl-tip-wrap { position: static; }
.wl-stat-tip {
  position: relative;
  display: inline-grid; place-items: center; width: 28px; height: 28px; margin: -4px 0 -4px 4px; padding: 0; vertical-align: middle;
  border: 0; border-radius: 50%; background: transparent; color: inherit; opacity: 0.85; cursor: pointer;
}
.wl-stat-tip:hover, .wl-stat-tip[aria-expanded="true"] { opacity: 1; background: rgba(255, 255, 255, 0.16); }
.wl-stat-tip:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.wl-stat-pop {
  position: absolute; z-index: 30; left: 0; bottom: calc(100% + 8px); top: auto; display: block; width: min(340px, 100%);
  padding: 10px 12px; border-radius: 10px; background: #111827; color: #fff !important; text-shadow: none;
  font-size: 12.5px; font-weight: 500; line-height: 1.5; text-align: left; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.wl-stat-pop[hidden] { display: none; }
.wl-stats .wl-stat-tip::after { content: ""; position: absolute; inset: -8px; }

/* Mobile: hero stat tiles and welcome search must never clip their content on narrow phones. */
@media (max-width: 480px) {
  .wl-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wl-stat { min-width: 0; }
  .wl-stat strong { font-size: 17px; overflow-wrap: anywhere; }
  .wl-v2 .wl-welcome-search button { padding-inline: 12px !important; letter-spacing: 0.02em !important; font-size: 13px; flex: 0 0 auto; }
  .wl-welcome-search input { text-overflow: ellipsis; }
}

/* Brand hero: gift-card artwork (330x214) shown larger than the old 180px square logo. */
.wl-bp-logo:not(.is-square) { width: 300px; height: auto; aspect-ratio: 330 / 214; padding: 0 !important; border-radius: 16px; }
.wl-bp-logo:not(.is-square) img { width: 100% !important; height: 100% !important; object-fit: cover !important; padding: 0 !important; background: none !important; }
@media (max-width: 1199.98px) { .wl-bp-logo:not(.is-square) { width: 260px; } }
@media (max-width: 991.98px) { .wl-bp-logo:not(.is-square) { width: 220px; } }
@media (max-width: 575.98px) { .wl-bp-logo:not(.is-square) { width: 124px; border-radius: 12px; } }

/* Demo notice: closable (stays closed for the session). */
.wl-demo-bar { position: relative; }
.wl-demo-bar[hidden], .wl-demo .wl-demo-bar[hidden] { display: none !important; }
.wl-demo-bar .wl-demo-close {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; padding: 0;
  display: inline-grid; place-items: center; background: transparent; border: 0; border-radius: 50%; color: inherit; cursor: pointer; opacity: 0.85;
}
.wl-demo-bar .wl-demo-close:hover { opacity: 1; background: rgba(127, 127, 127, 0.2); }
.wl-demo-bar .wl-demo-close:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
.wl-demo-bar { padding-right: 52px; padding-left: 52px; }
@media (max-width: 767.98px) { .wl-demo-bar { padding-left: 10px; padding-right: 44px; font-size: 12.5px; gap: 6px; } .wl-demo-bar .wl-demo-close { right: 0; } }

/* My vouchers: the card face shows Tillo's gift-card artwork (330x214) with the value and "Gift card" on a row beneath. */
.wl-gc-face.has-art { aspect-ratio: auto; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 10px; padding: 0; overflow: visible; }
.wl-gc-face.has-art img { width: 100%; max-width: none; height: auto; aspect-ratio: 330 / 214; object-fit: cover; border-radius: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14); }
.wl-gc-face.has-art .wl-gc-face-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.wl-gc-face.has-art :is(.wl-gc-value, .wl-gc-kind) { position: static; }
@media (max-width: 575.98px) { .wl-gc-face.has-art { padding: 0; gap: 6px; } .wl-gc-face.has-art img { border-radius: 8px; } .wl-gc-face.has-art .wl-gc-kind { display: none; } }

/* ---------- Phone layout fixes (3 Nov 2026) ---------- */
/* "Adjust my spending" fills its panel like the other full-width buttons (the global mobile .btn cap left it off-centre). */
.wl-calc-toggle { display: block; width: 100%; max-width: none; margin-inline: 0; text-align: center; }
/* Brand tiles: the name sits right above the tags (the link's bottom margin made a visible gap). */
.card-box :is(h3, h4) a { margin-bottom: 2px; }
.card-section.brand-page .card-box h3 { margin-bottom: 0; }  /* the section-heading margin (20/40px) was also hitting each tile's name */
.card-box .wl-tags { padding-top: 2px; }
@media (max-width: 767px) {
  /* The sticky search/filter bar runs edge to edge. */
  .card-section.brand-page form.wl-brand-filters {
    margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); width: auto;
  }
}
@media (max-width: 575px) {
  /* The sort button sits in the flow, right-aligned above the cards, instead of floating over them. */
  .mobile-filter { position: static; top: auto; margin: 0 0 8px auto; width: 50px; height: 42px; }
}

/* Gift card art on a dark band: a dark card (M&S, black cards) used to melt into the band.
   A hairline light rim, a top-edge sheen and a soft glow behind lift any card off any band
   colour; on light cards they are barely visible. Themes can tint the glow with --wl-card-glow. */
.wl-bp-logo:not(.is-square) { position: relative; isolation: isolate; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 0 56px 4px var(--wl-card-glow, rgba(255, 255, 255, 0.14)), 0 20px 44px rgba(0, 0, 0, 0.42); }
.wl-bp-logo:not(.is-square)::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); background: linear-gradient(155deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 28%, rgba(255, 255, 255, 0) 45%); }

/* Brand tiles for Tillo brands show the gift card artwork (330x214) edge to edge instead of the square logo. */
.card-box .img.is-art { aspect-ratio: 330 / 214 !important; padding: 0 !important; background: var(--color-surface, #f3f3f3); overflow: hidden; }
.card-box .img.is-art img { width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; aspect-ratio: auto; object-fit: cover !important; border-radius: inherit; padding: 0 !important; }

/* Header account button: just "My gift cards", centred (no avatar, balance or name). */
header#header .wl-account-chip--label { display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: 0; min-height: 40px; padding: 8px 18px !important; line-height: 1; }
header#header .wl-account-chip--label .wl-account-text { display: block; margin: 0; padding: 0; line-height: 1; }
header#header .wl-account-chip--label .wl-account-balance { display: block; margin: 0; line-height: 1.1; white-space: nowrap; }

/* ---------- All brands: one sticky filter bar (search + where + sort on one row, category chips below) ---------- */
.card-section.brand-page .wl-filter-bar { position: sticky; top: var(--wl-header-h, 72px); z-index: 50; background: var(--color-canvas, #fff); padding: 12px 0 12px; margin-bottom: 18px; border-bottom: 1px solid var(--color-border, #e5e7eb); }
.card-section.brand-page .wl-filter-bar form.wl-brand-filters { position: static !important; display: flex !important; align-items: center; gap: 12px; margin: 0 !important; padding: 0 !important; box-shadow: none !important; background: none !important; top: auto !important; }
.card-section.brand-page .wl-filter-bar form.wl-brand-filters .search { flex: 1 1 auto; margin: 0; min-width: 0; }
.card-section.brand-page .wl-filter-bar .wl-filter-selects { display: flex; gap: 10px; flex: 0 0 auto; }
.card-section.brand-page .wl-filter-bar .wl-filter-selects select { width: auto; min-width: 0; margin: 0; }
.wl-cat-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 12px; padding: 2px 2px 4px; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.wl-cat-chips::-webkit-scrollbar { display: none; }
.wl-cat-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 5px 16px 5px 5px; border: 1px solid var(--color-border, #e5e7eb); border-radius: 999px; background: var(--color-canvas, #fff); color: var(--color-text, #1a1a1a); font: inherit; font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.wl-cat-chip:hover { border-color: var(--color-brand-dark, #1a1a1a); }
.wl-cat-chip:focus-visible { outline: 2px solid var(--color-brand-dark, #1a1a1a); outline-offset: 2px; }
.wl-cat-chip .wl-cat-ico, .wl-cat-chip .wl-cat-initial { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; background: var(--color-surface, #f3f4f6); box-shadow: none; display: inline-flex; align-items: center; justify-content: center; color: var(--color-brand-dark, #1a1a1a); font-size: 14px; }
.wl-cat-chip .wl-cat-ico .wl-cat-svg { width: 18px; height: 18px; }
.wl-cat-chip.is-active { background: var(--color-brand-dark, #1a1a1a); border-color: var(--color-brand-dark, #1a1a1a); color: #fff; }
.wl-cat-chip.is-active .wl-cat-ico, .wl-cat-chip.is-active .wl-cat-initial { background: var(--color-accent, #fee748); color: var(--color-on-accent, #1a1a1a); }
@media (max-width: 767px) {
  .card-section.brand-page .wl-filter-bar { margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); box-shadow: 0 8px 12px -12px rgba(0, 0, 0, 0.25); }
  .card-section.brand-page .wl-filter-bar form.wl-brand-filters { flex-wrap: wrap; gap: 8px; }
  .card-section.brand-page .wl-filter-bar form.wl-brand-filters .search { flex-basis: 100%; }
  .card-section.brand-page .wl-filter-bar .wl-filter-selects { flex: 1 1 100%; }
  .card-section.brand-page .wl-filter-bar .wl-filter-selects { min-width: 0; width: 100%; }
  .card-section.brand-page .wl-filter-bar .wl-filter-selects select { flex: 1 1 0; width: 0 !important; min-width: 0 !important; max-width: none !important; font-size: 14px; height: 42px; }
  .wl-cat-chips { margin-top: 10px; margin-right: calc(50% - 50vw); }
  .wl-cat-chip { min-height: 40px; font-size: 14px; }
  .wl-cat-chip .wl-cat-ico, .wl-cat-chip .wl-cat-initial { width: 28px; height: 28px; flex-basis: 28px; }
}

/* ---------- First-visit homepage (members who haven't bought yet): explain first, then brands ---------- */
.wl-first .wl-first-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; position: relative; z-index: 1; }
.wl-first-eyebrow { display: inline-block; margin: 0 0 16px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); font-size: 14px; font-weight: 600; }
.wl-first h1 { margin: 0 0 14px; }
.wl-first-lead { font-size: 19px; line-height: 1.5; margin: 0 0 24px; opacity: 0.95; }
.wl-first-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.wl-first-ctas .btn { display: inline-flex; align-items: center; gap: 6px; }
.wl-first-ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 20px 0 0; padding: 0; font-size: 15px; }
.wl-first-ticks li::before { content: "✓"; font-weight: 800; margin-right: 6px; color: var(--wl-hl-on-dark, #fff); }
.wl-first-example { background: #fff; color: var(--color-text, #1a1a1a); border-radius: 20px; padding: 22px; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3); }
.wl-first-example-title { margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wl-hl, var(--color-brand-dark)); }
.wl-first-example ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wl-first-example li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--color-surface, #f3f4f6); }
.wl-first-example li img { width: 84px; height: auto; aspect-ratio: 330 / 214; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.wl-first-example li strong { display: block; font-size: 16px; line-height: 1.3; }
.wl-first-example li small { display: block; font-size: 14px; line-height: 1.4; opacity: 0.8; }
.wl-first-n { flex: 0 0 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; background: var(--color-accent, #fee748); color: var(--color-on-accent, #1a1a1a); }
.wl-first-example li.is-win { background: var(--color-brand-dark, #1a1a1a); color: #fff; }
.wl-first-example li.is-win small { opacity: 0.85; }
.wl-first-win { margin-left: auto; padding-left: 8px; font-size: 26px; font-weight: 800; white-space: nowrap; color: var(--wl-hl-on-dark, #fff); }
.wl-first-note { margin: 10px 2px 0; font-size: 13px; opacity: 0.75; }
.wl-why { padding: 48px 0; }
.wl-why h2, .wl-first-faq h2 { text-align: center; margin-bottom: 8px; }
.wl-why > .container > p { text-align: center; margin: 0 0 28px; }
.wl-why-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.wl-why-cards li { background: var(--color-surface, #f3f4f6); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.wl-why-cards strong { font-size: 17px; }
.wl-why-cards li > span:last-child { font-size: 15px; line-height: 1.45; opacity: 0.85; }
.wl-why-ico { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px; font-size: 20px; font-weight: 800; background: var(--color-brand-dark, #1a1a1a); color: var(--wl-hl-on-dark, #fff); }
.wl-first-faq { padding: 48px 0; background: var(--color-surface, #f3f4f6); }
.wl-first-faq-list { max-width: 820px; margin: 20px auto 0; }
.wl-first-faq details { background: #fff; border: 1px solid var(--color-border, #e5e7eb); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
.wl-first-faq summary { font-weight: 700; font-size: 17px; cursor: pointer; }
.wl-first-faq details p { margin: 10px 0 0; }
.wl-first-faq-more { text-align: center; margin: 14px 0 0; }
.wl-anchor { display: block; position: relative; top: calc(-1 * var(--wl-header-h, 80px)); visibility: hidden; }
@media (max-width: 991px) {
  .wl-first .wl-first-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .wl-why-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .wl-first-lead { font-size: 17px; }
  .wl-why-cards { grid-template-columns: minmax(0, 1fr); }
  .wl-why, .wl-first-faq { padding: 36px 0; }
  .wl-first-example { padding: 16px; }
  .wl-first-example li img { width: 64px; }
  .wl-first-win { font-size: 22px; }
}
.wl-first-example li.is-win :is(strong, small, span) { color: #fff !important; }
.wl-first-example li.is-win .wl-first-n { color: var(--color-on-accent, #1a1a1a) !important; }
.wl-first-example li.is-win .wl-first-win { color: var(--wl-hl-on-dark, #fff) !important; }

/* Free-entry publishers: the entries offer on brand tiles is the headline, like the % on cashback sites:
   a highlighted "2 free entries" with "for every £10 you spend" underneath. */
.card-box .wl-card-entries { display: inline-flex; align-items: baseline; gap: 6px; align-self: flex-start; margin: 4px 10px 2px; padding: 6px 12px 7px; border-radius: 10px; background: var(--color-accent, #fee748); color: var(--color-on-accent, #1a1a1a); font-size: 16px; font-weight: 700; line-height: 1.1; }
.card-box .wl-card-entries strong { font-size: 28px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: inherit; }
.card-box .wl-card-entries + .wl-card-pct-sub { margin-top: 4px; }
@media (max-width: 575px) { .card-box .wl-card-entries { font-size: 14px; padding: 5px 10px 6px; } .card-box .wl-card-entries strong { font-size: 22px; } }

/* Worked example as a three-step carousel (one step at a time, tabs with a progress bar). */
.wl-ex { padding: 22px 22px 24px; }
.wl-ex-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.wl-ex-tab { position: relative; display: flex; align-items: center; gap: 8px; padding: 0 0 12px; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--color-text, #1a1a1a); opacity: 0.55; cursor: pointer; text-align: left; }
.wl-ex-tab.is-on, .wl-ex-tab.is-done { opacity: 1; }
.wl-ex-tab:focus-visible { outline: 2px solid var(--wl-hl, var(--color-brand-dark)); outline-offset: 4px; border-radius: 6px; }
.wl-ex-num { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; background: var(--color-surface, #f3f4f6); }
.wl-ex-tab.is-on .wl-ex-num, .wl-ex-tab.is-done .wl-ex-num { background: var(--color-accent, #fee748); color: var(--color-on-accent, #1a1a1a); }
.wl-ex-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; border-radius: 4px; background: var(--color-surface, #f3f4f6); overflow: hidden; }
.wl-ex-bar::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--wl-hl, var(--color-brand-dark)); border-radius: inherit; }
.wl-ex-tab.is-done .wl-ex-bar::after, .wl-ex:not(.is-running) .wl-ex-tab.is-on .wl-ex-bar::after { width: 100%; }
.wl-ex.is-running .wl-ex-tab.is-on .wl-ex-bar::after { animation: wl-ex-fill var(--wl-ex-delay, 4200ms) linear forwards; }
@keyframes wl-ex-fill { from { width: 0; } to { width: 100%; } }
.wl-ex-panels { min-height: 250px; display: grid; }
.wl-ex-panel { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.wl-ex-panel[hidden] { display: none; }
.wl-ex-panel strong { font-size: 20px; line-height: 1.3; margin-top: 16px; }
.wl-ex-panel small { font-size: 15px; line-height: 1.45; opacity: 0.8; max-width: 34ch; margin-top: 4px; }
.wl-ex-visual { position: relative; height: 150px; display: flex; align-items: center; justify-content: center; }
.wl-ex-card { width: 210px; height: auto; aspect-ratio: 330 / 214; object-fit: cover; border-radius: 12px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22); transform: rotate(-4deg); }
.wl-ex-amount { position: absolute; right: -10px; bottom: 6px; padding: 6px 12px; border-radius: 999px; background: var(--color-accent, #fee748); color: var(--color-on-accent, #1a1a1a); font-weight: 800; font-size: 18px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18); }
.wl-ex-icon { width: 150px; border-radius: 50%; background: var(--color-surface, #f3f4f6); color: var(--color-brand-dark, #1a1a1a); }
.wl-ex-big { font-size: 64px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; color: var(--wl-hl, var(--color-brand-dark)); }
@media (prefers-reduced-motion: no-preference) {
  .wl-ex-panel.is-on { animation: wl-ex-in 0.45s cubic-bezier(0.2, 0.7, 0.3, 1); }
  .wl-ex-panel.is-on .wl-ex-card { animation: wl-ex-card 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
  .wl-ex-panel.is-on .wl-ex-big { animation: wl-ex-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
  @keyframes wl-ex-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  @keyframes wl-ex-card { from { transform: rotate(-12deg) translateY(16px) scale(0.92); } to { transform: rotate(-4deg); } }
  @keyframes wl-ex-pop { 0% { transform: scale(0.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
}
@media (max-width: 575px) {
  .wl-ex { padding: 16px 16px 20px; }
  .wl-ex-panels { min-height: 230px; }
  .wl-ex-visual { height: 130px; }
  .wl-ex-card { width: 180px; }
  .wl-ex-big { font-size: 52px; }
  .wl-ex-tab { font-size: 14px; }
}
/* Example heading in sentence case; step 2 shows the brand's (square) logo in a square frame with rounded corners. */
.wl-first-example-title { text-transform: none !important; letter-spacing: 0 !important; font-size: 15px !important; }
.wl-ex-logo { width: 150px; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--color-border, #e5e7eb), 0 10px 24px rgba(0, 0, 0, 0.12); }
.wl-ex-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 575px) { .wl-ex-logo { width: 130px; } }

/* Tighter vertical rhythm between homepage sections (was 80px above and below every band,
   which left ~160-190px of empty space between two light sections). */
body .how-does-section, body .card-section { padding-top: 64px; padding-bottom: 64px; }
body .wl-calculator-section { padding-top: 56px; padding-bottom: 56px; }
body .wl-home-cats { padding-bottom: 56px; }
@media (max-width: 991px) {
  body .how-does-section, body .card-section { padding-top: 48px; padding-bottom: 48px; }
  body .wl-calculator-section { padding-top: 40px; padding-bottom: 40px; }
  body .wl-home-cats { padding-bottom: 40px; }
}
/* Compact calculator: centre the short intro + button against the taller results panel
   instead of leaving a large empty block underneath. */
@media (min-width: 992px) {
  .wl-calc-compact .cashback-estimator__main { display: flex; flex-direction: column; justify-content: center; }
  .wl-calc-compact .cashback-estimator__main:has(.wl-calc-details:not([hidden])) { justify-content: flex-start; }
}
/* "Start with your weekly shop": one-line heading, three mini steps and the yearly figure as a callout. */
.wl-weekly .wl-weekly-head { align-items: flex-end; gap: 32px; }
.wl-weekly .wl-weekly-head > div:first-child { max-width: none; flex: 1 1 auto; min-width: 0; }
.wl-weekly .wl-weekly-head h2 { white-space: nowrap; margin-bottom: 14px; }
.wl-weekly-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.wl-weekly-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 6px; border-radius: 999px; background: var(--color-surface); color: var(--color-text); font-size: 14px; white-space: nowrap; font-weight: 600; line-height: 1.3; }
.wl-weekly-steps li span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--color-brand-dark); color: #fff; font-size: 12.5px; font-weight: 800; flex: 0 0 24px; }
.wl-weekly-stat { position: relative; flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding: 16px 22px; border-radius: 20px; background: var(--color-brand-dark); color: #fff; text-align: right; }
.wl-weekly-stat strong { font-size: clamp(30px, 3.2vw, 42px); line-height: 1; font-weight: 800; letter-spacing: -0.5px; color: #fff; white-space: nowrap; }
.wl-theme-rafflehouse .wl-weekly-stat strong, .wl-theme-creditladder .wl-weekly-stat strong { color: var(--color-accent); }
.wl-weekly-stat > span:not(.wl-tip-pop) { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; opacity: 0.9; white-space: nowrap; }
.wl-weekly-stat .wl-tip { display: inline-grid; place-items: center; width: 26px; height: 26px; margin: -4px -6px -4px 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.wl-weekly-stat .wl-tip:hover, .wl-weekly-stat .wl-tip[aria-expanded="true"] { background: rgba(255, 255, 255, 0.15); }
.wl-weekly-stat .wl-tip-pop { position: absolute; z-index: 20; right: 0; top: calc(100% + 10px); width: min(320px, 80vw); display: block; padding: 10px 12px; border-radius: 10px; background: var(--color-text); color: #fff; font-size: 12.5px; font-weight: 500; line-height: 1.45; text-align: left; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2); }
.wl-weekly-stat .wl-tip-pop::before { content: ""; position: absolute; top: -6px; right: 14px; width: 12px; height: 12px; background: inherit; transform: rotate(45deg); border-radius: 2px; }
.wl-weekly-stat .wl-tip-pop[hidden] { display: none; }
@media (max-width: 991px) {
  .wl-weekly .wl-weekly-head { flex-direction: column; align-items: stretch; gap: 16px; }
  .wl-weekly .wl-weekly-head h2 { white-space: normal; }
  .wl-weekly-stat { align-items: flex-start; text-align: left; }
  .wl-weekly-stat .wl-tip-pop { left: 0; right: auto; }
  .wl-weekly-stat .wl-tip-pop::before { right: auto; left: 14px; }
}
/* Brand page "How it works": one card, the four steps as a journey, then "Good to know" facts
   and the brand's full important information behind a disclosure (it can be empty or very long). */
.wl-bp-guide { background: var(--color-white, #fff); border-radius: 24px; padding: 32px 36px; }
.wl-bp-guide > h2 { margin: 0 0 24px; }
.wl-bp-journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.wl-bp-journey::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 27px; height: 2px; background: repeating-linear-gradient(90deg, var(--color-border) 0 8px, transparent 8px 14px); }
.wl-bp-journey li { position: relative; text-align: center; padding: 0 14px; }
.wl-bp-journey strong { display: block; font-size: 17px; line-height: 1.3; margin: 0 0 4px; }
.wl-bp-journey p { margin: 0; font-size: 14.5px; line-height: 1.5; color: #57534e; opacity: 1; }
.wl-bp-j-ico { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; border: 4px solid var(--color-white, #fff); background: var(--color-surface); color: var(--color-brand-dark); }
.wl-bp-j-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wl-bp-j-ico-1, .wl-bp-j-ico-4 { background: var(--color-accent); color: var(--color-on-accent, #141432); }
.wl-bp-j-pound { font-size: 24px; font-weight: 800; line-height: 1; }
.wl-bp-guide .wl-explainer, .wl-bp-guide [class*="explainer"] { margin-top: 20px; }
.wl-bp-know { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--color-border); }
.wl-bp-know-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.wl-bp-know-title { margin: 0; font-size: 16px; font-weight: 700; }
.wl-bp-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wl-bp-facts li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: var(--color-surface); color: var(--color-text); font-size: 14px; font-weight: 600; line-height: 1.2; }
.wl-bp-facts li.is-warn { background: #fff3ee; color: #9a3412; }
.wl-bp-facts .wl-icon { flex: 0 0 auto; transform: none; }
.wl-bp-know-more { margin-top: 14px; border-radius: 14px; background: var(--color-surface); }
.wl-bp-know-more summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 12px 18px; font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; }
.wl-bp-know-more summary::-webkit-details-marker { display: none; }
.wl-bp-know-more summary .wl-icon { transform: rotate(90deg); transition: transform 0.2s ease; }
.wl-bp-know-more[open] summary .wl-icon { transform: rotate(-90deg); }
.wl-bp-know-text { padding: 0 18px 16px; max-height: 360px; overflow: auto; }
.wl-bp-know-text p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.6; color: #44403c; opacity: 1; }
.wl-bp-know-text p:last-child { margin-bottom: 0; }
.wl-bp-guide .wl-bp-links { margin-top: 12px; padding: 0; }
@media (max-width: 991px) {
  .wl-bp-guide { padding: 24px 20px; border-radius: 20px; }
  .wl-bp-journey { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .wl-bp-journey::before { display: none; }
  .wl-bp-journey li:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 56px; bottom: -18px; width: 2px; background: repeating-linear-gradient(180deg, var(--color-border) 0 6px, transparent 6px 11px); }
  .wl-bp-journey li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 14px; text-align: left; padding: 0; }
  .wl-bp-j-ico { grid-row: span 2; margin: 0; }
  .wl-bp-journey strong { align-self: end; margin-top: 6px; }
}
/* Keep the guide's type steady against theme-wide p/h3/summary rules (e.g. 1pmobile). */
.wl-v2 .wl-bp-guide .wl-bp-journey strong { font-size: 17px; font-weight: 700; color: var(--color-text); }
.wl-v2 .wl-bp-guide .wl-bp-journey p { font-size: 14.5px; line-height: 1.5; }
.wl-v2 .wl-bp-guide .wl-bp-know-title { font-size: 16px; font-weight: 700; color: var(--color-text); line-height: 1.3; }
.wl-v2 .wl-bp-guide .wl-bp-facts li { font-size: 14px; }
.wl-v2 .wl-bp-guide .wl-bp-know-more summary { color: var(--color-text); font-size: 15px; font-weight: 700; }

/* All-brands "Featured brands": its own dark band with a spotlight tile and the rest in a slider beside it. */
.wl-feat { padding-bottom: 8px; }
.wl-feat-band { position: relative; overflow: hidden; border-radius: 28px; padding: 28px 28px 32px; color: #fff;
  background: radial-gradient(600px 360px at 18% 0%, color-mix(in srgb, var(--color-accent) 30%, transparent) 0%, transparent 70%),
              radial-gradient(520px 380px at 92% 100%, rgba(255, 255, 255, 0.10) 0%, transparent 70%), var(--color-brand-dark); }
.wl-feat-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.wl-feat-eyebrow { display: inline-flex; align-items: center; gap: 6px; width: max-content; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.wl-feat-eyebrow .wl-icon { color: var(--color-accent); }
.wl-v2 .wl-feat .wl-feat-head h2 { color: #fff !important; margin: 0; }
.wl-feat-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 20px; align-items: stretch; }
.wl-feat-grid.is-solo { grid-template-columns: minmax(0, 1fr); }
.wl-feat .featured-slider { padding-top: 0 !important; margin: 0; min-width: 0; }
.wl-feat .featured-slider .slick-list { overflow: hidden; margin: 0 -7px; padding: 4px 0; }
.wl-feat .featured-slider .card-box { color: var(--color-text); }
.wl-feat .top-arrow .slick-arrow { top: -44px; }
.wl-spot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 18px; padding: 22px; border-radius: 22px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); }
.wl-spot-art { display: block; border-radius: 14px; overflow: hidden; transform: rotate(-4deg); box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4); background: #fff; transition: transform 0.35s ease; }
.wl-spot:hover .wl-spot-art { transform: rotate(-1deg) scale(1.03); }
.wl-spot-art img { display: block; width: 100%; height: auto; aspect-ratio: 330 / 214; object-fit: cover; }
.wl-spot-art:not(.is-art) img { object-fit: contain; padding: 16%; }
.wl-spot-kicker { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent); }
.wl-v2 .wl-spot .wl-spot-name { margin: 6px 0 6px; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.1; font-weight: 800; color: #fff !important; }
.wl-spot-rate { margin: 0; font-size: 15px; color: rgba(255, 255, 255, 0.85); line-height: 1.35; }
.wl-spot-rate strong { display: block; font-size: clamp(30px, 2.8vw, 40px); line-height: 1.05; font-weight: 800; color: var(--color-accent); letter-spacing: -0.5px; }
.wl-spot-rate s { opacity: 0.7; }
.wl-spot-year { margin: 8px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.8); }
.wl-spot-year strong { color: #fff; }
.wl-v2 .wl-spot .wl-spot-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 11px 18px; border-radius: 999px; background: var(--color-accent); color: var(--color-on-accent, #141432) !important; font-weight: 800; font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.wl-v2 .wl-spot .wl-spot-btn:hover { filter: brightness(1.06); }
@media (max-width: 1199px) { .wl-spot { grid-template-columns: minmax(0, 1fr); } .wl-spot-art { max-width: 300px; } }
@media (max-width: 991px) {
  .wl-feat-grid { grid-template-columns: minmax(0, 1fr); }
  .wl-spot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .wl-feat .top-arrow .slick-arrow { display: none !important; }
}
@media (max-width: 575px) {
  .wl-feat-band { padding: 20px 16px 24px; border-radius: 22px; margin: 0 -4px; }
  .wl-spot { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .wl-spot-art { max-width: 260px; }
}
/* Where the theme's accent is the band colour itself (1pmobile), keep the spotlight's highlights white. */
.wl-theme-onepmobile .wl-feat { --color-accent: #ffffff; --color-on-accent: #3d7a12; }

/* Next-milestone progress ("£15.80 to go until £50 site credit") under the account greeting. */
.wl-milestone { display: inline-flex; align-items: center; gap: 12px; margin-top: 14px; padding: 8px 18px 8px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); color: inherit; max-width: 100%; }
.wl-milestone-ring { flex: 0 0 56px; }
.wl-milestone-track { fill: none; stroke: currentColor; stroke-opacity: 0.22; stroke-width: 5; }
.wl-milestone-fill { fill: none; stroke: var(--color-accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: var(--wl-ms-len); stroke-dashoffset: var(--wl-ms-off); }
.wl-milestone-ring text { fill: currentColor; font-size: 12px; font-weight: 800; font-family: inherit; }
.wl-milestone-text { margin: 0; font-size: 15px; line-height: 1.35; color: inherit; opacity: 1; }
.wl-milestone-text strong { font-weight: 800; }
.wl-milestone-text span { display: block; font-size: 13px; opacity: 0.8; }
.wl-acct-main .wl-milestone { background: var(--color-surface); color: var(--color-text); margin-bottom: 8px; }
.wl-theme-onepmobile .wl-milestone { --color-accent: #ffffff; }
.wl-theme-onepmobile .wl-acct-main .wl-milestone { --color-accent: #73b62a; }
/* Spotlight name is left-aligned even where a theme centres headings. */
.wl-v2 .wl-spot .wl-spot-body, .wl-v2 .wl-spot .wl-spot-name { text-align: left !important; }

/* Example carousel: 4th step ("Repeat") shows the yearly total across all brands. */
.wl-ex-tabs:has(.wl-ex-tab:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wl-ex-chart { flex-direction: column; justify-content: flex-end; gap: 8px; }
.wl-ex-total { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--color-accent); color: var(--color-on-accent, #141432); font-weight: 800; font-size: 15px; line-height: 1.2; }
.wl-ex-bars { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-end; justify-content: center; gap: 14px; height: 118px; width: 100%; max-width: 340px; }
body.wl-v2 .wl-first-example .wl-ex-bars > li { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0; height: 100%; min-width: 0; padding: 0; border-radius: 0; background: none !important; }
.wl-ex-bar-col { display: block; flex: 0 0 auto; width: 100%; max-width: 46px; height: var(--h); border-radius: 8px 8px 3px 3px; background: var(--wl-hl, var(--color-brand-dark)); }
.wl-ex-bars li:nth-child(even) .wl-ex-bar-col { opacity: 0.7; }
.wl-ex-bar-val { font-size: 12px; font-weight: 800; margin-bottom: 3px; white-space: nowrap; }
.wl-ex-bar-lab { font-size: 11.5px; font-weight: 600; opacity: 0.7; margin-top: 4px; white-space: nowrap; }
.wl-ex-panel.is-year .wl-ex-visual { height: 176px; }
@media (prefers-reduced-motion: no-preference) {
  .wl-ex-panel.is-year.is-on .wl-ex-bar-col { animation: wl-bar-grow 0.7s cubic-bezier(.3, .9, .3, 1.1) both; animation-delay: calc(var(--i) * 0.12s); transform-origin: bottom; }
  @keyframes wl-bar-grow { from { transform: scaleY(0); } to { transform: none; } }
}
@media (max-width: 575px) { .wl-ex-tabs:has(.wl-ex-tab:nth-child(4)) .wl-ex-tab { font-size: 13px; gap: 5px; } }

/* "How it works" links land with the section heading just below the sticky header, whatever its height. */
html:root body :is(#how_it_works, #how_we_works, #calculator) { scroll-margin-top: calc(var(--wl-header-h, 110px) - 16px); }
/* Links to the brand list (#choose_brands) land with "All brands" just below the sticky header. */
html:root body :is(#choose_brands, #loadMoreBlock) { scroll-margin-top: calc(var(--wl-header-h, 110px) - 40px); }
/* Taller hero bands: extra space inside every v2 hero, on top of each theme's own padding
   (so waves and curved edges keep their offsets). */
main :is(.wl-welcome, .wl-bp, .page-hero, .brand-listing-banner, .brand-detail-banner) > .container { padding-top: 72px; padding-bottom: 72px; }
@media (max-width: 767px) { main :is(.wl-welcome, .wl-bp, .page-hero, .brand-listing-banner, .brand-detail-banner) > .container { padding-top: 32px; padding-bottom: 36px; } }
/* "Why gift cards?": more breathing room above and below. */
body .wl-why { padding-top: 88px; padding-bottom: 96px; }
@media (max-width: 767px) { body .wl-why { padding-top: 56px; padding-bottom: 60px; } }
/* All-brands: more space between the hero and "Start with your weekly shop". */
body.wl-route-all-brands .wl-weekly { padding-top: 80px; }
@media (max-width: 767px) { body.wl-route-all-brands .wl-weekly { padding-top: 48px; } }
/* All-brands "Welcome back" band for returning members: compact, so the brands start high on the page. */
main .wl-welcome.wl-account:not(.wl-first) > .container { padding-top: 0; padding-bottom: 0; }
body .wl-welcome.wl-account:not(.wl-first) { padding-top: 28px; padding-bottom: 32px; }
body .wl-welcome.wl-account:not(.wl-first) .wl-welcome-back { font-size: clamp(26px, 2.6vw, 36px) !important; line-height: 1.15 !important; margin-bottom: 4px; }
body .wl-welcome.wl-account:not(.wl-first) .wl-welcome-intro { margin-bottom: 0; }
body .wl-welcome.wl-account:not(.wl-first) .wl-acct-hero { align-items: center; gap: 20px; }
body .wl-welcome.wl-account:not(.wl-first) .wl-milestone { margin-top: 10px; }
body .wl-welcome.wl-account:not(.wl-first) .wl-acct-stats .wl-stat { padding-top: 12px; padding-bottom: 12px; }
body .wl-welcome.wl-account:not(.wl-first) .wl-again-strip { margin-top: 18px; padding-top: 16px; }
@media (max-width: 767px) { body .wl-welcome.wl-account:not(.wl-first) { padding-top: 20px; padding-bottom: 24px; } }
/* Header chip for withdrawal publishers: account icon + balance, linking to Overview. */
header#header .wl-account-chip--balance { display: inline-flex !important; align-items: center; gap: 8px; padding-left: 8px !important; }
header#header .wl-account-chip--balance .wl-account-ico { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, currentColor 12%, transparent); flex: 0 0 28px; }
header#header .wl-account-chip--balance .wl-account-balance { font-variant-numeric: tabular-nums; }
/* Overview: gift card tiles as on My gift cards. */
.wl-acct-cards-section { padding-top: 40px; }
.wl-acct-cards-section .wl-vc-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.wl-acct-more { margin-top: 24px; }
.wl-acct-top .wl-stat-main { outline: 2px solid var(--color-accent); outline-offset: -2px; }
/* Sites on their CDN colours (no brand theme): the main button on a brand-coloured band would be the
   band's own colour, so on bands it is white with brand-coloured text and the secondary is an outline.
   Buttons inside white cards on the band keep the normal brand-coloured style. */
body.wl-v2:not([class*="wl-theme-"]) :is(.wl-welcome, .wl-bp, .cta-section, .page-hero, .wl-feat-band) .dark-green-btn:not(:is(.wl-welcome-card, .wl-bp-buy, .wl-amount-panel, .modal) *) { background: #fff !important; color: var(--color-brand-dark) !important; border-color: #fff !important; }
body.wl-v2:not([class*="wl-theme-"]) :is(.wl-welcome, .cta-section, .page-hero) .white-btn:not(:is(.wl-welcome-card, .modal) *) { background: transparent !important; color: #fff !important; border: 2px solid rgba(255, 255, 255, 0.85) !important; }
body.wl-v2:not([class*="wl-theme-"]) .wl-welcome-card .dark-green-btn { background: var(--color-brand-dark) !important; color: #fff !important; }

/* Brand pages: the band already has its own padding, so the generic 72px band padding left a large gap above "All brands". */
main .wl-bp > .container { padding-top: 0; padding-bottom: 0; }

/* Log out link at the top of the account pages (My gift cards, Overview). */
.wl-acct-headrow { display: flex; align-items: center; justify-content: flex-start; gap: 10px 20px; flex-wrap: wrap; }
.wl-acct-headrow h1 { margin-bottom: 0; }
/* A small outlined pill that sits beside the page title (not stranded at the far edge of a wide hero). */
.wl-acct-logout-link { display: inline-flex; align-items: center; color: inherit; font-size: 14px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; padding: 8px 16px; border: 1.5px solid currentColor; border-radius: 999px; opacity: 0.85; transition: opacity 0.15s, background-color 0.15s; }
.wl-acct-logout-link:hover, .wl-acct-logout-link:focus-visible { opacity: 1; background-color: color-mix(in srgb, currentColor 12%, transparent); }

/* All brands, returning members: the hero is collapsed to the greeting and totals; "Show more" opens the rest. */
.wl-acct-headrow { margin-bottom: 6px; }
.wl-acct-headrow h1 { margin: 0; }
.wl-hero-toggle { appearance: none; background: none; border: 0; padding: 6px 0; margin-top: 8px; font: inherit; font-size: 15px; font-weight: 600; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: underline; text-underline-offset: 3px; }
.wl-hero-toggle svg { transition: transform 0.2s; transform: rotate(90deg); }
.wl-hero-toggle[aria-expanded="true"] svg { transform: rotate(-90deg); }
.wl-hero-more { padding-top: 12px; }
.wl-hero-more[hidden] { display: none; }

/* Help centre: topic tiles and grouped questions */
.wl-help-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin: 0 0 28px; }
.wl-help-topic { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--color-border); border-radius: 14px; background: var(--color-white); color: inherit; text-decoration: none !important; transition: border-color .15s, transform .15s; }
.wl-help-topic strong { font-size: 16px; color: var(--color-brand-dark); }
.wl-help-topic span { font-size: 14px; opacity: 0.8; line-height: 1.4; }
.wl-help-topic:hover, .wl-help-topic:focus-visible { border-color: var(--color-brand-dark); transform: translateY(-2px); }
.wl-help-cat { margin: 28px 0 0; scroll-margin-top: 90px; }
.wl-help-cat[hidden] { display: none !important; }
.wl-help-cat > h3 { font-size: 20px; margin: 0 0 12px; }
@media (prefers-reduced-motion: reduce) { .wl-help-topic { transition: none; } .wl-help-topic:hover { transform: none; } }

/* My gift cards / account hero: the generic .container block padding stacked on the hero's own padding and left a large empty band above the title. */
main .wl-acct-top > .container { padding-top: 0; padding-bottom: 0; }
#wl-purchase-confirm { scroll-margin-top: 112px; }
@media (max-width: 767px) { #wl-purchase-confirm { scroll-margin-top: 84px; } }

/* Sites without a named theme: text on the coloured help/legal banner and the support panel uses the on-brand
   colour, not the default dark text. */
body.wl-v2:not([class*="wl-theme-"]):not(.wl-light-bands) :is(.subpage-brand-banner, .support-panel),
body.wl-v2:not([class*="wl-theme-"]):not(.wl-light-bands) :is(.subpage-brand-banner, .support-panel) :is(h1, h2, h3, p, label, small, a:not(.btn)) { color: var(--color-white, #fff); }
body.wl-v2:not([class*="wl-theme-"]):not(.wl-light-bands) .subpage-brand-banner .gradient-text { color: var(--color-white, #fff); -webkit-text-fill-color: var(--color-white, #fff); background: none; }
/* Unthemed sites: the accent can be the same colour as the brand band (Loyalty Rewards Co), which hides the
   highlighted figure. Highlights on the band use the on-band colour instead. */
body.wl-v2:not([class*="wl-theme-"]):not(.wl-light-bands) .wl-bp :is(.wl-bp-lead strong, .wl-bp-rate, .wl-bp-last a, .wl-bp-yearly .wl-icon) { color: var(--color-white, #fff); }
/* Unthemed sites: the footer is a band in the brand colour with white text, and the logo gets a white plate. */
body.wl-v2:not([class*="wl-theme-"]):not(.wl-brand-theme):not(.wl-light-bands) footer#footer,
body.wl-v2:not([class*="wl-theme-"]):not(.wl-brand-theme):not(.wl-light-bands) footer :is(a, p, li, span, small, h2, h3, h4, div) { color: #fff; }
body.wl-v2:not([class*="wl-theme-"]):not(.wl-brand-theme):not(.wl-light-bands) footer#footer { background: var(--color-brand-dark); }
body.wl-v2:not([class*="wl-theme-"]):not(.wl-brand-theme):not(.wl-light-bands) footer img { background: #fff; padding: 8px 12px; border-radius: 10px; box-sizing: content-box; }
/* The sticky buy bar button label must not take the accent colour on an accent-coloured button. */
body.wl-v2:not([class*="wl-theme-"]):not(.wl-light-bands) .wl-buy-bar .wl-buy-bar-btn { color: var(--color-white, #fff) !important; }
/* Unthemed sites: a filled button outside the coloured bands must not take the accent as its text colour
   (it can equal the button colour, e.g. Loyalty Rewards Co). */
body.wl-v2:not([class*="wl-theme-"]):not(.wl-light-bands) .dark-green-btn:not(:is(.wl-welcome, .wl-bp, .cta-section, .page-hero, .wl-feat-band) *) { color: #fff !important; }

/* Unthemed sites (colours come from the publisher's CDN style): inside the dark bands the accent can be too close to
   the band colour to see (Loyalty Rewards Co: indigo on indigo), so bands use --color-highlight, which falls back to
   white. White panels inside a band (buy box, cards) keep the real accent. */
body.wl-v2:not([class*="wl-theme-"]) :is(.wl-welcome, .wl-bp, .page-hero, .voucher-intro, .cta-section, .brand-detail-banner, .brand-listing-banner, .subpage-brand-banner, .wl-feat-band) {
  --color-accent: var(--color-highlight); --color-on-accent: var(--color-on-highlight); --greenyellow: var(--color-highlight);
}
body.wl-v2:not([class*="wl-theme-"]) :is(.wl-bp-buy, .wl-welcome-card, .wl-bp-card, .wl-amount-panel, .modal) {
  --color-accent: var(--color-accent-page); --color-on-accent: var(--color-on-accent-page); --greenyellow: var(--color-accent-page);
}
/* The hero search button has no text colour of its own, so it fell back to black on the accent. */
body.wl-v2:not([class*="wl-theme-"]) .wl-welcome-search button, body.wl-v2:not([class*="wl-theme-"]) .header-search-form button { color: var(--color-on-accent-page); }
body.wl-v2:not([class*="wl-theme-"]) :is(.wl-welcome-search, .header-search-form) button :is(svg, .wl-icon) { color: inherit; }
/* Unthemed sites: the header call-to-action took the accent as its text colour on an accent background, and the
   help/legal banner and support panel relied on the page canvas colour for their background. Both are explicit now. */
body.wl-v2:not([class*="wl-theme-"]) header .menu-btn, body.wl-v2:not([class*="wl-theme-"]) header .menu-btn :is(span, svg, .wl-icon) { color: var(--color-on-accent-page); }
body.wl-v2:not([class*="wl-theme-"]):not(.wl-light-bands) :is(.subpage-brand-banner, .support-panel) { background: var(--color-brand-dark); }

/* Unthemed sites: legal tabs sit on the accent colour, so text must follow the contrast-corrected on-accent token. */
body.wl-v2.legal-page:not([class*="wl-theme-"]) .legal-nav a { color: var(--color-on-accent); border-bottom-color: color-mix(in srgb, var(--color-on-accent) 22%, transparent); }

/* Free-entries sites: the entries-per-£10 ladder under the amount panel, and the note in the brand hero. */
.wl-bp-tier-note { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 0; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--color-accent); color: var(--color-on-accent); font-weight: 700; font-size: 14px; }
.wl-bp-tier-note span { background: var(--color-on-accent); color: var(--color-accent); border-radius: 999px; padding: 2px 9px; font-size: 11px; letter-spacing: 0.06em; }
.wl-tiers { margin-top: 14px; border: 1px solid var(--color-border, #e5e7eb); border-radius: 16px; overflow: hidden; background: #fff; color: var(--color-text); text-align: left; }
.wl-tiers-title { margin: 0; padding: 12px 16px 8px; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700; opacity: 0.75; }
.wl-tiers ul { list-style: none; margin: 0; padding: 0; }
.wl-tiers li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--color-border, #e5e7eb); font-size: 15px; }
.wl-tiers li small { display: block; font-size: 12px; opacity: 0.7; font-weight: 500; }
.wl-tiers li b { white-space: nowrap; padding: 3px 10px; border-radius: 8px; background: var(--color-surface, #f3f4f6); font-size: 14px; }
.wl-tiers li.is-on { background: color-mix(in srgb, var(--color-accent) 22%, #fff); }
.wl-tiers li.is-on b { background: var(--color-brand-dark); color: #fff; }
.wl-tiers-next { margin: 0; padding: 11px 16px; border-top: 1px solid var(--color-border, #e5e7eb); font-size: 14px; font-weight: 600; }
.wl-bp .wl-bp-intro .wl-bp-tier-note { color: var(--color-on-accent); }
.wl-bp .wl-bp-intro .wl-bp-tier-note span { color: var(--color-accent); }
/* Unthemed sites: the hero eyebrow line (next to the star) was dark green on a dark hero. */
body.wl-v2:not([class*="wl-theme-"]):not(.wl-light-bands) .hero-section .hero-content .high-lights { color: #fff; }
body.wl-v2:not([class*="wl-theme-"]):not(.wl-light-bands) .hero-section .hero-content .high-lights span { color: #fff; }
/* Unthemed sites: the small line above the heading on the dark page banners (My gift cards, Help, brand banners) used the brand colour, which is the band colour. */
body.wl-v2:not([class*="wl-theme-"]):not(.wl-light-bands) .brand-banner .high-lights { color: #fff; }
/* Unthemed sites: the brand-page calculator result sits on the brand colour, so its big figure must use the highlight colour
   (which contrasts with that background) and not the accent, which can be the same colour as the band. */
body.wl-v2:not([class*="wl-theme-"]) .wl-bp-calc-result .wl-bp-calc-total { color: var(--color-highlight); }
/* Category chips: arrow buttons at each end, shown when there is more to scroll to. */
.wl-cat-wrap { position: relative; }
.wl-cat-wrap .wl-cat-chips { cursor: grab; }
.wl-cat-wrap .wl-cat-chips.is-dragging { cursor: grabbing; user-select: none; }
.wl-cat-wrap.has-left .wl-cat-chips { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.wl-cat-wrap:not(.has-right) .wl-cat-chips { -webkit-mask-image: none; mask-image: none; }
.wl-cat-wrap.has-left:not(.has-right) .wl-cat-chips { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%); mask-image: linear-gradient(90deg, transparent, #000 8%); }
.wl-cat-arrow { position: absolute; top: 50%; transform: translateY(-58%); z-index: 2; width: 36px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--color-border, #e5e7eb); background: #fff; color: var(--color-brand-dark, #1a1a1a); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); cursor: pointer; }
.wl-cat-arrow[hidden] { display: none; }
.wl-cat-arrow-prev { left: -6px; }
.wl-cat-arrow-next { right: -6px; }
.wl-cat-arrow:hover { background: var(--color-surface, #f3f4f6); }
.wl-cat-arrow:focus-visible { outline: 2px solid var(--color-brand-dark, #1a1a1a); outline-offset: 2px; }
@media (max-width: 767px) { .wl-cat-arrow { display: none; } }
/* All brands filters: the arrow sits 20px from the right, so leave room for it or it overlaps the selected text ("Online & in-store"). */
.card-section.brand-page .wl-filter-bar .wl-filter-selects select,
.card-section.brand-page form.wl-brand-filters select { padding-left: 18px; padding-right: 46px; text-overflow: ellipsis; }

/* Every v2 site (except Whisky Club, whose heroes are a card): signed-in homepage and all-brands heroes get the
   signed-out hero's gift card strip on the right. New v2 sites get it automatically. */
body.wl-v2:not(.wl-theme-whiskyclub) .wl-welcome { position: relative; overflow: hidden; }
body.wl-v2:not(.wl-theme-whiskyclub) .wl-welcome::before {
  content: ""; position: absolute; top: 0; right: -8%; width: 58%; height: 100%; z-index: 0; pointer-events: none;
  background: url(../images/common/hero-bg-img.webp?v=21) left 24% / cover no-repeat;
}
body.wl-v2:not(.wl-theme-whiskyclub) .wl-welcome > .container { position: relative; z-index: 1; }
@media (max-width: 767px) { body.wl-v2:not(.wl-theme-whiskyclub) .wl-welcome::before { width: 100%; right: -30%; opacity: 0.5; } }

/* Entries tiers, simpler: one slim bar of three steps under the buy card (replaces the ladder card and the hero pill). */
.wl-tiers { display: none; }
.wl-tier-bar { display: flex; align-items: stretch; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.1); color: #fff; }
.wl-tier-bar-label { flex: 1 1 auto; align-self: center; font-size: 13px; font-weight: 600; opacity: 0.9; }
.wl-tier-bar-step { flex: 0 0 auto; min-width: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.12); line-height: 1.2; }
.wl-tier-bar-step small { font-size: 11px; opacity: 0.85; }
.wl-tier-bar-step b { font-size: 17px; font-weight: 800; }
.wl-tier-bar-step.is-on { background: #fff; color: #0b3b3a; }
.wl-tier-bar-step.is-on small { opacity: 0.75; }
@media (max-width: 480px) { .wl-tier-bar { flex-wrap: wrap; } .wl-tier-bar-label { flex-basis: 100%; } .wl-tier-bar-step { flex: 1 1 0; } }

/* Footer links: the "|" dividers sit centred on the link text (they were pinned to the top of the 44px
   tap area), in the link's own colour so they show on dark footers too, and the first link has none. */
footer ul a:before {
  content: "";
  width: 1px;
  height: 1em;
  top: 50%;
  left: -16px;
  transform: translateY(-50%);
  color: inherit;
  background: currentColor;
  opacity: .45;
  filter: none !important;
}
footer ul li:nth-of-type(1) a:before { display: none; }
@media (max-width: 767px) {
  footer ul { flex-wrap: wrap; justify-content: center; row-gap: 4px; column-gap: 32px; }
}

/* Phone menu button: never squeezed by a wide logo (Whisky Club's burger was 16px wide). */
.menu-toggle { flex: none; min-width: 44px; }

/* Closing "Browse all brands" / "How it works" buttons: as wide as their text needs (they were capped at 180px
   and the text spilled out of the button). */
@media (max-width: 767px) {
  .cta-section .cta-content .btn-group-row { max-width: none; width: 100%; align-items: center; }
  .cta-section .cta-content .btn-group-row .btn { min-width: 220px; max-width: 100%; text-align: center; white-space: nowrap; }
}

/* Phone menu on the coloured themes: links are white on the menu band. */
.wl-theme-raffleaid header#header .mobile-menu ul a:not(.menu-btn),
.wl-theme-rentrewards header#header .mobile-menu ul a:not(.menu-btn),
.wl-theme-whiskyclub header#header .mobile-menu ul a:not(.menu-btn) { color: #fff !important; }

/* Shorter signed-out homepage hero on all v2 sites. */
body.wl-v2 .hero-section {
  min-height: 0;
  padding: 64px 0 48px;
}
body.wl-v2 .hero-section .hero-content { row-gap: 22px; }
@media (max-width: 1199px) {
  body.wl-v2 .hero-section { padding: 52px 40px 40px; }
}
@media (max-width: 991px) {
  body.wl-v2 .hero-section { padding: 48px 20px 36px; }
}
@media (max-width: 767px) {
  body.wl-v2 .hero-section { padding: 36px 10px 32px; }
  body.wl-v2 .hero-section .container { row-gap: 36px; }
}
@media (max-width: 480px) {
  body.wl-v2 .hero-section { padding: 28px 0 28px; }
}

/* Brand cards: logo-only cards and artwork cards used different image heights (5:4 vs 330:214), so titles and offers
   sat at different heights along a row. Give every card the same image box. */
.card-box .img:not(.is-art) { aspect-ratio: 330 / 214 !important; }

/* All brands: search suggestions under the search box. */
.wl-brand-filters .search { position: relative; }
.wl-suggest { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: #fff; color: #1a1a1a; border: 1px solid var(--color-border, #e3e3e3); border-radius: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18); text-shadow: none; }
.wl-suggest[hidden] { display: none; }
.wl-suggest li { padding: 10px 12px; border-radius: 10px; font-size: 16px; cursor: pointer; }
.wl-suggest li:hover, .wl-suggest li[aria-selected="true"] { background: var(--color-surface, #f3f3f3); }

/* Help form, affiliate sites: purchase details shown when "A purchase hasn't been tracked" is chosen. */
.wl-claim-fields { border: 1px solid var(--color-border, #e4e2ee); border-radius: 14px; padding: 14px 16px 6px; margin: 0 0 16px; }
.wl-claim-fields[hidden] { display: none; }
.wl-claim-fields legend { font-weight: 700; padding: 0 6px; width: auto; font-size: 1rem; }
.wl-claim-note { margin: 0 0 12px; font-size: 14px; color: var(--color-text, #444); }
.wl-claim-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 575px) { .wl-claim-grid { grid-template-columns: 1fr; } }

/* Cashback details, affiliate sites: recent click-throughs. */
.wl-click-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 720px; }
.wl-click-list li { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 12px 16px; border: 1px solid var(--color-border, #e4e2ee); border-radius: 12px; background: var(--color-white, #fff); }
.wl-click-list a { font-weight: 700; color: var(--color-text, #1f1b2e); }
.wl-click-list span { font-size: 14px; color: #666; white-space: nowrap; }

/* "A typical household could get £X+ a year": the (i) button explains where the number comes from. */
.wl-hero-value { position: relative; }
.wl-hero-tip { display: inline-grid; place-items: center; flex: 0 0 auto; width: 28px; height: 28px; margin: -4px -6px -4px 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.wl-hero-tip:hover, .wl-hero-tip[aria-expanded="true"] { background: rgba(0, 0, 0, 0.08); }
.wl-hero-pop { position: absolute; z-index: 20; left: 0; top: calc(100% + 10px); width: min(340px, 86vw); display: block; padding: 10px 12px; border-radius: 10px; background: var(--color-text); color: #fff; font-size: 12.5px; font-weight: 500; line-height: 1.45; text-align: left; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2); }
.wl-hero-pop::before { content: ""; position: absolute; top: -6px; left: 18px; width: 12px; height: 12px; background: inherit; transform: rotate(45deg); border-radius: 2px; }
.wl-hero-pop[hidden] { display: none; }
.wl-hero-card-fig.wl-tip-wrap { position: relative; }

/* Withdrawal history on /withdraw: a table on wide screens, stacked rows (labelled by data-label) on phones. */
.wl-wd-table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 8px; }
.wl-wd-table th { text-align: left; font-size: 13px; font-weight: 600; opacity: 0.7; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--color-border); }
.wl-wd-table td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.wl-wd-table tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .wl-wd-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .wl-wd-table, .wl-wd-table tbody, .wl-wd-table tr, .wl-wd-table td { display: block; width: 100%; }
  .wl-wd-table tr { padding: 10px 0; border-bottom: 1px solid var(--color-border); }
  .wl-wd-table tr:last-child { border-bottom: 0; }
  .wl-wd-table td { display: flex; justify-content: space-between; gap: 16px; border: 0; padding: 5px 0; text-align: right; }
  .wl-wd-table td::before { content: attr(data-label); opacity: 0.7; text-align: left; }
}

/* Phones: the spotlight card is centred and its tilted edge is anti-aliased (a rotated overflow:hidden box rendered jagged);
   the brand page hero stacks, with the card art on top, rather than squeezing art and text side by side. */
.wl-spot-art { margin-inline: auto; outline: 1px solid transparent; backface-visibility: hidden; -webkit-backface-visibility: hidden; will-change: transform; isolation: isolate; }
.wl-spot-art img { border-radius: inherit; }
@media (max-width: 575.98px) {
  .wl-spot { justify-items: center; text-align: center; }
  .wl-spot-art { width: min(100%, 260px); }
  .wl-v2 .wl-spot .wl-spot-body, .wl-v2 .wl-spot .wl-spot-name { text-align: center !important; }
  .wl-spot-body { display: flex; flex-direction: column; align-items: center; }
  .wl-bp { padding-bottom: 36px; }
  .wl-bp-main { flex-direction: column; align-items: center; text-align: center; gap: 18px; }
  .wl-bp-logo:not(.is-square) { width: min(70%, 240px); border-radius: 14px; }
  .wl-bp-logo.is-square { width: 120px; height: 120px; }
  .wl-bp-intro h1 { font-size: 32px; }
  .wl-bp-meta, .wl-bp-last { justify-content: center; }
  .wl-bp-buy .wl-amount-panel { padding: 18px; border-radius: 20px; }
}

/* Account balance tile: "Withdraw" is a clear button, not a grey block with faint text. */
.wl-acct-stats .wl-stat-main .wl-stat-link { display: inline-flex; flex-direction: row; white-space: nowrap; align-items: center; gap: 6px; margin: 12px 0 0; padding: 9px 16px; border-radius: 999px; background: var(--color-accent); color: var(--color-on-accent-page, #141432); font-size: 14px; font-weight: 700; line-height: 1; text-decoration: none; align-self: flex-start; }
.wl-acct-stats .wl-stat-main .wl-stat-link:hover { background: var(--color-accent); filter: brightness(1.08); }
.wl-acct-stats .wl-stat-main .wl-stat-link svg, .wl-acct-stats .wl-stat-main .wl-stat-link img { width: 12px; height: 12px; }

/* Withdraw page: progress towards the minimum. */
.wl-acct-progress { height: 12px; margin: 14px 0 8px; border-radius: 999px; background: #e9e9f0; overflow: hidden; }
.wl-acct-progress span { display: block; height: 100%; border-radius: 999px; background: var(--color-brand-dark); }
.wl-acct-progress-labels { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 14px; font-size: 14px; color: #5b5b6b; }
.wl-acct-progress-labels strong { color: var(--color-brand-dark); }

/* Brand page: "Price includes VAT" under the buy box, for single-purpose vouchers (SPV) only */
.wl-bp-vat{margin:8px 0 0;font-size:13px;line-height:1.4;color:var(--wl-muted,#596579)}

/* Required-field asterisk on our own labels (matches the red asterisks on the card fields). */
.wl-req { color: #e03131; font-weight: 700; margin-left: 2px; }
