/* Keep the native cart link immediately usable, stationary and above chat widgets. */
.floating-cart.floating-cart{z-index:1000001;isolation:isolate;pointer-events:auto;touch-action:manipulation;cursor:pointer;width:60px;height:60px;transition:filter .15s,box-shadow .15s;-webkit-tap-highlight-color:transparent}
.floating-cart::before{content:'';position:absolute;inset:-8px;border-radius:16px;pointer-events:auto}
.floating-cart>svg,.floating-cart>.cart-count{pointer-events:none}
.floating-cart:hover,.floating-cart:active{transform:none!important}
.floating-cart:active{filter:brightness(.92)}
@media(max-width:600px){.floating-cart.floating-cart{bottom:calc(max(16px,env(safe-area-inset-bottom)) + 80px)}}

/* A top-layer dialog blocks outside links: do not show an unusable cart behind it. */
body:has(dialog[open]) .floating-cart{visibility:hidden;pointer-events:none}
