/* Cart presentation only. Native fields, delegated actions and checkout rules stay intact. */
#order.cart-drawer {
  --cart-ink: #182230;
  --cart-muted: #667181;
  --cart-line: #e4e9ef;
  --cart-blue: #3158ba;
  --cart-blue-soft: #edf2ff;
  --cart-head-height: 108px;
  width: min(620px, 100%) !important;
  gap: 0 !important;
  padding: var(--cart-head-height) 0 0 !important;
  border-left: 1px solid var(--cart-line) !important;
  background: #fff !important;
  color: var(--cart-ink);
  font-family: Arial, "Noto Sans Bengali", sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  scroll-padding: 104px 0 120px;
  scrollbar-width: thin;
  scrollbar-color: #bec8d4 transparent;
}
#order .cart-icon { display: inline-block; flex: 0 0 auto; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
/* Reveal-layer transforms would otherwise move the fixed header/footer with drawer scroll. */
body.cart-open #order.cart-drawer { transform: none !important; will-change: auto; }
#order .cart-drawer-head { position: fixed; top: 0; right: 0; z-index: 8; display: flex; width: min(620px, 100%); height: var(--cart-head-height); gap: 12px; padding: 18px 28px; border: 0; border-top: 3px solid var(--cart-blue); border-bottom: 1px solid var(--cart-line); border-radius: 0; background: #fff; box-shadow: 0 4px 14px #18223008; }
#order .cart-brand-mark { width: 42px; height: 42px; object-fit: contain; border: 1px solid var(--cart-line); border-radius: 8px; padding: 3px; background: #fff; }
#order .cart-drawer-title { flex: 1; min-width: 0; gap: 4px; }
#order .cart-drawer-title span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--cart-muted); font-size: 10px; line-height: 1.3; letter-spacing: 0; }
#order .cart-drawer-title strong { color: var(--cart-ink); font-size: 21px; line-height: 1.4; font-weight: 700; }
#order .cart-drawer-title em { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--cart-muted); font-size: 11px; font-weight: 400; line-height: 1.5; }
#order .cart-close { display: grid; place-items: center; width: 40px; min-width: 40px; height: 40px; padding: 0; border: 1px solid var(--cart-line); border-radius: 6px; background: #fff; color: var(--cart-ink); }
#order .cart-close:hover { background: #f3f5f8; }
#order .cart-alert { margin: 14px 28px 0; padding: 10px 12px; background: #edf8f1; color: #246347; border: 1px solid #d6eadc; border-radius: 6px; font-size: 12px; line-height: 1.6; }
#order .order-summary, #order .order-form { min-width: 0; gap: 18px; margin: 0; padding: 24px 28px; border: 0; border-radius: 0; background: #fff; box-shadow: none; }
#order .order-summary { display: grid; border-bottom: 1px solid var(--cart-line); }
#order .order-summary > .eyebrow, #order .order-summary > p, #order .cart-rule, #order .delivery-note { display: none; }
#order .cart-section-heading { display: flex; min-width: 0; align-items: center; gap: 10px; }
#order .cart-section-heading h2, #order .cart-section-heading h3, #order .cart-section-heading .field-title { margin: 0; color: var(--cart-ink); font-size: 16px; font-weight: 700; line-height: 1.5; letter-spacing: 0; overflow-wrap: anywhere; }
#order .cart-section-number { display: inline-grid; flex: 0 0 auto; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--cart-blue-soft); color: var(--cart-blue); font-size: 11px; font-weight: 700; line-height: 1; }
#order .cart-section-heading > .cart-icon { margin-left: auto; color: var(--cart-muted); }
#order .cart-premium-strip { display: flex; align-items: center; flex-wrap: nowrap; gap: 8px; margin: -4px 0 0; padding: 0; }
#order .cart-premium-strip > span { min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--cart-muted); font-size: 12px; line-height: 1.6; font-weight: 400; }
#order .cart-premium-strip .cart-icon { color: var(--brand-strong); }
#order .cart-items-panel { gap: 0; }
#order .cart-select-row { display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 0 0 14px; border: 0; border-bottom: 1px solid var(--cart-line); border-radius: 0; background: transparent; }
#order .cart-select-row label { color: var(--cart-muted); font-size: 12px; font-weight: 400; }
#order .cart-select-row input { width: 16px; min-height: 16px; height: 16px; margin: 0; accent-color: var(--brand); }
#order .cart-select-row em { color: var(--cart-muted); font-size: 11px; font-weight: 400; white-space: normal; text-align: right; }
#order .cart-item-card { grid-template-columns: 22px 90px minmax(0, 1fr) 32px; grid-template-areas: 'select photo body remove' 'select photo bottom bottom'; gap: 10px 12px; align-items: start; padding: 20px 0; border: 0; border-bottom: 1px solid var(--cart-line); border-radius: 0; background: #fff; box-shadow: none; }
#order .cart-item-card.is-unselected { opacity: 1; background: #f8fafc; }
#order .cart-select-control { grid-area: select; align-self: start; width: 22px; height: 32px; margin-top: 40px; }
#order .cart-select-control input { inset: 0; z-index: 1; width: 100%; height: 100%; min-height: 0; margin: 0; cursor: pointer; }
#order .cart-select-control span { width: 18px; height: 18px; border-radius: 4px; pointer-events: none; }
#order .cart-select-control input:focus-visible + span { outline: 2px solid var(--cart-blue); outline-offset: 4px; }
#order .cart-item-card > img { grid-area: photo; width: 90px; height: 112px; border: 1px solid #edf0f3; border-radius: 6px; background: #f7f9fb; object-fit: contain; }
#order .cart-item-card > div:not(.cart-item-bottom) { grid-area: body; gap: 6px; }
#order .cart-item-card span { color: var(--cart-muted); font-size: 10px; line-height: 1.4; font-weight: 500; letter-spacing: 0; }
#order .cart-item-card strong { display: block; overflow: visible; -webkit-line-clamp: unset; color: var(--cart-ink); font-size: 15px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
#order .cart-item-card p { color: var(--cart-muted); font-size: 11px; line-height: 1.7; font-weight: 400; overflow-wrap: anywhere; }
#order .cart-item-bottom { grid-area: bottom; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; margin: 0; }
#order .cart-item-bottom b { color: var(--cart-ink); font-size: 18px; line-height: 1.5; font-weight: 700; font-variant-numeric: tabular-nums; }
#order .cart-item-controls { display: grid; flex-shrink: 0; grid-template-columns: 32px 32px 32px; height: 34px; border: 1px solid var(--cart-line); border-radius: 6px; background: #fff; }
#order .cart-item-controls button, #order .cart-item-controls em { min-height: 32px; height: 32px; padding: 0; color: var(--cart-ink); font-size: 13px; font-weight: 600; }
#order .cart-item-controls em { border: 0; font-variant-numeric: tabular-nums; }
#order .cart-item-controls .cart-icon { width: 15px; height: 15px; }
#order .cart-item-controls button:hover { color: var(--cart-blue); background: var(--cart-blue-soft); }
#order .cart-remove { grid-area: remove; align-self: start; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 4px; color: #8b96a4; background: transparent; }
#order .cart-remove .cart-icon { width: 17px; height: 17px; }
#order .cart-remove:hover { background: #fff1f1; color: #b33b3b; }
#order .cart-mini-total { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 0; border: 0; }
#order .cart-mini-total > span { display: none; }
#order .cart-mini-total strong { justify-content: start; flex-wrap: wrap; gap: 8px 16px; font-weight: 400; }
#order .cart-mini-total strong span { color: var(--cart-muted); font-size: 12px; font-weight: 400; }
#order .cart-mini-total b { color: var(--cart-ink); font-size: 17px; font-weight: 700; }
#order .cart-mini-total button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 7px 0 7px 12px; border: 0; border-radius: 0; background: transparent; color: var(--cart-blue); font-size: 12px; font-weight: 600; }
#order .cart-mini-total button:hover { background: transparent; color: var(--brand-strong); }
#order .order-form { display: grid; padding-bottom: calc(112px + env(safe-area-inset-bottom)); scroll-margin-top: 110px; }
#order .order-block { gap: 12px; margin: 0; padding: 0 0 20px; border: 0; border-bottom: 1px solid var(--cart-line); border-radius: 0; background: transparent; }
#order .order-block[hidden] { display: none !important; }
#order .order-block > .field-title { font-size: 12px; font-weight: 500; color: var(--cart-muted); }
#order .option-grid, #order .color-options { gap: 8px; }
#order .color-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
#order .option-grid > :only-child { grid-column: 1 / -1; }
#order .option-chip, #order .color-chip, #order .delivery-card { position: relative; min-width: 0; }
#order .option-chip > input, #order .color-chip > input, #order .delivery-card > input { inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; pointer-events: auto; cursor: pointer; z-index: 1; }
#order .option-chip > span { min-height: 54px; gap: 5px; padding: 10px 12px; border-radius: 6px; box-shadow: none; }
#order .size-option-chip strong { font-size: 13px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
#order .size-option-chip em { font-size: 12px; font-weight: 500; line-height: 1.5; }
#order .color-chip { min-height: 42px; gap: 6px; padding: 8px; border-radius: 6px; box-shadow: none; }
#order .color-chip em { min-width: 0; font-size: 11px; font-weight: 500; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
#order .color-chip .swatch { flex: 0 0 15px; width: 15px; min-height: 15px; height: 15px; padding: 0; }
#order .delivery-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#order .delivery-card { min-width: 0; }
#order .delivery-card > span { display: grid; align-content: center; gap: 5px; min-height: 82px; padding: 14px; border: 1px solid var(--cart-line); border-radius: 6px; background: #fff; box-shadow: none; }
#order .delivery-card strong { color: var(--cart-ink); font-size: 13px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
#order .delivery-card em { color: var(--cart-muted); font-size: 13px; font-weight: 400; }
#order .delivery-card input:checked + span { border-color: var(--brand); background: #f1f8f5; box-shadow: inset 0 0 0 1px var(--brand); }
#order .delivery-card input:checked + span em { color: var(--brand-strong); }
#order .cart-address-heading { margin: 0; }
#order .customer-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
#order .customer-fields .full-field { grid-column: 1 / -1; }
#order .customer-fields label { min-width: 0; gap: 8px; color: var(--cart-ink); font-size: 12px; font-weight: 500; }
#order .customer-fields label > span, #order .customer-fields label > span > span { font-size: 12px; font-weight: 500; line-height: 1.5; }
#order .cart-field-label { display: flex; align-items: center; gap: 7px; }
#order .cart-field-label .cart-icon { color: #8996a7; width: 15px; height: 15px; }
#order .customer-fields input, #order .customer-fields textarea { min-width: 0; width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #dce2ea; border-radius: 6px; color: var(--cart-ink); background: #fff; font-size: 16px; line-height: 1.6; font-weight: 400; box-shadow: 0 1px 2px #18223003; }
#order .customer-fields input::placeholder, #order .customer-fields textarea::placeholder { color: #9aa3af; font-size: 13px; }
#order .customer-fields textarea { resize: vertical; }
#order .customer-fields input:focus, #order .customer-fields textarea:focus { outline: 0; border-color: var(--cart-blue); box-shadow: 0 0 0 3px #3158ba12; }
#order .checkout-total-card { display: grid; gap: 16px; margin-top: 4px; padding: 20px; overflow: visible; border: 1px solid var(--cart-line); border-radius: 8px; background: #f8fafc; box-shadow: none; }
#order .cart-receipt-heading { display: flex; align-items: center; gap: 9px; color: var(--cart-ink); font-size: 14px; }
#order .cart-receipt-heading .cart-section-number { background: #e7edf5; color: #52647a; }
#order .cart-receipt-caption { margin-left: auto; color: #8a6b1b; font-size: 10px; font-weight: 700; }
#order .checkout-total-meta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 11px; background: transparent; }
#order .checkout-total-meta > span { display: flex; align-items: start; gap: 16px; padding: 0; border: 0; background: transparent; }
#order .checkout-total-meta em { color: var(--cart-muted); font-size: 12px; font-style: normal; font-weight: 400; }
#order .checkout-total-meta strong { max-width: 65%; color: var(--cart-ink); font-size: 13px; line-height: 1.6; font-weight: 500; text-align: right; white-space: normal; overflow-wrap: anywhere; }
#order .checkout-total-final { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; padding: 15px 0 0; border-top: 1px dashed #cdd6e1; background: transparent; color: var(--cart-ink); }
#order .checkout-total-final span { color: var(--cart-ink); font-size: 13px; font-weight: 600; }
#order .checkout-total-final strong { color: var(--cart-ink); font-size: 26px; line-height: 1.3; font-weight: 700; font-variant-numeric: tabular-nums; }
#order .form-message { margin: 0; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
#order .form-message:empty { display: none; }
#order .checkout-recovery { justify-content: start; padding: 14px; border: 1px solid #efc7bf; border-radius: 6px; font-size: 12px; }
#order .checkout-action-row { position: fixed; right: 0; bottom: 0; z-index: 6; display: grid; width: min(620px, 100%); grid-template-columns: minmax(100px, 1fr) minmax(0, 1.4fr); gap: 16px; align-items: center; margin: 0; padding: 14px 28px max(16px, env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--cart-line); border-radius: 0; background: #fff; box-shadow: 0 -8px 24px #18223006; backdrop-filter: none; }
#order .cart-payable { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 8px; }
#order .cart-payable > span { color: var(--cart-muted); font-size: 10px; line-height: 1.5; }
#order .cart-payable strong { grid-column: 1 / -1; grid-row: 2; color: var(--cart-ink); font-size: 24px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#order .cart-payable small { color: #90721f; font-size: 9px; font-weight: 700; text-align: right; }
#order .checkout-action-row .btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-width: 0; min-height: 50px; padding: 12px; border: 0; border-radius: 6px; color: #fff; background: var(--brand-strong); box-shadow: none; font-size: 15px; font-weight: 600; line-height: 1.6; white-space: normal; overflow-wrap: anywhere; }
#order .checkout-action-row .btn:disabled { opacity: .65; cursor: wait; }
#order button:focus-visible, #order .delivery-card input:focus-visible + span { outline: 2px solid var(--cart-blue); outline-offset: 3px; }
#order.cart-is-empty .order-form, #order.cart-is-empty .cart-mini-total, #order.cart-is-empty .cart-section-heading, #order.cart-is-empty .cart-premium-strip { display: none; }
#order .cart-empty-state { display: grid; justify-items: center; gap: 12px; padding: 56px 8px 64px; border: 0; border-radius: 0; background: transparent; text-align: center; }
#order .cart-empty-state > .cart-icon { width: 52px; height: 52px; margin-bottom: 12px; color: #a8b7cf; stroke-width: 1.2; }
#order .cart-empty-state strong { color: var(--cart-ink); font-size: 19px; font-weight: 600; line-height: 1.5; }
#order .cart-empty-state span { color: var(--cart-muted); font-size: 13px; line-height: 1.7; font-weight: 400; }
#order .cart-empty-browse { display: inline-flex; align-items: center; gap: 14px; margin-top: 14px; padding: 12px 18px; border: 1px solid var(--cart-line); border-radius: 6px; color: var(--cart-ink); background: #fff; font-size: 13px; cursor: pointer; }
@media (max-width: 520px) {
  #order.cart-drawer { --cart-head-height: 96px; }
  #order .cart-drawer-head { padding: 14px 20px; }
  #order .order-summary, #order .order-form { padding: 20px; }
  #order .order-form { padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
  #order .cart-alert { margin: 12px 20px 0; }
  #order .cart-drawer-title strong { font-size: 19px; }
  #order .cart-item-card { grid-template-columns: 20px 72px minmax(0, 1fr) 28px; gap: 9px; }
  #order .cart-item-card > img { width: 72px; height: 96px; }
  #order .cart-select-control { margin-top: 32px; }
  #order .cart-item-card strong { font-size: 14px; }
  #order .cart-item-bottom b { font-size: 17px; }
  #order .cart-remove { width: 28px; height: 30px; }
  #order .customer-fields { grid-template-columns: minmax(0, 1fr); }
  #order .delivery-options { gap: 8px; }
  #order .delivery-card > span { padding: 12px; }
  #order .checkout-total-card { padding: 16px; }
  #order .checkout-action-row { grid-template-columns: minmax(90px, .8fr) minmax(0, 1.2fr); gap: 12px; padding: 12px 20px max(14px, env(safe-area-inset-bottom)); }
  #order .checkout-action-row .btn { font-size: 13px; }
  #order .cart-payable strong { font-size: 22px; }
}
@media (max-width: 350px) {
  #order .cart-item-card { grid-template-columns: 20px 60px minmax(0, 1fr) 28px; gap: 8px; }
  #order .cart-item-card > img { width: 60px; height: 82px; }
  #order .cart-select-control { margin-top: 25px; }
  #order .cart-item-controls { grid-template-columns: 28px 28px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  #order.cart-drawer { transition: none !important; }
}
