/* Springfield Farm Shop: Christmas hero popup, festive card.
   The card artwork is shown whole (never cropped); the Close button sits over the
   top-right evergreen corner and the CTAs live in a slim footer beneath the artwork. */
.sfs-xmas{
  --x-pine:#1E3B2B; --x-pine-deep:#132A1E; --x-claret:#7A1F2B; --x-claret-deep:#5E1621;
  --x-gold:#C9A65A; --x-parch:#FBF6E8; --x-parch-2:#F3E8CF; --x-ink:#2A211B; --x-muted:#6E6356;
  --x-foot:118px;
  --x-ease:var(--sfs-ease,cubic-bezier(.22,.61,.36,1));
  position:fixed; z-index:9998; right:24px; bottom:24px;
  width:min(620px,calc(100vw - 48px),calc((100vh - 150px - var(--x-foot)) * 4 / 3));
  display:flex; font-size:16px; line-height:1.5; color:var(--x-ink); text-align:left;
  opacity:0; transform:translateY(16px); transition:opacity .32s var(--x-ease),transform .32s var(--x-ease);
}
@supports (height:100svh){ .sfs-xmas{width:min(620px,calc(100vw - 48px),calc((100svh - 150px - var(--x-foot)) * 4 / 3));} }
.sfs-xmas[hidden]{display:none!important;}
.sfs-xmas.is-open{opacity:1; transform:none;}
.sfs-xmas.is-closing{opacity:0; transform:translateY(10px);}
.sfs-xmas--in-hero{position:absolute; top:auto; bottom:44px; right:40px;}

.sfs-xmas__card{position:relative; display:flex; flex-direction:column; width:100%; overflow:hidden;
  background:var(--x-parch); border-radius:14px; border:1px solid rgba(201,166,90,.7);
  box-shadow:0 28px 70px rgba(10,14,8,.5),0 3px 10px rgba(10,14,8,.22);}

/* Artwork: full card, 4:3, never cropped */
.sfs-xmas__art{margin:0!important; padding:0!important; line-height:0; aspect-ratio:4 / 3; background:#F3E6CC;}
.sfs-xmas__art img{display:block; width:100%!important; height:100%!important; max-width:none!important; object-fit:contain; border:0!important; border-radius:0!important; box-shadow:none!important;}

/* Close: crisp round button over the top-right evergreen corner */
.sfs-xmas__close{position:absolute; z-index:2; top:12px; right:12px; display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; padding:0; margin:0; border-radius:50%; cursor:pointer;
  background:rgba(251,246,232,.96); color:var(--x-pine-deep); border:1.5px solid var(--x-gold);
  box-shadow:0 4px 14px rgba(0,0,0,.35); transition:background .2s var(--x-ease),color .2s var(--x-ease),transform .2s var(--x-ease);}
.sfs-xmas__close:hover{background:#fff; color:var(--x-claret); transform:scale(1.05);}
.sfs-xmas__close:focus-visible{outline:3px solid #fff; outline-offset:2px; box-shadow:0 0 0 6px var(--x-claret);}

/* Footer: warm heritage bar beneath the artwork */
.sfs-xmas__foot{position:relative; background:linear-gradient(180deg,var(--x-parch) 0%,var(--x-parch-2) 100%); border-top:2px solid var(--x-claret);}
.sfs-xmas__foot:before{content:""; position:absolute; left:0; right:0; top:2px; height:1px; background:rgba(201,166,90,.8);}
.sfs-xmas__ctas{display:grid; grid-template-columns:1fr 1fr; gap:10px; padding:14px 16px 12px;}
.sfs-xmas__cta{display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:52px; padding:8px 14px; border-radius:90px; text-decoration:none!important;
  font-size:15.5px; font-weight:600; line-height:1.2; text-align:center; transition:background .25s var(--x-ease),color .25s var(--x-ease),border-color .25s var(--x-ease);}
.sfs-xmas__cta svg{flex:none;}
.sfs-xmas__cta:focus-visible{outline:2px solid var(--x-claret); outline-offset:3px;}
.sfs-xmas__cta--call{background:var(--x-pine); color:#fff!important; border:1px solid var(--x-pine);}
.sfs-xmas__cta--call:hover{background:var(--x-pine-deep); border-color:var(--x-pine-deep);}
.sfs-xmas__cta--visit{background:#B3242F; color:#fff!important; border:1px solid #B3242F;}
.sfs-xmas__cta--visit:hover{background:var(--x-claret); border-color:var(--x-claret);}
.sfs-xmas__cta > span{display:flex; flex-direction:column; align-items:center;}
.sfs-xmas__num{white-space:nowrap; font-size:13.5px; font-weight:500; opacity:.92;}

.sfs-xmas__timer{height:3px; margin:0 16px; background:rgba(122,31,43,.14); border-radius:2px; overflow:hidden;}
.sfs-xmas__bar{display:block; height:100%; background:var(--x-claret); transform-origin:left center; transition:transform .2s linear;}
.sfs-xmas.is-paused .sfs-xmas__bar{background:var(--x-claret-deep);}
.sfs-xmas__note{margin:0!important; padding:5px 16px 8px!important; font-size:11.5px; text-align:center; color:var(--x-muted)!important;}

.sfs-xmas .sfs-sr-only{position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;}

@media (max-width:980px){
  .sfs-xmas--in-hero{right:24px; bottom:32px;}
}
/* Phones: a bottom sheet above the sticky Call / Directions bar */
@media (max-width:767px){
  .sfs-xmas{--x-foot:112px;}
  .sfs-xmas,.sfs-xmas--in-hero{position:fixed; left:8px; right:8px; top:auto; margin:0 auto;
    width:min(calc(100vw - 16px),calc((100vh - 140px - var(--x-foot)) * 4 / 3)); bottom:calc(56px + env(safe-area-inset-bottom,0px));}
  @supports (height:100svh){ .sfs-xmas,.sfs-xmas--in-hero{width:min(calc(100vw - 16px),calc((100svh - 140px - var(--x-foot)) * 4 / 3));} }
  .sfs-xmas__card{border-radius:12px;}
  .sfs-xmas__close{top:8px; right:8px; width:40px; height:40px;}
  .sfs-xmas__ctas{gap:8px; padding:10px 10px 9px;}
  .sfs-xmas__cta{min-height:48px; padding:6px 8px; font-size:14.5px; flex-direction:column; gap:2px;}
  .sfs-xmas__cta svg{display:none;}
  .sfs-xmas__num{font-size:12.5px;}
  .sfs-xmas__timer{margin:0 10px;}
  .sfs-xmas__note{padding:4px 10px 6px!important; font-size:11px;}
}
@media (prefers-reduced-motion:reduce){
  .sfs-xmas,.sfs-xmas.is-open,.sfs-xmas.is-closing{transition:none; transform:none;}
  .sfs-xmas__bar,.sfs-xmas__close{transition:none;}
}
@media print{ .sfs-xmas{display:none!important;} }
