/* === P4: basket (V5 p9 Review & basket, p11 empty basket) === */
.bbj-basket {
  --bbj-orange: #e94c00;
  --bbj-orange-dark: #c23f00;
  --bbj-ink: #111;
  --bbj-muted: #5c5c5c;
  --bbj-line: #e3e3e3;
  --bbj-soft: #f4f4f4;
  color: var(--bbj-ink);
  max-width: 1140px;
  margin: 0 auto 32px;
  box-sizing: border-box;
}
.bbj-basket *, .bbj-basket *::before, .bbj-basket *::after { box-sizing: border-box; }
.bbj-basket a { color: inherit; }

.bbj-basket__crumbs { font-size: 13px; color: var(--bbj-muted); margin: 8px 0 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.bbj-basket__crumbs a { color: var(--bbj-ink) !important; text-decoration: underline !important; }

.bbj-basket__steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(var(--bbj-steps, 6), 1fr); background: var(--bbj-ink); }
.bbj-basket__steps li { margin: 0; border-right: 1px solid #333; }
.bbj-basket__steps li:last-child { border-right: 0; }
.bbj-basket__steps a, .bbj-basket__steps li > span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 10px; color: #fff; text-decoration: none; font-size: 13px; line-height: 1.2; text-align: center; }
.bbj-basket__steps a:hover, .bbj-basket__steps a:focus-visible { background: #2a2a2a; }
.bbj-basket__steps .is-current > span { background: var(--bbj-orange); font-weight: 700; }
.bbj-basket__steps--neutral { grid-template-columns: repeat(3, 1fr); }
.bbj-basket__num { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 24px; height: 24px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 12px; }

.bbj-basket__title { font-size: clamp(30px, 4vw, 42px); line-height: 1.1; font-weight: 800; margin: 0 0 6px; color: var(--bbj-ink); letter-spacing: -0.01em; }
.bbj-basket__intro { margin: 0 0 20px; font-size: 16px; }

/* Configuration block */
.bbj-config { display: grid; grid-template-columns: 220px 1fr; gap: 24px; border: 1px solid var(--bbj-line); border-radius: 4px; padding: 20px; margin: 0 0 16px; background: #fff; }
.bbj-config__product { border-right: 1px solid var(--bbj-line); padding-right: 20px; }
.bbj-config__img img { display: block; width: 100%; height: auto; max-width: 200px; margin: 0 auto 16px; }
.bbj-config__name { font-size: 20px; line-height: 1.25; margin: 0 0 4px; font-weight: 700; color: var(--bbj-ink); }
.bbj-config__car { margin: 0; color: var(--bbj-muted); font-size: 14px; }

.bbj-config__problems { border-left: 4px solid var(--bbj-orange); background: #fff4ee; padding: 10px 14px; margin: 0 0 14px; font-size: 14px; }
.bbj-config__problems p { margin: 0 0 4px; }
.bbj-config__problems p:last-child { margin: 0; }

.bbj-config__rows { margin: 0; padding: 0; }
.bbj-config__row { display: grid; grid-template-columns: 140px 1fr auto; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--bbj-line); font-size: 14px; }
.bbj-config__row dt { color: var(--bbj-muted); font-weight: 400; margin: 0; }
.bbj-config__row dd { margin: 0; font-weight: 700; }
.bbj-config__row .bbj-config__edit { font-weight: 400; text-align: right; }
.bbj-config__edit a, .bbj-config__remove, .bbj-basket__back a, .bbj-basket__link { color: var(--bbj-orange) !important; text-decoration: underline !important; text-underline-offset: 2px; }
.bbj-config__remove { color: var(--bbj-ink) !important; font-size: 14px; }
.bbj-basket button.bbj-config__remove { appearance: none; background: none !important; border: 0; border-radius: 0; box-shadow: none; text-shadow: none; padding: 0; margin: 0; min-height: 0; font-family: inherit; font-size: 14px !important; line-height: 1.4; font-weight: 400; letter-spacing: normal; text-transform: none; width: auto; color: var(--bbj-ink) !important; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.bbj-basket button.bbj-config__remove:hover { color: var(--bbj-orange-dark) !important; }
.bbj-basket button.bbj-config__remove:focus-visible { outline: 2px solid var(--bbj-orange); outline-offset: 2px; }
.bbj-basket .bbj-default-submit { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.bbj-config__edit a:hover, .bbj-config__remove:hover, .bbj-basket__back a:hover { color: var(--bbj-orange-dark) !important; }

/* F5 (QA N-6): quantity left, total right at every width above phones; a long breakdown wraps inside the total column. */
.bbj-config__foot { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 20px; padding-top: 16px; }
.bbj-config__qty { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; }
.bbj-config__qty label { flex-basis: 100%; font-weight: 700; font-size: 14px; margin: 0; }
.bbj-stepper { display: inline-flex; border: 1px solid #bdbdbd; border-radius: 3px; overflow: hidden; background: #fff; }
.bbj-basket .bbj-stepper__btn { appearance: none; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 0; background: #fff; color: var(--bbj-ink); font-size: 20px; line-height: 1; cursor: pointer; box-shadow: none; text-shadow: none; }
.bbj-basket .bbj-stepper__btn:hover { background: var(--bbj-soft); color: var(--bbj-ink); }
.bbj-basket .bbj-stepper__btn:focus-visible { outline: 2px solid var(--bbj-orange); outline-offset: -2px; }
.bbj-basket .bbj-stepper__input { width: 52px; height: 40px; margin: 0; padding: 0; border: 0; border-left: 1px solid #bdbdbd; border-right: 1px solid #bdbdbd; border-radius: 0; text-align: center; font-size: 16px; font-weight: 700; -moz-appearance: textfield; background: #fff; color: var(--bbj-ink); }
.bbj-basket .bbj-stepper__input::-webkit-outer-spin-button, .bbj-basket .bbj-stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bbj-config__total { text-align: right; display: grid; gap: 2px; min-width: 0; border-left: 1px solid var(--bbj-line); padding-left: 20px; }
.bbj-config__total > span { font-weight: 700; font-size: 14px; }
.bbj-config__part { white-space: nowrap; }
.bbj-config__total strong { font-size: 24px; color: var(--bbj-ink); }
.bbj-config__total small { color: var(--bbj-muted); font-size: 12px; }

/* Ordinary lines and the coupon row keep WooCommerce's table styles */
.bbj-basket__lines.is-empty { border: 0 !important; margin: 0 !important; }
.bbj-basket__lines { margin-bottom: 16px !important; }
.bbj-basket__actions { margin-bottom: 20px !important; }
.bbj-line-problem { margin: 6px 0 0; padding: 6px 10px; border-left: 4px solid var(--bbj-orange); background: #fff4ee; font-size: 13px; }

/* Back link, totals and checkout button. G4 (V2 p21): the order summary sits beside the basket from 1024 px. */
.bbj-basket__layout { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "form" "side" "back"; gap: 0 28px; }
.bbj-basket__form { grid-area: form; min-width: 0; }
.bbj-basket__side { grid-area: side; min-width: 0; }
.bbj-basket__back { grid-area: back; padding-top: 8px; font-size: 15px; }
.bbj-basket__back p { margin: 6px 0 0; color: var(--bbj-muted); font-size: 13px; }
.bbj-basket .cart-collaterals { width: auto; float: none; }
.woocommerce .bbj-basket .cart-collaterals .cart_totals, .woocommerce-page .bbj-basket .cart-collaterals .cart_totals { float: none; width: 100%; }
@media (min-width: 1024px) {
  .bbj-basket__layout .bbj-config { grid-template-columns: 170px 1fr; }
  .bbj-basket__layout .bbj-config__qty { flex-direction: column; align-items: flex-start; gap: 8px; }
  .bbj-basket__layout .bbj-config__qty label { flex-basis: auto; }
  .bbj-basket__layout { grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "form side" "back side"; grid-template-rows: auto 1fr; }
  .bbj-basket__side { align-self: start; position: sticky; top: var(--bbj-sticky-top, 24px); }
}
.bbj-basket .wc-proceed-to-checkout a.checkout-button { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--bbj-orange) !important; border-color: var(--bbj-orange) !important; color: #fff !important; border-radius: 2px; font-size: 17px; font-weight: 700; padding: 15px 22px; text-decoration: none; }
.bbj-basket .wc-proceed-to-checkout a.checkout-button:hover, .bbj-basket .wc-proceed-to-checkout a.checkout-button:focus-visible { background: var(--bbj-orange-dark) !important; color: #fff !important; }

/* Empty basket */
.bbj-empty { max-width: 640px; }
.bbj-empty__eyebrow { margin: 0 0 6px; color: var(--bbj-orange); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.bbj-empty__title { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; font-weight: 800; margin: 0 0 8px; color: var(--bbj-ink); letter-spacing: -0.01em; }
.bbj-empty__intro { margin: 0 0 12px; font-size: 16px; }
.bbj-empty__photo { margin: 0 0 20px; text-align: center; }
.bbj-empty__photo img { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; }
.bbj-empty__photo figcaption { color: var(--bbj-muted); font-size: 13px; margin-top: 4px; }
.bbj-empty__actions { display: grid; gap: 12px; justify-items: center; margin: 0 0 24px; }
.bbj-empty__actions [hidden] { display: none !important; }
.bbj-basket [hidden] { display: none !important; }
.bbj-basket__btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; max-width: 420px; padding: 15px 22px; background: var(--bbj-orange); color: #fff !important; font-weight: 700; font-size: 17px; text-decoration: none; border-radius: 2px; }
.bbj-basket__btn:hover, .bbj-basket__btn:focus-visible { background: var(--bbj-orange-dark); color: #fff !important; }
.bbj-basket__link { font-size: 15px; }
.bbj-empty__help { background: var(--bbj-soft); padding: 20px 22px; }
.bbj-empty__help h2 { font-size: 24px; font-weight: 800; margin: 0 0 6px; color: var(--bbj-ink); }
.bbj-empty__help p { margin: 0; }
.bbj-empty__help a { color: var(--bbj-orange); font-weight: 700; text-decoration: underline; white-space: nowrap; }

.bbj-basket a:focus-visible { outline: 2px solid var(--bbj-orange); outline-offset: 2px; }

@media (max-width: 900px) {
  .bbj-basket__steps { grid-template-columns: repeat(3, 1fr); }
  .bbj-basket__steps li { border-bottom: 1px solid #333; }
  .bbj-config { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .bbj-config__product { border-right: 0; padding-right: 0; display: grid; grid-template-columns: 96px 1fr; gap: 0 14px; align-items: center; border-bottom: 1px solid var(--bbj-line); padding-bottom: 12px; }
  .bbj-config__img { grid-row: span 2; }
  .bbj-config__img img { max-width: 96px; margin: 0; }
  .bbj-config__name { align-self: end; }
  .bbj-config__car { align-self: start; }
}
@media (max-width: 560px) {
  .bbj-basket__steps a, .bbj-basket__steps li > span { flex-direction: column; gap: 4px; font-size: 12px; padding: 6px 4px; }
  .bbj-config__row { grid-template-columns: 1fr auto; gap: 2px 12px; }
  .bbj-config__row dt { grid-column: 1 / -1; font-size: 13px; }
  .bbj-config__row .bbj-config__edit { grid-column: 2; grid-row: 2; }
  .bbj-config__foot { grid-template-columns: 1fr; align-items: stretch; }
  .bbj-config__part { white-space: normal; }
  .bbj-config__total { text-align: left; border-left: 0; padding-left: 0; border-top: 1px solid var(--bbj-line); padding-top: 12px; }
}

/* === G4: prices per choice, car groups, order summary, trust row, delivery band, cross-sells (V2 p20, p21, p23) === */
.bbj-config__value { display: grid; gap: 4px; min-width: 0; }
.bbj-config__item { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; }
.bbj-config__choice { min-width: 0; overflow-wrap: anywhere; }
.bbj-config__price { margin-left: auto; white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.bbj-config__price.is-included { font-weight: 400; color: var(--bbj-muted); }
.bbj-config__total small.bbj-config__each { color: var(--bbj-ink); font-size: 13px; }

.bbj-cargroup { margin: 0 0 24px; }
.bbj-cargroup__title { font-size: 20px; font-weight: 800; line-height: 1.25; margin: 0 0 10px; padding: 10px 14px; background: var(--bbj-soft); border-left: 4px solid var(--bbj-orange); color: var(--bbj-ink); }
.bbj-cargroup .bbj-basket__lines { margin-bottom: 0 !important; }

.bbj-basket .bbj-summary { background: var(--bbj-ink); color: #fff; padding: 22px 22px 18px; border-radius: 4px; margin: 0 0 16px; }
.bbj-basket .bbj-summary a:not(.checkout-button) { color: #fff !important; text-decoration: underline !important; }
.bbj-basket .bbj-summary__title { color: #fff; font-size: 24px; font-weight: 800; margin: 0 0 14px; line-height: 1.2; }
.woocommerce .bbj-basket .bbj-summary table.shop_table, .bbj-basket .bbj-summary table.shop_table { border: 0; margin: 0 0 14px; background: transparent; color: #fff; border-collapse: collapse; width: 100%; }
.bbj-basket .bbj-summary table.shop_table tr, .bbj-basket .bbj-summary table.shop_table th, .bbj-basket .bbj-summary table.shop_table td { background: transparent !important; color: #fff; border: 0; }
.bbj-basket .bbj-summary table.shop_table th, .bbj-basket .bbj-summary table.shop_table td { padding: 7px 0; font-size: 15px; vertical-align: top; border-top: 0; }
.bbj-basket .bbj-summary table.shop_table th { font-weight: 400; text-align: left; padding-right: 12px; white-space: nowrap; }
.bbj-basket .bbj-summary table.shop_table td { text-align: right; }
.bbj-basket .bbj-summary table.shop_table td::before { display: none !important; }
.bbj-basket .bbj-summary table.shop_table_responsive tr { display: table-row !important; }
.bbj-basket .bbj-summary table.shop_table_responsive tr th, .bbj-basket .bbj-summary table.shop_table_responsive tr td { display: table-cell !important; }
.bbj-basket .bbj-summary .order-total th, .bbj-basket .bbj-summary .order-total td { border-top: 1px solid #444; padding-top: 14px; vertical-align: baseline; }
.bbj-basket .bbj-summary .order-total th { font-size: 20px; font-weight: 700; }
.bbj-basket .bbj-summary .order-total td > strong, .bbj-basket .bbj-summary .order-total td > strong .amount { font-size: 28px; font-weight: 800; color: #fff; }
.bbj-basket .bbj-summary .order-total small, .bbj-basket .bbj-summary .order-total small .amount { display: block; font-size: 12px; font-weight: 400; color: #ccc; }
.bbj-basket .bbj-summary .order-total small .amount { display: inline; }
.bbj-basket .bbj-summary__delivery small { display: block; font-size: 12px; color: #ccc; }
.bbj-basket .bbj-summary .woocommerce-shipping-calculator { margin: 6px 0 0; text-align: right; }
.bbj-basket .bbj-summary .shipping-calculator-button { font-size: 13px; }
.bbj-basket .bbj-summary .shipping-calculator-form { text-align: left; }
.bbj-basket .bbj-summary .shipping-calculator-form label { color: #fff; }
.bbj-basket .bbj-summary .shipping-calculator-form .button { background: #fff; color: var(--bbj-ink); }
.bbj-basket .bbj-summary #shipping_method li, .bbj-basket .bbj-summary .woocommerce-shipping-destination { color: #fff; }
.bbj-summary__confirm { border-top: 1px solid #444; padding-top: 12px; margin: 0 0 14px; font-size: 14px; }
.bbj-summary__car { margin: 0 0 8px; color: #fff; }
.bbj-summary__car strong { color: #fff; }
.bbj-summary__times { list-style: none; margin: 0 0 6px; padding: 0; color: #ddd; }
.bbj-summary__times li { margin: 0 0 2px; padding: 0; }
.bbj-summary__times strong { color: #fff; }
.bbj-basket .bbj-summary .bbj-summary__link { font-size: 13px; }
.bbj-basket .bbj-summary .wc-proceed-to-checkout { padding: 0; margin: 0; }
.bbj-basket .bbj-summary .wc-proceed-to-checkout a.checkout-button { margin: 0; width: 100%; }
.bbj-basket .bbj-lock { flex: 0 0 auto; }
.bbj-summary__note { margin: 10px 0 0; font-size: 14px; color: #ddd; }

.bbj-trust { list-style: none; margin: 28px 0 0; padding: 22px 0 0; border-top: 1px solid var(--bbj-line); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 12px; }
.bbj-trust__item { margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; line-height: 1.3; font-weight: 700; color: var(--bbj-ink); }
.bbj-trust__item img { display: block; width: 52px; height: auto; }

.bbj-basket__btn--outline { background: #fff; color: var(--bbj-ink) !important; border: 1.5px solid var(--bbj-ink); }
.bbj-basket__btn--outline:hover, .bbj-basket__btn--outline:focus-visible { background: var(--bbj-soft); color: var(--bbj-ink) !important; }

.bbj-empty__more { display: none; }
@media (min-width: 768px) {
  .bbj-empty__more { display: block; position: relative; left: 50%; width: min(1140px, calc(100vw - 48px)); transform: translateX(-50%); margin-top: 8px; }
}
.bbj-delivery-band { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 24px; margin: 24px 0 0; padding: 16px 24px; background: var(--bbj-orange); color: #fff; }
.bbj-delivery-band__icon { flex: 0 0 auto; color: #fff; }
.bbj-delivery-band__times { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; font-size: 15px; }
.bbj-delivery-band__sep { display: inline-block; width: 1px; height: 22px; background: rgba(255, 255, 255, 0.6); vertical-align: middle; }
.bbj-basket .bbj-delivery-band__link { color: #fff !important; text-decoration: underline !important; font-size: 14px; }

.bbj-xsell:not(:has(li.product)) { display: none; }

@media (max-width: 900px) {
  .bbj-trust { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .bbj-config__row .bbj-config__value { grid-column: 1; }
  .bbj-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bbj-cargroup__title { font-size: 18px; }
  .bbj-basket .bbj-summary { padding: 18px 16px 16px; }
}

/* === F7: focus ring on the basket's orange buttons (VERIFY-1 M1) === */
/* A white 2 px band against the button and a 3 px outer ring against the page: near-black on the white page, white on
   the black order summary (each at least 3:1 against both the orange button and the background). */
.bbj-basket a.bbj-basket__btn:focus-visible { outline: 3px solid var(--bbj-ink) !important; outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }
.bbj-basket .wc-proceed-to-checkout a.checkout-button:focus-visible { outline: 3px solid #fff !important; outline-offset: 2px; box-shadow: 0 0 0 2px var(--bbj-ink) !important; }

/* === R1 (client 20 Oct 2026): bin beside an optional product's name on a basket row === */
.bbj-basket button.bbj-config__bin { appearance: none; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; width: 28px; height: 28px; min-height: 0; margin: -6px 0 -6px 2px; padding: 0; background: none !important; border: 0; border-radius: 50%; box-shadow: none; text-shadow: none; color: var(--bbj-muted) !important; cursor: pointer; line-height: 1; }
.bbj-basket button.bbj-config__bin:hover, .bbj-basket button.bbj-config__bin:focus-visible { color: var(--bbj-orange-dark) !important; background: #fff4ec !important; }
.bbj-basket button.bbj-config__bin:focus-visible { outline: 2px solid var(--bbj-orange); outline-offset: 1px; }
.bbj-config__bin-icon { display: block; width: 16px; height: 16px; }
.bbj-config__bin-icon path { fill: #5c5c5c !important; } /* the theme paints svg paths inside buttons white (currentColor resolves to white there) */
.bbj-basket button.bbj-config__bin:hover .bbj-config__bin-icon path, .bbj-basket button.bbj-config__bin:focus-visible .bbj-config__bin-icon path { fill: var(--bbj-orange-dark) !important; }
.bbj-config__row .bbj-config__edit { white-space: nowrap; }
.bbj-config__edit .bbj-config__bin, .bbj-config__bin-space { margin-left: 6px; }
.bbj-config__bin-space { display: inline-block; width: 28px; height: 1px; vertical-align: middle; }
@media (max-width: 640px) { .bbj-basket button.bbj-config__bin { width: 36px; height: 36px; margin: -8px 0 -8px 0; } }

