/* Cart drawer contents. */
.drawer__inner { display: flex; flex-direction: column; height: 100%; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--color-line); }
.drawer__head h2 { font-size: 20px; font-weight: 800; }
.drawer__head .muted { font-weight: 500; }

.ship-progress { padding: 16px 24px; background: var(--color-surface); font-size: 14px; }
.ship-progress p { display: flex; align-items: center; gap: 10px; color: var(--color-ink); }
.ship-progress .icon { width: 20px; height: 20px; color: var(--color-brand); }
.ship-progress__bar { height: 6px; margin-top: 10px; border-radius: 999px; background: var(--color-line); overflow: hidden; }
.ship-progress__bar span { display: block; height: 100%; border-radius: inherit; background: var(--color-success); transition: width .4s var(--ease); }

.drawer__lines { flex: 1; overflow-y: auto; padding: 8px 24px; }
.line { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--color-line); }
.line:last-child { border-bottom: 0; }
.line__media { aspect-ratio: 1 / 1; border-radius: var(--radius-sm); }
.line__body { display: grid; align-content: start; gap: 4px; }
.line__top { display: flex; justify-content: space-between; gap: 12px; }
.line__name { font-size: 15px; font-weight: 700; color: var(--color-ink); line-height: 1.35; }
.line__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.line__price { font-weight: 700; color: var(--color-ink); white-space: nowrap; }
.line__option { font-size: 13px; color: var(--color-muted); }
.line__actions { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }

.drawer__foot { display: grid; gap: 12px; padding: 20px 24px 24px; border-top: 1px solid var(--color-line); }
.summary-row { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.summary-row--strong { font-size: 17px; font-weight: 800; color: var(--color-ink); }

.empty-state--drawer { flex: 1; align-content: center; margin: 24px; }

.or-divider { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--color-muted); }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--color-line); }
.wa-note { margin-top: -4px; font-size: 13px; color: var(--color-muted); text-align: center; }

/* phones: tighter gutters and smaller thumbnails, so more of the item list stays visible above the checkout buttons */
@media (max-width: 600px) {
  .drawer__head { padding: 14px 16px; }
  .ship-progress { padding: 12px 16px; font-size: 13px; }
  .drawer__lines { padding: 4px 16px; }
  .line { grid-template-columns: 72px 1fr; gap: 12px; padding: 14px 0; }
  .drawer__foot { gap: 10px; padding: 14px 16px 16px; }
}
/* short phones: drop the secondary note under the WhatsApp button */
@media (max-width: 600px) and (max-height: 760px) {
  .drawer__foot .wa-note { display: none; }
}
