/* Offer banners — shared by the website and the admin live preview (identical rendering).
   Markup: core/services/BannerRenderer.php + core/banners/templates/*.php.
   Every banner is a size container: layouts react to the banner's own width (container queries), so the admin
   "Mobile" preview and a real phone use exactly the same rules. Colours arrive as custom properties:
   --bnr-c1 background · --bnr-c2 accent · --bnr-tx text · --bnr-acc accent readable on c1 · --bnr-on2 text on the accent. */

.bnr {
  --bnr-r: 22px;
  --bnr-font: "Fredoka", "Nunito", "Segoe UI", system-ui, sans-serif;
  --bnr-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --bnr-ar: 13 / 5;
  --bnr-ar-m: 4 / 5;
  display: block; container: bnr / inline-size; position: relative;
  border-radius: var(--bnr-r); color: var(--bnr-tx); text-decoration: none;
  font-family: "Nunito", "Segoe UI", system-ui, sans-serif; line-height: 1.2; text-align: left;
  -webkit-tap-highlight-color: transparent;
}
a.bnr { cursor: pointer; }
a.bnr:hover, a.bnr:focus { color: var(--bnr-tx); text-decoration: none; }
a.bnr:focus-visible { outline: 3px solid var(--bnr-acc); outline-offset: 3px; }
.bnr *, .bnr *::before, .bnr *::after { box-sizing: border-box; }
.bnr-in {
  position: relative; isolation: isolate; display: flex; align-items: center; width: 100%;
  aspect-ratio: var(--bnr-ar); border-radius: inherit; background: var(--bnr-c1);
  box-shadow: 0 18px 40px -28px rgba(32, 36, 56, .45);
}
.bnr-layer { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; z-index: -1; pointer-events: none; }
.bnr-layer > * { position: absolute; display: block; }
.bnr-bg, .bnr-pic, .bnr-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* photo backgrounds: soft scrim behind the text keeps it readable */
.bnr.has-bg .bnr-layer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--bnr-c1) 86%, transparent) 0%, color-mix(in srgb, var(--bnr-c1) 55%, transparent) 45%, transparent 72%); }

.bnr-art { position: absolute; right: 4%; top: 7%; bottom: 0; width: 40%; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; z-index: 1; }
.bnr-fg { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(20, 22, 40, .22)); }

.bnr-body { position: relative; z-index: 2; width: 52%; padding: 4cqi 0 4cqi 5.5cqi; display: flex; flex-direction: column; align-items: flex-start; gap: 1.1cqi; min-width: 0; }
.bnr-title { margin: 0; font-family: var(--bnr-font); font-weight: 700; font-size: clamp(22px, 4.4cqi, 58px); line-height: 1.02; letter-spacing: -.01em; text-transform: uppercase; color: inherit; overflow-wrap: anywhere; }
.bnr-kicker { margin: 0; font-weight: 800; font-size: clamp(13px, 1.55cqi, 20px); line-height: 1.3; opacity: .92; }
.bnr-desc { margin: 0; font-weight: 600; font-size: clamp(13px, 1.3cqi, 17px); line-height: 1.45; max-width: 46ch; opacity: .85; }
.bnr-badge { display: inline-flex; align-items: center; gap: 8px; padding: .4em 1em; border-radius: 999px; background: var(--bnr-c2); color: var(--bnr-on2); font-weight: 800; font-size: clamp(11px, 1.1cqi, 14px); letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; }
.bnr-discount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .22em; font-family: var(--bnr-font); font-weight: 700; line-height: .92; color: var(--bnr-acc); }
.bnr-d-num { font-size: clamp(40px, 8.6cqi, 118px); letter-spacing: -.03em; }
.bnr-d-pre, .bnr-d-suf { font-size: clamp(16px, 2.9cqi, 38px); text-transform: uppercase; }
.bnr-d-word { font-size: clamp(28px, 5.6cqi, 76px); text-transform: uppercase; }
.bnr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: .6cqi; }
.bnr-cta {
  display: inline-flex; align-items: center; gap: .5em; min-height: 46px; padding: .7em 1.55em; border-radius: 999px;
  background: var(--bnr-c2); color: var(--bnr-on2); font-weight: 800; font-size: clamp(14px, 1.35cqi, 18px); line-height: 1.1; white-space: nowrap;
  box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--bnr-c2) 75%, transparent); transition: transform .2s ease, box-shadow .2s ease;
}
.bnr-cta-arrow { display: inline-block; transition: transform .2s ease; }
a.bnr:hover .bnr-cta, a.bnr:focus-visible .bnr-cta { transform: translateY(-2px); box-shadow: 0 14px 26px -10px color-mix(in srgb, var(--bnr-c2) 80%, transparent); }
a.bnr:hover .bnr-cta-arrow { transform: translateX(3px); }

/* countdown */
.bnr-countdown { display: inline-flex; gap: 6px; }
.bnr-cd-unit { display: flex; flex-direction: column; align-items: center; min-width: 48px; padding: 6px 6px 4px; border-radius: 10px; background: color-mix(in srgb, var(--bnr-tx) 10%, transparent); }
.bnr-cd-unit b { font-family: var(--bnr-font); font-weight: 700; font-variant-numeric: tabular-nums; font-size: clamp(17px, 1.9cqi, 24px); line-height: 1; }
.bnr-cd-unit small { margin-top: 2px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.bnr-countdown.is-ended .bnr-cd-unit { display: none; }
.bnr-countdown.is-ended::after { content: "Offer ended"; font-weight: 800; font-size: 14px; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--bnr-tx) 10%, transparent); }

/* ---------- placements ---------- */
.bnr-pl-hero { --bnr-ar: 13 / 5; --bnr-ar-m: 4 / 5; }   /* sizes: see "v2 — placements" below */
.bnr-pl-full { --bnr-ar: 16 / 5; --bnr-ar-m: 5 / 4; }
.bnr-pl-full .bnr-d-num { font-size: clamp(40px, 7cqi, 96px); }
.bnr-pl-full .bnr-title { font-size: clamp(22px, 3.8cqi, 50px); }
.bnr-pl-grid { --bnr-ar: 16 / 11; --bnr-ar-m: 16 / 11; }
.bnr-pl-grid .bnr-desc { display: none; }
.bnr-pl-popup { --bnr-ar: 4 / 5; --bnr-ar-m: 4 / 5; --bnr-r: 24px; }

/* ---------- narrow banners (phones, grid cards, popup) ---------- */
@container bnr (max-width: 620px) {
  .bnr-in { aspect-ratio: var(--bnr-ar-m); align-items: flex-start; }
  .bnr-body { width: 100%; padding: 22px 20px 20px; gap: 9px; }
  .has-fg .bnr-body { width: 66%; }
  .bnr-art { top: auto; height: 54%; width: 50%; right: 2%; }
  .bnr-title { font-size: clamp(22px, 8cqi, 36px); }
  .bnr-kicker { font-size: 14px; }
  .bnr-desc { font-size: 13.5px; }
  .bnr-d-num { font-size: clamp(42px, 17cqi, 84px); }
  .bnr-d-pre, .bnr-d-suf { font-size: clamp(15px, 5.4cqi, 26px); }
  .bnr-d-word { font-size: clamp(28px, 11cqi, 52px); }
  .bnr-cta { font-size: 15px; min-height: 44px; padding: .65em 1.3em; }
  .bnr-cd-unit { min-width: 44px; }
  .bnr.has-bg .bnr-layer::after { background: linear-gradient(180deg, color-mix(in srgb, var(--bnr-c1) 90%, transparent) 0%, color-mix(in srgb, var(--bnr-c1) 62%, transparent) 50%, transparent 85%); }
  .bnr-pl-full .bnr-desc { display: none; }
  .bnr-pl-full .bnr-title, .bnr-pl-grid .bnr-title { font-size: clamp(20px, 7cqi, 30px); }
  .bnr-pl-full .bnr-d-num, .bnr-pl-grid .bnr-d-num { font-size: clamp(38px, 14cqi, 64px); }
  /* tall layouts: text on top, image fills the lower half */
  .bnr-pl-hero.has-fg .bnr-body, .bnr-pl-popup.has-fg .bnr-body { width: 100%; }
  .bnr-pl-hero .bnr-art, .bnr-pl-popup .bnr-art { width: 74%; height: 46%; right: 4%; }
  .bnr-pl-popup:not(.has-fg) .bnr-in { align-items: center; }
}
@container bnr (max-width: 360px) {
  .bnr-body { padding: 18px 16px 16px; }
  .bnr-countdown { gap: 4px; }
  .bnr-cd-unit { min-width: 40px; padding: 5px 4px 3px; }
}

/* ---------- 1. Diagonal split ---------- */
.bnr-t-diagonal_split .ds-a { top: 0; right: 0; bottom: 0; width: 58%; background: var(--bnr-c2); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); }
.bnr-t-diagonal_split .ds-b { top: 0; right: 0; bottom: 0; width: 66%; background: color-mix(in srgb, var(--bnr-c2) 32%, var(--bnr-c1)); clip-path: polygon(27% 0, 35% 0, 8% 100%, 0 100%); }
.bnr-t-diagonal_split .ds-dots { top: 7%; left: 1.5%; width: 18cqi; height: 11cqi; background-image: radial-gradient(color-mix(in srgb, var(--bnr-c2) 45%, transparent) 2px, transparent 2.6px); background-size: 14px 14px; }
.bnr-t-diagonal_split .bnr-body { width: 46%; }
@container bnr (max-width: 620px) {
  .bnr-t-diagonal_split .ds-a { top: auto; width: 100%; height: 62%; clip-path: polygon(100% 22%, 100% 100%, 38% 100%); }
  .bnr-t-diagonal_split .ds-b { top: auto; width: 100%; height: 70%; clip-path: polygon(100% 10%, 100% 18%, 28% 100%, 18% 100%); }
  .bnr-t-diagonal_split .bnr-body { width: 100%; }
  .bnr-t-diagonal_split.has-fg .bnr-body { width: 70%; }
  .bnr-t-diagonal_split.bnr-pl-hero .bnr-body, .bnr-t-diagonal_split.bnr-pl-popup .bnr-body { width: 100%; }
}

/* ---------- 2. Super sale burst ---------- */
.bnr-t-super_sale_burst .sb-rays { inset: -100% -20% -100% -60%; background: repeating-conic-gradient(from 0deg at 45% 50%, color-mix(in srgb, var(--bnr-c2) 16%, transparent) 0deg 8deg, transparent 8deg 16deg); }
.bnr-t-super_sale_burst .sb-confetti { inset: 0; background:
  radial-gradient(circle, var(--bnr-c2) 0 3px, transparent 3.5px) 62% 14% / 100% 100% no-repeat,
  radial-gradient(circle, color-mix(in srgb, var(--bnr-c2) 60%, #fff) 0 4px, transparent 4.5px) 56% 84% / 100% 100% no-repeat,
  radial-gradient(circle, var(--bnr-c2) 0 2.5px, transparent 3px) 8% 88% / 100% 100% no-repeat,
  radial-gradient(circle, color-mix(in srgb, var(--bnr-c2) 60%, #fff) 0 3px, transparent 3.5px) 40% 8% / 100% 100% no-repeat; }
.bnr-t-super_sale_burst .bnr-body { width: 62%; flex-direction: row; align-items: center; gap: 3cqi; }
.sb-burst { position: relative; flex: none; width: 23cqi; aspect-ratio: 1; display: grid; place-items: center; }
.sb-star { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--bnr-c2); filter: drop-shadow(0 10px 14px rgba(20, 22, 40, .22)); animation: bnr-spin 40s linear infinite; }
.sb-burst-text { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 16%; text-align: center; color: var(--bnr-on2); }
.sb-burst .bnr-title { font-size: clamp(16px, 2.7cqi, 36px); line-height: .98; }
.sb-burst-badge { font-weight: 800; font-size: clamp(10px, 1.05cqi, 13px); letter-spacing: .12em; text-transform: uppercase; }
.sb-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1cqi; min-width: 0; }
.bnr-t-super_sale_burst .bnr-discount { flex-direction: column; align-items: flex-start; }
@container bnr (max-width: 620px) {
  .bnr-t-super_sale_burst .bnr-body { flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; }
  .bnr-t-super_sale_burst.has-fg .bnr-body { width: 66%; }
  .bnr-t-super_sale_burst.bnr-pl-hero .bnr-body, .bnr-t-super_sale_burst.bnr-pl-popup .bnr-body { width: 100%; }
  .sb-burst { width: clamp(112px, 36cqi, 170px); }
  .sb-burst .bnr-title { font-size: clamp(15px, 5.2cqi, 24px); }
  .bnr-t-super_sale_burst .bnr-discount { flex-direction: row; align-items: baseline; }
}

/* ---------- 3. Vertical ribbon ---------- */
.bnr-t-vertical_ribbon .vr-stripes { top: 0; right: 0; bottom: 0; width: 48%; background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--bnr-c2) 14%, transparent) 0 14px, transparent 14px 28px); }
.vr-ribbon {
  position: absolute; z-index: 2; left: 4cqi; top: 0; bottom: 10%; width: max(54px, 8.5cqi);
  display: flex; align-items: center; justify-content: center; background: var(--bnr-c2); color: var(--bnr-on2);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 3.2cqi - 14px), 0 100%);
}
.vr-ribbon span { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--bnr-font); font-weight: 700; font-size: clamp(24px, 4.6cqi, 60px); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; padding-bottom: 14px; }
.vr-ribbon.vr-long span { font-size: clamp(14px, 2.1cqi, 28px); letter-spacing: .08em; }
.bnr-t-vertical_ribbon .bnr-body { padding-left: calc(8cqi + max(54px, 8.5cqi)); width: 58%; }
.bnr-t-vertical_ribbon .bnr-kicker { text-transform: uppercase; letter-spacing: .18em; font-size: clamp(12px, 1.4cqi, 18px); }
.bnr-t-vertical_ribbon .bnr-cta { border-radius: 12px; text-transform: uppercase; letter-spacing: .06em; }
@container bnr (max-width: 620px) {
  .vr-ribbon { left: 14px; width: 46px; bottom: 16%; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 18px), 0 100%); }
  .vr-ribbon span { font-size: 24px; }
  .vr-ribbon.vr-long span { font-size: 15px; }
  .bnr-t-vertical_ribbon .bnr-body { padding-left: 76px; width: 100%; }
  .bnr-t-vertical_ribbon.has-fg .bnr-body { width: 72%; }
  .bnr-t-vertical_ribbon.bnr-pl-hero .bnr-body, .bnr-t-vertical_ribbon.bnr-pl-popup .bnr-body { width: 100%; }
}

