/* First Jack V41 — consistent responsive product actions, media canvas and compact activity notice. */
/* The image background follows Website Settings -> Page background, never a mismatched gray panel. */
body.fj-product-themed .fj-feature-stage,
body.fj-product-themed .fj-product-media,
body.fj-product-themed .fj-feature-stage video,
body.fj-product-themed .fj-gallery-tiles{background:var(--paper,#f6f7f3)!important}
body.fj-product-themed .fj-feature-stage::before,
body.fj-product-themed .fj-feature-stage::after{display:none!important;background:none!important;content:none!important}
body.fj-product-themed .fj-feature-stage .fj-product-media{object-fit:contain!important;object-position:center!important}
body.fj-product-themed .fj-feature-stage{border:1px solid color-mix(in srgb,var(--ink,#243827) 7%,transparent)}
/* Button order: LEFT cart, RIGHT Buy Now; no overlap, no clipped text. */
body.fj-product-themed .fj-v39-purchase-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%;gap:9px;min-width:0}
body.fj-product-themed .fj-v39-purchase-actions .fj-v39-add,
body.fj-product-themed .fj-v39-purchase-actions .fj-v41-quantity{grid-column:1;grid-row:1;min-width:0}
body.fj-product-themed .fj-v39-purchase-actions .fj-v39-buy{grid-column:2;grid-row:1;min-width:0}
body.fj-product-themed .fj-v39-purchase-actions [hidden]{display:none!important}
body.fj-product-themed .fj-v41-quantity{display:flex;align-items:center;justify-content:space-between;gap:4px;
 border:1px solid color-mix(in srgb,var(--brand,#284c36) 20%,var(--surface,#fff));border-radius:12px;
 padding:3px;background:color-mix(in srgb,var(--brand,#284c36) 7%,var(--surface,#fff));color:var(--ink,#193123)}
body.fj-product-themed .fj-v41-quantity button{flex:0 0 38px;display:grid;place-items:center;min-height:39px!important;min-width:38px!important;
 height:39px!important;margin:0!important;padding:0!important;background:var(--surface,#fff);color:var(--ink,#193123);
 border:1px solid color-mix(in srgb,var(--ink,#193123) 10%,transparent);border-radius:9px;font:700 22px/1 system-ui;box-shadow:0 1px 4px #10211617}
body.fj-product-themed .fj-v41-number{font-size:17px;font-weight:850;min-width:20px;text-align:center;line-height:1}
body.fj-product-themed .fj-v39-purchase-actions button{white-space:normal;overflow-wrap:anywhere}
@media(min-width:761px){
 body.fj-product-themed #fj-buy-form{width:100%!important;min-width:0!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch}
 body.fj-product-themed #fj-buy-form .fj-cart-action-row,
 body.fj-product-themed #fj-buy-form .fj-buy-now{width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;align-self:stretch}
 body.fj-product-themed #fj-buy-form .fj-add-bag,
 body.fj-product-themed #fj-buy-form .fj-product-stepper{width:100%;height:100%;max-width:none;min-width:0;margin:0!important}
 body.fj-product-themed .fj-v39-purchase-actions{width:min(420px,100%)}
}
@media(max-width:760px){
 body.fj-product-themed .fj-v39-purchase-actions button{min-width:0!important}
 body.fj-product-themed .fj-v41-quantity{min-width:0!important;min-height:49px;max-height:53px}
 body.fj-product-themed .fj-v41-quantity button{flex-basis:35px;min-width:35px!important;min-height:39px!important}
 body.fj-product-themed .fj-v39-purchase{box-shadow:0 -6px 25px #15221916!important}
 body.fj-product-themed .fj-feature-stage,body.fj-product-themed .fj-gallery-tiles{height:clamp(270px,40svh,350px)!important}
}
@media(max-width:350px){body.fj-product-themed .fj-v41-quantity button{flex-basis:31px;min-width:31px!important;height:37px!important}}
/* Recent order popup: NARROW on phones, remains legible and translucent. */
@media(max-width:767px){
 .fj-activity-toast.fj-order-bubble,
 .fj-order-bubble.from-right{box-sizing:border-box!important;width:min(208px,calc(100vw - 120px))!important;
  min-width:0!important;max-width:208px!important;left:10px!important;right:auto!important;
  bottom:calc(99px + env(safe-area-inset-bottom,0px))!important;padding:9px 25px 9px 9px!important;
  gap:7px!important;border-radius:13px!important;
  background:rgba(255,255,255,.43)!important;border:1px solid rgba(255,255,255,.56)!important;
  backdrop-filter:blur(17px) saturate(1.16)!important;-webkit-backdrop-filter:blur(17px) saturate(1.16)!important}
 .fj-order-bubble .fj-bubble-badge{width:27px!important;height:27px!important;flex:0 0 27px!important}
 .fj-order-bubble .fj-bubble-badge svg{height:15px!important;width:15px!important}
 .fj-order-bubble .fj-bubble-copy{min-width:0!important;overflow:hidden}
 .fj-order-bubble .fj-bubble-copy small{font-size:8px!important;letter-spacing:.07em!important}
 .fj-order-bubble .fj-bubble-copy strong{font-size:10px!important;line-height:1.3!important;white-space:nowrap!important;text-overflow:ellipsis!important;overflow:hidden!important}
 .fj-order-bubble .fj-bubble-copy>span{font-size:9px!important;line-height:1.2!important}
 .fj-order-bubble .fj-bubble-close{right:2px!important;top:2px!important;width:24px!important;height:24px!important}
}
