/* ==================================================================
   basket.cfm page-specific styles (Vue interaction chrome: row fade
   on remove, busy-state buttons, error pill, trade-price breakdown,
   discount box). Moved out of the injectcss <style> string in
   basket.cfm. The shared item/summary layout lives in
   css/basket.items.css, loaded alongside this.
   ================================================================== */
[v-cloak] { display: none; }

.basket-item.removing { opacity:0; transform:translateX(40px); transition: opacity .25s, transform .25s; pointer-events:none; }
.basket-item { transition: opacity .25s, transform .25s; }
.item-row-error { color:#c62828; font-size:12px; padding:4px 0; }

.basket-trade-price { line-height:1.4; }
.basket-trade-price strong { font-size:1.05em; color:#222; }
.basket-trade-price .muted { color:#666; font-size:.9em; }
.basket-trade-price .rrp { display:block; font-size:.85em; color:#777; }

/* Retail line under RRP (a live promotion, components/promotions.cfc):
   struck-through RRP + "Save N%" lozenge, same look as .price-compact-was /
   .price-compact-save on the product cards (css/price.display.css), then a
   quiet "You save £x - <promotion>" line so the saving reads on the part
   itself and not only in the summary's "Total saving vs RRP". */
.retail-line { line-height:1.4; }
.retail-line .muted { color:#666; font-size:.9em; }
.retail-was  { font-size:.85em; font-weight:400; color:#777; text-decoration:line-through; margin-left:6px; white-space:nowrap; }
.retail-save { display:inline-block; padding:1px 7px; background:#2e7d32; color:#fff; font-size:.75em; font-weight:700; border-radius:3px; margin-left:6px; vertical-align:1px; white-space:nowrap; }
.retail-saving { display:block; font-size:.8em; font-weight:600; color:#2e7d32; margin-top:2px; }

.quantity-btn[disabled], .submit-btn[disabled], .item-delete[disabled] { opacity:.5; cursor:not-allowed; }

.item-vehicle { display:block; font-size:1em; color:#777; margin-top:2px; }
.item-vehicle-reg { display:inline-block; padding:1px 6px; background:#FFD752 !important; border-radius:3px; font-family:monospace; color:#000; }

.basket-discount { margin:12px 0; }
.discount-entry { display:flex; gap:6px; }
.discount-entry input { flex:1; padding:8px 9px; border:1px solid #ccc; border-radius:4px; font-size:14px; }
.discount-entry button { padding:8px 14px; border:0; background:#222; color:#fff; border-radius:4px; cursor:pointer; }
.discount-entry button[disabled] { opacity:.5; cursor:not-allowed; }
.discount-applied { display:flex; justify-content:space-between; align-items:center; background:#f4f7f4; border:1px solid #cfe3cf; border-radius:4px; padding:8px 10px; font-size:14px; }
.discount-remove { border:0; background:none; color:#c62828; cursor:pointer; font-size:13px; text-decoration:underline; }
.discount-note { color:#2e7d32; font-size:13px; margin-top:4px; }
.discount-warning { color:#c62828; font-size:13px; margin-top:4px; }
