/* MYV sandbox redesign, Nov 2026: basket pages. Loaded after myv-design-fixes.css (see template/head.php). */

/* =====================================================================================================
   Page edge (basket, checkout, order placed): the body already gives the 16px phone / 24px desktop gutter,
   so these wrappers add no side padding and are not centred narrower — the left edge lines up with the
   breadcrumb, header and footer like the list and product pages.
   ===================================================================================================== */
html body main.myv-co { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
html body main.myv-co [hidden], html body .myv-op[hidden] { display: none !important; }

/* =====================================================================================================
   BASKET — design "Basket 1" (agreed Nov 2026, cart_view.php): lines grouped by product on the left,
   1 Deliver to / 2 Delivery / 3 Summary on the right (420px). One column below 992px; phones show the
   first 4 lines, then "View more". Uses the checkout's .myv-co-* pieces for cards, options and totals.
   ===================================================================================================== */
html body .myv-bk-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 8px 0 16px; }
html body .myv-bk-title p { margin: 4px 0 0; font-size: 14px; color: #667068; }
html body .myv-bk-clear { flex: none; padding: 0; border: 0; background: none; font-family: inherit; font-size: 14px; font-weight: 600; color: #667068; text-decoration: underline; cursor: pointer; }
html body .myv-bk-clear:hover { color: #C62828; }
html body .myv-bk-grid .myv-co-left { gap: 14px; }

/* Free-delivery bar (top of the list and in the summary) */
html body .myv-bk-free { padding: 12px 14px; border-radius: 10px; background: #E8F4E9; }
html body .myv-bk-free-text { margin-bottom: 8px; font-size: 14px; font-weight: 600; line-height: 19px; color: #1F3F21; }
html body .myv-bk-free-bar { height: 8px; border-radius: 4px; background: #CFE3D1; overflow: hidden; }
html body .myv-bk-free-bar span { display: block; height: 100%; width: 0; border-radius: 4px; background: #5C9A62; transition: width .3s; }
html body .myv-bk-free.is-free .myv-bk-free-bar span { background: #2E6430; }

/* Product groups */
html body .myv-bk-groups { display: flex; flex-direction: column; gap: 14px; }
html body .myv-bk-group { background: #FFFFFF; border: 1px solid #E2E7E3; border-radius: 12px; overflow: hidden; }
html body .myv-bk-group-head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: #FAFBFA; }
html body .myv-bk-thumb { flex: none; width: 56px; height: 56px; box-sizing: border-box; border: 1px solid #E2E7E3; border-radius: 8px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; overflow: hidden; }
html body .myv-bk-thumb img { max-width: 86%; max-height: 86%; object-fit: contain; }
html body .myv-bk-group-info { flex: 1; min-width: 0; }
html body .myv-bk h2.myv-bk-name { margin: 0; font-family: inherit !important; font-size: 16px !important; line-height: 20px !important; font-weight: 700 !important; color: #1B211C !important; text-transform: none !important; }
html body .myv-bk-price { margin-top: 2px; font-size: 13px; color: #667068; }
html body .myv-bk-group-sum { flex: none; text-align: right; }
html body .myv-bk-group-sum b { display: block; font-size: 17px; font-weight: 700; color: #1B211C; }
html body .myv-bk-group-sum span { display: block; font-size: 12px; color: #667068; }

/* Flavour lines */
html body .myv-bk-row { display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 8px 18px 8px 88px; border-top: 1px solid #EEF0F0; }
html body .myv-bk-row-info { flex: 1; min-width: 0; }
html body .myv-bk-flavour { font-size: 15px; font-weight: 600; line-height: 19px; color: #1B211C; }
html body .myv-bk-stock { font-size: 12px; font-weight: 600; line-height: 16px; }
html body .myv-bk-stock.is-in { color: #2E6430; }
html body .myv-bk-stock.is-low { color: #B26A00; }
html body .myv-bk-stock.is-out { color: #C62828; }
html body .myv-bk-line-total { flex: none; width: 90px; text-align: right; font-size: 16px; font-weight: 700; color: #1B211C; }
html body .myv-bk-row.is-out :is(.myv-bk-flavour, .myv-bk-line-total) { opacity: .5; }
html body .myv-bk-remove { flex: none; width: 100px; height: 32px; box-sizing: border-box; padding: 0; border: 1px solid #CBD2D6; border-radius: 16px; background: #FFFFFF; font-family: inherit; font-size: 13px; font-weight: 600; color: #1B211C; cursor: pointer; touch-action: manipulation; }
html body .myv-bk-remove:hover { border-color: #C62828; color: #C62828; }
/* The agreed stepper (rules for .quantity-controls_cart in myv-design-fixes.css); + fades at the stock limit. */
html body .myv-bk .quantity-controls_cart { flex: none; }
html body .myv-bk .quantity-controls_cart .quantity-btn_cart.is-max { opacity: .35; }
html body .myv-bk .quantity-controls_cart .quantity-btn_cart svg { display: block; }

/* Phones: "View more (N more)" / "View less" under the first 4 lines */
html body .myv-bk-more { display: none; }

/* Right column: one card, three numbered sections */
html body .myv-bk-side { padding: 0; }
html body .myv-bk-sec { padding: 18px 20px; }
html body .myv-bk-sec + .myv-bk-sec { border-top: 1px solid #EEF0F0; }
html body .myv-bk-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
html body .myv-bk-sec-head .myv-co-head { margin-bottom: 0; }
html body .myv-bk-link { padding: 0; border: 0; background: none; font-family: inherit; font-size: 14px; font-weight: 600; color: #2E6430; text-decoration: underline; cursor: pointer; }
html body .myv-bk-addr { font-size: 14px; line-height: 21px; color: #1B211C; }
html body .myv-bk-addr b { font-size: 15px; }
html body .myv-bk-addr span, html body .myv-bk-addr small { display: block; }
html body .myv-bk-addr small { font-size: 14px; color: #667068; }
html body .myv-bk-addr .myv-co-muted { display: inline; }
html body .myv-co-addrs.myv-bk-addrs { grid-template-columns: minmax(0, 1fr); }
html body .myv-bk-sum { display: flex; flex-direction: column; gap: 14px; }
html body .myv-bk-sum .myv-co-head { margin-bottom: 0; }

/* Empty basket, and the log-in card for visitors */
html body .myv-bk-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 16px; text-align: center; border-style: dashed; border-color: #CBD2D6; }
html body .myv-bk-empty p { margin: 0; font-size: 15px; color: #667068; }
html body .myv-bk-empty-icon { width: 56px; height: 56px; margin-bottom: 4px; border-radius: 50%; background: #E8F4E9; display: flex; align-items: center; justify-content: center; }
html body .myv-bk-empty-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
html body .myv-bk-empty-btns .myv-co-btn { min-width: 180px; }

@media (max-width: 991.98px) {
  html body .myv-bk-grid { gap: 12px; }
}
@media (max-width: 767.98px) {
  html body .myv-bk-groups { gap: 12px; }
  html body .myv-bk-group-head { gap: 12px; padding: 12px 14px; }
  html body .myv-bk-thumb { width: 48px; height: 48px; }
  html body .myv-bk h2.myv-bk-name { font-size: 15px !important; }
  html body .myv-bk-row { gap: 10px; padding: 8px 14px; }
  html body .myv-bk-flavour { font-size: 14px; }
  html body .myv-bk-line-total { width: 64px; font-size: 15px; }
  html body .myv-bk-groups.is-collapsed .is-extra { display: none !important; }
  html body .myv-bk-more:not([hidden]) { display: block; width: 100%; height: 44px; border: 1.5px solid #2E6430; border-radius: 8px; background: #FFFFFF; font-family: inherit; font-size: 15px; font-weight: 600; color: #2E6430; cursor: pointer; }
  html body .myv-bk-sec { padding: 16px; }
  html body .myv-bk-empty { padding: 36px 16px; }
  html body .myv-bk-empty-btns { flex-direction: column; align-self: stretch; }
  html body .myv-bk-empty-btns .myv-co-btn { width: 100%; }
}

/* =====================================================================================================
   ORDER PLACED — design "Order placed 1" (agreed Nov 2026, template/order_placed.php), used by the
   basket page and the checkout page after the order is saved.
   ===================================================================================================== */
html body .myv-op { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; font-family: 'Figtree', 'Inter', Arial, sans-serif; color: #1B211C; }
html body .myv-op-top { padding: 16px 0 8px; text-align: center; }
html body .myv-op-tick { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: #2E6430; display: flex; align-items: center; justify-content: center; }
html body .myv-op h1.myv-op-h1 { margin: 0; font-family: inherit !important; font-size: 30px !important; line-height: 1.25 !important; font-weight: 700 !important; color: #1B211C !important; text-transform: none !important; }
html body .myv-op h1.myv-op-h1:focus { outline: none; }
html body .myv-op-meta { margin: 6px 0 0; font-size: 15px; color: #667068; }
html body .myv-op-meta b { color: #1B211C; }
html body .myv-op-btns { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }
html body .myv-op-btns .myv-co-btn { width: 220px; }
html body .myv-op-card { background: #FFFFFF; border: 1px solid #E2E7E3; border-radius: 12px; padding: 20px; }
html body .myv-op h2.myv-op-h2 { margin: 0 0 14px; font-family: inherit !important; font-size: 18px !important; line-height: 24px !important; font-weight: 700 !important; color: #42474C !important; text-transform: none !important; }
html body .myv-op-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
html body .myv-op-steps li { display: flex; align-items: flex-start; gap: 12px; }
html body .myv-op-n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #E8F4E9; color: #1F3F21; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
html body .myv-op-steps b { display: block; font-size: 15px; font-weight: 700; }
html body .myv-op-steps span:not(.myv-op-n) { display: block; margin-top: 2px; font-size: 13px; line-height: 18px; color: #667068; }
html body .myv-op-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
html body .myv-op-addr { font-size: 14px; line-height: 21px; }
html body .myv-op-addr span, html body .myv-op-addr small { display: block; }
html body .myv-op-addr small { font-size: 14px; color: #667068; }
html body .myv-op-method { margin-top: 10px; padding-top: 10px; border-top: 1px solid #EEF0F0; font-size: 14px; color: #42474C; }
html body .myv-op-items-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
html body .myv-op-items-head h2.myv-op-h2 { margin-bottom: 0; }
html body .myv-op-items-head span { font-size: 13px; color: #667068; }
html body .myv-op-lines { margin-top: 10px; }
html body .myv-op-line { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #EEF0F0; }
html body .myv-op-thumb { flex: none; width: 48px; height: 48px; box-sizing: border-box; border: 1px solid #E2E7E3; border-radius: 8px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; overflow: hidden; }
html body .myv-op-thumb img { max-width: 86%; max-height: 86%; object-fit: contain; }
html body .myv-op-line-info { flex: 1; min-width: 0; }
html body .myv-op-line-name { font-size: 14px; font-weight: 700; line-height: 18px; }
html body .myv-op-line-sub { font-size: 13px; color: #667068; }
html body .myv-op-line-total { flex: none; font-size: 15px; font-weight: 700; }
@media (max-width: 767.98px) {
  html body .myv-op h1.myv-op-h1 { font-size: 24px !important; }
  html body .myv-op-btns { display: grid; grid-template-columns: 1fr; }
  html body .myv-op-btns .myv-co-btn { width: 100%; }
  html body .myv-op-steps, html body .myv-op-two { grid-template-columns: minmax(0, 1fr); }
  html body .myv-op-card { padding: 16px; }
}
