/* ═══ Christmas: the campaign look in Christmas colours ═══════════════════════

   Loaded after pf-campaign.css, and only when BC's Campaign Theme is Christmas (and the
   campaign is live): _Layout writes body.pf-theme-christmas beside .pf-campaign, and
   every rule here is scoped to it, so Pink Friday is untouched.

   The values are the Christmas brief's tokens (1 Dec 2026). Pink Friday's black splits
   two ways: Evergreen for the countdown, footer band and deal badges, MYDAWA Pink Deep
   for the strip, the Offers header and the toast. Gold is trim, never a large block,
   and never carries white or pink text (2.8:1). Add to cart stays green (#3E7A28) and
   the cart count bubble and logo pink do not change.
   ═══════════════════════════════════════════════════════════════════════════ */

.pf-theme-christmas {
    --xm-pink: #ED1D7F;        /* logo pink; white text on it 19px bold and up only */
    --xm-pink-deep: #D4106F;   /* white text at any size (5.1:1) */
    --xm-evergreen: #0B7A3E;   /* white or cream text at any size */
    --xm-holly: #2BA05F;       /* decoration only */
    --xm-gold: #F0B83A;        /* fills and trim, Ink text only */
    --xm-cream: #FFF1E6;
    --xm-blush: #FADCE7;
    --xm-deep-rose: #A3164F;   /* text on Blush only */
    --xm-ink: #241419;

    /* pf-campaign.css paints from these; the rules below redirect the rest. */
    --pf-pink: var(--xm-pink);
    --pf-black: var(--xm-pink-deep);
    --pf-yellow: var(--xm-gold);
    --pf-pink-text: var(--xm-cream);

    /* the delivery cut-off note's gift box */
    --pf-cutoff-box: var(--xm-pink-deep);
    --pf-cutoff-lid: var(--xm-pink);
    --pf-cutoff-ribbon: var(--xm-gold);
}

/* ── Top strip: Pink Deep, Cream hook, gold rule along the bottom ─────────── */
.pf-theme-christmas .header-promo {
    background: var(--xm-pink-deep) !important;
    box-shadow: inset 0 -3px 0 var(--xm-gold);
}
.pf-theme-christmas .pf-strip-em { color: var(--xm-cream); font-weight: 800; }
.pf-theme-christmas .pf-strip-link {
    color: var(--xm-cream);
    text-decoration-color: var(--xm-gold);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}
.pf-theme-christmas .pf-strip-link:hover { color: #fff; }

/* ── Main menu "Deals": Pink Deep, with a small gold sparkle before it ────── */
.pf-theme-christmas .header-navigation .nav-deals > a { color: var(--xm-pink-deep); }
.pf-theme-christmas .header-navigation .nav-deals > a::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 5px;
    vertical-align: -1px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 1.5l2.6 7.9 7.9 2.6-7.9 2.6L12 22.5l-2.6-7.9L1.5 12l7.9-2.6z" fill="%23F0B83A"/></svg>') center / contain no-repeat;
}

/* ── Delivery cut-off note (also used by Pink Friday's look, defined there) ─ */
.pf-theme-christmas .pf-cutoff { background: var(--xm-cream); color: var(--xm-ink); }