/* ---------- 4. Circle badge ---------- */
.bnr-t-circle_badge .bnr-in { background: linear-gradient(118deg, var(--bnr-c1) 0%, var(--bnr-c1) 38%, color-mix(in srgb, var(--bnr-c2) 30%, var(--bnr-c1)) 100%); }
.bnr-t-circle_badge .cb-ring { border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--bnr-c2) 38%, transparent); }
.bnr-t-circle_badge .cb-r1 { width: 46cqi; aspect-ratio: 1; right: 1%; top: 50%; transform: translateY(-50%); }
.bnr-t-circle_badge .cb-r2 { width: 12cqi; aspect-ratio: 1; left: 44%; bottom: -5cqi; border-style: solid; border-width: 1.5cqi; border-color: color-mix(in srgb, var(--bnr-c2) 16%, transparent); }
/* wide layouts: the disc is sized by the banner height so it never spills out of short (16:5) banners */
.bnr-t-circle_badge .bnr-art { top: 50%; bottom: auto; right: 7%; height: 80%; width: auto; max-width: 36%; aspect-ratio: 1; transform: translateY(-50%); }
.bnr-t-circle_badge .cb-r1 { max-height: 112%; }
.cb-disc { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 34% 28%, #fff 0%, color-mix(in srgb, var(--bnr-c2) 16%, #fff) 70%);
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, .55), 0 24px 40px -22px color-mix(in srgb, var(--bnr-c2) 70%, transparent); }
.cb-disc .bnr-fg { width: 84%; height: 84%; }
.cb-badge { position: absolute; left: -9%; top: -3%; width: max(88px, 14cqi); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: var(--bnr-c2); color: var(--bnr-on2); transform: rotate(-12deg); box-shadow: 0 0 0 6px color-mix(in srgb, var(--bnr-c2) 26%, transparent), 0 14px 26px -12px rgba(20, 22, 40, .45); }
.cb-badge::after { content: ""; position: absolute; inset: 7%; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--bnr-on2) 55%, transparent); }
.cb-badge .bnr-discount { color: inherit; flex-direction: column; align-items: center; gap: 0; padding: 0 10%; }
.cb-badge .bnr-d-num { font-size: clamp(24px, 4.3cqi, 56px); }
.cb-badge .bnr-d-pre, .cb-badge .bnr-d-suf { font-size: clamp(11px, 1.35cqi, 18px); }
.cb-badge .bnr-d-word { font-size: clamp(15px, 2.2cqi, 28px); }
@container bnr (max-width: 620px) {
  .bnr-t-circle_badge .bnr-art { top: auto; bottom: 7%; right: 6%; width: 44cqi; height: auto; max-width: none; transform: none; }
  .bnr-t-circle_badge .cb-r1 { width: 62cqi; top: auto; bottom: -6%; right: -4%; transform: none; }
  .cb-badge { width: max(72px, 21cqi); }
  .cb-badge .bnr-d-num { font-size: clamp(22px, 7.4cqi, 36px); }
  .cb-badge .bnr-d-pre, .cb-badge .bnr-d-suf { font-size: 11px; }
  .bnr-t-circle_badge .bnr-body { width: 100%; }
  .bnr-pl-hero.bnr-t-circle_badge .bnr-art, .bnr-pl-popup.bnr-t-circle_badge .bnr-art { width: 56cqi; }
  .bnr-pl-grid.bnr-t-circle_badge .bnr-body, .bnr-pl-full.bnr-t-circle_badge .bnr-body { width: 58%; }
  .bnr-pl-grid.bnr-t-circle_badge .bnr-art, .bnr-pl-full.bnr-t-circle_badge .bnr-art { width: 36cqi; bottom: 9%; }
  .bnr-pl-grid.bnr-t-circle_badge .cb-badge, .bnr-pl-full.bnr-t-circle_badge .cb-badge { left: -2%; top: -12%; width: max(64px, 19cqi); }
}

/* ---------- 5. Elegant minimal ---------- */
.bnr-t-elegant_minimal .em-overlay { inset: 0; background:
  radial-gradient(circle at 84% 30%, color-mix(in srgb, var(--bnr-c2) 22%, transparent) 0 17%, transparent 17.3%),
  radial-gradient(circle at 70% 82%, color-mix(in srgb, var(--bnr-c2) 13%, transparent) 0 9%, transparent 9.3%); }
.bnr-t-elegant_minimal.has-bg .em-overlay { background: linear-gradient(90deg, color-mix(in srgb, var(--bnr-c1) 90%, transparent) 0%, color-mix(in srgb, var(--bnr-c1) 62%, transparent) 42%, transparent 78%); z-index: 1; }
.bnr-t-elegant_minimal.has-bg .bnr-layer::after { display: none; }
.bnr-t-elegant_minimal .em-line { left: 5.5cqi; top: 14%; bottom: 14%; width: 2px; background: var(--bnr-c2); opacity: .7; z-index: 2; }
.bnr-t-elegant_minimal .bnr-body { padding-left: 9cqi; width: 54%; gap: 1.3cqi; }
.bnr-t-elegant_minimal .bnr-title { font-family: var(--bnr-serif); font-weight: 600; text-transform: none; letter-spacing: -.015em; font-size: clamp(26px, 4.8cqi, 64px); line-height: 1.04; }
.bnr-t-elegant_minimal .bnr-badge { background: none; color: var(--bnr-tx); padding: 0; border-radius: 0; letter-spacing: .3em; }
.bnr-t-elegant_minimal .bnr-badge::before { content: ""; width: 26px; height: 2px; background: var(--bnr-c2); }
.bnr-t-elegant_minimal .bnr-kicker { font-weight: 600; font-size: clamp(14px, 1.6cqi, 21px); }
.bnr-t-elegant_minimal .bnr-discount { font-family: var(--bnr-serif); font-style: italic; font-weight: 500; }
.bnr-t-elegant_minimal .bnr-d-num { font-size: clamp(30px, 5cqi, 66px); letter-spacing: -.01em; }
.bnr-t-elegant_minimal .bnr-d-pre, .bnr-t-elegant_minimal .bnr-d-suf { font-size: clamp(15px, 2cqi, 26px); }
.bnr-t-elegant_minimal .bnr-cta { background: transparent; color: var(--bnr-tx); box-shadow: inset 0 0 0 1.5px currentColor; border-radius: 0; text-transform: uppercase; letter-spacing: .16em; font-size: clamp(12px, 1.15cqi, 15px); }
a.bnr-t-elegant_minimal:hover .bnr-cta { background: var(--bnr-c2); color: var(--bnr-on2); box-shadow: inset 0 0 0 1.5px var(--bnr-c2); }
@container bnr (max-width: 620px) {
  .bnr-t-elegant_minimal.has-bg .em-overlay { background: linear-gradient(180deg, color-mix(in srgb, var(--bnr-c1) 92%, transparent) 0%, color-mix(in srgb, var(--bnr-c1) 66%, transparent) 52%, transparent 88%); }
  .bnr-t-elegant_minimal .em-line { left: 20px; top: 24px; bottom: auto; height: 46px; }
  .bnr-t-elegant_minimal .bnr-body { width: 100%; padding: 22px 20px 20px 34px; gap: 10px; }
  .bnr-t-elegant_minimal .bnr-title { font-size: clamp(24px, 8.6cqi, 38px); }
  .bnr-t-elegant_minimal .bnr-d-num { font-size: clamp(28px, 10cqi, 46px); }
}

/* ---------- 6. Countdown flash deal ---------- */
.bnr-t-countdown_flash .cf-stripe { top: 0; right: 0; bottom: 0; width: 40%; clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  background: repeating-linear-gradient(-55deg, var(--bnr-c2) 0 26px, color-mix(in srgb, var(--bnr-c2) 72%, var(--bnr-c1)) 26px 52px); }
.bnr-t-countdown_flash .cf-bolt { right: 33%; top: 9%; height: 82%; width: auto; fill: var(--bnr-c2); transform: rotate(10deg); filter: drop-shadow(0 6px 0 color-mix(in srgb, var(--bnr-tx) 16%, transparent)); animation: bnr-flash 2.4s ease-in-out infinite; }
.bnr-t-countdown_flash.has-fg .cf-bolt { display: none; }
.bnr-t-countdown_flash .bnr-body { width: 56%; }
.cf-timer { gap: 8px; margin: .4cqi 0 .2cqi; }
.cf-timer .bnr-cd-unit { min-width: clamp(50px, 6.6cqi, 86px); padding: 1cqi .6cqi .7cqi; border-radius: 14px; background: var(--bnr-c2); color: var(--bnr-on2); box-shadow: 0 5px 0 color-mix(in srgb, var(--bnr-c2) 60%, #000); }
.cf-timer .bnr-cd-unit b { font-size: clamp(22px, 3.3cqi, 44px); }
.cf-timer .bnr-cd-unit small { opacity: .85; }
@container bnr (max-width: 620px) {
  .bnr-t-countdown_flash .cf-stripe { top: auto; width: 100%; height: 26%; clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%); }
  .bnr-t-countdown_flash .cf-bolt { right: 6%; top: 6%; height: 30%; }
  .bnr-t-countdown_flash .bnr-body { width: 100%; }
  .bnr-t-countdown_flash.has-fg .bnr-body { width: 100%; }
  .bnr-t-countdown_flash .bnr-art { height: 40%; width: 46%; }
  .cf-timer { gap: 6px; }
  .cf-timer .bnr-cd-unit { min-width: 52px; padding: 7px 4px 5px; }
  .cf-timer .bnr-cd-unit b { font-size: 24px; }
}

/* ---------- strip (BELOW_HERO_STRIP): one compact line for every template ---------- */
.bnr-pl-strip { --bnr-r: 16px; }
.bnr-pl-strip .bnr-in { aspect-ratio: auto; min-height: 66px; padding: 10px 22px; box-shadow: none; }
.bnr-pl-strip .bnr-strip-deco { inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--bnr-c2) 34%, transparent) 1.6px, transparent 2.1px); background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 22%, transparent 78%, #000); mask-image: linear-gradient(90deg, #000, transparent 22%, transparent 78%, #000); }
.bnr-pl-strip.bnr-t-countdown_flash .bnr-strip-deco, .bnr-pl-strip.bnr-t-vertical_ribbon .bnr-strip-deco { background-image: repeating-linear-gradient(-55deg, color-mix(in srgb, var(--bnr-c2) 30%, transparent) 0 10px, transparent 10px 20px); background-size: auto; }
.bnr-pl-strip.bnr-t-circle_badge .bnr-in { background: linear-gradient(90deg, var(--bnr-c1), color-mix(in srgb, var(--bnr-c2) 24%, var(--bnr-c1))); }
.bnr .bnr-body.bnr-strip { width: 100%; padding: 0; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; }
.bnr-strip-text { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; min-width: 0; }
.bnr-strip .bnr-title { font-size: clamp(17px, 1.9cqi, 24px); }
.bnr-strip .bnr-sub { font-weight: 700; font-size: 14px; opacity: .85; }
.bnr-strip .bnr-discount { flex-wrap: nowrap; }
.bnr-strip .bnr-d-num { font-size: clamp(22px, 2.6cqi, 34px); }
.bnr-strip .bnr-d-pre, .bnr-strip .bnr-d-suf { font-size: clamp(13px, 1.4cqi, 18px); }
.bnr-strip .bnr-d-word { font-size: clamp(18px, 2cqi, 26px); }
.bnr-strip .bnr-badge { font-size: 11px; }
.bnr-strip .bnr-cta { min-height: 40px; padding: .5em 1.15em; font-size: 14px; }
.bnr-strip .bnr-cd-unit { min-width: 40px; padding: 4px 4px 3px; }
.bnr-strip .bnr-cd-unit b { font-size: 17px; }
.bnr-strip .bnr-cd-unit small { font-size: 9px; }
@container bnr (max-width: 620px) {
  .bnr-pl-strip .bnr-in { padding: 12px 14px; }
  .bnr-strip { gap: 8px 12px; }
  .bnr-strip .bnr-sub { display: none; }
  .bnr-strip .bnr-title { font-size: 17px; }
}

