/* Bag rows (drawer and /bag page), quantity stepper, totals, bag page layout. */

.wy-bag-row { display: block; padding: 20px 0; border-bottom: 1px solid var(--line); }
.wy-bag-product .wy-product-name { font-size: 14px; font-weight: 500; min-height: 0; margin-bottom: 6px; }
.wy-bag-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 13px; }
.wy-bag-controls > strong { margin-left: auto; font-size: 15px; }
.wy-quantity { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-pill); overflow: hidden; margin: 0; }
.wy-quantity button { min-width: 36px; min-height: 36px; font-size: 18px; }
.wy-quantity > span { min-width: 28px; text-align: center; font-size: 14px; }
.wy-bag-actions { flex-basis: 100%; display: flex; gap: 18px; justify-content: flex-end; }
.wy-bag-actions form { display: flex; margin: 0; }
.wy-bag-actions button { min-height: 30px; font-size: 12px; padding: 4px 0; }
.wy-bag-empty { color: var(--muted); line-height: 1.8; padding: 10px 0; }

.wy-bag-bottom { padding-top: 25px; }
.wy-bag-total { font-size: 20px; font-weight: 500; margin-bottom: 12px; }
.wy-bag-bottom > p { font-size: 13px; color: var(--muted); line-height: 1.8; }
.wy-bag-bottom > .wy-primary { width: 100%; margin-top: 20px; }
.wy-bag-bottom > .wy-copy-bag { display: flex; justify-content: center; width: 100%; margin: 4px 0; }
.wy-copy-fallback {
  display: block; width: 100%; padding: 12px; margin-top: 14px; min-height: 120px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-field); font: 12px/1.6 monospace;
}

/* standalone /bag page */
.wy-bag-page { padding: 42px 0 60px; }
.wy-bag-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.wy-bag-list { border-top: 1px solid var(--line); }
.wy-bag-summary { position: sticky; top: var(--header-offset); padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-guide); background: var(--surface); }
.wy-bag-summary > .wy-text-button:last-child { display: flex; justify-content: center; }

@media (max-width: 900px) {
  .wy-bag-layout { grid-template-columns: 1fr; gap: 28px; }
  .wy-bag-summary { position: static; }
}

@media (max-width: 650px) {
  .wy-bag-page { padding-top: 32px; }
}
