/* Cart page (Plan I, mockup v3/cart.html + the cart rules in v3/checkout.css). Loaded on the cart page only. */
.stp-cart { padding-top: 28px; padding-bottom: var(--stp-sec, 64px); }
.stp-cart .stp-card { background: var(--stp-surface); border: 1px solid var(--stp-line); border-radius: var(--stp-r-lg); box-shadow: var(--stp-shadow); }
.stp-cart h1 { margin: 0 0 22px; font-size: 32px; font-weight: 780; letter-spacing: -.025em; line-height: 1.1; color: var(--stp-ink); }
.stp-cart-notices .woocommerce-message, .stp-cart-notices .woocommerce-info, .stp-cart-notices .woocommerce-error { margin: 0 0 18px; }
.stp-cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
.stp-cart-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.stp-cart-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }

/* Part line */
.stp-cl { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px; }
.stp-cl-img { position: relative; display: block; width: 120px; height: 96px; border-radius: var(--stp-r); overflow: hidden; background: var(--stp-surface-2); }
.stp-cl-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stp-cl-img .stp-nophoto { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 11px; color: var(--stp-muted); text-align: center; }
.stp-cl-img .stp-nophoto .stp-i { color: #b3b0a8; }
.stp-cl-main { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.stp-cl-t { font-size: 16px; font-weight: 650; line-height: 1.3; color: var(--stp-ink); text-decoration: none; }
a.stp-cl-t:hover { text-decoration: underline; color: var(--stp-ink); }
.stp-cl-m { font-size: 13px; color: var(--stp-muted); }
.stp-cl-ship { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--stp-muted); }
.stp-cl-ship.is-ship { color: var(--stp-ok-text); }
.stp-cl-data { font-size: 12.5px; color: var(--stp-muted); }
.stp-cl-data dl { margin: 0; } .stp-cl-data dt, .stp-cl-data dd { display: inline; margin: 0; } .stp-cl-data p { display: inline; margin: 0; }
.stp-cl-fit:empty { display: none; }
/* fit.js pill, inline here (on cards it sits over the photo) */
.stp-cl-fit .stp-fitb { position: static; max-width: none; padding: 3px 10px 3px 6px; border-radius: 999px; background: var(--stp-ok-soft);
  color: var(--stp-ok-text); font-size: 12.5px; font-weight: 650; box-shadow: none; border: 0; }
.stp-cl-fit .stp-fitb.is-no { background: var(--stp-surface-2); color: var(--stp-muted); }
.stp-cl-r { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 4px; align-self: stretch; }
.stp-cl-price { font-size: 18px; font-weight: 750; color: var(--stp-ink); white-space: nowrap; }
.stp-cl-x { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--stp-muted); text-decoration: none; }
.stp-cl-x:hover { color: var(--stp-red); }
.stp-cart-back { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; margin-top: 4px; font-size: 14.5px; font-weight: 650;
  color: var(--stp-ink); text-decoration: none; border-bottom: 1.5px solid var(--stp-yellow); }
.stp-cart-back:hover { color: var(--stp-ink); border-bottom-color: var(--stp-ink); }

