/* Christmas look (v273). Switched on by html.xmas (xmas.js), which Admin > Site control > Christmas look turns on or off.
   The "tap to open" network cards (guest page head, signed-in net-card) with their small animated arrow, the normal pop-up, and steps 1 and 2 of the order sheet are changed (v290). Store links get the same.
   The price cards and the promo pop-up are not touched. The picture sits at the very back; a dark pine layer keeps every word readable. */
html.xmas body .net-card,
html.xmas body .gx-acc-head{
  position:relative;isolation:isolate;overflow:hidden;color:#fff !important;
  background:
    linear-gradient(90deg,rgba(6,34,32,.97) 0%,rgba(6,34,32,.88) 46%,rgba(6,34,32,.34) 74%,rgba(6,34,32,.14) 100%),
    url("icons/xmas-shine.webp?v=292") right 48px bottom -2px/auto 106% no-repeat,
    url("icons/xmas-santa.webp?v=273") right 48px bottom -2px/auto 106% no-repeat,
    linear-gradient(135deg,#0a2f2a,#14523f) !important}
html.xmas body .net-info b,html.xmas body .gx-acc-info b{color:#fff;text-shadow:0 1px 6px rgba(0,0,0,.45)}
html.xmas body .net-info small,html.xmas body .gx-acc-info small{color:#d6e9e2;text-shadow:0 1px 5px rgba(0,0,0,.45)}
/* guest card: only the round arrow shows (so Santa stays clear); the words stay for screen readers */
html.xmas body .gx-acc-cta{color:#fff;background:rgba(6,34,32,.78);border:1px solid rgba(255,255,255,.2);border-radius:50%;box-sizing:border-box;width:34px;height:34px;padding:0;justify-content:center;flex:none}
html.xmas body .gx-acc-cta>span:first-child{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;max-width:none}
html.xmas body .net-card>svg.i{color:#fff;background:rgba(6,34,32,.78);border:1px solid rgba(255,255,255,.2);border-radius:50%;box-sizing:border-box;width:34px;height:34px;padding:7px;flex:none}
html.xmas body .net-card:hover>svg.i{color:#fff}
html.xmas body .gx-acc-head{border-radius:inherit}
/* normal pop-up: picture at the top, fading into a dark panel so the title, message and button stay clear */
html.xmas body .qdp-card{
  padding-top:150px;
  background:
    linear-gradient(180deg,rgba(5,13,46,0) 0,rgba(5,13,46,0) 50px,rgba(5,13,46,.98) 134px,rgba(5,13,46,.98) 100%),
    url("icons/xmas-shine.webp?v=292") 50% 0/min(78%,310px) auto no-repeat,
    url("icons/xmas-santa.webp?v=273") 50% 0/min(78%,310px) auto no-repeat,
    radial-gradient(380px 200px at 50% -40px,rgba(24,200,255,.22),transparent 70%),
    linear-gradient(180deg,#0a1a4d,#050d2e)}
html.xmas body .qdp-ico{display:none}
html.xmas body .qdp-x{background:rgba(5,13,46,.62);z-index:2}

/* v290: order sheet, step 1 (Beneficiary) and step 2 (Your number): a picture band across the top that fades into the normal sheet.
   Everything below it keeps its normal colours, so nothing becomes harder to read. The Pay step and the receipt keep their own picture. */
html.xmas body .co-modal.co-xs{--xm-h:116px;padding-top:calc(var(--xm-h) + 6px)}
html.xmas body .co-modal.co-xs::before{content:"";position:absolute;left:0;right:0;top:0;height:var(--xm-h);z-index:0;pointer-events:none;border-radius:inherit;
  background:
    linear-gradient(90deg,rgba(6,34,32,.97) 0%,rgba(6,34,32,.9) 40%,rgba(6,34,32,.4) 70%,rgba(6,34,32,.08) 100%),
    url("icons/xmas-shine.webp?v=292") right 10px bottom 0/auto 100% no-repeat,
    url("icons/xmas-santa.webp?v=273") right 10px bottom 0/auto 100% no-repeat,
    linear-gradient(135deg,#0a2f2a,#14523f);
  -webkit-mask-image:linear-gradient(#000 64%,transparent);mask-image:linear-gradient(#000 64%,transparent)}
html.xmas body .co-modal.co-xs::after{content:"Season\2019s Greetings";position:absolute;left:22px;top:30px;z-index:1;max-width:52%;pointer-events:none;color:#fff;font-weight:800;font-size:17px;line-height:1.2;letter-spacing:-.2px;text-shadow:0 1px 8px rgba(0,0,0,.5)}
html.xmas body .co-modal.co-xs .co-close{z-index:3;color:#fff;background:rgba(5,13,46,.6);border:1px solid rgba(255,255,255,.22)}
@media(max-width:380px){html.xmas body .co-modal.co-xs{--xm-h:100px}html.xmas body .co-modal.co-xs::after{font-size:15px;top:26px}}
/* v290: the arrow on the network cards is gently animated (a soft ring and a small nudge) so people see it is tappable.
   Only while the card is closed; no layout movement at all (only the ring and the arrow inside the circle move). */
@keyframes xmRing{0%{box-shadow:0 0 0 0 rgba(255,255,255,.55)}70%,100%{box-shadow:0 0 0 9px rgba(255,255,255,0)}}
@keyframes xmNudge{0%,100%{translate:0 0}50%{translate:3px 0}}
html.xmas body .gx-acc:not(.open) .gx-acc-cta,html.xmas body .net-card>svg.i{animation:xmRing 2.2s ease-out infinite}
html.xmas body .gx-acc:not(.open) .gx-acc-cta svg path,html.xmas body .net-card>svg.i path{animation:xmNudge 1.4s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){html.xmas body .gx-acc:not(.open) .gx-acc-cta,html.xmas body .net-card>svg.i,html.xmas body .gx-acc:not(.open) .gx-acc-cta svg path,html.xmas body .net-card>svg.i path{animation:none}}
/* v290: on the light (guest and store) pages the sheet is solid while Christmas is on, so no page text shows through behind the steps. */
html.xmas body.guest-mode .co-modal.co-xs{background:#fff!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}

/* v292: Season's Greetings on the guest and store-link menu, and on the final receipt (only while html.xmas is on).
   Menu: a pine band at the top (Menu title, greeting, Santa) that fades into the list, then a very light pine tint down to Chat on WhatsApp.
   The picture sits behind the rows (z-index 0, no pointer events), so every row, button and the Top agents card stay exactly where they were and stay tappable.
   Receipt: a slim picture band above the normal receipt; the receipt body, the delivered notice and the buttons are untouched. */
html.xmas body.guest-mode .gx-drawer{--xm-dh:92px}
html.xmas body.guest-mode .gx-drawer::before{content:"";position:absolute;left:0;right:0;top:0;bottom:0;z-index:0;pointer-events:none;
  background:
    linear-gradient(90deg,rgba(6,34,32,.97) 0%,rgba(6,34,32,.9) 42%,rgba(6,34,32,.38) 72%,rgba(6,34,32,.06) 100%) top/100% var(--xm-dh) no-repeat,
    url("icons/xmas-shine.webp?v=292") right 58px top 0/auto var(--xm-dh) no-repeat,
    url("icons/xmas-santa.webp?v=273") right 58px top 0/auto var(--xm-dh) no-repeat,
    linear-gradient(135deg,#0a2f2a,#14523f) top/100% var(--xm-dh) no-repeat,
    linear-gradient(180deg,rgba(20,82,63,0) 0,rgba(20,82,63,0) var(--xm-dh),rgba(20,82,63,.1) calc(var(--xm-dh) + 40px),rgba(20,82,63,.05) 380px,rgba(20,82,63,0) 460px);
  -webkit-mask-image:none;mask-image:none}
html.xmas body.guest-mode .gx-drawer>.gx-drawer-head,html.xmas body.guest-mode .gx-drawer>.gx-nav,html.xmas body.guest-mode .gx-drawer>.gx-drawer-foot{position:relative;z-index:1}
html.xmas body.guest-mode .gx-drawer-head{height:var(--xm-dh);box-sizing:border-box;align-items:flex-start;padding-top:20px;border-bottom:0;
  background:linear-gradient(180deg,transparent 0,transparent 70%,rgba(255,255,255,.0) 100%)}
html.xmas body.guest-mode .gx-drawer-head b{color:#fff;text-shadow:0 1px 8px rgba(0,0,0,.5)}
html.xmas body.guest-mode .gx-drawer-head b::after{content:"Season\2019s Greetings";display:block;margin-top:5px;font-size:13px;font-weight:700;letter-spacing:-.1px;color:#e4f3ec}
html.xmas body.guest-mode .gx-drawer-close{color:#fff;background:rgba(5,13,46,.6);border:1px solid rgba(255,255,255,.22);position:relative;z-index:2}
/* soft edge where the band meets the list, so there is no hard line */
html.xmas body.guest-mode .gx-drawer-head::after{content:"";position:absolute;left:0;right:0;bottom:-14px;height:14px;pointer-events:none;background:linear-gradient(180deg,rgba(10,47,42,.22),transparent)}

/* Final receipt (the screen after payment). co-rcm is set by checkout.js only on the receipt. */
html.xmas body .co-modal.co-rcm.co-s3m{--xm-rh:78px;padding-top:calc(var(--xm-rh) + 6px)}
html.xmas body .co-modal.co-rcm::before{content:"";position:absolute;left:0;right:0;top:0;height:var(--xm-rh);z-index:0;pointer-events:none;border-radius:inherit;
  background:
    linear-gradient(90deg,rgba(6,34,32,.97) 0%,rgba(6,34,32,.9) 40%,rgba(6,34,32,.4) 70%,rgba(6,34,32,.08) 100%),
    url("icons/xmas-shine.webp?v=292") right 46px bottom 0/auto 100% no-repeat,
    url("icons/xmas-santa.webp?v=273") right 46px bottom 0/auto 100% no-repeat,
    linear-gradient(135deg,#0a2f2a,#14523f);
  -webkit-mask-image:linear-gradient(#000 66%,transparent);mask-image:linear-gradient(#000 66%,transparent)}
html.xmas body .co-modal.co-rcm::after{content:"Season\2019s Greetings";position:absolute;left:18px;top:24px;z-index:1;max-width:55%;pointer-events:none;color:#fff;font-weight:800;font-size:16px;line-height:1.2;letter-spacing:-.2px;text-shadow:0 1px 8px rgba(0,0,0,.5)}
html.xmas body .co-modal.co-rcm .co-close{z-index:3;color:#fff;background:rgba(5,13,46,.6);border:1px solid rgba(255,255,255,.22)}
html.xmas body .co-modal.co-rcm .co-body{position:relative;z-index:1}
@media(max-width:380px),(max-height:640px){html.xmas body .co-modal.co-rcm.co-s3m{--xm-rh:64px}html.xmas body .co-modal.co-rcm::after{font-size:14px;top:20px}html.xmas body.guest-mode .gx-drawer{--xm-dh:84px}}

/* v293: Santa's bow, bells and star glint (an animated sparkle picture laid exactly over Santa, same place and size everywhere he appears),
   and a gold shine that sweeps across "Season's Greetings". Pictures and words only; nothing moves in the layout. */
@keyframes xmShine{0%{background-position:130% 0,0 0}100%{background-position:-30% 0,0 0}}
html.xmas body .co-modal.co-xs::after,html.xmas body .co-modal.co-rcm::after,html.xmas body.guest-mode .gx-drawer-head b::after{
  color:transparent;-webkit-text-fill-color:transparent;
  background:linear-gradient(105deg,transparent 40%,#ffd45c 47%,#fffbe6 50%,#ffd45c 53%,transparent 60%) 130% 0/260% 100% no-repeat,linear-gradient(#fff,#fff) 0 0/100% 100% no-repeat;
  -webkit-background-clip:text;background-clip:text;text-shadow:none;filter:drop-shadow(0 1px 5px rgba(0,0,0,.5));
  animation:xmShine 3.4s ease-in-out infinite}
html.xmas body.guest-mode .gx-drawer-head b::after{background-image:linear-gradient(105deg,transparent 40%,#ffd45c 47%,#fffbe6 50%,#ffd45c 53%,transparent 60%),linear-gradient(#e4f3ec,#e4f3ec)}
@media(prefers-reduced-motion:reduce){html.xmas body .co-modal.co-xs::after,html.xmas body .co-modal.co-rcm::after,html.xmas body.guest-mode .gx-drawer-head b::after{animation:none;background-position:-30% 0,0 0}}
