/* E-94: v5 drawer; all monetary content is rendered by Woo. */
.sh-frontend dialog.sh-cart { margin: 0 0 0 auto; width: min(27.5rem, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; border-width: 0 0 0 1px; overflow: hidden; }
.sh-cart[open] { display: flex; flex-direction: column; animation: sh-cart-enter .3s var(--sh-ease); }
@keyframes sh-cart-enter { from { transform: translateX(40px); opacity: 0; } }
.sh-cart-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem .75rem .75rem 1.25rem; border-bottom: 1px solid var(--sh-line); flex-shrink: 0; }
.sh-frontend .sh-cart-head h2 { font: 800 1.25rem/1.15 var(--font-display); text-transform: uppercase; overflow-wrap: anywhere; }
.sh-cart-head button { flex-shrink: 0; }
.sh-cart-state { overflow-y: auto; overscroll-behavior: contain; container-type: inline-size; min-height: 0; flex: 1; scrollbar-color: var(--sh-control) var(--sh-bg); }
.sh-cart-feedback { padding: .5rem 1.25rem; font-size: var(--t-sm); flex-shrink: 0; max-height: 30dvh; overflow: auto; }
.sh-cart-feedback a { display: inline-flex; align-items: center; min-height: 44px; color: var(--sh-text); text-underline-offset: .25em; }
.sh-cart-shipping { padding: 1rem 1.25rem; font-size: var(--t-sm); border-bottom: 1px solid var(--sh-line); }
.sh-cart progress { display: block; width: 100%; height: 8px; margin-top: .625rem; appearance: none; border: 0; border-radius: 999px; background: var(--sh-surface-2); overflow: hidden; }
.sh-cart progress::-webkit-progress-bar { background: var(--sh-surface-2); }
.sh-cart progress::-webkit-progress-value { background: var(--sh-gold); }
.sh-cart progress::-moz-progress-bar { background: var(--sh-gold); }
.sh-cart-list { list-style: none; margin: 0; padding: .25rem 1.25rem; }
.sh-cart-line { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: .875rem; padding: 1rem 0; border-bottom: 1px solid var(--sh-line); align-items: start; }
.sh-cart-image img { width: 4rem; height: auto; max-width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--sh-bg); }
.sh-cart-details { min-width: 0; }
.sh-frontend .sh-cart h3 { font: 800 var(--t-sm)/1.25 var(--font-display); text-transform: uppercase; overflow-wrap: anywhere; }
.sh-cart-details h3 a { color: var(--sh-text); }
.sh-cart-controls { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .375rem; }
.sh-cart input[type=number] { width: 4rem; max-width: 100%; min-height: 44px; padding: .375rem; background: var(--sh-bg); border: 1px solid var(--sh-control); color: var(--sh-text); border-radius: 6px; font: inherit; font-variant-numeric: tabular-nums; }
.sh-cart form label { font-size: var(--t-sm); }
.sh-cart-remove { min-height: 44px; display: inline-flex; align-items: center; color: var(--sh-text-muted); text-underline-offset: .25em; }
.sh-cart-price { grid-column: 2; font: 800 1rem/1.25 var(--font-display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sh-cart-empty { padding: 3rem 1.25rem; }
.sh-cart-empty h3 { margin-bottom: 1.25rem; }
.sh-cart-foot { padding: 1.25rem; display: grid; gap: .875rem; }
.sh-cart-foot p { color: var(--sh-text-muted); font-size: var(--t-sm); }
.sh-cart-sum { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem; font-variant-numeric: tabular-nums; }
.sh-cart-sum strong { font: 800 1.25rem/1.2 var(--font-display); }
.sh-cart button:disabled, .sh-cart [aria-disabled=true] { opacity: .5; cursor: not-allowed; }
.sh-cart .sh-btn { white-space: normal; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .sh-cart[open] { animation: none; } }
@media (forced-colors: active) { .sh-frontend dialog.sh-cart, .sh-cart input[type=number], .sh-cart .sh-btn { border-color: ButtonText; } .sh-cart progress { forced-color-adjust: auto; } }

@container (max-width: 22rem) {
  .sh-cart-line { grid-template-columns: minmax(0, 1fr); }
  .sh-cart-price { grid-column: 1; }
}