/* ── Home deals tile: MYDAWA Pink deepening to Pink Deep, 2px gold border ─── */
.pf-theme-christmas .dl-tile,
.pf-theme-christmas .dl-tile__chips {
    background: linear-gradient(135deg, var(--xm-pink) 0%, var(--xm-pink-deep) 70%);
    border: 2px solid var(--xm-gold);
}
.pf-theme-christmas .dl-tile:not(.dl-tile--alone) { border-bottom: 0; }
.pf-theme-christmas .dl-tile__chips { border-top: 0; background: var(--xm-pink-deep); }
@media (min-width: 992px) {
    .pf-theme-christmas .dl-tile:not(.dl-tile--alone) { border-bottom: 2px solid var(--xm-gold); border-right: 0; }
    .pf-theme-christmas .dl-tile__chips { border-top: 2px solid var(--xm-gold); border-left: 0; }
}
.pf-theme-christmas .dl-tile__title { font-size: 20px; }   /* white on Pink: 19px bold and up */
.pf-theme-christmas .dl-tile__pill { color: var(--xm-pink-deep); }
.pf-theme-christmas .dl-tile__chip { color: var(--xm-ink) !important; }
.pf-theme-christmas .dl-tile__chip--dark { background: var(--xm-evergreen); color: #fff !important; }

/* ── Countdown band: Evergreen, gold inner frame; Pink / Gold / Cream tiles ── */
.pf-theme-christmas .pf-countdown {
    background: var(--xm-evergreen);
    box-shadow: inset 0 0 0 3px var(--xm-gold);
}
.pf-theme-christmas .pf-countdown-label,
.pf-theme-christmas .pf-countdown-copy { color: var(--xm-cream); }
.pf-theme-christmas .pf-tile { border-color: var(--xm-cream); }
.pf-theme-christmas .pf-tile.pk { background: var(--xm-pink); color: #fff; }
.pf-theme-christmas .pf-tile.ye { background: var(--xm-gold); color: var(--xm-ink); }
.pf-theme-christmas .pf-tile.wh { background: var(--xm-cream); color: var(--xm-evergreen); }

/* XM-06: at Christmas only the fairy lights and the marquee loop, so Pink Friday's
   sticker bounce and countdown tile hop stay still */
.pf-theme-christmas .pf-sticker, .pf-theme-christmas .pf-count-row .pf-tile { animation: none !important; }
/* and the home page's own small loops (_home-motion.css), so after 30 seconds nothing else moves */
.pf-theme-christmas .sl-cat-chip .sl-cat-emoji, .pf-theme-christmas .dawamain .hm-wave,
.pf-theme-christmas .dawamain .hm-heart, .pf-theme-christmas .dawamain .hm-marker { animation: none !important; }

/* ── "Offers For You": Pink Deep band, 4px gold rule, Gold "Deals Za Krisi" ── */
.pf-theme-christmas .offer-section .d-flex.justify-content-between.align-items-center {
    background: var(--xm-pink-deep);
    box-shadow: inset 0 -4px 0 var(--xm-gold);
}
.pf-theme-christmas .offer-section .d-flex.justify-content-between.align-items-center .section-heading {
    -webkit-text-stroke: 0;
}
.pf-theme-christmas .offer-section .d-flex.justify-content-between.align-items-center .sec-viewall {
    color: var(--xm-cream) !important;
    margin-right: 30px;   /* room for the gold bauble at the band's right end (XM-25) */
}
.pf-theme-christmas .offer-section .pf-sticker,
.pf-theme-christmas .flash-sale-section .pf-sticker {
    background: var(--xm-gold);
    color: var(--xm-ink);
    border-color: var(--xm-gold);
}

/* ── Card badges: Evergreen pill with a gold sparkle; Blush for all-month ─── */
.pf-theme-christmas .pf-badge--pf,
.pf-theme-christmas .pf-badge--early {
    background: var(--xm-evergreen);
    color: #fff;
}
.pf-theme-christmas .pf-badge--pf .pf-badge-glyph { color: var(--xm-gold); }
.pf-theme-christmas .pf-badge--month {
    background: var(--xm-blush) !important;
    color: var(--xm-deep-rose) !important;
    border-color: var(--xm-blush) !important;
}

/* ── Discount sticker: a Pink Deep gift tag with a gold eyelet, tilted 8° ──
   Same place and size as Pink Friday's starburst; the spinning star layers that
   pf-campaign.css adds on hover are switched off, the tag sways instead. */
.pf-theme-christmas .sale-badge--pf,
.pf-theme-christmas .product-card .sale-badge--pf {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20 17H92a6 6 0 0 1 6 6v54a6 6 0 0 1-6 6H20L2 50z" fill="%23B30C5C" transform="translate(1.5,2.5)"/><path d="M20 17H92a6 6 0 0 1 6 6v54a6 6 0 0 1-6 6H20L2 50z" fill="%23D4106F"/><circle cx="17" cy="50" r="5" fill="%23FFF1E6" stroke="%23F0B83A" stroke-width="3"/></svg>') center / contain no-repeat !important;
    color: var(--xm-cream) !important;
    /* the figure sits in the tag's body, right of the eyelet */
    box-sizing: border-box !important;   /* the box stays 64px (46px on phones) */
    padding: 0 0 0 .9em !important;     /* em, not %: % is of the card's width */
    font-size: 14px !important;
    letter-spacing: -0.03em;
    transform: rotate(8deg);
}
.pf-theme-christmas .product-card .sale-badge--pf::before,
.pf-theme-christmas .product-card .sale-badge--pf::after { content: none !important; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .pf-theme-christmas .product-card .sale-badge--pf { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); transform-origin: 20% 50%; }
    .pf-theme-christmas .product-card:hover .sale-badge--pf { transform: rotate(-6deg); }
}

/* ── Marquee: solid Pink Deep, Cream words, gold stars and 2px gold rules ─── */
.pf-theme-christmas .deal-banner--marquee {
    background: var(--xm-pink-deep) !important;
    color: var(--xm-cream) !important;
    box-shadow: inset 0 2px 0 var(--xm-gold), inset 0 -2px 0 var(--xm-gold);
}
.pf-theme-christmas .deal-banner--marquee .dbm-item { color: var(--xm-cream); }
.pf-theme-christmas .deal-banner--marquee .dbm-star { fill: var(--xm-gold); }

/* ── Footer band: Evergreen with a gold rule; Cream tag ────────────────────── */
.pf-theme-christmas .pf-footer-band {
    background: var(--xm-evergreen);
    box-shadow: inset 0 3px 0 var(--xm-gold);
}
.pf-theme-christmas .pf-strip-tag { color: var(--xm-cream); }

/* ── Main footer Cream; bottom bar Pink Deep with a gold rule ─────────────── */
.pf-theme-christmas .footer-main,
.pf-theme-christmas .footer-main .sub-footer { background: var(--xm-cream); }
.pf-theme-christmas .footer-main .bottom-footer {
    background: var(--xm-pink-deep);
    box-shadow: inset 0 3px 0 var(--xm-gold);
}

/* ── Sign-in toast: Pink Deep, 2px gold border ─────────────────────────────── */
.pf-theme-christmas .pf-toast {
    background: var(--xm-pink-deep);
    border: 2px solid var(--xm-gold);
}
.pf-theme-christmas .pf-toast b { color: var(--xm-cream); }

/* ── Phone: menu hero solid Pink Deep; Deals dot Gold with a white edge ───── */
.pf-theme-christmas .toc-hero { background: var(--xm-pink-deep); }
.pf-theme-christmas .bottom-nav.bn .bn-dot { background: var(--xm-gold); }

/* ── Free delivery bar ─────────────────────────────────────────────────────── */
.pf-theme-christmas .pf-fd-track { background: rgba(212, 16, 111, .14); }
.pf-theme-christmas .pf-fd-fill { background: linear-gradient(90deg, var(--xm-pink-deep), var(--xm-gold)); }

/* ── Flash sale page hero: Evergreen in place of black ─────────────────────── */
.pf-theme-christmas .flash-hero { background: var(--xm-evergreen) !important; }
.pf-theme-christmas .flash-hero-title { -webkit-text-stroke: 0; }
.pf-theme-christmas .flash-hero-badge { color: var(--xm-ink) !important; }

/* ── Deals page: Evergreen hero with a gold frame; Pink / Gold / Cream boxes;
   active tab Evergreen; deal lines Evergreen (main) and Blush (all-month) ─── */
.pf-theme-christmas .dl-hero {
    background: var(--xm-evergreen);
    box-shadow: inset 0 0 0 3px var(--xm-gold);
}
.pf-theme-christmas .dl-count__box { background: var(--xm-cream); color: var(--xm-evergreen); }
.pf-theme-christmas .dl-count__box--pink { background: var(--xm-pink); color: #fff; }
.pf-theme-christmas .dl-count__box--amber { background: var(--xm-gold); color: var(--xm-ink); }
.pf-theme-christmas .dl-tabs .dl-chip.is-on { background: var(--xm-evergreen); border-color: var(--xm-evergreen); color: #fff; }
.pf-theme-christmas .dl-dealline { background: var(--xm-blush); color: var(--xm-deep-rose); }
.pf-theme-christmas .dl-dealline--hot { background: var(--xm-evergreen); color: #fff; }

/* ══ New components (Christmas brief: "New components") ═══════════════════════ */

/* ── The 12 Days of Christmas wall (XM-23, 3 Dec): one row of 12 on desktop (4:5),
      4 × 3 squares on a phone; one or two word theme names ── */
.pf-theme-christmas .xm-wall { margin: 22px auto 10px; }
.xm-wall__head { margin: 0 0 14px; }
.xm-wall__title { display: flex; align-items: center; gap: 8px; margin: 0; font: 900 28px/1.15 Figtree, Inter, system-ui, sans-serif; color: var(--xm-ink, #241419); }
.xm-star { flex: 0 0 auto; fill: var(--xm-gold, #F0B83A); }
.xm-wall__line { margin: 4px 0 0; font: 500 14px/1.45 Figtree, Inter, sans-serif; color: #5B4A50; }
.xm-wall__line b { color: var(--xm-ink, #241419); }
.xm-wall__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; }
.xm-wall__cell { min-width: 0; position: relative; }

.xm-tile { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; isolation: isolate; color: inherit; text-decoration: none; }
.xm-tile--open { background: var(--xm-cream, #FFF1E6); box-shadow: 0 1px 4px rgba(36, 20, 25, .1); }
.xm-tile--open:hover, .xm-tile--open:focus-visible { box-shadow: 0 4px 14px rgba(36, 20, 25, .18); }
.xm-tile--open:focus-visible { outline: 3px solid var(--xm-evergreen, #0B7A3E); outline-offset: 3px; }
.xm-tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xm-tile__img--none { display: block; background: linear-gradient(160deg, var(--xm-blush, #FADCE7), var(--xm-cream, #FFF1E6)); }

/* the Day tag: Cream with a gold outline (a gift tag) */
.xm-daytag { position: absolute; top: 5px; left: 5px; z-index: 3; padding: 1px 5px; background: var(--xm-cream, #FFF1E6); color: var(--xm-pink-deep, #D4106F); border: 1.5px solid var(--xm-gold, #F0B83A); border-radius: 5px; font: 800 10px/1.3 Figtree, Inter, sans-serif; white-space: nowrap; }

/* open: the theme photo, a Pink Deep footer with a 3px gold line on top */
.xm-tile__foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; gap: 0; padding: 4px 6px 5px; background: var(--xm-pink-deep, #D4106F); border-top: 3px solid var(--xm-gold, #F0B83A); color: #fff; text-align: center; }
.xm-tile__foot b { font: 800 12px/1.2 Figtree, Inter, sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xm-tile__foot small { font: 600 11px/1.2 Figtree, Inter, sans-serif; color: var(--xm-cream, #FFF1E6); }

/* Today's pick: a 3px gold ring inside, a 3px MYDAWA Pink ring outside, a soft shadow */
.xm-tile.is-today { box-shadow: 0 0 0 3px var(--xm-pink, #ED1D7F), 0 8px 18px rgba(212, 16, 111, .28); }
.xm-tile.is-today::after { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; box-shadow: inset 0 0 0 3px var(--xm-gold, #F0B83A); pointer-events: none; }

/* wrapped (the tease, and each day still to come): Pink and Pink Deep in turn, a gold ribbon cross and bow */
.xm-tile--paper1 { background-color: var(--xm-pink, #ED1D7F); }
.xm-tile--paper0 { background-color: var(--xm-pink-deep, #D4106F); }
.xm-tile--wrapped { background-image: radial-gradient(rgba(255, 241, 230, .14) 1.5px, transparent 1.6px); background-size: 14px 14px; }
.xm-wrap { position: absolute; inset: 0; width: 100%; height: 100%; }
.xm-bowsvg { position: absolute; left: 50%; top: 45%; width: 52%; transform: translate(-50%, -64%); }
.xm-opens { position: absolute; left: 4px; right: 4px; bottom: 5px; z-index: 3; padding: 2px 0; background: rgba(255, 241, 230, .96); color: var(--xm-deep-rose, #A3164F); border-radius: 999px; font: 800 10px/1.3 Figtree, Inter, sans-serif; text-align: center; white-space: nowrap; overflow: hidden; }

/* Peek at a day still to come (motion kit 15, 12 Days only): hover, keyboard focus or a
   first tap lifts the wrapping to show the theme, and a Cream bubble offers Shop now.
   The tile itself does not clip, so the bubble can sit above it; the box inside does. */
.xm-tile--peek { overflow: visible; isolation: auto; outline-offset: 3px; }
.xm-peekt__box { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: #F3E6EA; }
.xm-peekt__wrap { position: absolute; inset: 0; z-index: 2; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.xm-peekt__date { transition: opacity .15s; }
.xm-peekt__tip { position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 20; width: 200px; margin-left: -100px; padding: 10px 12px; border-radius: 12px; background: var(--xm-cream, #FFF1E6); border: 2px solid var(--xm-gold, #F0B83A); color: var(--xm-ink, #241419); font: 500 13px/1.35 Figtree, Inter, sans-serif; text-align: left; box-shadow: 0 8px 20px rgba(36, 20, 25, .18); opacity: 0; transform: translateY(6px) scale(.96); transition: opacity .2s, transform .25s; pointer-events: none; }
.xm-peekt__tip b { font-family: "Figtree-ExtraBold", Figtree, sans-serif; font-weight: 800; }
.xm-peekt__tip::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -7px; border: 7px solid transparent; border-top-color: var(--xm-gold, #F0B83A); }
.xm-peekt__cta { display: inline-block; margin-top: 6px; padding: 4px 12px; border-radius: 999px; background: var(--xm-pink-deep, #D4106F); color: #fff; font: 800 13px/1.3 "Figtree-ExtraBold", Figtree, sans-serif; }
.xm-wall__cell:has(.xm-peekt:hover, .xm-peekt:focus-visible, .xm-peekt.is-peek) { z-index: 20; }
.xm-peekt:hover .xm-peekt__wrap, .xm-peekt:focus-visible .xm-peekt__wrap, .xm-peekt.is-peek .xm-peekt__wrap { transform: translateY(-72%); }
.xm-peekt:hover .xm-peekt__date, .xm-peekt:focus-visible .xm-peekt__date, .xm-peekt.is-peek .xm-peekt__date { opacity: 0; }
.xm-peekt:hover .xm-peekt__tip, .xm-peekt:focus-visible .xm-peekt__tip, .xm-peekt.is-peek .xm-peekt__tip { opacity: 1; transform: none; pointer-events: auto; }
/* the bubble stays on screen at the ends of the row */
.xm-wall__cell:first-child .xm-peekt__tip { left: 0; margin-left: 0; }
.xm-wall__cell:last-child .xm-peekt__tip { left: auto; right: 0; margin-left: 0; }
.xm-wall__cell:first-child .xm-peekt__tip::after { left: 30px; }
.xm-wall__cell:last-child .xm-peekt__tip::after { left: auto; right: 23px; }
@media (prefers-reduced-motion: reduce) {
    .xm-peekt__wrap, .xm-peekt__tip, .xm-peekt__date { transition: none; }
    .xm-peekt:hover .xm-peekt__wrap, .xm-peekt:focus-visible .xm-peekt__wrap, .xm-peekt.is-peek .xm-peekt__wrap { transform: none; opacity: 0; }
}

/* the gift tag tease line, above the wrapped wall */
.xm-gifttag { position: relative; display: inline-flex; flex-direction: column; gap: 2px; margin: 0 0 14px; padding: 10px 20px 10px 36px; background: var(--xm-cream, #FFF1E6); border: 2.5px solid var(--xm-pink, #ED1D7F); border-radius: 18px 10px 10px 18px; }
.xm-gifttag::before { content: ""; position: absolute; left: 12px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--xm-cream, #FFF1E6); box-shadow: 0 0 0 3px var(--xm-gold, #F0B83A); }
.xm-gifttag::after { content: ""; position: absolute; inset: 4px; border: 1.5px dotted var(--xm-gold, #F0B83A); border-radius: 14px 7px 7px 14px; pointer-events: none; }
.xm-gifttag__small { font: 800 11px/1.2 Figtree, Inter, sans-serif; letter-spacing: .08em; color: var(--xm-pink-deep, #D4106F); }
.xm-gifttag__main { font: 900 19px/1.25 Figtree, Inter, sans-serif; color: var(--xm-ink, #241419); }

@media (max-width: 767.98px) {
    .xm-wall__title { font-size: 22px; }
    /* 4 × 3 squares, 8px apart: about 84px each, about 270px for the wall */
    .xm-wall__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .xm-tile { aspect-ratio: 1; }
    .xm-tile__foot { padding: 3px 4px 4px; border-top-width: 2px; }
    .xm-tile__foot b { font-size: 10.5px; }
    .xm-tile__foot small { display: none; }
    .xm-opens { font-size: 9.5px; bottom: 4px; left: 3px; right: 3px; }
    .xm-gifttag__main { font-size: 16px; }
    /* the bubble stays on screen in the first and last columns */
    .xm-wall__cell:nth-child(n) .xm-peekt__tip { left: 50%; right: auto; margin-left: -100px; }
    .xm-wall__cell:nth-child(n) .xm-peekt__tip::after { left: 50%; right: auto; }
    .xm-wall__cell:nth-child(4n+1) .xm-peekt__tip { left: 0; margin-left: 0; }
    .xm-wall__cell:nth-child(4n+1) .xm-peekt__tip::after { left: 30px; }
    .xm-wall__cell:nth-child(4n) .xm-peekt__tip { left: auto; right: 0; margin-left: 0; }
    .xm-wall__cell:nth-child(4n) .xm-peekt__tip::after { left: auto; right: 23px; }
}

/* ── The gold day counter: "DAY 5 of 12", Ink on Gold (9.8:1) ─────────────── */
.xm-day { position: relative; flex: 0 0 auto; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; color: var(--xm-ink, #241419); line-height: 1;
    background: radial-gradient(circle at 35% 28%, #FFE38A 0, var(--xm-gold, #F0B83A) 55%, #D9A02C 100%);
    box-shadow: 0 0 0 4px var(--xm-cream, #FFF1E6), 0 0 0 5.5px var(--xm-gold, #F0B83A); margin: 6px; }
.xm-day__k { font: 800 12px/1 Figtree, Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.xm-day__of { font: 800 12px/1 Figtree, Inter, sans-serif; }
.xm-day__flip { position: relative; display: block; height: 44px; perspective: 200px; }
.xm-day__n { display: block; font: 900 44px/44px Figtree, Inter, sans-serif; }
.xm-day__flip .xm-old { position: absolute; left: 0; right: 0; top: 0; text-align: center; }
.xm-shine { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%); transform: translateX(-120%); pointer-events: none; }
.xm-day--deals { width: 54px; height: 54px; }
.xm-day--deals .xm-day__k, .xm-day--deals .xm-day__of { font-size: 9px; }
.xm-day--deals .xm-day__flip { height: 26px; }
.xm-day--deals .xm-day__n { font-size: 26px; line-height: 26px; }
@media (max-width: 575px) {
    .xm-day--band { width: 64px; height: 64px; }
    .xm-day--band .xm-day__k, .xm-day--band .xm-day__of { font-size: 10px; }
    .xm-day--band .xm-day__flip { height: 32px; }
    .xm-day--band .xm-day__n { font-size: 32px; line-height: 32px; }
    /* the counter beside the label and tiles, not on a line of its own */
    .pf-theme-christmas .pf-countdown:has(.xm-day) { flex-wrap: nowrap; }
    .pf-theme-christmas .pf-countdown:has(.xm-day) .pf-count-row { width: auto; flex: 1 1 auto; min-width: 0; }
}

/* XM-34 (Al, 3 Dec retest): a slimmer countdown, everything in one row. Desktop about 76px
   (day badge 56, boxes 52 by 50), phone about 60px (badge 44, boxes 44 by 42). The label is
   two lines ("12 Days deals" / "end in"; the newline comes from the page and pf-campaign.js). */
.pf-theme-christmas .pf-countdown { flex-wrap: nowrap; gap: 12px; padding: 4px 18px; }
.pf-theme-christmas .pf-count-row { flex-wrap: nowrap; gap: 10px; width: auto; margin: 0; }
.pf-theme-christmas .pf-countdown-label { width: auto; margin-right: 4px; text-align: left; white-space: pre-line; font-size: 15px; line-height: 1.2; }
.pf-theme-christmas .pf-count-row .pf-tile { width: 52px; height: 50px; padding: 0; justify-content: center; border-radius: 10px; line-height: 1; }
.pf-theme-christmas .pf-count-row .pf-digit { height: 26px; min-width: 0; font-size: 24px; line-height: 26px; }
.pf-theme-christmas .pf-count-row .pf-tile small { font-size: 10px; line-height: 1.1; }
.pf-theme-christmas .xm-day--band { width: 56px; height: 56px; margin: 6px; }
.pf-theme-christmas .xm-day--band .xm-day__k, .pf-theme-christmas .xm-day--band .xm-day__of { font-size: 9px; }
.pf-theme-christmas .xm-day--band .xm-day__flip { height: 26px; }
.pf-theme-christmas .xm-day--band .xm-day__n { font-size: 26px; line-height: 26px; }
@media (max-width: 575px) {
    .pf-theme-christmas .pf-countdown { gap: 8px; padding: 4px 10px; justify-content: flex-start; }
    .pf-theme-christmas .pf-count-row { flex: 1 1 auto; min-width: 0; gap: 6px; justify-content: flex-end; }
    .pf-theme-christmas .pf-countdown-label { flex: 1 1 auto; min-width: 0; margin-right: 2px; font-size: 13px; line-height: 1.15; }
    .pf-theme-christmas .pf-count-row .pf-tile { flex: 0 0 auto; width: 44px; height: 42px; border-radius: 9px; }
    .pf-theme-christmas .pf-count-row .pf-digit { height: 21px; font-size: 19px; line-height: 21px; }
    .pf-theme-christmas .pf-count-row .pf-tile small { font-size: 9px; }
    .pf-theme-christmas .xm-day--band { width: 44px; height: 44px; margin: 4px; box-shadow: 0 0 0 3px var(--xm-cream, #FFF1E6), 0 0 0 4px var(--xm-gold, #F0B83A); }
    .pf-theme-christmas .xm-day--band .xm-day__k, .pf-theme-christmas .xm-day--band .xm-day__of { font-size: 8px; }
    .pf-theme-christmas .xm-day--band .xm-day__flip { height: 20px; }
    .pf-theme-christmas .xm-day--band .xm-day__n { font-size: 20px; line-height: 20px; }
    .pf-theme-christmas .pf-countdown .xm-sprig { display: none; }
}

/* ── Countdown band: a sprig in the corner, gold sparkles ───────────────────── */
.pf-theme-christmas .pf-countdown { position: relative; overflow: hidden; }
.xm-sprig { position: absolute; right: 10px; bottom: 4px; width: 64px; height: 40px; pointer-events: none; }
@media (max-width: 575px) { .xm-sprig { width: 44px; height: 28px; right: 6px; bottom: 2px; } }
.xm-sparkles { position: absolute; inset: 0; pointer-events: none; }
.xm-sparkles .xm-dr { position: absolute; width: 10px; height: 10px; background: var(--xm-gold, #F0B83A); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); opacity: .9; }
.xm-sparkles .xm-dr:nth-child(1) { left: 6%; top: 18%; }
.xm-sparkles .xm-dr:nth-child(2) { left: 26%; bottom: 12%; width: 7px; height: 7px; }
.xm-sparkles .xm-dr:nth-child(3) { right: 24%; top: 14%; width: 8px; height: 8px; }
.xm-sparkles .xm-dr:nth-child(4) { right: 9%; bottom: 26%; }

/* ── Fairy lights: deals tile, deals hero, footer band ────────────────────── */
.xm-lights { display: block; pointer-events: none; }
.pf-theme-christmas .pf-footer-band { position: relative; padding-top: 22px; }
.pf-theme-christmas .pf-footer-band .xm-lights { position: absolute; left: 0; top: 4px; width: 100%; height: 14px; }
.pf-theme-christmas .dl-hero { position: relative; overflow: hidden; padding-top: 24px; }
.pf-theme-christmas .dl-hero .xm-lights { position: absolute; left: 0; top: 3px; width: 100%; height: 15px; }
.pf-theme-christmas .dl-hero .xm-day { margin: 6px 10px 6px 6px; }

/* ── Deals tile: lights along the top, two baubles, the gift boxes ───────── */
.pf-theme-christmas .dl-tile { position: relative; padding-top: 22px; }
.xm-tiledeco { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.xm-tiledeco .xm-lights { position: absolute; left: 0; top: 2px; width: 100%; height: 14px; }
.xm-baubles { position: absolute; top: 0; left: 46%; display: flex; gap: 8px; align-items: flex-start; }
.xm-swing { display: block; transform-origin: 50% 0; }
.pf-theme-christmas .dl-tile__text { order: 1; }
.xm-gift { order: 2; flex: 0 0 auto; margin-left: auto; align-self: flex-end; margin-bottom: -6px; line-height: 0; }
.xm-gift svg { width: 78px; height: 58px; overflow: visible; }
.pf-theme-christmas .dl-tile__pill { order: 3; }
.xm-lid, .xm-burst { transform-box: fill-box; }
.xm-lid { transform-origin: 0% 100%; }
.xm-burst { opacity: 0; transform-origin: 50% 50%; }
/* XM-33 (Al, 3 Dec retest): on a phone the card is about 150px. Title and pill share the top
   line (12px apart), the count line under it, then three equal chip boxes. No gift boxes;
   22px at the top for the lights, with one small gold bauble hanging over the pill. */
@media (max-width: 767.98px) {
    .pf-theme-christmas .dl-tile { padding-top: 22px; }
    .pf-theme-christmas .xm-gift { display: none; }
    .pf-theme-christmas .dl-tile__title { font-size: 19px; }
    .pf-theme-christmas .dl-tile__pill { flex: 0 0 auto; padding: 5px 11px; font-family: "Figtree-ExtraBold", "Figtree-Bold", sans-serif; font-size: 14px; line-height: 1.2; }
    .pf-theme-christmas .xm-baubles { left: auto; right: 22px; }
    .pf-theme-christmas .xm-baubles .xm-swing:nth-child(1) { width: 12px; height: 22px; }
    .pf-theme-christmas .xm-baubles .xm-swing:nth-child(2) { display: none; }
}

/* ── Today's pick, pinned above the deals grid ───────────────────────────── */
.xm-pickcard { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; margin: 0 0 18px; padding: 12px; background: var(--xm-cream, #FFF1E6); border: 2px solid var(--xm-pink, #ED1D7F); border-radius: 16px; }
.xm-pickcard[hidden] { display: none; }
.xm-pickcard__img { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: #fff; }
.xm-pickcard__img img { width: 100%; height: 100%; object-fit: contain; }
.xm-pickcard .xm-daytag { top: 6px; left: 6px; font-size: 11px; }
.xm-pickcard__kicker { margin: 0 0 2px; font: 800 12px/1.3 Figtree, Inter, sans-serif; letter-spacing: .04em; text-transform: uppercase; color: var(--xm-pink-deep, #D4106F); }
.xm-pickcard__name { margin: 0 0 4px; font: 800 17px/1.3 Figtree, Inter, sans-serif; }
.xm-pickcard__name a { color: var(--xm-ink, #241419); text-decoration: none; }
.xm-pickcard__price { margin: 0 0 6px; display: flex; gap: 8px; align-items: baseline; }
.xm-pickcard__price s { color: #6b7280; font-size: 13px; }
.xm-pickcard__price b { color: var(--xm-ink, #241419); font: 800 18px Figtree, Inter, sans-serif; }
.xm-pickcard__ends { display: inline-block; margin: 0 0 10px; padding: 2px 8px; border-radius: 6px; background: var(--xm-evergreen, #0B7A3E); color: #fff; font: 600 11px/1.5 Figtree, Inter, sans-serif; }
.xm-pickcard .xm-pickcard__add { display: inline-flex; align-items: center; justify-content: center; min-width: 150px; padding: 9px 20px; border: 0; border-radius: 999px; background: #3E7A28; color: #fff; font: 700 14px Figtree, Inter, sans-serif; }
.xm-pickcard__more { color: var(--xm-pink-deep, #D4106F); font-weight: 700; }
@media (max-width: 575px) {
    .xm-pickcard { grid-template-columns: 108px minmax(0, 1fr); gap: 12px; padding: 10px; }
    .xm-pickcard__name { font-size: 15px; }
    .xm-pickcard .xm-pickcard__add { min-width: 0; width: 100%; }
}

/* ── Fixes from the visual check (2 Dec) ─────────────────────────────────────
   The site's weights are separate font files ("Figtree-Bold"), and its own h2 rules
   beat a plain font shorthand, so the pick card names them outright. */
.dl-page .xm-pickcard__name, .dl-page .xm-pickcard__price b { font-family: "Figtree-Bold", Figtree, sans-serif; font-weight: 700; }
.dl-page .xm-pickcard__kicker { font-family: "Figtree-ExtraBold", Figtree, sans-serif; }
.xm-wall__title { font-family: "Figtree-ExtraBold", Figtree, sans-serif; }
.xm-daytag, .xm-tile__foot b, .xm-gifttag__main { font-family: "Figtree-ExtraBold", Figtree, sans-serif; }
.dl-page .xm-pickcard .xm-pickcard__add { width: auto; font-family: "Figtree-Bold", sans-serif; }

/* Gold sparkles are never behind text: on the deals hero they stay by the day counter
   (desktop) or along the right edge (phone); on the countdown band, in the corners. */
.dl-hero .xm-sparkles .xm-dr:nth-child(1) { left: 1.5%; top: 26%; right: auto; bottom: auto; }
.dl-hero .xm-sparkles .xm-dr:nth-child(2) { left: 8%; top: auto; bottom: 12%; right: auto; }
.dl-hero .xm-sparkles .xm-dr:nth-child(3) { left: 9%; top: 30%; right: auto; bottom: auto; }
.dl-hero .xm-sparkles .xm-dr:nth-child(4) { left: 3%; top: auto; bottom: 18%; right: auto; }
@media (max-width: 767.98px) {
    .dl-hero .xm-sparkles .xm-dr:nth-child(1) { left: auto; right: 6%; top: 30%; }
    .dl-hero .xm-sparkles .xm-dr:nth-child(2) { left: auto; right: 14%; bottom: auto; top: 44%; }
    .dl-hero .xm-sparkles .xm-dr:nth-child(3) { left: 30%; top: 24%; }
    .dl-hero .xm-sparkles .xm-dr:nth-child(4) { display: none; }
}
@media (max-width: 575px) {
    .pf-countdown .xm-sparkles .xm-dr:nth-child(1) { left: 2%; top: 8%; }
    .pf-countdown .xm-sparkles .xm-dr:nth-child(2) { left: 3%; bottom: 6%; }
    .pf-countdown .xm-sparkles .xm-dr:nth-child(3) { right: 3%; top: 8%; }
    /* the pick card's longer Day tag wraps rather than run off the photo */
    .xm-pickcard .xm-daytag { right: 6px; white-space: normal; line-height: 1.15; }
    .dl-page .xm-pickcard .xm-pickcard__add { width: 100%; }
}

/* ── Santa's sleigh on the free delivery meter (XM-26, motion kit 13) ────────────
   Replaces Pink Friday's truck, pop, shine and tick. free-delivery.js sets --p (0 to 1)
   with the bar, .is-moving for 700 ms when it changes, .is-full when the order first
   reaches free delivery (lift-off, then the gold burst), and .xm-meter--still at
   checkout (parked, nothing moves). The 30px above the bar never changes. */
.xm-fd.is-celebrating, .xm-fd.is-celebrating .free-delivery__icon,
.xm-fd.is-celebrating .free-delivery__text::before, .xm-fd .free-delivery__fill { animation: none !important; }
.xm-fd .free-delivery__icon { color: var(--xm-pink-deep, #D4106F); }
.xm-meter { position: relative; padding-top: 30px; margin-top: 4px; }
.xm-meter__lights { position: absolute; left: 0; right: 0; top: 2px; width: 100%; height: 20px; pointer-events: none; }
.xm-meter .free-delivery__track { position: relative; height: 8px; margin-top: 0; background: var(--xm-blush, #FADCE7); }
.xm-meter .free-delivery__fill, .xm-fd.is-close .free-delivery__fill, .xm-fd.is-free .free-delivery__fill { background: linear-gradient(90deg, #D4106F, #ED1D7F); }
.xm-sleigh-ride { position: absolute; left: -6px; right: 42px; bottom: 7px; height: 28px; transform: translateX(calc(var(--p, 0) * 100%)); transition: transform .7s cubic-bezier(.3, 0, .2, 1); pointer-events: none; }
.xm-sleigh { display: block; transform-origin: 50% 100%; }
.xm-meter.is-moving .xm-sleigh { animation: xm-bob .35s ease-in-out 2 alternate; }
.xm-meter.is-full .xm-sleigh { animation: xm-liftoff .9s .7s ease-in both; }
.xm-meter.is-full .xm-meter__lights .xm-bulb { animation: xm-bulb 1.2s ease-in-out 2 alternate; }
.xm-bst { position: absolute; right: -8px; top: -14px; width: 48px; height: 48px; opacity: 0; pointer-events: none; }
.xm-meter.is-full .xm-bst { animation: xm-bst .6s 1.5s ease-out both; }
@keyframes xm-bob { to { transform: translateY(-2px) rotate(-3deg) } }
@keyframes xm-liftoff { 0% { transform: none; opacity: 1 } 100% { transform: translate(18px, -30px) rotate(-14deg); opacity: 0 } }
@keyframes xm-bst { 0% { opacity: 0; transform: scale(.2) } 40% { opacity: 1 } 100% { opacity: 0; transform: scale(1.5) rotate(25deg) } }
@keyframes xm-bulb { from { opacity: .55 } to { opacity: 1 } }
.xm-meter--still .free-delivery__fill, .xm-meter--still .xm-sleigh-ride { transition: none; }
.xm-meter--still .xm-sleigh, .xm-meter--still .xm-bulb, .xm-meter--still .xm-bst { animation: none !important; }
.xm-meter--still.is-full .xm-sleigh { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .xm-meter .free-delivery__fill, .xm-sleigh-ride { transition: none; }
    .xm-sleigh, .xm-meter .xm-bulb, .xm-bst { animation: none !important; }
}
/* phone grid (_freeDelivery.css): the meter takes the bar's place beside "Add products" */
@media (max-width: 575.98px) {
    .xm-fd .xm-meter { grid-column: 1 / 3; grid-row: 2; margin-top: 0; }
    .xm-fd .free-delivery__cta { align-self: end; }
}

/* ── More motion, asked for on 3 Dec (static parts; the moves are in xm-motion.css) ── */
/* the gold "12" with its Santa hat, in the wall heading (motion kit 10) */
.xm-twelve { position: relative; display: inline-block; padding: 0 .04em; background: linear-gradient(180deg, #FFF5CC 0%, #FFD45E 38%, #F0B83A 72%, #C48A12 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 #A8740C); }
.xm-twelve .xm-hat { position: absolute; left: -.2em; top: -.3em; width: .78em; height: .53em; transform: rotate(-16deg); transform-origin: 20% 90%; pointer-events: none; }
/* Today's pick: the present in the top-right corner of the card */
.xm-pickcard { position: relative; }
.xm-gift--pick { position: absolute; right: 10px; top: -22px; margin: 0; z-index: 2; cursor: pointer; }
.xm-gift--pick svg { width: 70px; height: 52px; }
/* the stars that burst over the 12 Days heading with the daily unwrap */
.xm-wall__head { position: relative; }
.xm-headburst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 3; }
.xm-headburst i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; background: #FFD45E; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); opacity: 0; }
.xm-headburst i:nth-child(even) { background: var(--xm-gold, #F0B83A); width: 9px; height: 9px; }
/* falling snow: fixed, behind nothing you click */
.xm-snow { position: fixed; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; }
.xm-snow i { position: absolute; top: -20px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 30%, #D3E0EE 65%, #AFC3D8 100%); box-shadow: 0 0 4px rgba(120, 145, 175, .6); opacity: 0; }
.xm-snow i.xm-flake--star { border-radius: 0; background: #A9BED4; clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); box-shadow: none; }

/* XM-16: the sign-in toast stays out of the page until it is shown (its display:flex
   used to beat the hidden attribute, so the words sat off screen in every page) */
.pf-toast[hidden] { display: none !important; }
/* XM-06: the star by "New on MYDAWA" twinkles once and stops, like the other moves */
.pf-theme-christmas .new-products .nm-spark, .pf-theme-christmas .new-products .nm-new::after { animation-iteration-count: 1 !important; }