/* ---------- slots on the website ---------- */
.bnr-slot { padding: 28px 0; }
.bnr-slot-hero { padding: 18px 0 6px; }
.bnr-slot-strip { padding: 16px 0 0; }
.bnr-grid { display: grid; gap: 18px; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); align-items: start; }
.bnr-grid-2 { --n: 2; } .bnr-grid-3 { --n: 3; }
@media (max-width: 960px) { .bnr-grid-3 { --n: 2; } }
@media (max-width: 640px) { .bnr-grid { --n: 1 !important; gap: 14px; } .bnr-slot { padding: 18px 0; } }

/* hero slider: native scroll-snap (swipe on touch), autoplay/dots/arrows from banners.js */
.bnr-slider { position: relative; }
.bnr-track { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; border-radius: 22px; outline: none; }
.bnr-track::-webkit-scrollbar { display: none; }
.bnr-track:focus-visible { box-shadow: 0 0 0 3px var(--pink, #EF2F91); }
.bnr-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.bnr-slide .bnr-in { box-shadow: none; }
.bnr-arrow { position: absolute; top: calc(50% - 20px); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); box-shadow: 0 8px 22px -8px rgba(20, 22, 40, .45);
  display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .2s, transform .2s; z-index: 3; }
.bnr-arrow svg { width: 22px; height: 22px; fill: none; stroke: #202438; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.bnr-prev { left: 14px; } .bnr-next { right: 14px; }
.bnr-slider:hover .bnr-arrow, .bnr-arrow:focus-visible { opacity: 1; }
.bnr-arrow:hover { transform: scale(1.06); }
@media (hover: none) { .bnr-arrow { display: none; } }
.bnr-dots { display: flex; justify-content: center; gap: 2px; margin-top: 8px; }
.bnr-dots button { position: relative; width: 26px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.bnr-dots button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; transform: translate(-50%, -50%); border-radius: 999px; background: #CBD0DD; transition: width .25s, background .25s; }
.bnr-dots button[aria-current="true"]::before { width: 24px; background: var(--pink, #EF2F91); }
.bnr-dots button:focus-visible { outline: 2px solid var(--pink, #EF2F91); outline-offset: 1px; border-radius: 8px; }

/* popup (native <dialog>: ESC, focus trap and top layer for free) */
.bnr-popup { padding: 0; border: 0; background: transparent; overflow: visible; color: inherit;
  width: min(440px, calc(100vw - 32px), calc((100dvh - 56px) * .8)); max-width: none; max-height: none; }
.bnr-popup::backdrop { background: rgba(32, 36, 56, .55); }
.bnr-popup[open] { animation: bnr-pop .28s cubic-bezier(.2, .9, .3, 1.2); }
.bnr-popup .bnr-in { box-shadow: 0 30px 70px -20px rgba(10, 12, 30, .55); }
.bnr-popup-x { position: absolute; top: -12px; right: -12px; z-index: 5; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #fff; color: #202438;
  box-shadow: 0 8px 20px -6px rgba(20, 22, 40, .45); display: grid; place-items: center; cursor: pointer; }
.bnr-popup-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.bnr-popup-x:focus-visible { outline: 3px solid var(--pink, #EF2F91); outline-offset: 2px; }
@media (max-width: 480px) { .bnr-popup-x { top: -8px; right: -6px; } }
html.bnr-lock { overflow: hidden; }

@keyframes bnr-spin { to { transform: rotate(360deg); } }
@keyframes bnr-flash { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }
@keyframes bnr-pop { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@media (prefers-reduced-motion: reduce) {
  .sb-star, .cf-bolt, .bnr-popup[open] { animation: none !important; }
  .bnr-track { scroll-behavior: auto; }
  .bnr-cta, .bnr-cta-arrow { transition: none; }
}
@media print { .bnr-popup, .bnr-arrow, .bnr-dots { display: none !important; } }

/* =====================================================================
   v2 — placements: full-bleed hero, compact page hero, side rails
   ===================================================================== */

/* HERO_REPLACE: edge to edge. Height follows the viewport (--bnr-vh lets the admin preview simulate a screen height). */
.bnr-pl-hero { --bnr-r: 0px; }
.bnr-pl-hero .bnr-in { aspect-ratio: auto; height: clamp(480px, calc(var(--bnr-vh, 1vh) * 78), 820px); box-shadow: none; }
/* keep the text and the image aligned with the page content (1240 px container, 24 px gutter) */
.bnr-pl-hero .bnr-body { padding-left: max(5.5cqi, calc((100cqi - 1192px) / 2)); width: max(52%, calc((100cqi - 1192px) / 2 + 620px)); max-width: 100%; }
.bnr-pl-hero .bnr-art { right: max(4%, calc((100cqi - 1192px) / 2)); width: min(42%, 620px); }
.bnr-pl-hero .bnr-title { font-size: clamp(26px, 4.4cqi, 64px); }
.bnr-pl-hero .bnr-d-num { font-size: clamp(44px, 8cqi, 132px); }
/* non-home pages: compact page banner so products stay above the fold */
.bnr-hero-compact .bnr-in { height: clamp(220px, calc(var(--bnr-vh, 1vh) * 32), 360px); }
.bnr-hero-compact .bnr-body { gap: .7cqi; padding-top: 18px; padding-bottom: 18px; }
.bnr-hero-compact .bnr-desc, .bnr-hero-compact .bnr-kicker { display: none; }
.bnr-hero-compact .bnr-title { font-size: clamp(20px, 2.8cqi, 40px); }
.bnr-hero-compact .bnr-d-num { font-size: clamp(32px, 4.6cqi, 72px); }
.bnr-hero-compact .bnr-d-pre, .bnr-hero-compact .bnr-d-suf { font-size: clamp(14px, 1.7cqi, 24px); }
.bnr-hero-compact .bnr-art { top: 6%; }
@container bnr (max-width: 620px) {
  .bnr-pl-hero .bnr-in { height: auto; aspect-ratio: 4 / 5; min-height: min(calc(var(--bnr-vh, 1vh) * 70), 560px); }
  .bnr-pl-hero .bnr-body, .bnr-pl-hero.has-fg .bnr-body { width: 100%; padding: 26px 20px 20px; }
  .bnr-pl-hero .bnr-art { right: 4%; width: 74%; }
  .bnr-hero-compact .bnr-in { aspect-ratio: auto; min-height: 220px; }
  .bnr-hero-compact .bnr-body, .bnr-hero-compact.has-fg .bnr-body { width: 64%; padding: 18px 16px; }
  .bnr-hero-compact .bnr-art { width: 40%; height: 88%; right: 2%; }
  .bnr-hero-compact .bnr-title { font-size: clamp(18px, 6.4cqi, 26px); }
  .bnr-hero-compact .bnr-d-num { font-size: clamp(30px, 11cqi, 48px); }
}
.bnr-slot-hero { padding: 0; }
.bnr-slot-hero.is-compact { padding: 0 0 8px; }
.bnr-slot-hero .bnr-track { border-radius: 0; }
.bnr-slot-hero .bnr-dots { position: absolute; left: 0; right: 0; bottom: 10px; margin: 0; z-index: 3; }
.bnr-slot-hero .bnr-dots button::before { background: rgba(255, 255, 255, .75); box-shadow: 0 0 0 1px rgba(20, 22, 40, .18); }
.bnr-slot-hero .bnr-dots button[aria-current="true"]::before { background: var(--pink, #EF2F91); }
.bnr-slot-hero .bnr-prev { left: max(14px, calc((100vw - 1240px) / 2)); }
.bnr-slot-hero .bnr-next { right: max(14px, calc((100vw - 1240px) / 2)); }

/* a slot placed inside an existing .wrap (product page) must not add a second gutter */
.wrap .bnr-slot .wrap { padding-left: 0; padding-right: 0; }
.wrap > .bnr-slot { padding: 24px 0 8px; }

/* SIDE RAILS — banners.js measures the real free space beside the page content and sets html[data-bnr-rail]:
     full    ≥ 160 px free → the full rail (160–300 px)
     compact 100–159 px    → the compact rail (badge, discount, headline, countdown, button)
     float   < 100 px      → no rail; the floating card (bottom left) when the banner allows it
   Rails sit fixed under the header, never beside a hero: while a hero (branded hero or hero banner) or the footer is on screen
   they are hidden (IntersectionObserver in banners.js → html.bnr-hero-on / html.bnr-foot-on) and they fade in below it.
   Height: --rail-h from banners.js (Auto / Medium / Tall / Full / Custom, always capped at the space under the header).
   Without JavaScript: the full rail from 1600 px only, and never on pages with a hero. */
.bnr-rail { display: none; position: fixed; z-index: 40; top: calc(var(--header-h, 76px) + 52px); width: var(--rail-w, 160px); transition: opacity .35s ease, transform .35s ease, visibility 0s linear 0s; }
.bnr-pl-rail { --bnr-ar: 5 / 12; --bnr-ar-m: 5 / 12; --bnr-r: 20px; }
.bnr-rail-compact { display: none; }
.bnr-rail .bnr-in { max-height: var(--rail-max, calc(100vh - var(--header-h, 76px) - 76px)); }
@media (min-width: 1600px) {
  html:not([data-bnr-rail]) .bnr-rail { --rail-w: clamp(160px, calc((100vw - 1240px) / 2 - 40px), 300px); display: block; }
  html:not([data-bnr-rail]) .bnr-rail-left { left: max(12px, calc((100vw - 1240px) / 2 - var(--rail-w) - 20px)); }
  html:not([data-bnr-rail]) .bnr-rail-right { right: max(12px, calc((100vw - 1240px) / 2 - var(--rail-w) - 20px)); }
  html:not([data-bnr-rail]) body:has(.bnr-slot-hero, .hero[data-hero]) .bnr-rail { display: none; }   /* no JS: never beside a hero */
}
html[data-bnr-rail="full"] .bnr-rail, html[data-bnr-rail="compact"] .bnr-rail { display: block; }
html[data-bnr-rail="compact"] .bnr-rail-full { display: none; }
html[data-bnr-rail="compact"] .bnr-rail-compact { display: block; }
.bnr-rail.is-blocked { display: none !important; }   /* safety net: would touch the content */
/* below the hero / above the footer: soft fade + slide */
html.bnr-hero-on .bnr-rail, html.bnr-foot-on .bnr-rail { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(14px); transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s; }
html.bnr-hero-on .bnr-float { opacity: 0 !important; visibility: hidden; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .bnr-rail, html.bnr-hero-on .bnr-rail, html.bnr-foot-on .bnr-rail { transition: none; transform: none; } }

/* FILL: a rail with a chosen height (Medium / Tall / Full / Custom) stretches the template to that height — background, image,
   pattern and decorations fill it (they are positioned in %); badge + headline at the top, the big discount in the middle,
   countdown + button at the bottom. Used by the full rail, the compact rail and the builder preview. */
.bnr-fill { height: var(--rail-h); }
.bnr-fill > .bnr-rail-full, .bnr-fill > .bnr-rail-compact { height: 100%; }
.bnr-fill .bnr { height: 100%; }
.bnr-fill .bnr .bnr-in { height: 100%; max-height: none; aspect-ratio: auto; align-items: stretch; }
.bnr-fill .bnr-bg, .bnr-fill .bnr-pic, .bnr-fill .bnr-pic img { object-fit: cover; height: 100%; }
.bnr-fill .bnr-pl-rail .bnr-body { height: 100%; justify-content: flex-start; padding-bottom: 16px; }
.bnr-fill .bnr-pl-rail .bnr-discount { margin-block: auto; }
.bnr-fill .bnr-pl-rail .bnr-actions { margin-top: auto; }
.bnr-fill .bnr-pl-rail .bnr-discount ~ .bnr-actions { margin-top: 0; }
/* templates with artwork (cut-out, blocks, gift, bags, discount badge…): the art gets its own band between the top text and the
   bottom button + countdown group, so nothing ever sits behind the button; the discount then stays with the headline */
.bnr-fill .bnr-pl-rail .bnr-art { top: auto; bottom: max(27%, 172px); height: min(34%, calc(100% - 172px - 33%)); width: 88%; right: 6%; left: auto; }
.bnr-fill .bnr-pl-rail:has(.bnr-art > *) .bnr-body .bnr-discount { margin-block: 6px 0; }
.bnr-fill .bnr-pl-rail:has(.bnr-art > *) .bnr-body .bnr-desc { display: none; }
.bnr-fill .bnr-pl-rail:has(.bnr-art > *) .bnr-body .bnr-actions { margin-top: auto; }
.bnr-fill .bnr-pl-rail .kt-stack { bottom: max(27%, 172px); }
.bnr-fill .bnr-t-weekend_flash .bnr-desc { display: none; }
.bnr-fill .bnr-compact .bnr-body.bnr-cbody { height: 100%; gap: 8px; padding-top: 16px; padding-bottom: 14px; }
.bnr-fill .bnr-compact .bnr-c-badge { order: 1; }
.bnr-fill .bnr-compact .bnr-c-title { order: 2; -webkit-line-clamp: 3; }
.bnr-fill .bnr-compact .bnr-c-disc { order: 3; margin-block: auto; }
.bnr-fill .bnr-compact .bnr-c-disc .bnr-d-num { font-size: clamp(30px, 34cqi, 54px); }
.bnr-fill .bnr-compact .bnr-c-cd { order: 4; }
.bnr-fill .bnr-compact .bnr-cta { order: 5; width: 100%; justify-content: center; }
.bnr-fill .bnr-compact .bnr-c-deco { width: 140%; right: -60%; top: -8%; }
.bnr-fill .bnr-compact .bnr-in::after { content: ""; position: absolute; left: -30%; bottom: -10%; width: 110%; aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, var(--bnr-c2) 14%, transparent); z-index: -1; pointer-events: none; }

/* COMPACT layout (compact rail + floating card): the same for every template — template colours and background image */
.bnr-compact { --bnr-r: 16px; }
.bnr-compact .bnr-in { aspect-ratio: auto; display: block; background: linear-gradient(165deg, var(--bnr-c1) 0%, color-mix(in oklch, var(--bnr-c1) 78%, var(--bnr-c2)) 100%); box-shadow: 0 14px 32px -16px rgba(32, 36, 56, .5); overflow: hidden; }
.bnr-compact.has-bg .bnr-layer::after { background: linear-gradient(180deg, color-mix(in srgb, var(--bnr-c1) 90%, transparent) 0%, color-mix(in srgb, var(--bnr-c1) 78%, transparent) 100%); }
.bnr-c-deco { position: absolute; right: -30%; top: -18%; width: 90%; aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, var(--bnr-c2) 22%, transparent); }
.bnr-compact .bnr-body.bnr-cbody { width: 100%; padding: 14px 10px 12px; display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.bnr-c-badge { font-size: 9.5px; padding: .35em .75em; letter-spacing: .06em; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bnr-c-disc { justify-content: center; text-align: center; gap: 0 .15em; }
.bnr-c-disc .bnr-d-num { font-size: clamp(26px, 30cqi, 44px); }
.bnr-c-disc .bnr-d-pre, .bnr-c-disc .bnr-d-suf { font-size: clamp(10px, 10cqi, 15px); }
.bnr-c-disc .bnr-d-word { font-size: clamp(18px, 18cqi, 28px); }
.bnr-c-title { font-size: clamp(12px, 11cqi, 17px); line-height: 1.12; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; }
.bnr-c-cd.bnr-cd-minimal { justify-content: center; font-size: 11.5px; gap: .2em; }
.bnr-compact .bnr-cta { min-height: 32px; padding: .45em .9em; font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* FLOATING CARD: bottom-left (the WhatsApp button is bottom-right), dismissible, one line of essentials */
.bnr-float { position: fixed; left: 16px; bottom: 16px; z-index: 65; width: min(300px, calc(100vw - 32px)); opacity: 0; transform: translateY(16px); transition: opacity .3s ease, transform .3s ease; }
.bnr-float.is-on { opacity: 1; transform: none; }
.bnr-float.is-yield { opacity: 0 !important; transform: translateY(16px) !important; pointer-events: none; }
.bnr-float[hidden] { display: none; }
.bnr-float-x { position: absolute; z-index: 3; top: -9px; right: -9px; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #202438; color: #fff; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.bnr-float-x svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; }
.bnr-float-x:focus-visible { outline: 3px solid #EF2F91; outline-offset: 2px; }
.bnr-cl-float .bnr-body.bnr-cbody { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "disc badge" "disc title" "disc cd" "disc cta"; align-items: center; justify-items: start; column-gap: 12px; row-gap: 3px; padding: 10px 14px 10px 12px; text-align: left; }
.bnr-cl-float .bnr-c-disc { grid-area: disc; flex-direction: column; align-items: center; gap: 0; }
.bnr-cl-float .bnr-c-disc .bnr-d-num { font-size: 34px; }
.bnr-cl-float .bnr-c-badge { grid-area: badge; font-size: 9px; }
.bnr-cl-float .bnr-c-title { grid-area: title; font-size: 14px; -webkit-line-clamp: 1; }
.bnr-cl-float .bnr-c-cd { grid-area: cd; justify-content: flex-start; }
.bnr-cl-float .bnr-cta { grid-area: cta; min-height: 28px; font-size: 11.5px; padding: .35em .85em; }
/* phones: max ~90 px tall, leaves the WhatsApp button (right, 56 px) and cart messages free */
@media (max-width: 760px) {
  .bnr-float { left: 12px; bottom: 14px; width: calc(100vw - 12px - 84px); max-width: 320px; }
  .bnr-cl-float .bnr-body.bnr-cbody { grid-template-areas: "disc title" "disc cd" "disc cta"; row-gap: 2px; padding: 8px 12px 8px 10px; max-height: 90px; }
  .bnr-cl-float .bnr-c-badge { display: none; }
  .bnr-cl-float .bnr-c-disc .bnr-d-num { font-size: 28px; }
  .bnr-cl-float .bnr-c-title { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .bnr-float, .bnr-float.is-on { transition: none; transform: none; } }
@media print { .bnr-float, .bnr-rail { display: none !important; } }

/* vertical layout for every template inside a rail */
@container bnr (max-width: 620px) {
  .bnr-pl-rail .bnr-in { align-items: flex-start; }
  .bnr-pl-rail .bnr-body, .bnr-pl-rail.has-fg .bnr-body { width: 100%; padding: 18px 14px 14px; gap: 8px; }
  .bnr-pl-rail .bnr-title { font-size: clamp(18px, 12cqi, 30px); }
  .bnr-pl-rail .bnr-kicker { font-size: clamp(12px, 7cqi, 15px); }
  .bnr-pl-rail .bnr-desc { font-size: 12.5px; }
  .bnr-pl-rail .bnr-d-num { font-size: clamp(34px, 24cqi, 66px); }
  .bnr-pl-rail .bnr-d-pre, .bnr-pl-rail .bnr-d-suf { font-size: clamp(12px, 8cqi, 20px); }
  .bnr-pl-rail .bnr-badge { font-size: 10px; }
  .bnr-pl-rail .bnr-art { width: 88%; height: 36%; right: 6%; }
  .bnr-pl-rail .bnr-actions { width: 100%; gap: 8px; }
  .bnr-pl-rail .bnr-cta { width: 100%; justify-content: center; white-space: normal; text-align: center; padding: .6em .8em; font-size: 14px; }
  .bnr-pl-rail .bnr-countdown { flex-wrap: wrap; gap: 4px; }
  .bnr-pl-rail .bnr-cd-unit { min-width: 34px; padding: 4px 3px 3px; }
  .bnr-pl-rail .bnr-cd-unit b { font-size: 16px; }
  .bnr-pl-rail.bnr-t-diagonal_split .ds-a { height: 44%; }
  .bnr-pl-rail.bnr-t-super_sale_burst .sb-burst { width: 80cqi; }
  .bnr-pl-rail.bnr-t-super_sale_burst .sb-burst .bnr-title { font-size: clamp(14px, 9cqi, 22px); }
  .bnr-pl-rail.bnr-t-vertical_ribbon .vr-ribbon { left: 8px; width: 32px; bottom: 30%; }
  .bnr-pl-rail.bnr-t-vertical_ribbon .vr-ribbon span { font-size: 18px; }
  .bnr-pl-rail.bnr-t-vertical_ribbon .vr-ribbon.vr-long span { font-size: 12px; }
  .bnr-pl-rail.bnr-t-vertical_ribbon .bnr-body { padding-left: 50px; }
  .bnr-pl-rail.bnr-t-circle_badge .bnr-art { width: 70cqi; right: 15cqi; bottom: 4%; }
  .bnr-pl-rail.bnr-t-circle_badge .cb-badge { width: max(64px, 34cqi); left: -12%; }
  .bnr-pl-rail.bnr-t-elegant_minimal .bnr-body { padding-left: 26px; }
  .bnr-pl-rail.bnr-t-elegant_minimal .em-line { left: 12px; }
  .bnr-pl-rail .cf-timer .bnr-cd-unit { min-width: 36px; }
  .bnr-pl-rail .cf-timer .bnr-cd-unit b { font-size: 18px; }
}

/* =====================================================================
   v2 — animated, kid-friendly templates (transform / opacity only)
   Colours: derived from the banner's accent (--bnr-c2) mixed with playful pastels.
   banners.js adds .is-off while a banner is off-screen → all animations pause.
   ===================================================================== */
.bnr-anim {
  --k1: var(--bnr-c2);
  /* oklch mixing turns the hue instead of passing through grey, so every palette stays bright */
  --k2: color-mix(in oklch, var(--bnr-c2) 50%, #FFC93C);
  --k3: color-mix(in oklch, var(--bnr-c2) 50%, #8FD3FF);
  --k4: color-mix(in srgb, var(--bnr-c2) 60%, #FFFFFF);
  --k5: color-mix(in srgb, var(--bnr-c2) 35%, #FFFFFF);
  --scrim: radial-gradient(ellipse 48% 78% at 24% 50%, color-mix(in srgb, var(--bnr-c1) 88%, transparent) 0%, color-mix(in srgb, var(--bnr-c1) 60%, transparent) 62%, transparent 100%);
  --rise: 62cqi;
}
.bnr-anim.bnr-pl-hero { --scrim: radial-gradient(ellipse 40% 80% at 30% 50%, color-mix(in srgb, var(--bnr-c1) 88%, transparent) 0%, color-mix(in srgb, var(--bnr-c1) 60%, transparent) 62%, transparent 100%); }
.k-c1 { --k: var(--k1); } .k-c2 { --k: var(--k2); } .k-c3 { --k: var(--k3); } .k-c4 { --k: var(--k4); } .k-c5 { --k: var(--k5); }
@container bnr (max-width: 620px) {
  .bnr-anim, .bnr-anim.bnr-pl-hero { --rise: 150cqi; --scrim: radial-gradient(ellipse 90% 50% at 36% 26%, color-mix(in srgb, var(--bnr-c1) 88%, transparent) 0%, color-mix(in srgb, var(--bnr-c1) 60%, transparent) 62%, transparent 100%); }
  .bnr-pl-rail.bnr-anim { --rise: 260cqi; --scrim: radial-gradient(ellipse 100% 42% at 50% 22%, color-mix(in srgb, var(--bnr-c1) 88%, transparent) 0%, color-mix(in srgb, var(--bnr-c1) 60%, transparent) 62%, transparent 100%); }
}
.bnr-anim.bnr-hero-compact { --rise: 34cqi; }
/* soft colour cloud over the decorations, behind the text (inside the clipped layer, so it never spills outside the banner):
   the moving shapes can never make the words hard to read */
.bnr-anim .bnr-layer::after { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; background: var(--scrim); }
.bnr-anim.is-off, .bnr-anim.is-off *, .bnr-anim.is-off *::before, .bnr-anim.is-off *::after { animation-play-state: paused !important; }

/* ---------- 7. Floating balloons ---------- */
.kb-balloon { left: var(--x); bottom: 6%; width: max(28px, calc(6.5cqi * var(--s))); animation: bnr-rise var(--t) linear var(--d) infinite; will-change: transform; }
.kb-balloon svg { display: block; width: 100%; height: auto; transform-origin: 50% 0; animation: bnr-sway 3.4s ease-in-out infinite alternate; }
.kb-body { fill: var(--k); }
.kb-string { fill: none; stroke: color-mix(in srgb, var(--bnr-tx) 35%, transparent); stroke-width: 1.4; }
.kb-shine { fill: #fff; opacity: .5; }
@container bnr (max-width: 620px) { .kb-balloon { width: max(26px, calc(11cqi * var(--s))); } }
@keyframes bnr-rise { from { transform: translateY(var(--rise)); } to { transform: translateY(calc(var(--rise) * -1)); } }
@keyframes bnr-sway { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }

/* ---------- 8. Bubble pop ---------- */
.kp-bubble { left: var(--x); bottom: 4%; width: max(18px, calc(5cqi * var(--s))); animation: bnr-bubble var(--t) ease-in var(--d) infinite; will-change: transform, opacity; }
.kp-bubble svg { display: block; width: 100%; height: auto; animation: bnr-wobble 2.2s ease-in-out infinite alternate; }
.kp-fill { fill: var(--k); opacity: .16; }
.kp-ring { fill: none; stroke: var(--k); stroke-width: 1.6; opacity: .75; }
.kp-shine { fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; opacity: .9; }
.kp-dot { fill: #fff; opacity: .8; }
@container bnr (max-width: 620px) { .kp-bubble { width: max(16px, calc(9cqi * var(--s))); } }
@keyframes bnr-bubble {
  0% { transform: translateY(var(--rise)) scale(.6); opacity: 0; }
  10% { opacity: 1; }
  82% { transform: translateY(calc(var(--rise) * -.55)) scale(1); opacity: 1; }
  90% { transform: translateY(calc(var(--rise) * -.62)) scale(1.35); opacity: 0; }
  100% { transform: translateY(calc(var(--rise) * -.62)) scale(1.35); opacity: 0; }
}
@keyframes bnr-wobble { from { transform: scale(1.07, .93); } to { transform: scale(.93, 1.07); } }

/* ---------- 9. Toy blocks ---------- */
.bnr-t-toy_blocks .kt-floor { left: 0; right: 0; bottom: 0; height: 12%; background: color-mix(in srgb, var(--bnr-c2) 18%, var(--bnr-c1)); }
.bnr-anim .kt-stack { position: absolute; z-index: 1; right: 6%; bottom: 12%; width: min(34cqi, 420px); aspect-ratio: 1; pointer-events: none; }
.bnr-t-toy_blocks.has-fg .kt-stack { right: 40%; width: min(22cqi, 280px); }
.kt-block { position: absolute; display: grid; place-items: center; border-radius: 14%; background: var(--k); color: #fff;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .12), inset 0 0 0 4px rgba(255, 255, 255, .35), 0 10px 18px -10px rgba(20, 22, 40, .45);
  animation: bnr-drop .9s cubic-bezier(.3, 1.45, .5, 1) var(--d) both; }
.kt-block b { font-family: var(--bnr-font); font-weight: 700; font-size: min(9cqi, 110px); line-height: 1; text-shadow: 0 3px 0 rgba(0, 0, 0, .14); }
.kt-a { left: 0; bottom: 0; width: 31%; aspect-ratio: 1; } .kt-a b, .kt-b b, .kt-c b { font-size: min(7cqi, 80px); }
.kt-b { left: 34.5%; bottom: 0; width: 31%; aspect-ratio: 1; }
.kt-c { left: 69%; bottom: 0; width: 31%; aspect-ratio: 1; }
.kt-big { left: 12%; bottom: 34%; width: 64%; aspect-ratio: 1; --k: var(--bnr-c2); color: var(--bnr-on2); animation: bnr-drop .9s cubic-bezier(.3, 1.45, .5, 1) var(--d) both, bnr-tilt 3.6s ease-in-out 2s infinite alternate; }
.kt-disc { color: inherit; flex-direction: column; align-items: center; gap: 0; text-align: center; padding: 0 8%; }
.kt-disc .bnr-d-num { font-size: min(11cqi, 128px); }
.kt-disc .bnr-d-pre, .kt-disc .bnr-d-suf { font-size: min(3.4cqi, 36px); }
.kt-disc .bnr-d-word { font-size: min(5.6cqi, 60px); }
@container bnr (max-width: 620px) {
  .bnr-anim .kt-stack, .bnr-t-toy_blocks.has-fg .kt-stack { right: 6%; bottom: 8%; width: 46cqi; }
  .bnr-t-toy_blocks.has-fg .bnr-art { display: none; }
  .kt-block b, .kt-a b, .kt-b b, .kt-c b { font-size: 11cqi; }
  .kt-disc .bnr-d-num { font-size: 15cqi; } .kt-disc .bnr-d-pre, .kt-disc .bnr-d-suf { font-size: 4.6cqi; }
  .bnr-pl-rail .kt-stack { width: 76cqi; right: 12%; bottom: 6%; }
  .bnr-pl-rail .kt-disc .bnr-d-num { font-size: 22cqi; } .bnr-pl-rail .kt-block b { font-size: 16cqi; }
  .bnr-pl-grid.bnr-anim .kt-stack, .bnr-pl-full.bnr-anim .kt-stack { width: 38cqi; bottom: 10%; }
}
.bnr-hero-compact .kt-stack { width: min(20cqi, 300px); bottom: 8%; }
@keyframes bnr-drop { 0% { transform: translateY(-160%) rotate(-12deg); opacity: 0; } 55% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes bnr-tilt { from { transform: rotate(-4deg); } to { transform: rotate(3deg) translateY(-3%); } }

/* ---------- 10. Rainbow & clouds ---------- */
.kr-rainbow { right: 2%; bottom: -2%; width: min(46cqi, 640px); height: auto; overflow: visible; transform-origin: 50% 100%; animation: bnr-breathe 6s ease-in-out infinite alternate; }
.kr-band { fill: none; stroke-width: 13; stroke-linecap: round; }
.kr-b1 { stroke: color-mix(in srgb, #FF8FA3 70%, var(--bnr-c2)); } .kr-b2 { stroke: color-mix(in srgb, #FFC77D 72%, var(--bnr-c2)); }
.kr-b3 { stroke: color-mix(in srgb, #FFF08A 75%, var(--bnr-c2)); } .kr-b4 { stroke: color-mix(in srgb, #9BE3B5 72%, var(--bnr-c2)); }
.kr-b5 { stroke: color-mix(in srgb, #8CCBFF 70%, var(--bnr-c2)); }
.kr-cloud { left: 0; top: var(--y); width: calc(16cqi * var(--s)); min-width: 56px; animation: bnr-drift var(--t) linear var(--d) infinite; will-change: transform; }
.kr-cloud svg { display: block; width: 100%; height: auto; fill: #fff; opacity: .92; filter: drop-shadow(0 6px 8px rgba(20, 22, 40, .08)); }
.kr-star { left: var(--x); top: var(--y); width: max(10px, 1.8cqi); animation: bnr-twinkle 2.6s ease-in-out var(--d) infinite; }
.kr-star svg { display: block; width: 100%; height: auto; fill: var(--k); }
@container bnr (max-width: 620px) { .kr-rainbow { width: 78cqi; right: -6%; } .kr-cloud { width: calc(30cqi * var(--s)); } .kr-star { width: max(10px, 3.6cqi); } }
@keyframes bnr-drift { from { transform: translateX(-30cqi); } to { transform: translateX(110cqi); } }
@keyframes bnr-breathe { from { transform: scale(1); } to { transform: scale(1.035); } }
@keyframes bnr-twinkle { 0%, 100% { transform: scale(.6) rotate(0); opacity: .35; } 50% { transform: scale(1.1) rotate(20deg); opacity: 1; } }

/* ---------- 11. Gift box surprise ---------- */
.bnr-t-gift_box .kg-glow { right: 4%; top: 8%; width: 40cqi; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--bnr-c2) 26%, transparent), transparent); }
.bnr-anim .kg-art { top: auto; bottom: 0; height: auto; width: min(32cqi, 440px); right: 8%; display: block; }
.kg-gift { position: relative; width: 100%; padding-top: 52%; }
.kg-box { display: block; width: 100%; height: auto; }
.kg-body { fill: var(--bnr-c2); } .kg-shade { fill: rgba(0, 0, 0, .12); }
.kg-ribbon { fill: color-mix(in srgb, var(--bnr-c2) 35%, #FFD23F); }
.kg-lidbody { fill: color-mix(in srgb, var(--bnr-c2) 82%, #fff); }
/* resting state = open lid + badge out (this is also the reduced-motion picture) */
.kg-lid { position: absolute; left: -5%; width: 110%; height: auto; top: 17%; transform-origin: 6% 92%; transform: rotate(-24deg); animation: bnr-lid 1.5s cubic-bezier(.3, 1.4, .5, 1) .3s both; }
.kg-badge { position: absolute; z-index: 2; left: 50%; top: -24%; width: 58%; aspect-ratio: 1; margin-left: -29%; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: var(--bnr-c1); color: var(--bnr-tx); box-shadow: 0 0 0 5px var(--bnr-c2), 0 16px 28px -12px rgba(20, 22, 40, .5);
  animation: bnr-badge-out 1.6s cubic-bezier(.3, 1.5, .5, 1) .55s both, bnr-bob 2.8s ease-in-out 2.4s infinite alternate; }
.kg-disc { flex-direction: column; align-items: center; gap: 0; padding: 0 10%; }
.kg-disc .bnr-d-num { font-size: min(8cqi, 96px); }
.kg-disc .bnr-d-pre, .kg-disc .bnr-d-suf { font-size: min(2.6cqi, 28px); }
.kg-heart { font-size: min(9cqi, 100px); color: var(--bnr-acc); }
.kg-spark { position: absolute; width: 9%; aspect-ratio: 1; background: color-mix(in srgb, var(--bnr-c2) 40%, #FFD23F); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: bnr-twinkle 1.8s ease-in-out infinite; }
.kg-s1 { left: 2%; top: -30%; animation-delay: -.4s; } .kg-s2 { right: 0; top: -38%; animation-delay: -1s; } .kg-s3 { right: 10%; top: 8%; width: 6%; animation-delay: -1.4s; }
@container bnr (max-width: 620px) {
  .bnr-anim .kg-art { width: 44cqi; right: 6%; bottom: 0; }
  .kg-disc .bnr-d-num { font-size: 11cqi; } .kg-disc .bnr-d-pre, .kg-disc .bnr-d-suf { font-size: 3.6cqi; }
  .bnr-pl-rail.bnr-anim .kg-art { width: 74cqi; right: 13%; }
  .bnr-pl-rail .kg-disc .bnr-d-num { font-size: 18cqi; } .bnr-pl-rail .kg-disc .bnr-d-pre, .bnr-pl-rail .kg-disc .bnr-d-suf { font-size: 6cqi; }
}
.bnr-hero-compact.bnr-anim .kg-art { width: min(14cqi, 200px); }
@keyframes bnr-lid { 0% { transform: none; } 30% { transform: translateY(6%); } 100% { transform: rotate(-24deg); } }
@keyframes bnr-badge-out { 0% { transform: translateY(70%) scale(.2); opacity: 0; } 40% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes bnr-bob { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-7%) rotate(3deg); } }

/* ---------- 12. Confetti party ---------- */
.kc-origin { left: 72%; top: 42%; width: 0; height: 0; }
.kc-piece, .kc-fall { position: absolute; display: block; width: max(7px, 1.1cqi); height: max(11px, 1.7cqi); background: var(--k); border-radius: 2px; }
.kc-sh1 { border-radius: 50%; height: max(8px, 1.2cqi); }
.kc-sh2 { width: max(12px, 1.8cqi); height: max(5px, .7cqi); border-radius: 3px; }
.kc-piece { left: 0; top: 0; opacity: 0; animation: bnr-burst 1.8s cubic-bezier(.15, .7, .3, 1) .2s both; }
.kc-fall { left: var(--x); top: -6%; animation: bnr-fall var(--t) linear var(--d) infinite; opacity: .85; }
.bnr-t-confetti_party .bnr-cta { position: relative; overflow: hidden; isolation: isolate; }
.bnr-t-confetti_party .bnr-cta::after { content: ""; position: absolute; inset: -20% -10%; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .6) 50%, transparent 65%); transform: translateX(-110%); animation: bnr-shine 3s ease-in-out 1s infinite; }
.bnr-t-confetti_party .bnr-cta::before { content: "✦"; position: absolute; right: -2px; top: -10px; font-size: 16px; color: color-mix(in srgb, var(--bnr-c2) 40%, #FFD23F); animation: bnr-twinkle 1.6s ease-in-out infinite; }
@container bnr (max-width: 620px) { .kc-origin { left: 70%; top: 68%; } .kc-piece, .kc-fall { width: max(6px, 2.2cqi); height: max(9px, 3.2cqi); } }
@keyframes bnr-burst {
  0% { transform: translate(0, 0) scale(.3) rotate(0); opacity: 1; }
  60% { opacity: 1; }
  100% { transform: translate(var(--dx), calc(var(--dy) + 6cqi)) scale(1) rotate(var(--r)); opacity: 0; }
}
@keyframes bnr-fall { from { transform: translateY(-10cqi) rotate(0); } to { transform: translateY(var(--rise)) rotate(540deg); } }
@keyframes bnr-shine { 0%, 55% { transform: translateX(-110%); } 85%, 100% { transform: translateX(110%); } }

/* ---------- 13. Teddy peek ---------- */
.bnr-t-teddy_peek .ky-hill { left: -10%; right: -10%; bottom: -30%; height: 46%; border-radius: 50%; background: color-mix(in srgb, var(--bnr-c2) 22%, var(--bnr-c1)); }
.bnr-anim .ky-art { top: auto; bottom: 0; height: auto; width: min(30cqi, 420px); right: 7%; overflow: hidden; display: block; }
.ky-bear { display: block; width: 100%; height: auto; transform-origin: 50% 100%; animation: bnr-peek 1.4s cubic-bezier(.3, 1.4, .5, 1) .3s both, bnr-tilt-head 5s ease-in-out 2s infinite; }
.ky-fur { fill: color-mix(in srgb, #D7A06A 78%, var(--bnr-c2)); }
.ky-in { fill: color-mix(in srgb, #F6D2B0 70%, var(--bnr-c1)); }
.ky-snout { fill: #FBE9D7; }
.ky-nose, .ky-eye { fill: #3A2A22; }
.ky-glint { fill: #fff; }
.ky-mouth { fill: none; stroke: #3A2A22; stroke-width: 3.5; stroke-linecap: round; }
.ky-cheek { fill: color-mix(in srgb, var(--bnr-c2) 45%, #FF9CB0); opacity: .55; }
.ky-wave { transform-origin: 190px 176px; animation: bnr-wave 2.6s ease-in-out 1.8s infinite; }
.ky-eyes { transform-origin: 110px 92px; animation: bnr-blink 4.6s ease-in-out infinite; }
@container bnr (max-width: 620px) { .bnr-anim .ky-art { width: 50cqi; right: 5%; } .bnr-pl-rail.bnr-anim .ky-art { width: 84cqi; right: 8%; } }
.bnr-hero-compact.bnr-anim .ky-art { width: min(20cqi, 300px); }
@keyframes bnr-peek { 0% { transform: translateY(75%); } 100% { transform: none; } }
@keyframes bnr-tilt-head { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-5deg); } 88% { transform: rotate(4deg); } }
@keyframes bnr-wave { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-22deg); } 80% { transform: rotate(10deg); } 90% { transform: rotate(-18deg); } }
@keyframes bnr-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }

/* ---------- 14. Toy train ---------- */
.bnr-t-toy_train .kn-track { left: 0; right: 0; bottom: 5%; height: max(6px, .7cqi); background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--bnr-tx) 45%, transparent) 0 6px, transparent 6px 22px), color-mix(in srgb, var(--bnr-tx) 22%, transparent); }
/* resting state (reduced motion) = parked on the right; animated: chugs from left to right, then loops */
.kn-train { left: 0; bottom: calc(5% + max(6px, .7cqi)); display: flex; align-items: flex-end; gap: .6cqi; transform: translateX(calc(100cqi - 100% - 3cqi)); animation: bnr-train 16s linear infinite; will-change: transform; }
.kn-car { position: relative; display: grid; place-items: center; height: max(34px, 5.4cqi); border-radius: 8px 8px 4px 4px; padding: 0 1.2cqi; margin-bottom: max(8px, 1.1cqi); }
.kn-wagon { background: var(--k); min-width: max(58px, 9cqi); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .12); }
.kn-wagon b { font-family: var(--bnr-font); font-weight: 700; font-size: max(13px, 1.9cqi); color: #fff; white-space: nowrap; text-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.kn-w2 { min-width: max(40px, 5.6cqi); }
.kn-engine { background: var(--bnr-c2); width: max(70px, 10cqi); height: max(40px, 6.4cqi); border-radius: 10px 18px 6px 6px; }
.kn-cab { position: absolute; left: 10%; top: -40%; width: 42%; height: 50%; background: color-mix(in srgb, var(--bnr-c2) 70%, #000); border-radius: 6px 6px 0 0; }
.kn-chimney { position: absolute; right: 16%; top: -38%; width: 16%; height: 42%; background: color-mix(in srgb, var(--bnr-c2) 60%, #000); border-radius: 3px 3px 0 0; }
.kn-puff { position: absolute; left: -40%; bottom: 100%; width: 180%; aspect-ratio: 1; border-radius: 50%; background: #fff; opacity: 0; animation: bnr-puff 2.4s ease-out infinite; }
.kn-p2 { animation-delay: -.8s; } .kn-p3 { animation-delay: -1.6s; }
.kn-wheel { position: absolute; bottom: calc(-1 * max(8px, 1.1cqi)); width: max(14px, 2cqi); aspect-ratio: 1; border-radius: 50%; background: #3A2A22;
  background-image: linear-gradient(90deg, transparent 44%, #fff 44% 56%, transparent 56%); animation: bnr-spin 1s linear infinite; }
.kn-wheel:nth-of-type(1) { left: 12%; } .kn-wheel:nth-of-type(2) { right: 12%; } .kn-wheel:nth-of-type(3) { left: 44%; }
.bnr-t-toy_train .bnr-body { padding-bottom: max(12cqi, 64px); }
@container bnr (max-width: 620px) {
  .kn-car { height: max(30px, 9cqi); } .kn-wagon { min-width: max(54px, 17cqi); } .kn-wagon b { font-size: max(12px, 3.8cqi); }
  .kn-engine { width: max(62px, 19cqi); height: max(36px, 11cqi); } .kn-wheel { width: max(12px, 3.6cqi); }
  .bnr-t-toy_train .bnr-body { padding-bottom: 96px; }
}
.bnr-hero-compact.bnr-t-toy_train .bnr-body { padding-bottom: 18px; }
@keyframes bnr-train { from { transform: translateX(-100%); } to { transform: translateX(100cqi); } }
@keyframes bnr-puff { 0% { transform: translateY(0) scale(.3); opacity: .9; } 100% { transform: translateY(-120%) scale(1.2); opacity: 0; } }

/* reduced motion: every template shows its calm resting picture */
@media (prefers-reduced-motion: reduce) {
  .bnr-anim *, .bnr-anim *::before, .bnr-anim *::after { animation: none !important; }
  .kc-piece { display: none; }
  .kp-bubble { opacity: .9; }
}

/* =====================================================================
   v3 — shared extras: long titles, promo chip, fine print
   ===================================================================== */
.bnr-len-l .bnr-tt { font-size: .82em; }
.bnr-len-xl .bnr-tt { font-size: .66em; }
.bnr-promo { display: inline-flex; align-items: center; gap: 6px; padding: .32em .7em; border: 2px dashed currentColor; border-radius: 10px; font-weight: 800; font-size: clamp(12px, 1.2cqi, 15px); line-height: 1.1; letter-spacing: .06em; white-space: nowrap; }
.bnr-promo small { font-size: .72em; opacity: .75; text-transform: uppercase; letter-spacing: .1em; }
.bnr-promo b { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-weight: 800; }
.bnr-fine { margin: .1em 0 0; font-size: clamp(10px, .95cqi, 12px); line-height: 1.35; opacity: .75; max-width: 62ch; font-weight: 600; }
.bnr-strip .bnr-promo { font-size: 12px; }

/* =====================================================================
   v3 — countdown: styles (boxes / flip / circles / pill / minimal), sizes, positions, urgency
   ===================================================================== */
.bnr-countdown { --cds: 1; align-items: center; flex-wrap: wrap; }
.bnr-cd-sm { --cds: .8; } .bnr-cd-lg { --cds: 1.3; }
.bnr-cd-unit[hidden] { display: none !important; }
.bnr-cd-label { flex-basis: 100%; font-weight: 800; font-size: calc(12px * var(--cds)); letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.bnr-cd-boxes .bnr-cd-unit, .bnr-countdown:not([class*="bnr-cd-"]) .bnr-cd-unit { min-width: calc(48px * var(--cds)); background: var(--cd, color-mix(in srgb, var(--bnr-tx) 10%, transparent)); color: var(--cd-on, inherit); }
.bnr-cd-boxes .bnr-cd-unit b { font-size: calc(clamp(17px, 1.9cqi, 24px) * var(--cds)); }
/* flip clock */
.bnr-cd-flip { perspective: 400px; }
.bnr-cd-flip .bnr-cd-unit { min-width: calc(50px * var(--cds)); background: none; padding: 0; gap: 3px; }
.bnr-cd-flip .bnr-cd-unit b { position: relative; display: block; min-width: 100%; text-align: center; padding: .14em .2em .1em; border-radius: 8px; font-size: calc(clamp(18px, 2cqi, 26px) * var(--cds));
  background: var(--cd, #1B1D2B); color: var(--cd-on, #FFFFFF); box-shadow: inset 0 -.55em 0 rgba(255, 255, 255, .06), 0 3px 0 rgba(0, 0, 0, .28); transform-origin: 50% 50%; }
.bnr-cd-flip .bnr-cd-unit b::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .35); }
.bnr-cd-flip .bnr-cd-unit b.is-flip { animation: cd-flip .42s ease-in-out; }
/* circles: progress ring around each unit */
.bnr-cd-circles .bnr-cd-unit { position: relative; min-width: calc(58px * var(--cds)); background: none; padding: 0; }
.bnr-cd-ring { display: block; width: calc(58px * var(--cds)); height: calc(58px * var(--cds)); transform: rotate(-90deg); }
.bnr-cd-track { fill: none; stroke: currentColor; stroke-width: 3; opacity: .16; }
.bnr-cd-prog { fill: none; stroke: var(--cd, var(--bnr-c2)); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 1) * 100); transition: stroke-dashoffset .6s ease; }
.bnr-cd-circles .bnr-cd-unit b { position: absolute; left: 0; right: 0; top: calc(29px * var(--cds)); transform: translateY(-50%); text-align: center; font-size: calc(clamp(16px, 1.7cqi, 22px) * var(--cds)); }
/* pill: one compact inline line */
.bnr-cd-pill { display: inline-flex; flex-wrap: nowrap; gap: .3em; padding: .45em .95em; border-radius: 999px; background: var(--cd, var(--bnr-c2)); color: var(--cd-on, var(--bnr-on2)); font-size: calc(14px * var(--cds)); font-weight: 800; white-space: nowrap; }
.bnr-cd-pill .bnr-cd-label, .bnr-cd-minimal .bnr-cd-label { flex-basis: auto; font-size: 1em; text-transform: none; letter-spacing: 0; opacity: .9; margin-right: .15em; }
.bnr-cd-pill .bnr-cd-unit, .bnr-cd-minimal .bnr-cd-unit { flex-direction: row; align-items: baseline; min-width: 0; padding: 0; background: none; gap: 1px; }
.bnr-cd-pill .bnr-cd-unit b, .bnr-cd-minimal .bnr-cd-unit b { font-size: 1.05em; }
.bnr-cd-pill .bnr-cd-unit small, .bnr-cd-minimal .bnr-cd-unit small { margin: 0; font-size: .82em; letter-spacing: 0; text-transform: none; opacity: .85; }
/* minimal: plain text — ideal in the strip and the side rails */
.bnr-cd-minimal { display: inline-flex; flex-wrap: wrap; gap: .3em; font-size: calc(14px * var(--cds)); font-weight: 800; color: var(--cd, inherit); }
/* urgency: last hour — red digits, gentle pulse */
.bnr-countdown.is-urgent { --cd: #E0102B; --cd-on: #FFFFFF; }
.bnr-cd-minimal.is-urgent, .bnr-cd-circles.is-urgent b { color: #E0102B; }
.bnr-countdown.is-urgent .bnr-cd-unit { animation: cd-pulse 1.1s ease-in-out infinite alternate; }
/* ended / start states */
.bnr-countdown.is-ended .bnr-cd-label { display: none; }
.bnr-cd-pill.is-ended::after, .bnr-cd-minimal.is-ended::after { padding: 0; background: none; }
/* positions chosen in the builder */
.bnr-cd-at-headline { display: block; margin: .1em 0 .2em; }
.bnr-cd-at-corner { position: absolute; z-index: 4; top: max(12px, 2.4cqi); right: max(12px, 2.4cqi); }
.bnr-cd-at-bar { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; padding: 8px 12px; border-radius: 0 0 var(--bnr-r) var(--bnr-r);
  background: color-mix(in srgb, var(--bnr-tx) 88%, transparent); color: var(--bnr-c1); }
.bnr:has(.bnr-cd-at-bar) .bnr-body { padding-bottom: max(64px, 7cqi); }
.bnr-cd-at-bar .bnr-countdown:not(.bnr-cd-pill) .bnr-cd-label { flex-basis: auto; }
@keyframes cd-flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(-90deg); } 100% { transform: rotateX(0); } }
@keyframes cd-pulse { from { transform: scale(1); } to { transform: scale(1.06); } }

/* =====================================================================
   v3 — modern sale templates (original designs; shapes drawn in code)
   ===================================================================== */
.bnr-mod { --bnr-heavy: "Anton", Impact, "Arial Narrow Bold", "Franklin Gothic Heavy", "Helvetica Neue", sans-serif; --md-deep: color-mix(in oklch, var(--bnr-c2) 62%, #000); }
.bnr-mod .bnr-in { background: linear-gradient(120deg, var(--bnr-c1) 0%, color-mix(in oklch, var(--bnr-c1) 62%, var(--bnr-c2)) 100%); }
.bnr-mod .md-body { width: 50%; gap: 1cqi; }
.bnr-mod .md-title { font-family: var(--bnr-heavy); font-weight: 400; text-transform: uppercase; letter-spacing: 0; line-height: .9; font-size: clamp(32px, 6.6cqi, 104px); color: var(--bnr-tx); }
.bnr-mod .md-chip { background: var(--bnr-tx); color: var(--bnr-c1); }
.bnr-mod .md-disc { font-family: var(--bnr-heavy); font-weight: 400; }
.bnr-mod .md-disc .bnr-d-num { font-size: clamp(40px, 7.6cqi, 116px); letter-spacing: 0; }
.bnr-mod .bnr-cta { border-radius: 10px; text-transform: uppercase; letter-spacing: .04em; position: relative; overflow: hidden; isolation: isolate; }
.bnr-mod .bnr-cta::after { content: ""; position: absolute; inset: -20% -10%; z-index: -1; pointer-events: none; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(-110%); animation: bnr-shine 3.2s ease-in-out 1.2s infinite; }
/* headline treatments */
.bnr-mod .md-3d { text-shadow: .02em .02em 0 var(--md-deep), .04em .04em 0 var(--md-deep), .06em .06em 0 var(--md-deep), .08em .1em .16em rgba(0, 0, 0, .3); }
.bnr-mod .md-skew { transform: skewX(-8deg); transform-origin: 0 100%; }
.bnr-mod .md-outline { text-shadow: .05em .05em 0 var(--bnr-c2), .09em .09em 0 color-mix(in srgb, var(--bnr-tx) 30%, transparent); }
.bnr-mod .md-bar { display: inline-block; padding: .1em .24em .04em; background: #111114; color: var(--bnr-ond, #FFD400); transform: skewX(-10deg) rotate(-2deg); box-shadow: .1em .12em 0 rgba(0, 0, 0, .25); }
.bnr-mod .md-neon { color: #fff; letter-spacing: .02em; text-shadow: 0 0 .06em var(--bnr-c2), 0 0 .24em color-mix(in srgb, var(--bnr-c2) 70%, transparent); }
.bnr-mod .md-gold { color: var(--bnr-c2); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .bnr-mod .md-gold { background: linear-gradient(180deg, color-mix(in srgb, var(--bnr-c2) 45%, #fff) 0%, var(--bnr-c2) 52%, color-mix(in srgb, var(--bnr-c2) 70%, #000) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.md-kicker-bar { display: inline-block; padding: .15em .5em; background: var(--bnr-tx); color: var(--bnr-c1); transform: skewX(-10deg); font-weight: 800; }
/* decorative primitives */
.md-dots { width: 20cqi; height: 12cqi; background-image: radial-gradient(color-mix(in srgb, var(--bnr-tx) 40%, transparent) 1.6px, transparent 2.2px); background-size: 14px 14px; opacity: .55; }
.md-halftone { inset: 0; background-image: radial-gradient(color-mix(in srgb, #000 28%, transparent) 30%, transparent 32%); background-size: 12px 12px;
  -webkit-mask-image: radial-gradient(circle at 100% 0, #000, transparent 65%); mask-image: radial-gradient(circle at 100% 0, #000, transparent 65%); }
.md-orb { border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--bnr-c2) 45%, #fff), var(--bnr-c2) 70%); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35); }
.md-spark { width: max(12px, 1.6cqi); aspect-ratio: 1; background: color-mix(in srgb, var(--bnr-c2) 40%, #fff); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: bnr-twinkle 2.4s ease-in-out infinite; }
/* the big discount badge (circle / burst / tag / hex) */
.md-badge { position: absolute; z-index: 2; display: grid; place-items: center; text-align: center; aspect-ratio: 1; width: clamp(96px, 17cqi, 240px); color: var(--bnr-on2); }
.md-badge-shape { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--bnr-c2); filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .3)); }
.md-badge-circle { border-radius: 50%; background: radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--bnr-c2) 60%, #fff), var(--bnr-c2) 62%); box-shadow: 0 0 0 max(5px, .6cqi) color-mix(in srgb, var(--bnr-c2) 28%, transparent), 0 16px 32px -12px rgba(0, 0, 0, .5); }
.md-badge-tag { aspect-ratio: 3 / 2; width: clamp(130px, 22cqi, 320px); rotate: -12deg; }
.md-tag-hole { fill: var(--bnr-c1); }
.md-badge-hex .md-badge-shape { filter: drop-shadow(0 0 10px var(--bnr-c2)) drop-shadow(0 0 26px color-mix(in srgb, var(--bnr-c2) 60%, transparent)); }
.md-badge-text { position: relative; flex-direction: column; align-items: center; gap: .04em; padding: 0 12%; color: inherit; font-family: var(--bnr-heavy); font-weight: 400; line-height: 1.02; }
.md-badge-text .bnr-d-num { line-height: .9; }
.md-badge-text .bnr-d-pre { margin-bottom: .1em; }
.md-badge-tag .md-badge-text { padding-left: 24%; }
.md-badge-text .bnr-d-num { font-size: clamp(30px, 5.8cqi, 88px); letter-spacing: 0; }
.md-badge-text .bnr-d-pre, .md-badge-text .bnr-d-suf { font-size: clamp(12px, 1.7cqi, 26px); }
.md-badge-text .bnr-d-word { font-size: clamp(18px, 3cqi, 42px); }
.md-art .md-badge { left: -8%; top: 4%; }
.bnr-mod:not(.has-fg) .md-art .md-badge { left: 50%; top: 50%; translate: -50% -50%; width: clamp(130px, 25cqi, 340px); }
.bnr-mod:not(.has-fg) .md-art .md-badge-tag { width: clamp(160px, 30cqi, 420px); }
/* entrance (plays when the banner first comes into view; banners.js pauses it off-screen) */
.bnr-motion .md-body > * { animation: md-in .7s cubic-bezier(.2, .8, .3, 1) both; }
.bnr-motion .md-body > :nth-child(2) { animation-delay: .08s; } .bnr-motion .md-body > :nth-child(3) { animation-delay: .16s; }
.bnr-motion .md-body > :nth-child(4) { animation-delay: .24s; } .bnr-motion .md-body > :nth-child(5) { animation-delay: .32s; } .bnr-motion .md-body > :nth-child(n+6) { animation-delay: .4s; }
.bnr-motion .md-badge { animation: md-pop .8s cubic-bezier(.3, 1.5, .5, 1) .35s both; }
.bnr-motion .md-art .bnr-fg { animation: md-in-r .9s cubic-bezier(.2, .8, .3, 1) .1s both; }
.bnr-motion.is-off, .bnr-motion.is-off *, .bnr-motion.is-off *::before, .bnr-motion.is-off *::after { animation-play-state: paused !important; }
@keyframes md-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes md-in-r { from { opacity: 0; transform: translateX(24px); } }
@keyframes md-in-l { from { opacity: 0; transform: translateX(30%); } }
@keyframes md-pop { from { opacity: 0; transform: scale(.3) rotate(-14deg); } }
@keyframes md-float { from { transform: translateY(0); } to { transform: translateY(-4%); } }

/* ---------- 15. Diagonal mega sale ---------- */
.dm-slab { top: 0; bottom: 0; right: 0; }
.dm-s1 { width: 56%; background: var(--bnr-c2); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); animation: md-in-l .8s cubic-bezier(.2, .8, .3, 1) both; }
.dm-s2 { width: 42%; background: color-mix(in oklch, var(--bnr-c2) 55%, #fff); clip-path: polygon(56% 0, 100% 0, 100% 100%, 22% 100%); opacity: .5; animation: md-in-l .9s cubic-bezier(.2, .8, .3, 1) .1s both; }
.dm-s3 { width: 64%; background: color-mix(in oklch, var(--bnr-c2) 70%, var(--bnr-c1)); clip-path: polygon(27% 0, 31% 0, 6% 100%, 2% 100%); }
.dm-dots { top: 7%; left: 2%; }
.dm-k1 { right: 46%; top: 12%; } .dm-k2 { right: 6%; bottom: 14%; animation-delay: -1.2s; }
@container bnr (max-width: 620px) {
  .dm-s1 { top: auto; width: 100%; height: 58%; clip-path: polygon(100% 18%, 100% 100%, 30% 100%); }
  .dm-s2 { top: auto; width: 100%; height: 64%; clip-path: polygon(100% 4%, 100% 12%, 22% 100%, 12% 100%); }
  .dm-s3 { display: none; }
}

/* ---------- 16. Gradient blob offer ---------- */
.bnr-t-gradient_blob .bnr-in { background: linear-gradient(135deg, var(--bnr-c1) 0%, color-mix(in oklch, var(--bnr-c1) 40%, var(--bnr-c2)) 62%, var(--bnr-c2) 100%); }
.gb-blob { fill: color-mix(in srgb, #fff 16%, transparent); }
.gb-b1 { right: -6%; top: -18%; width: 56cqi; animation: md-float 7s ease-in-out infinite alternate; }
.gb-b2 { right: 18%; bottom: -36%; width: 40cqi; fill: color-mix(in srgb, var(--bnr-c2) 45%, transparent); animation: md-float 9s ease-in-out -3s infinite alternate; }
.gb-o1 { right: 8%; bottom: 14%; width: 5cqi; aspect-ratio: 1; } .gb-o2 { right: 44%; top: 10%; width: 2.6cqi; aspect-ratio: 1; } .gb-o3 { left: 40%; bottom: 10%; width: 1.8cqi; aspect-ratio: 1; }
.gb-dots { left: 3%; bottom: 6%; }
@container bnr (max-width: 620px) { .gb-b1 { width: 110cqi; top: auto; bottom: -30%; right: -30%; } .gb-o2 { display: none; } }

/* ---------- 17. Bold red wow ---------- */
.bw-ht { opacity: .7; }
.bw-ray { right: -10%; height: 6%; width: 70%; background: color-mix(in srgb, var(--bnr-c2) 30%, transparent); transform-origin: 100% 50%; }
.bw-r1 { top: 20%; transform: rotate(-12deg); } .bw-r2 { top: 50%; transform: rotate(-4deg); height: 3%; } .bw-r3 { top: 78%; transform: rotate(8deg); }
.bnr-t-bold_wow .bnr-in { background: radial-gradient(circle at 70% 40%, color-mix(in oklch, var(--bnr-c1) 80%, #fff), var(--bnr-c1) 60%); }
.bnr-t-bold_wow .md-body { gap: 1.4cqi; }
.bnr-t-bold_wow .md-disc { padding: .08em .25em .02em; background: var(--bnr-c2); color: var(--bnr-on2); transform: skewX(-10deg) rotate(-2deg); box-shadow: .1em .12em 0 rgba(0, 0, 0, .25); }
.bnr-t-bold_wow .md-title { font-size: clamp(32px, 6cqi, 96px); }

/* ---------- 18. Dark premium gold ---------- */
.bnr-t-premium_gold .bnr-in { background: radial-gradient(ellipse at 75% 30%, color-mix(in srgb, var(--bnr-c2) 14%, var(--bnr-c1)), var(--bnr-c1) 62%); }
.pg-sheen { inset: 0; background: linear-gradient(115deg, transparent 40%, color-mix(in srgb, var(--bnr-c2) 10%, transparent) 50%, transparent 60%); }
.pg-frame { inset: 3.5%; border: 1px solid color-mix(in srgb, var(--bnr-c2) 45%, transparent); border-radius: calc(var(--bnr-r) * .6); }
.pg-line { height: 1px; background: linear-gradient(90deg, transparent, var(--bnr-c2), transparent); }
.pg-l1 { left: 5%; width: 30%; top: 14%; } .pg-l2 { right: 8%; width: 36%; bottom: 14%; }
.pg-k1 { right: 30%; top: 16%; } .pg-k2 { right: 8%; top: 30%; animation-delay: -1s; }
.bnr-t-premium_gold .md-chip { background: none; color: var(--bnr-c2); box-shadow: inset 0 0 0 1.5px var(--bnr-c2); }
.bnr-t-premium_gold .md-disc { color: var(--bnr-acc); }
.pg-art { align-items: center; }
.pg-pct { width: 78%; height: auto; overflow: visible; animation: md-float 5s ease-in-out infinite alternate; }
.pg-pct-depth circle { fill: color-mix(in srgb, var(--bnr-c2) 55%, #000); } .pg-pct-depth path { fill: none; stroke: color-mix(in srgb, var(--bnr-c2) 55%, #000); stroke-width: 20; stroke-linecap: round; }
.pg-pct-face circle { fill: var(--bnr-c2); } .pg-pct-face path { fill: none; stroke: var(--bnr-c2); stroke-width: 20; stroke-linecap: round; }
.pg-pct-hole circle { fill: var(--bnr-c1); }

/* ---------- 19. Split photo sale ---------- */
.sp-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 52%; overflow: hidden; clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(135deg, color-mix(in oklch, var(--bnr-c2) 80%, #fff), var(--bnr-c2)); }
.sp-photo .bnr-bg, .sp-photo .bnr-pic { position: absolute; inset: 0; }
.sp-dots { right: 4%; top: 8%; }
.sp-divider { top: 0; bottom: 0; left: 44%; width: 18%; background: var(--bnr-tx); opacity: .9; clip-path: polygon(66% 0, 74.4% 0, 22.2% 100%, 13.9% 100%); }
.bnr.bnr-t-split_photo.has-bg .bnr-layer::after { display: none; }
.sp-badge { left: 53%; top: 50%; translate: -50% -50%; width: clamp(96px, 15cqi, 210px); }
.bnr-t-split_photo .md-body { width: 46%; }
@container bnr (max-width: 620px) {
  .sp-photo { top: auto; width: 100%; height: 46%; clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 100%); }
  .sp-divider { display: none; }
  .sp-badge { left: auto; right: 6%; top: auto; bottom: 30%; translate: 0 0; width: clamp(84px, 28cqi, 130px); }
  .bnr-t-split_photo .md-body { width: 100%; }
}

/* ---------- 20. Ribbon tag sale ---------- */
.rt-stripe { top: 0; bottom: 0; right: 30%; width: 14%; background: color-mix(in srgb, var(--bnr-c2) 30%, transparent); transform: skewX(-18deg); }
.rt-dots { right: 3%; top: 8%; } .rt-o1 { right: 38%; bottom: 8%; width: 3cqi; aspect-ratio: 1; }
.rt-ribbon { position: absolute; z-index: 3; top: 0; left: 0; width: max(110px, 19cqi); aspect-ratio: 1; overflow: hidden; border-top-left-radius: inherit; pointer-events: none; }
.rt-ribbon span { position: absolute; top: 26%; left: -34%; width: 140%; padding: .45em 0 .35em; transform: rotate(-45deg); text-align: center; background: var(--bnr-tx); color: var(--bnr-c1);
  font-family: var(--bnr-heavy); font-size: max(10px, 1.45cqi); letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bnr-t-ribbon_tag .md-body { padding-top: max(6cqi, 40px); }
.rt-art { align-items: center; }
.rt-string { position: absolute; left: 50%; top: -10%; width: 2px; height: 34%; background: color-mix(in srgb, var(--bnr-tx) 55%, transparent); transform: rotate(10deg); transform-origin: top; }
.bnr-t-ribbon_tag.has-fg .rt-string { display: none; }
@container bnr (max-width: 620px) { .rt-ribbon { width: 32cqi; } .rt-ribbon span { font-size: max(9px, 2.6cqi); } .bnr-t-ribbon_tag .md-body { padding-top: max(22cqi, 56px); } }

/* ---------- 21. Halftone pop ---------- */
.hp-ht1 { -webkit-mask-image: radial-gradient(circle at 0 100%, #000, transparent 55%); mask-image: radial-gradient(circle at 0 100%, #000, transparent 55%); background-image: radial-gradient(color-mix(in srgb, var(--bnr-c2) 55%, transparent) 32%, transparent 34%); background-size: 14px 14px; }
.hp-ht2 { background-image: radial-gradient(color-mix(in srgb, var(--bnr-c2) 40%, transparent) 30%, transparent 32%); background-size: 18px 18px; }
.hp-burst { right: 2%; top: 50%; width: 46cqi; translate: 0 -50%; fill: color-mix(in srgb, var(--bnr-c2) 22%, transparent); animation: bnr-spin 60s linear infinite; }
.hp-zig { left: 0; right: 0; bottom: 0; height: 4%; background: linear-gradient(135deg, var(--bnr-c2) 25%, transparent 25%) -8px 0 / 16px 16px, linear-gradient(225deg, var(--bnr-c2) 25%, transparent 25%) -8px 0 / 16px 16px; opacity: .6; }
.bnr-t-halftone_pop .md-chip { background: var(--bnr-c2); color: var(--bnr-on2); transform: rotate(-3deg); }
@container bnr (max-width: 620px) { .hp-burst { width: 90cqi; top: auto; bottom: -20%; translate: 0 0; right: -14%; } }

/* ---------- 22. Geometric cyber ---------- */
.gc-grid { inset: 0; background-image: linear-gradient(color-mix(in srgb, var(--bnr-c2) 12%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--bnr-c2) 12%, transparent) 1px, transparent 1px);
  background-size: 34px 34px; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); }
.gc-tri { fill: none; stroke: var(--bnr-c2); stroke-width: 2.4; filter: drop-shadow(0 0 6px var(--bnr-c2)); animation: md-float 6s ease-in-out infinite alternate; }
.gc-t1 { right: 6%; top: 10%; width: 12cqi; } .gc-t2 { right: 34%; bottom: 8%; width: 7cqi; transform: rotate(180deg); stroke: color-mix(in oklch, var(--bnr-c2) 50%, #FF4FD8); animation-delay: -2s; }
.gc-t3 { left: 44%; top: 6%; width: 4cqi; stroke: color-mix(in oklch, var(--bnr-c2) 40%, #FFFFFF); animation-delay: -4s; }
.gc-k1 { right: 20%; top: 20%; } .gc-k2 { right: 44%; top: 40%; animation-delay: -.8s; } .gc-k3 { right: 4%; bottom: 18%; animation-delay: -1.6s; }
.bnr-t-geometric_cyber .md-chip { background: none; color: var(--bnr-c2); box-shadow: inset 0 0 0 1.5px var(--bnr-c2), 0 0 12px color-mix(in srgb, var(--bnr-c2) 45%, transparent); }
.bnr-t-geometric_cyber .bnr-cta { box-shadow: 0 0 22px -2px var(--bnr-c2); }

/* ---------- 23. Shopping bag hero ---------- */
.sbh-art { align-items: flex-end; }
.sb-bag { position: absolute; bottom: 4%; height: auto; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .28)); animation: md-in .9s cubic-bezier(.3, 1.4, .5, 1) both; }
.sb-1 { left: 4%; width: 34%; animation-delay: .1s; } .sb-2 { left: 30%; width: 44%; z-index: 1; animation-delay: .25s; } .sb-3 { right: 2%; width: 30%; animation-delay: .4s; }
.sb-body { fill: #FFFFFF; } .sb-1 .sb-body { fill: color-mix(in oklch, var(--bnr-c2) 35%, #fff); } .sb-3 .sb-body { fill: color-mix(in oklch, var(--bnr-c1) 35%, #FFD23F); }
.sb-fold { fill: rgba(0, 0, 0, .08); }
.sb-handle { fill: none; stroke: color-mix(in srgb, var(--bnr-c2) 60%, #000); stroke-width: 5; stroke-linecap: round; }
.sb-gift { position: absolute; left: 22%; bottom: 2%; width: 22%; z-index: 2; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .25)); animation: md-pop .8s cubic-bezier(.3, 1.5, .5, 1) .55s both; }
.sb-gift-box { fill: var(--bnr-c2); } .sb-gift-lid { fill: color-mix(in oklch, var(--bnr-c2) 70%, #fff); } .sb-gift-rib { fill: #FFD23F; }
.bnr-mod.bnr-t-shopping_bags .sbh-art .md-badge { left: auto; right: 2%; top: 0; translate: none; width: clamp(96px, 15cqi, 210px); z-index: 3; }
.sbh-dots { left: 3%; bottom: 8%; } .sbh-o1 { right: 46%; top: 12%; width: 3cqi; aspect-ratio: 1; } .sbh-o2 { right: 4%; bottom: 10%; width: 2cqi; aspect-ratio: 1; }
.sbh-k1 { right: 40%; bottom: 30%; } .sbh-k2 { right: 22%; top: 8%; animation-delay: -1s; }

/* ---------- 24. Weekend flash ---------- */
.wf-stripes { top: 0; bottom: 0; right: 0; width: 46%; background: repeating-linear-gradient(-55deg, color-mix(in srgb, var(--bnr-c2) 14%, transparent) 0 18px, transparent 18px 36px); clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%); }
.wf-bolt { fill: var(--bnr-c2); filter: drop-shadow(0 6px 0 color-mix(in srgb, var(--bnr-c2) 45%, #000)); animation: bnr-flash 2.2s ease-in-out infinite; }
.wf-b1 { right: 10%; top: 8%; height: 76%; width: auto; transform: rotate(12deg); } .wf-b2 { right: 30%; top: 24%; height: 40%; width: auto; transform: rotate(-8deg); opacity: .6; animation-delay: -1s; }
.wf-k1 { right: 22%; top: 14%; } .wf-k2 { right: 4%; bottom: 16%; animation-delay: -1.3s; }
.bnr-t-weekend_flash.has-fg .wf-b1 { right: 46%; height: 40%; opacity: .5; }
.bnr-t-weekend_flash .md-chip { padding: .45em 1.1em .35em; background: var(--bnr-c2); color: var(--bnr-on2); border-radius: 4px; transform: skewX(-12deg); font-family: var(--bnr-heavy); font-weight: 400; letter-spacing: .12em; font-size: clamp(12px, 1.4cqi, 18px); }
.bnr-t-weekend_flash .bnr-countdown { --cds: 1.15; }
@container bnr (max-width: 620px) { .bnr-mod.bnr-t-shopping_bags .sbh-art .md-badge, .bnr-mod.bnr-t-shopping_bags:not(.has-fg) .sbh-art .md-badge { width: clamp(72px, 22cqi, 110px); right: -4%; top: -12%; }
  .wf-b1 { height: 40%; top: auto; bottom: 6%; right: 6%; } .wf-b2 { display: none; } .wf-stripes { width: 100%; clip-path: none; opacity: .5; } }

/* ---------- modern: narrow, rails, compact hero ---------- */
@container bnr (max-width: 620px) {
  .bnr-mod .md-body { width: 100%; gap: 9px; }
  .bnr-mod.has-fg .md-body { width: 68%; }
  .bnr-mod .md-title { font-size: clamp(28px, 11cqi, 52px); }
  .bnr-mod .md-disc .bnr-d-num { font-size: clamp(36px, 15cqi, 70px); }
  .bnr-mod .md-badge { width: clamp(80px, 28cqi, 140px); }
  .bnr-mod:not(.has-fg) .md-art .md-badge { width: clamp(96px, 34cqi, 170px); left: auto; right: 0; top: auto; bottom: 6%; translate: 0 0; }
  .md-badge-text .bnr-d-num { font-size: clamp(24px, 10cqi, 48px); }
  .md-badge-text .bnr-d-pre, .md-badge-text .bnr-d-suf { font-size: clamp(10px, 3.2cqi, 16px); }
  .bnr-pl-hero.bnr-mod .md-body, .bnr-pl-popup.bnr-mod .md-body { width: 100%; }
  .bnr-pl-rail.bnr-mod .md-body { width: 100%; }
  .bnr-pl-rail.bnr-mod .md-title { font-size: clamp(22px, 15cqi, 40px); }
  .bnr-pl-rail.bnr-mod .md-disc .bnr-d-num { font-size: clamp(30px, 22cqi, 60px); }
  .bnr-pl-rail.bnr-mod .md-badge, .bnr-pl-rail.bnr-mod:not(.has-fg) .md-art .md-badge { width: 62cqi; right: 10%; }
  .bnr-pl-rail .rt-ribbon { width: 46cqi; } .bnr-pl-rail.bnr-t-ribbon_tag .md-body { padding-top: 34cqi; }
  .bnr-pl-rail .md-badge-text .bnr-d-num { font-size: 18cqi; }
  .bnr-pl-rail .md-dots { display: none; }
}
.bnr-hero-compact.bnr-mod .md-title { font-size: clamp(24px, 3.4cqi, 54px); }
.bnr-hero-compact.bnr-mod .md-disc .bnr-d-num { font-size: clamp(30px, 4.4cqi, 66px); }
.bnr-hero-compact.bnr-mod .md-art .md-badge { width: min(11cqi, 150px); }
.bnr-pl-hero.bnr-mod .md-body { width: max(50%, calc((100cqi - 1192px) / 2 + 600px)); }
.bnr-mod .bnr-strip .bnr-title { font-family: var(--bnr-heavy); font-weight: 400; letter-spacing: .02em; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) {
  .bnr-motion *, .bnr-motion *::before, .bnr-motion *::after { animation: none !important; }
  .bnr-cd-flip .bnr-cd-unit b.is-flip, .bnr-countdown.is-urgent .bnr-cd-unit { animation: none !important; }
}

/* v3 — narrow fixes: keep the corner countdown off the badge chip, keep the button row clear of the discount badge */
@container bnr (max-width: 620px) {
  .bnr-cd-at-corner { top: 10px; right: 10px; }
  .bnr:has(.bnr-cd-at-corner) .bnr-body { padding-top: max(64px, 18cqi); }
  .bnr-mod:not(.bnr-pl-rail):not(.bnr-pl-hero):not(.bnr-pl-popup):not(.has-fg) .bnr-actions { max-width: 64%; }
}
