html.fw-cart-open{overflow:hidden}
.fw-cart{inset:0 0 0 auto;margin:0;width:min(480px,100%);max-width:100%;height:100%;height:100dvh;max-height:100%;padding:0;border:0;background:var(--bg,#fff);color:var(--ink,#111);box-shadow:-12px 0 48px #0002;overscroll-behavior:contain}
.fw-cart::backdrop{background:#0007}
.fw-cart[open]{display:flex;flex-direction:column}
.fw-cart [hidden]{display:none!important}
.fw-cart [data-cart-contents]{display:flex;flex-direction:column;min-height:0;flex:1}
.fw-cart-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 24px;border-bottom:1px solid var(--line);flex-shrink:0}
.fw-cart-heading h2{font-size:25px;letter-spacing:-.035em}
.fw-cart-heading h2 span{font-size:17px;color:var(--muted);margin-left:5px}
.fw-cart-close{display:flex;align-items:center;justify-content:center;border:0;background:transparent;width:44px;height:44px;flex-shrink:0}
.fw-cart-shipping{padding:20px 24px;background:var(--soft,#f5f5f5);flex-shrink:0}
.fw-cart-shipping p{font-size:14px;font-weight:500;margin:0 0 10px;line-height:1.5}
.fw-cart-shipping progress{display:block;appearance:none;-webkit-appearance:none;border:0;width:100%;height:6px;background:var(--line,#ddd);color:var(--ink);border-radius:0;overflow:hidden}
.fw-cart-shipping progress::-webkit-progress-bar{background:var(--line,#ddd)}
.fw-cart-shipping progress::-webkit-progress-value{background:var(--ink,#111);transition:width .2s}
.fw-cart-shipping progress::-moz-progress-bar{background:var(--ink,#111)}
.fw-cart-shipping>span{display:block;font-size:11px;color:var(--muted);margin-top:9px}
.fw-cart-items{flex:1;min-height:0;overflow-y:auto;padding:0 24px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.fw-cart-item{display:grid;grid-template-columns:88px minmax(0,1fr);gap:16px;padding:22px 0;border-bottom:1px solid var(--line)}
.fw-cart-item:last-child{border-bottom:0}
.fw-cart-image{display:block;background:var(--soft);align-self:start;aspect-ratio:4/5}
.fw-cart-image img{width:100%;height:100%;object-fit:contain}
.fw-cart-item-info{min-width:0}
.fw-cart-item h3{font-size:13px;line-height:1.5;letter-spacing:0;overflow-wrap:anywhere}
.fw-cart-variant,.fw-cart-property{font-size:11px;color:var(--muted);margin-top:6px;overflow-wrap:anywhere}
.fw-cart-property a{text-decoration:underline}
.fw-cart-price{font-size:14px;margin-top:9px}
.fw-cart-price s{font-size:12px;color:var(--muted);margin-left:6px}
.fw-cart-discount,.fw-cart-order-discount{font-size:11px;color:var(--muted);margin-top:6px}
.fw-cart-item-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:12px}
.fw-cart-quantity{display:flex;border:1px solid var(--line);align-items:center;min-width:132px}
.fw-cart-quantity button{width:44px;height:44px;border:0;background:transparent;font-size:18px;padding:0;flex-shrink:0}
.fw-cart-quantity input[type=number]{width:44px;min-width:0;min-height:44px;border:0;padding:4px;text-align:center;background:transparent;font-size:16px;appearance:textfield;-moz-appearance:textfield}
.fw-cart-quantity input::-webkit-inner-spin-button,.fw-cart-quantity input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.fw-cart-remove{border:0;background:transparent;min-height:44px;font-size:11px;text-decoration:underline;text-underline-offset:3px;padding:6px 0}
.fw-cart-footer{padding:20px 24px max(18px,env(safe-area-inset-bottom));border-top:1px solid var(--line);flex-shrink:0;background:var(--bg)}
.fw-cart-total,.fw-cart-order-discount{display:flex;align-items:center;justify-content:space-between;gap:20px}
.fw-cart-total{font-size:17px;margin-bottom:8px}
.fw-cart-note{font-size:11px;color:var(--muted);margin-bottom:16px}
.fw-cart-footer .button{width:100%;gap:16px}
.fw-cart-footer-links{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-top:12px}
.fw-cart-footer-links .text-link{font-size:11px}
.fw-cart-empty{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:24px;padding:48px 12px;min-height:200px;text-align:center}
.fw-cart-empty p{font-size:17px;color:var(--muted)}
.fw-cart-status{flex-shrink:0;font-size:12px;margin:0;padding:0 24px;color:var(--muted)}
.fw-cart-status:not(:empty){padding-top:10px;padding-bottom:10px}
.fw-cart-error{flex-shrink:0;padding:14px 24px;background:#fff2ef;color:#852b1e;font-size:12px;max-height:25dvh;overflow:auto}
.fw-cart-error a,.fw-cart-error button{text-decoration:underline;text-underline-offset:3px}
.fw-cart-error button{font:inherit;border:0;background:transparent;margin-left:10px;padding:10px 0;color:inherit}
.fw-cart[aria-busy=true] .fw-cart-items{opacity:.6}
@media(max-width:480px){.fw-cart-heading,.fw-cart-shipping,.fw-cart-footer{padding-left:20px;padding-right:20px}.fw-cart-items{padding:0 20px}.fw-cart-heading{padding-top:12px;padding-bottom:12px}.fw-cart-shipping{padding-top:15px;padding-bottom:15px}.fw-cart-item{grid-template-columns:76px minmax(0,1fr);gap:14px;padding:18px 0}.fw-cart-heading h2{font-size:24px}.fw-cart-footer{padding-top:16px}.fw-cart-note{margin-bottom:12px}}
@media(prefers-reduced-motion:no-preference){.fw-cart[open]{animation:fw-cart-enter .2s ease-out}@keyframes fw-cart-enter{from{transform:translateX(100%)}to{transform:translateX(0)}}}
@media(prefers-reduced-motion:reduce){.fw-cart-shipping progress::-webkit-progress-value{transition:none}}
