/* Shared interaction/accessibility layer. Deliberately excludes catalogue-card descendants. */
:root{--qs-fast:120ms;--qs-settle:220ms;--qs-ui-ease:cubic-bezier(.2,.8,.2,1)}
body.qs-themed :is(.drawer-head,.customer-menu-header){backdrop-filter:blur(12px) saturate(120%);-webkit-backdrop-filter:blur(12px) saturate(120%)}
body.qs-themed :is(#cartDrawer,#productModal,#authModal,.journey-auth .card){background:#fff}
body.qs-themed :is(#cartDrawer,#productModal,#authModal) :is(input,textarea,select){font:inherit;line-height:1.5}
body.qs-themed :is(#cartDrawer,#productModal,#authModal,.journey-page main,.journey-auth main) :is(p,label,.note){line-height:1.65}
body.qs-themed :is(#cartDrawer,#productModal,#authModal,.journey-page main,.journey-auth main) :is(h2,h3){line-height:1.25;text-wrap:balance}
body.qs-themed :is(.qs-actions,.nav-actions,.customer-menu,#cartDrawer,#authModal,.journey-auth main) button,
body.qs-themed #productModal :is(.quick-actions,.studio-history,.move-arrows,.product-purchase-bar) button{touch-action:manipulation;transition:background-color var(--qs-fast),border-color var(--qs-fast),box-shadow var(--qs-fast),transform var(--qs-fast)}
body.qs-themed :is(.qs-actions,.nav-actions,.customer-menu,#cartDrawer,#authModal,.journey-auth main) button:active:not(:disabled),
body.qs-themed #productModal :is(.quick-actions,.studio-history,.move-arrows,.product-purchase-bar) button:active:not(:disabled){transform:scale(.98);transition-duration:60ms}
body.qs-themed :is(#cartDrawer,#productModal,#authModal,.customer-menu,.journey-page main,.journey-auth main) :is(button,a,input,textarea,select,summary):focus-visible{outline:3px solid #35658b;outline-offset:3px;scroll-margin-block:6rem}
body.qs-themed :is(#cartDrawer,#productModal,#authModal,.journey-page main,.journey-auth main) :is(button:disabled,[aria-disabled=true]){cursor:not-allowed;opacity:.6}
body.qs-themed :is(#cartDrawer,#productModal,#authModal) [aria-busy=true]{cursor:progress}
body.qs-themed :is(#cartDrawer,#productModal,#authModal) [aria-invalid=true]{border-color:#a52b40!important;background:#fff8fa!important}
body.qs-themed :is(#cartDrawer,#productModal,#authModal) :is(.field-error,.error){color:#92273b;line-height:1.6}
body.qs-themed #cartDrawer .checkout-section{scroll-margin-block:6rem}
body.qs-themed #cartDrawer .checkout-section+.checkout-section{margin-top:1.5rem}
body.qs-themed #cartDrawer .checkout-section h3{margin-bottom:1.25rem;font-size:1.2rem}
body.qs-themed #cartDrawer .checkout-disclosure{border-top:1px solid #d8e0ea;padding-block:1rem}
body.qs-themed #cartDrawer .checkout-disclosure summary{min-height:44px;cursor:pointer;align-content:center;font-weight:600}
body.qs-themed #cartDrawer .summary{font-variant-numeric:tabular-nums}
body.qs-themed .delivery-picker .delivery-confirm,body.qs-themed .address-pin-dialog [data-save]{background:#17665b!important;border-color:#17665b!important;color:#fff!important;font-weight:650}
body.qs-themed .delivery-picker .delivery-confirm:hover,body.qs-themed .address-pin-dialog [data-save]:hover{background:#104d44!important}
body.qs-themed .delivery-pin-actions button:not(.delivery-confirm){background:#fff!important;color:#254a73!important;border-color:#9ab0c4}
body.qs-themed #productModal .design-toolbox{border-left:0!important;border-inline-start:1px solid #d6dee7!important}
body.qs-themed #productModal .design-controls{border-bottom:1px solid #d8e0ea;padding-bottom:1rem;margin-bottom:1rem}
body.qs-themed #productModal .studio-history{gap:.5rem}
body.qs-themed #productModal .lock-card{background:#f1f6fa!important}
body.qs-themed #productModal .move-panel{background:#f6f8fb!important}
body.qs-themed #productModal .control-title{font-weight:650;line-height:1.5}
body.qs-themed #productModal input[type=range]{min-height:44px;accent-color:#255c79}
body.qs-themed #productModal .studio-hint{max-width:65ch}
body.qs-themed :is(#cartDrawer,#productModal,#authModal)[data-qs-panel]{transition:none!important}
body.qs-themed :is(#cartDrawer,#productModal,#authModal)[data-qs-exiting]{visibility:visible!important;display:flex;pointer-events:none}
body.qs-themed :is(#productModal,#authModal)[data-qs-exiting]{display:block}
.customer-menu-header{padding-top:max(1.25rem,env(safe-area-inset-top))!important}
@media(max-width:800px){body.qs-themed #productModal .design-toolbox{border-inline-start:0!important}body.qs-themed :is(#cartDrawer,#productModal,#authModal) :is(input,textarea,select):not([type=checkbox]):not([type=radio]):not([type=range]){font-size:1rem;min-height:44px}body.qs-themed #cartDrawer .checkout-submit{padding-bottom:max(1rem,env(safe-area-inset-bottom))}}
/* System preferences override decorative materials, never catalogue geometry or output. */
@media(prefers-reduced-transparency:reduce){
 body.qs-themed{--qs-glass:#fff;--qs-metal:#f1f4f8;--qs-input-glass:#fff;--qs-dark-surface:#172437}
 body.qs-themed :is(.top,.qs-header,.drawer-head,.customer-menu-header,.product-purchase-bar){background-color:#f7f9fc!important;background-image:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
 body.qs-themed .overlay,body.qs-themed .customer-menu::backdrop{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:#172437b8}
}
@media(prefers-contrast:more){
 body.qs-themed{--shop-muted:#344356;--shop-line:#667589;--qs-glass:#fff;--qs-metal:#f5f7fa;--qs-input-glass:#fff;--qs-glass-line:#667589;--qs-reading-line:#667589}
 body.qs-themed :is(.top,.qs-header,.drawer-head,.customer-menu-header,.product-purchase-bar){background:#fff!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border-color:#52647a!important}
 body.qs-themed :is(#cartDrawer,#productModal,#authModal,.customer-menu,.journey-page main,.journey-auth main) :is(input,textarea,select,button,summary){border-color:#52647a}
 body.qs-themed :is(#cartDrawer,#productModal,#authModal,.customer-menu,.journey-page main,.journey-auth main) :is(.note,small,.studio-hint){color:#344356}
}
@media(prefers-reduced-motion:reduce){body.qs-themed :is(.customer-menu,#cartDrawer,#productModal,#authModal) *,body.qs-themed :is(.customer-menu,#cartDrawer,#productModal,#authModal){animation:none!important;transition:none!important;scroll-behavior:auto!important}body.qs-themed :is(.qs-actions,.nav-actions,.customer-menu,#cartDrawer,#productModal,#authModal) button:active{transform:none!important}}
@media(forced-colors:active){body.qs-themed :is(#cartDrawer,#productModal,#authModal,.customer-menu) :is(button,input,select,textarea){border:1px solid ButtonText}}