/* Order summary */
.stp-sum { padding: 22px; }
.stp-sum h2 { margin: 0 0 12px; font-size: 18px; font-weight: 720; color: var(--stp-ink); }
.stp-sum dl { margin: 0 0 16px; }
.stp-sum dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 14.5px; border-bottom: 1px solid var(--stp-line); }
.stp-sum dt { color: var(--stp-ink-2); }
.stp-sum dd { margin: 0; color: var(--stp-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.stp-sum .stp-est { color: var(--stp-muted); font-size: 13px; }
.stp-sum .stp-free { color: var(--stp-ok-text); font-weight: 650; }
.stp-sum .stp-sum-tot { border-bottom: 0; padding-top: 12px; align-items: baseline; }
.stp-sum .stp-sum-tot dt { font-weight: 700; font-size: 16px; color: var(--stp-ink); }
.stp-sum .stp-sum-tot dd { font-size: 22px; font-weight: 780; }
.stp-sum-note { margin: -6px 0 14px; font-size: 13px; line-height: 1.5; color: var(--stp-muted); }
.stp-sum .stp-sum-go { width: 100%; gap: 8px; text-decoration: none; }
.stp-sum-assure { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--stp-line); display: flex; flex-direction: column; gap: 12px; }
.stp-sum-assure li { display: flex; gap: 10px; font-size: 13px; color: var(--stp-muted); }
.stp-sum-assure .stp-i { flex: none; margin-top: 1px; color: var(--stp-ink); }
.stp-sum-assure span { display: flex; flex-direction: column; }
.stp-sum-assure b { font-size: 13.5px; color: var(--stp-ink); }
.stp-sum-assure a { align-self: flex-start; color: var(--stp-ink); text-decoration: underline; text-decoration-color: var(--stp-yellow); text-underline-offset: 3px; }
.stp-sum-help { margin: 0; text-align: center; font-size: 13.5px; color: var(--stp-muted); }
.stp-sum-help a { color: var(--stp-ink); font-weight: 650; text-decoration: none; border-bottom: 1.5px solid var(--stp-yellow); }
.stp-sum-help [data-stp-reveal] .stp-post { display: none; }
.stp-sum-help [data-stp-reveal].is-revealed .stp-pre { display: none; }
.stp-sum-help [data-stp-reveal].is-revealed .stp-post { display: inline; }

/* Empty cart */
.stp-cart-empty { max-width: 560px; padding: 36px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.stp-cart-empty > .stp-i { width: 34px; height: 34px; color: var(--stp-muted); }
.stp-cart-empty h2 { margin: 6px 0 0; font-size: 22px; font-weight: 750; color: var(--stp-ink); }
.stp-cart-empty p { margin: 0 0 10px; color: var(--stp-muted); }
.stp-cart-empty-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.stp-cart-empty-btns .stp-btn { height: 46px; text-decoration: none; }

@media (max-width: 980px) {
  .stp-cart-grid { grid-template-columns: minmax(0, 1fr); }
  .stp-cart-side { position: static; }
}
@media (max-width: 600px) {
  .stp-cart { padding-top: 20px; }
  .stp-cart h1 { font-size: 26px; margin-bottom: 16px; }
  .stp-cl { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: start; }
  .stp-cl-img { width: 88px; height: 72px; }
  .stp-cl-r { grid-column: 2; flex-direction: row; align-items: center; }
  .stp-sum { padding: 20px 18px; }
}

/* Delivery estimate (Matt 2026-10-07) */
.stp-est-form { margin: 4px 0 14px; padding: 14px; border-radius: var(--stp-r); background: var(--stp-surface-2); border: 1px solid var(--stp-line); }
.stp-est-h { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--stp-ink); }
.stp-est-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 8px; }
.stp-est-row select, .stp-est-row input { height: 42px; padding: 0 10px; border-radius: var(--stp-r-sm); border: 1px solid var(--stp-line-strong); background: #fff; font: inherit; font-size: 15px; min-width: 0; }
.stp-est-row .stp-btn { height: 42px !important; min-height: 0 !important; padding: 0 14px !important; white-space: nowrap; }
.stp-est-list { list-style: none; margin: 0 0 6px; padding: 0; }
.stp-est-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 14px; border-bottom: 1px dashed var(--stp-line); }
.stp-est-list li b { white-space: nowrap; }
.stp-est-note, .stp-est-none { margin: 0 0 14px; font-size: 12.5px; color: var(--stp-muted); }

.stp-est-pick { margin: 0; }
.stp-est-list label { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: start; width: 100%; cursor: pointer; }
.stp-est-list input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--stp-ink); }
.stp-est-list li:has(input:checked) { font-weight: 650; color: var(--stp-ink); }
/* Checkout button hover: darken, keep the black text (a:hover would turn it yellow) */
.stp-cart a.stp-sum-go:hover, .stp-cart a.stp-sum-go:focus { color: var(--stp-ink); background: var(--stp-yellow); filter: brightness(.94); }
