/* The Christmas pre-order card. Shared by the cart (templates/cart.html) and the admin preview of the cart wording, so both always look the same. */
.xm-box { display:none; background:#f5f0ea; border:1px solid #D8C9B4; border-radius:10px; padding:16px 18px; margin-bottom:14px; font-family:'Jost',sans-serif; color:#2F2F2F; }
.xm-title { font-family:'Cormorant Garamond',serif; font-size:1.2rem; font-weight:500; margin-bottom:6px; }
.xm-text { font-size:0.8125rem; line-height:1.6; margin:0 0 10px; }
.xm-ul { margin:2px 0 6px; padding-left:1.25em; list-style:disc; }
.xm-ul li { margin:0 0 2px; }
.xm-ln { margin:0; }
.xm-gap { height:9px; }
.xm-text.xm-small { white-space:pre-line; }
.xm-small { font-size:0.9375rem; line-height:1.55; color:#3a322a; }
.xm-warn { font-size:0.8125rem; color:#8A5A3C; margin:0 0 6px; }
.xm-opts { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:0 0 16px; }
.xm-emailrow { margin-bottom:18px; }
.xm-opt { display:flex; gap:10px; align-items:flex-start; min-height:58px; box-sizing:border-box; padding:10px 12px; background:#fff; border:1px solid #D8C9B4; border-radius:8px; cursor:pointer; font-size:0.8125rem; }
.xm-opt.on { border-color:#8A5A3C; box-shadow:0 0 0 1px #8A5A3C inset; }
.xm-opt small { font-size:0.7rem; color:#4a4036; }
.xm-opt b { font-weight:500; letter-spacing:0.01em; }   /* lighter, so the four option cards read crisply */
.xm-opt { -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
.xm-gift { background:#e6f1dc; border:1px solid #c9e0bd; color:#1f5a08; border-radius:8px; padding:10px 12px; font-size:0.8125rem; margin:0 0 10px; }
.xm-addr input, .xm-addr select { display:block; width:100%; box-sizing:border-box; height:40px; margin:0 0 8px; padding:0 12px; background:#fff; border:1px solid #D8C9B4; border-radius:8px; font-family:'Jost',sans-serif; font-size:0.8125rem; }
@media (max-width:560px){ .xm-opts { grid-template-columns:1fr; } }

/* Christmas card: art cut straight from Rob's mockup (static/xmas_*.png), snow that keeps falling, gentle pulse until activated */
.xm-box { position:relative; overflow:visible; margin-top:32px; padding-top:18px; background:#F6EFE6; border:1px solid #B68E69; border-radius:14px; }
.xm-box > * { position:relative; z-index:1; }
.xm-box > .xm-snow { position:absolute; inset:0; z-index:0; pointer-events:none; overflow:hidden; border-radius:inherit; }
.xm-box > .xm-art { position:absolute; z-index:0; pointer-events:none; background:no-repeat center / contain; display:block; }
.xm-box > .xm-sprig { z-index:2; top:-30px; right:-22px; width:115px; height:95px; background-image:url(/static/xmas_sprig.png); }
.xm-box > .xm-sprig2 { top:auto; right:auto; bottom:-30px; left:-22px; transform:rotate(180deg); }   /* the same sprig, turned round, in the bottom left corner */
.xm-flake { position:absolute; top:-22%; display:block; background:no-repeat center / contain; animation:xmFall linear infinite; opacity:0; }
.xm-flake.f1 { background-image:url(/static/xmas_flake1.png); }
.xm-flake.f2 { background-image:url(/static/xmas_flake2.png); }
.xm-flake.f3 { background-image:url(/static/xmas_flake3.png); }
.xm-flake.f4 { background-image:url(/static/xmas_pale_bm.png); }
@keyframes xmFall { 0% { top:-22%; transform:translateX(0) rotate(0deg); opacity:0; } 16% { opacity:1; } 50% { transform:translateX(var(--dx)) rotate(150deg); } 68% { opacity:1; } 82% { opacity:0; } 100% { top:100%; transform:translateX(calc(var(--dx) * -0.6)) rotate(300deg); opacity:0; } }
/* the two gold sparkle streams: start where the gold sits in the mockup and cascade down slowly like a waterfall */
.xm-gold { position:absolute; top:-60%; display:block; background:no-repeat center / contain; animation:xmGold linear infinite; opacity:0; }
.xm-gold.g1 { left:8%; width:87px; height:83px; background-image:url(/static/xmas_gold_left.png); }
.xm-gold.g2 { left:62%; width:78px; height:68px; background-image:url(/static/xmas_gold_mid.png); }
@keyframes xmGold { 0% { top:-55%; opacity:0; } 14% { opacity:1; } 62% { opacity:1; } 92% { opacity:0; } 100% { top:100%; opacity:0; } }
@media (max-width:560px) { .xm-box > .xm-sprig { width:96px; height:79px; right:-12px; top:-26px; } .xm-box > .xm-sprig2 { top:auto; right:auto; bottom:-26px; left:-34px; } }
/* Desktop only: Rob's garland artwork wraps the whole frame, the snow may drift a little past the border, and the copy
   is a bit larger. The frame is built from his Canva garland in pieces, so it fits any card height: four corner pieces
   (each fades out on its inner edges) and four short repeating strips for the top, bottom and sides (each strip is
   cross-faded so it repeats without a seam, and fades out where a corner takes over). Nothing is stretched.
   Mobile is unchanged. */
.xm-garland { display:none; }
@media (min-width:900px) {
  #xmas-box.xm-box { margin:130px 90px 112px; padding:64px 68px 46px; }   /* the id selector, so it beats the plain #xmas-box margin and the garland clears the steps above and the heading below */
  .xm-box > .xm-sprig { display:none; }
  .xm-box > .xm-snow { overflow:visible; clip-path:inset(-26px -26px -26px -26px); }
  .xm-box > .xm-garland { display:block; position:absolute; z-index:0; pointer-events:none; top:-84px; bottom:-82px; left:-88px; right:-88px;
    background-image:url(/static/gl_tl.png), url(/static/gl_tr.png), url(/static/gl_bl.png), url(/static/gl_br.png);
    background-repeat:no-repeat;
    background-position:left top, right top, left bottom, right bottom;
    background-size:405px 243px; }
  .xm-box > .xm-garland::before, .xm-box > .xm-garland::after { content:''; position:absolute; inset:0; }
  .xm-box > .xm-garland::before {      /* top and bottom strips; they fade in only after the corner pieces */
    background-image:url(/static/gl_top.png), url(/static/gl_bottom.png);
    background-repeat:repeat-x; background-position:left 0 top 4px, left bottom; background-size:274.5px 135px, 247.5px 130.5px;
    -webkit-mask-image:linear-gradient(to right, transparent 0, transparent 385px, #000 400px, #000 calc(100% - 400px), transparent calc(100% - 385px), transparent 100%);
            mask-image:linear-gradient(to right, transparent 0, transparent 385px, #000 400px, #000 calc(100% - 400px), transparent calc(100% - 385px), transparent 100%); }
  .xm-box > .xm-garland::after {       /* left and right strips */
    background-image:url(/static/gl_left.png), url(/static/gl_right.png);
    background-repeat:repeat-y; background-position:left top, right top; background-size:130.5px 157.5px, 121.5px 175.5px;
    -webkit-mask-image:linear-gradient(to bottom, transparent 0, transparent 222px, #000 238px, #000 calc(100% - 238px), transparent calc(100% - 222px), transparent 100%);
            mask-image:linear-gradient(to bottom, transparent 0, transparent 222px, #000 238px, #000 calc(100% - 238px), transparent calc(100% - 222px), transparent 100%); }
  .xm-flake { filter:drop-shadow(0 1px 3px rgba(60,95,150,.75)); }
  .xm-box .xm-title { font-size:1.65rem; margin-bottom:8px; }
  .xm-box #xm-lead { font-size:0.98rem; }
}
/* shipping address: collapsible, with the profile checkbox */
.xm-addrbox { margin:0 0 10px; }
.xm-addrhead { display:flex; width:100%; justify-content:space-between; align-items:center; gap:10px; text-align:left; background:#fff; border:1px solid #D8C9B4; border-radius:8px; padding:10px 12px; cursor:pointer; font-family:'Jost',sans-serif; font-size:0.8125rem; color:#2F2F2F; }
.xm-addrhead small { font-size:0.7rem; color:#4a4036; }
.xm-onfile { background:#fff; border:1px solid #D8C9B4; border-radius:8px; padding:12px 14px; margin:0 0 12px; font-size:0.8125rem; line-height:1.6; }
.xm-link { background:none; border:0; padding:0; margin:6px 0 0; color:#8A5A3C; text-decoration:underline; cursor:pointer; font:inherit; font-size:0.75rem; display:block; }
.xm-chev { display:inline-block; transition:transform .2s; font-size:1.7rem; line-height:1; font-weight:700; color:#8A5A3C; padding:0 4px; }
.xm-chev.up { transform:rotate(180deg); }
.xm-addrbox .xm-addr { margin-top:8px; }
.xm-save { display:flex; align-items:center; gap:8px; font-size:0.7563rem; margin:2px 0 0; cursor:pointer; }
.xm-emailrow input { display:block; width:100%; box-sizing:border-box; height:44px; padding:0 14px; background:#fff; border:1px solid #D8C9B4; border-radius:8px; font-family:'Jost',sans-serif; font-size:0.8125rem; }
