/* Christmas 659: decorations occupy existing space, never the layout flow. */
.christmas658 header{position:relative}
#join-dialog[data-christmas659]{overflow:visible;max-height:none;isolation:isolate}
#join-dialog .christmas-scroll658{max-height:calc(100dvh - 120px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
#join-dialog .christmas-hat659{position:absolute;right:-47px;top:-67px;width:145px;height:138px;transform:rotate(22deg);z-index:3;pointer-events:none;filter:drop-shadow(2px 5px 3px #17191625)}
#join-dialog .join-close{z-index:8;background:#fff!important}
.christmas-hat659 svg,.christmas-garland659 svg,.christmas-scene659 svg,.christmas-offer659 svg{display:block;width:100%;height:100%;overflow:visible}
#join-dialog .christmas-garland659{position:absolute;bottom:-15px;left:14px;right:14px;height:36px;pointer-events:none;z-index:4}
.christmas-scene659{position:absolute;height:68px;pointer-events:none;z-index:1;overflow:hidden}
.tree-lights659{animation:tree-glow659 2.8s ease-in-out infinite alternate;filter:drop-shadow(0 0 2px #eafa8c)}
.sleigh659{animation:sleigh-drift659 4s ease-in-out infinite alternate}
.christmas-offer659{position:absolute;top:0;bottom:0;width:75px;pointer-events:none;opacity:.94;z-index:1}
.christmas-offer659.left659{left:-6px;transform:rotate(90deg)}
.christmas-offer659.right659{right:-6px;transform:rotate(-90deg)}
.christmas658 .refine-offer501>.offer-copy512,.christmas658 .refine-offer501>a,.christmas658 .refine-offer501>button{position:relative;z-index:2}
@keyframes tree-glow659{0%{opacity:.45}60%{opacity:1;filter:drop-shadow(0 0 3px #ffec98)}100%{opacity:.8;filter:drop-shadow(0 0 3px #d5fc46)}}
@keyframes sleigh-drift659{from{transform:translateY(0)}to{transform:translateY(-3px)}}
@media(max-width:640px){#join-dialog[data-christmas659]{width:calc(100% - 42px)}#join-dialog .christmas-hat659{width:114px;height:107px;right:-27px;top:-52px;transform:rotate(24deg)}#join-dialog .christmas-garland659{height:29px;bottom:-13px;left:8px;right:8px}.christmas-scene659{height:51px}.christmas-offer659{width:42px;opacity:.6}}
@media(prefers-reduced-motion:reduce){.tree-lights659,.sleigh659{animation:none!important}}
/* Lay the pine branches along the spare lower area of the offer strip. */
.christmas-offer659.left659{left:42%;right:auto;top:auto;bottom:-9px;width:240px;height:45px;transform:none}
.christmas-offer659.right659{right:-17px;top:auto;bottom:-10px;width:110px;height:45px;transform:rotate(-20deg);opacity:.7}
@media(max-width:640px){.christmas-offer659.left659{left:44%;width:100px;height:25px;bottom:-5px;opacity:.45}.christmas-offer659.right659{display:none}}

/* Independently twinkling, colour-changing fairy lights. */
.tree-lights659{animation:none;opacity:1;filter:none}
.tree-lights659 circle{r:3px;animation:fairy-colours660 3.2s steps(1,end) infinite;filter:drop-shadow(0 0 2px currentColor)}
.tree-lights659 circle:nth-child(2){animation-delay:-.8s}.tree-lights659 circle:nth-child(3){animation-delay:-1.6s}.tree-lights659 circle:nth-child(4){animation-delay:-2.4s}
@keyframes fairy-colours660{0%,100%{fill:#fff7c2;color:#fff7c2;opacity:1}18%{fill:#fa6b79;color:#fa6b79;opacity:1}31%{opacity:.25}43%{fill:#76d9ff;color:#76d9ff;opacity:1}62%{fill:#d5fc46;color:#d5fc46;opacity:1}76%{opacity:.25}87%{fill:#e5acff;color:#e5acff;opacity:1}}
@media(prefers-reduced-motion:reduce){.tree-lights659 circle{animation:none!important;fill:#fff7c2;opacity:1}}

/* Christmas ordering message: localized on the server, code copied verbatim. */
body:has(#catalogue) .refine-offer501.christmas-offer-banner661{height:auto!important;max-height:none!important;min-height:108px!important;padding:13px 20px!important;gap:12px!important;align-items:center!important;border:1px solid #293629;border-bottom:3px solid #d5fc46;background:radial-gradient(ellipse at 55% 140%,#284331 0,transparent 65%),#111!important}
body:has(#catalogue) .christmas-offer-banner661 .offer-copy512{display:flex!important;flex-direction:column;gap:5px!important;max-width:calc(100% - 260px)}
body:has(#catalogue) .christmas-offer-banner661 .christmas-heading661{font-size:clamp(16px,1.6vw,22px)!important;letter-spacing:.9px;color:#d5fc46!important;line-height:1.15!important}
body:has(#catalogue) .christmas-offer-banner661 .christmas-message661{font-size:13px!important;line-height:1.4!important;color:#f5f5ed}
body:has(#catalogue) .christmas-offer-banner661 .christmas-code-line661{font-size:13px!important;line-height:1.6!important;color:white}
body:has(#catalogue) .christmas-offer-banner661 .offer-code513{display:inline-block!important;font-size:18px!important;line-height:1.1!important;padding:3px 8px!important;margin-inline-start:4px;white-space:nowrap;background:#d5fc46!important;color:#111!important;animation:none!important}
body:has(#catalogue) .christmas-offer-banner661 .christmas-offer659.left659{left:auto;right:240px;width:210px;height:38px;opacity:.7}
body:has(#catalogue) .christmas-offer-banner661 .christmas-offer659.right659{right:-14px;width:130px;height:52px;opacity:.8}
@media(max-width:640px){
 body:has(#catalogue) .refine-offer501.christmas-offer-banner661{display:grid!important;grid-template-columns:1fr auto!important;padding:10px 12px!important;gap:7px 10px!important;min-height:0!important}
 body:has(#catalogue) .christmas-offer-banner661 .offer-copy512{grid-column:1 / -1;max-width:none;gap:5px!important}
 body:has(#catalogue) .christmas-offer-banner661 .christmas-heading661{font-size:17px!important;letter-spacing:.5px}
 body:has(#catalogue) .christmas-offer-banner661 .christmas-message661{font-size:12px!important;line-height:1.35!important}
 body:has(#catalogue) .christmas-offer-banner661 .christmas-code-line661{font-size:12px!important;line-height:1.6!important}
 body:has(#catalogue) .christmas-offer-banner661 .offer-code513{font-size:17px!important}
 body:has(#catalogue) .christmas-offer-banner661>a{font-size:11px!important;align-self:center!important;margin:0!important}
 body:has(#catalogue) .christmas-offer-banner661>#refine-copy501{font-size:12px!important;padding:7px 12px!important;min-height:32px!important;margin:0!important}
 body:has(#catalogue) .christmas-offer-banner661 .christmas-offer659.left659{left:38%;right:auto;bottom:-6px;width:125px;height:26px;opacity:.55}
}
body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .offer-copy512{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:5px!important}
body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .christmas-message661,body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .christmas-code-line661{display:block!important;white-space:normal!important}
body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .christmas-code-line661 .offer-code513{display:inline-block!important}

/* Wider soft hat cuff resting over the corner; gifts fill only spare popup space. */
#join-dialog .christmas-hat659{right:-57px;top:-65px;width:159px;height:146px;transform:rotate(30deg)}
#join-dialog .christmas-popup-gifts662{position:absolute;right:18px;bottom:10px;width:139px;height:84px;pointer-events:none;z-index:3}
.christmas-popup-gifts662 svg{display:block;width:100%;height:100%;overflow:visible}
@media(max-width:640px){#join-dialog .christmas-hat659{right:-31px;top:-49px;width:123px;height:112px;transform:rotate(29deg)}#join-dialog .christmas-popup-gifts662{right:12px;bottom:8px;width:111px;height:68px}}
@media(max-height:640px){#join-dialog .christmas-popup-gifts662{width:96px;height:58px;bottom:7px}}

/* Compact continuous offer copy; use the full available width. */
body:has(#catalogue) .refine-offer501.christmas-offer-banner661{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;min-height:0!important;max-height:none!important;height:auto!important;padding:9px 14px!important;gap:10px!important}
body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .offer-copy512{display:block!important;max-width:none!important;min-width:0!important}
body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .christmas-heading661{display:block!important;margin:0 0 4px!important;font-size:19px!important;line-height:1.15!important}
body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .christmas-message661,body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .christmas-code-line661{display:inline!important;font-size:13px!important;line-height:1.6!important}
body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .christmas-code-line661:before{content:' ';white-space:pre}
body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .offer-code513{font-size:16px!important;padding:2px 6px!important;vertical-align:baseline!important}
body:has(#catalogue) .refine-offer501.christmas-offer-banner661>a{white-space:nowrap!important;margin:0!important}
body:has(#catalogue) .refine-offer501.christmas-offer-banner661>#refine-copy501{margin:0!important;padding:7px 10px!important;min-height:32px!important}
body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .christmas-offer659{height:24px;opacity:.35;bottom:-8px}
@media(max-width:640px){
 body:has(#catalogue) .refine-offer501.christmas-offer-banner661{grid-template-columns:minmax(0,1fr) auto!important;gap:4px 8px!important;padding:7px 9px!important}
 body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .offer-copy512{grid-column:1 / -1!important}
 body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .christmas-heading661{font-size:15px!important;letter-spacing:.3px!important;margin-bottom:3px!important}
 body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .christmas-message661,body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .christmas-code-line661{font-size:11px!important;line-height:1.4!important}
 body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .offer-code513{font-size:15px!important;padding:2px 5px!important}
 body:has(#catalogue) .refine-offer501.christmas-offer-banner661>a{font-size:11px!important;line-height:1.1!important}
 body:has(#catalogue) .refine-offer501.christmas-offer-banner661>#refine-copy501{font-size:11px!important;padding:6px 9px!important;min-height:30px!important}
 body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .christmas-offer659{display:none!important}
}
@media(min-width:641px){body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .christmas-message661,body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .christmas-code-line661{font-size:12px!important;line-height:1.45!important}body:has(#catalogue) .refine-offer501.christmas-offer-banner661{padding-top:7px!important;padding-bottom:7px!important}}

/* Keep offer text first, then code and both actions together in a compact footer. */
body:has(#catalogue) .refine-offer501.christmas-offer-banner661{display:block!important;height:auto!important;min-height:0!important;max-height:none!important;padding:8px 12px!important}
body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .offer-copy512{display:block!important;width:auto!important;max-width:none!important;margin:0!important}
body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .christmas-actions667{position:relative!important;z-index:3;display:flex!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:wrap;gap:6px 12px;margin-top:5px!important}
body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .christmas-actions667 .offer-code513{margin:0!important;order:0}
body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .christmas-actions667>a{position:static!important;grid-area:auto!important;order:2;font-size:11px!important;line-height:1.2!important;margin:0!important;align-self:center!important;white-space:nowrap}
body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .christmas-actions667>#refine-copy501{position:static!important;grid-area:auto!important;order:1;font-size:11px!important;line-height:1.2!important;padding:5px 9px!important;min-height:28px!important;margin:0!important;align-self:center!important}
body:has(#catalogue) .refine-offer501.christmas-offer-banner661 #refine-status501{order:3;font-size:11px}
@media(max-width:640px){body:has(#catalogue) .refine-offer501.christmas-offer-banner661{padding:7px 9px!important}body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .christmas-actions667{gap:5px 9px!important;margin-top:4px!important}body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .christmas-actions667>a{font-size:10px!important}body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .christmas-actions667>#refine-copy501{font-size:11px!important;padding:5px 7px!important;min-height:28px!important}}

.mobile-code-label668{display:none}
body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .christmas-actions667>a{margin-inline-start:auto!important}
@media(max-width:640px){
 body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .christmas-actions667{gap:5px 7px!important}
 body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .christmas-actions667 .offer-code513{box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:30px!important;height:30px!important;padding:5px 7px!important;font-size:12px!important;line-height:1!important;gap:4px}
 body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .mobile-code-label668{display:inline!important;font:800 10px/1 Arial,sans-serif!important}
 body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .christmas-actions667>#refine-copy501{box-sizing:border-box!important;height:30px!important;min-height:30px!important;padding:5px 7px!important;line-height:1!important}
 body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .christmas-actions667>a{margin-inline-start:auto!important;font-size:10px!important;text-align:end!important}
}

@media(min-width:641px){body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .mobile-code-label668{display:inline!important;font:800 10px/1 Arial,sans-serif!important}body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .christmas-actions667 .offer-code513{box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;height:30px!important;min-height:30px!important;padding:5px 9px!important;gap:4px;font-size:15px!important;line-height:1!important}body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .christmas-actions667>#refine-copy501{box-sizing:border-box!important;height:30px!important;min-height:30px!important;padding:5px 9px!important;line-height:1!important}}

/* Desktop: keep code and copy controls alongside the message; retain mobile footer. */
@media(min-width:641px){
 body:has(#catalogue) .refine-offer501.christmas-offer-banner661{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px 18px!important;align-items:center!important;padding:7px 12px!important}
 body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .offer-copy512{grid-column:1!important;min-width:0!important}
 body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .christmas-actions667{grid-column:2!important;display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:8px!important;margin:0!important}
 body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .christmas-actions667>a{margin-inline-start:12px!important}
 body:has(#catalogue) .refine-offer501.christmas-offer-banner661 #refine-status501:empty{display:none!important}
}

/* Larger desktop offer copy without extra vertical padding; mobile unchanged. */
@media(min-width:641px){
 body:has(#catalogue) .refine-offer501.christmas-offer-banner661{padding-top:5px!important;padding-bottom:5px!important;gap:8px 14px!important}
 body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .christmas-heading661{font-size:21px!important;line-height:1.1!important;margin-bottom:3px!important}
 body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .christmas-message661,body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .christmas-code-line661{font-size:14px!important;line-height:1.25!important}
 body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .christmas-actions667>a{font-size:12px!important}
 body:has(#catalogue) .refine-offer501.christmas-offer-banner661 .christmas-actions667>#refine-copy501{font-size:12px!important}
}
