/* Scoped to the approved cart; unrelated legacy drawers retain their styling. */
dialog.cart-drawer.cart-upgraded {
  position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; border: 0;
  width: min(100%, 460px); max-width: 100%; height: 100dvh; max-height: 100dvh;
  background: #111214; color: #f5f2e9; font-family: Inter, sans-serif;
  transform: none; transition: none; box-shadow: none; overflow: hidden;
}
dialog.cart-upgraded:not([open]) { display: none !important; }
dialog.cart-upgraded[open] { display: flex; flex-direction: column; }
dialog.cart-upgraded::backdrop { background: rgb(0 0 0 / 65%); }
.cart-upgraded *, .cart-upgraded *::before, .cart-upgraded *::after { box-sizing: border-box; }
.cart-upgraded [hidden], .cart-v2-toast[hidden] { display: none !important; }
.cart-upgraded button, .cart-upgraded a { font: inherit; -webkit-tap-highlight-color: transparent; }
.cart-upgraded button { cursor: pointer; }
.cart-upgraded button:disabled { cursor: default; opacity: .45; }
.cart-upgraded :focus-visible, .cart-v2-toast :focus-visible { outline: 2px solid #c8a457; outline-offset: 3px; }
.cart-v2-header {
  flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(24px, env(safe-area-inset-top)) 20px 20px; border-bottom: 1px solid #303236;
}
.cart-v2-header h2 { margin: 0 0 6px; color: #f5f2e9; font: 700 26px/1.2 Inter, sans-serif; letter-spacing: -.6px; }
.cart-v2-header p { margin: 0; font-size: 15px; color: #c5c7cb; }
.cart-v2-header button { width: 44px; height: 44px; flex-shrink: 0; border: 1px solid #35373b; border-radius: 50%; background: #1b1d20; color: #f5f2e9; font-size: 25px; }
.cart-v2-content { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 20px 16px; }
.cart-v2-item { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 16px 12px; margin-bottom: 12px; border: 1px solid #303236; border-radius: 14px; background: #1b1d20; }
.cart-v2-photo { width: 72px; height: 92px; border-radius: 9px; background: #eeede9; display: flex; align-items: center; justify-content: center; overflow: hidden; text-decoration: none; color: #4a4a4a; }
.cart-v2-photo img { width: 100%; height: 100%; object-fit: contain; }
.cart-v2-photo span { padding: 6px; font-size: 12px; line-height: 1.4; text-align: center; }
.cart-v2-details { min-width: 0; }
.cart-upgraded .cart-v2-name { display: block; color: #f5f2e9; font-size: 16px; line-height: 1.4; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.cart-v2-unit { margin: 6px 0 12px; font-size: 15px; line-height: 1.4; color: #c5c7cb; }
.cart-v2-item-bottom { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; justify-content: space-between; }
.cart-v2-stepper { display: flex; min-height: 44px; border: 1px solid #4b4d52; border-radius: 9px; align-items: center; background: #111214; }
.cart-v2-stepper button { width: 44px; min-height: 44px; flex-shrink: 0; border: 0; background: transparent; color: #f5f2e9; font-size: 22px; border-radius: 8px; }
.cart-v2-quantity { min-width: 24px; text-align: center; color: #f5f2e9; font-size: 16px; font-variant-numeric: tabular-nums; }
.cart-upgraded .cart-v2-remove { border: 0; background: transparent; color: #c5c7cb; padding: 10px 0; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; font-size: 15px; }
.cart-v2-line { grid-column: 2; justify-self: end; color: #f5f2e9; font-size: 16px; font-variant-numeric: tabular-nums; }
.cart-v2-warning { font-size: 15px; color: #e5c578; line-height: 1.5; margin: 10px 0 0; }
.cart-upgraded .cart-v2-continue { display: block; min-height: 44px; margin: 8px auto 0; padding: 10px; background: transparent; border: 0; color: #c5c7cb; text-decoration: underline; text-underline-offset: 4px; font-size: 15px; }
.cart-v2-footer { flex-shrink: 0; padding: 20px 20px max(20px, env(safe-area-inset-bottom)); background: #1b1d20; border-top: 1px solid #35373b; }
.cart-v2-summary-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 14px; font-size: 16px; line-height: 1.4; }
.cart-v2-summary-row strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.cart-v2-delivery { color: #c5c7cb; font-size: 15px; }
#cart-checkout-note { margin: 20px 0 12px; color: #c5c7cb; font-size: 15px; line-height: 1.5; }
.cart-upgraded .cart-v2-checkout, .cart-upgraded .cart-v2-catalogue { display: block; width: 100%; min-height: 50px; padding: 14px 12px; border: 0; border-radius: 10px; background: #c8a457; color: #111214; font-size: 16px; font-weight: 700; text-align: center; text-decoration: none; box-shadow: none; white-space: normal; }
.cart-v2-feedback { flex-shrink: 0; margin: 0; padding: 12px 20px; background: #24231d; color: #f5f2e9; font-size: 15px; line-height: 1.5; max-height: 24dvh; overflow: auto; }
.cart-v2-feedback a { color: #e5c578; }
.cart-v2-empty { padding: 32px 8px; }
.cart-v2-empty h3 { color: #f5f2e9; font: 600 21px/1.4 Inter, sans-serif; }
.cart-v2-empty p { color: #c5c7cb; font-size: 16px; line-height: 1.6; margin: 16px 0 24px; }
.cart-v2-toast { position: fixed; z-index: 12000; top: calc(72px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: min(360px, calc(100% - 32px)); padding: 12px 16px; background: #1b1d20; border: 1px solid #5e5337; border-radius: 10px; color: #f5f2e9; font: 15px/1.5 Inter, sans-serif; box-shadow: 0 4px 18px #0005; }
.cart-v2-toast button { display: block; border: 0; background: transparent; color: #e5c578; font: inherit; min-height: 44px; text-decoration: underline; cursor: pointer; }
@media (min-width: 390px) { .cart-v2-item { grid-template-columns: 80px minmax(0, 1fr); padding: 16px; } .cart-v2-photo { width: 80px; height: 100px; } }
@media (max-height: 620px) { .cart-v2-header { padding-top: 12px; padding-bottom: 12px; } .cart-v2-footer { padding-top: 12px; } #cart-checkout-note { margin-top: 10px; } }
