/* A separate cart preview; delivery details stay on the checkout page. */
.ecwid-storefront #cartDrawer {
  width: min(480px, calc(100vw - 28px));
  height: 100vh;
  height: 100dvh;
  padding: 0;
  background: var(--bg, #f8f5f1);
  box-shadow: none;
  text-align: start;
}
.ecwid-storefront #cartDrawer .cart-head {
  align-items: center;
  padding: 18px 24px;
  flex-shrink: 0;
}
.ecwid-storefront #cartDrawer .cart-head .eyebrow { display: none; }
.ecwid-storefront #cartDrawer .cart-head h2 {
  margin: 0;
  font-family: inherit;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -.03em;
}
.ecwid-storefront #cartDrawer .close-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  flex-shrink: 0;
}
.ecwid-storefront #cartDrawer .cart-items {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 24px;
  overscroll-behavior: contain;
  overflow-y: auto;
}
.ecwid-storefront #cartDrawer .cart-item {
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px 20px;
  padding: 24px 0;
  align-items: start;
}
.ecwid-storefront #cartDrawer .cart-thumb {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 80px;
  height: 104px;
  background: transparent;
}
.ecwid-storefront #cartDrawer .cart-thumb img { object-fit: contain; }
.ecwid-storefront #cartDrawer .cart-item-details h3 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: none;
  overflow-wrap: anywhere;
  margin: 0 0 8px;
}
.ecwid-storefront #cartDrawer .once-cart-unit-price {
  font-size: 15px;
  color: var(--ink, #111);
}
.ecwid-storefront #cartDrawer .once-cart-options {
  font-size: 12px;
  line-height: 1.6;
  margin-block: 8px;
  color: var(--muted, #706b64);
  overflow-wrap: anywhere;
}
.ecwid-storefront #cartDrawer .cart-item-controls {
  grid-column: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ecwid-storefront #cartDrawer .cart-quantity { direction: ltr; }
.ecwid-storefront #cartDrawer .cart-quantity button {
  width: 40px;
  min-width: 40px;
  min-height: 44px;
  font-size: 20px;
  padding: 0;
}
.ecwid-storefront #cartDrawer .cart-quantity output { font-size: 14px; }
.ecwid-storefront #cartDrawer .remove-item {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
}
.ecwid-storefront #cartDrawer .remove-item svg { width: 20px; height: 20px; }
.ecwid-storefront #cartDrawer .cart-footer {
  flex-shrink: 0;
  padding: 20px 24px max(20px, env(safe-area-inset-bottom));
}
.ecwid-storefront #cartDrawer .subtotal {
  gap: 16px;
  align-items: baseline;
  font-size: 18px;
  font-weight: 500;
}
.ecwid-storefront #cartDrawer #subtotal { white-space: nowrap; font-weight: 500; }
.ecwid-storefront #cartDrawer .cart-footer > p { font-size: 12px; line-height: 1.5; }
.ecwid-storefront #cartDrawer :is(#continueShopping, #checkoutBtn) {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .08em;
}
.ecwid-storefront #cartDrawer #continueShopping { margin: 16px 0 10px; }
.ecwid-storefront #cartDrawer #paymentNotice { margin-bottom: 0; }
.ecwid-storefront #cartDrawer .cart-empty {
  flex: 1 1 auto;
  padding: 32px 24px;
  line-height: 1.6;
}
.ecwid-storefront #cartDrawer :is(.commerce-notice, .cart-retry) { margin: 12px 24px; }
.ecwid-storefront #cartDrawer button:disabled { opacity: .45; cursor: not-allowed; }
.ecwid-storefront #cartDrawer button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.ecwid-storefront #overlay { background: rgb(17 17 17 / 45%); }
html[lang="ar"] .ecwid-storefront #cartDrawer :is(h2, #continueShopping, #checkoutBtn) { letter-spacing: 0; }
@media (max-width: 420px) {
  .ecwid-storefront #cartDrawer :is(.cart-head, .cart-footer) { padding-inline: 18px; }
  .ecwid-storefront #cartDrawer .cart-items { padding-inline: 18px; }
  .ecwid-storefront #cartDrawer .cart-head h2 { font-size: 21px; }
  .ecwid-storefront #cartDrawer .cart-item { grid-template-columns: 64px minmax(0, 1fr); gap: 10px 12px; }
  .ecwid-storefront #cartDrawer .cart-thumb { width: 64px; height: 90px; }
  .ecwid-storefront #cartDrawer .cart-quantity button { width: 36px; min-width: 36px; }
  .ecwid-storefront #cartDrawer .subtotal { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .ecwid-storefront :is(#cartDrawer, #overlay) { transition: none; }
}
