/*
 * Sandbox Computers - STANDARD PAGES, BASKET, CHECKOUT AND ACCOUNT (redesign, 6 Oct 2026). Loaded only on those pages, after sbx-design.css.
 */
.ar-hero { background: linear-gradient(135deg, var(--rd-navy-900), var(--rd-navy-700)); color: #fff; padding: 26px 0 28px; }
.ar-hero .svc-crumb { margin: 0 0 8px; font-size: 14px; color: #b9c8d8; }
.ar-hero .svc-crumb a { color: #cfe6ff; text-decoration: none; }
body.sbx-rd .ar-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 0; font-weight: 800; }
.pg-hero { padding: 22px 0 24px; }

.pg-wrap { padding-top: 24px; padding-bottom: 56px; max-width: 980px; }
.pg-wrap.pg-wide { max-width: var(--rd-wrap); }
.pg-card { background: #fff; border: 1px solid var(--rd-line); border-radius: 14px; box-shadow: var(--rd-shadow-s); padding: 28px 32px; color: #2c3a47; font-size: 17px; line-height: 1.65; overflow-wrap: anywhere; }
.pg-card > :first-child { margin-top: 0; }
.pg-card h2 { font-size: 26px; line-height: 1.25; margin: 1.6em 0 .5em; color: var(--rd-text); font-weight: 800; }
.pg-card h3 { font-size: 20px; margin: 1.4em 0 .4em; color: var(--rd-text); font-weight: 700; }
.pg-card h4 { font-size: 17px; margin: 1.2em 0 .3em; color: var(--rd-text); }
.pg-card p { margin: 0 0 1em; }
.pg-card ul, .pg-card ol { margin: 0 0 1em; padding-left: 24px; }
.pg-card li { margin: 0 0 .4em; }
.pg-card a { color: var(--rd-blue-dark); }
.pg-card img { max-width: 100%; height: auto; border-radius: 8px; }
.pg-card table { width: 100%; border-collapse: collapse; }
.pg-card th, .pg-card td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rd-line); vertical-align: top; }
.pg-card hr { border: 0; border-top: 1px solid var(--rd-line); margin: 1.6em 0; }

/* ---- WooCommerce screens: the card is a plain frame, the panels inside carry the look */
.sbx-shopscreen .pg-card { background: transparent; border: 0; box-shadow: none; padding: 0; }
.sbx-shopscreen .woocommerce { font-size: 16px; color: var(--rd-text); }
.sbx-shopscreen .woocommerce-message, .sbx-shopscreen .woocommerce-info, .sbx-shopscreen .woocommerce-error { list-style: none; margin: 0 0 18px; padding: 14px 18px; border-radius: 10px; border: 1px solid var(--rd-line); border-left-width: 5px; background: #fff; color: var(--rd-text); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.sbx-shopscreen .woocommerce-message { border-left-color: var(--rd-green); }
.sbx-shopscreen .woocommerce-info { border-left-color: var(--rd-blue); }
.sbx-shopscreen .woocommerce-error { border-left-color: var(--rd-red); }
.sbx-shopscreen .woocommerce-message::before, .sbx-shopscreen .woocommerce-info::before, .sbx-shopscreen .woocommerce-error::before { display: none; }
.sbx-shopscreen .woocommerce-message .button, .sbx-shopscreen .woocommerce-info .button { margin-left: auto; order: 2; }

.sbx-shopscreen input[type=text], .sbx-shopscreen input[type=email], .sbx-shopscreen input[type=tel], .sbx-shopscreen input[type=password], .sbx-shopscreen input[type=number], .sbx-shopscreen select, .sbx-shopscreen textarea, .sbx-shopscreen .select2-selection { width: 100%; min-height: 48px; padding: 8px 12px; font-size: 16px; border: 1px solid #c3cfdb; border-radius: 8px; background: #fff; color: var(--rd-text); box-sizing: border-box; }
.sbx-shopscreen textarea { min-height: 110px; }
.sbx-shopscreen input:focus, .sbx-shopscreen select:focus, .sbx-shopscreen textarea:focus { outline: 3px solid var(--rd-blue-bright); outline-offset: 0; border-color: var(--rd-blue); }
.sbx-shopscreen .pg-card label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 4px; color: var(--rd-text); }
.sbx-shopscreen .form-row { margin: 0 0 14px; padding: 0; }
.sbx-shopscreen .form-row .required { color: var(--rd-red); text-decoration: none; }
.sbx-shopscreen .form-row-first, .sbx-shopscreen .form-row-last { width: calc(50% - 8px); display: inline-block; vertical-align: top; }
.sbx-shopscreen .form-row-first { margin-right: 12px; }
.sbx-shopscreen .woocommerce-input-wrapper { display: block; }
.sbx-shopscreen input[type=checkbox], .sbx-shopscreen input[type=radio] { width: 20px; height: 20px; min-height: 0; margin-right: 8px; vertical-align: -4px; }
.sbx-shopscreen .pg-card label.checkbox, .sbx-shopscreen .woocommerce-form__label-for-checkbox { display: flex; align-items: center; font-weight: 500; }

.sbx-shopscreen .button, .sbx-shopscreen button.button, .sbx-shopscreen input.button, .sbx-shopscreen a.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 0; border-radius: 8px; background: var(--rd-navy-800); color: #fff; font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none; transition: background .15s; }
.sbx-shopscreen .button:hover { background: var(--rd-navy-600); color: #fff; }
.sbx-shopscreen .checkout-button, .sbx-shopscreen #place_order { background: var(--rd-orange); min-height: 54px; font-size: 18px; width: 100%; }
.sbx-shopscreen .checkout-button:hover, .sbx-shopscreen #place_order:hover { background: var(--rd-orange-dark); }
.sbx-shopscreen .button[disabled], .sbx-shopscreen .button:disabled { opacity: .5; cursor: not-allowed; }

.sbx-shopscreen table.shop_table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--rd-line); border-radius: 12px; overflow: hidden; margin: 0 0 20px; }
.sbx-shopscreen table.shop_table th, .sbx-shopscreen table.shop_table td { padding: 14px 16px; border-bottom: 1px solid var(--rd-line); text-align: left; vertical-align: middle; background: transparent; }
.sbx-shopscreen table.shop_table thead th { background: #eef3f8; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--rd-muted); }
.sbx-shopscreen table.shop_table tr:last-child td, .sbx-shopscreen table.shop_table tr:last-child th { border-bottom: 0; }
.sbx-shopscreen .product-thumbnail img { width: 72px; height: 72px; object-fit: contain; border-radius: 8px; background: #fff; }
.sbx-shopscreen .product-name a { color: var(--rd-text); font-weight: 700; text-decoration: none; }
.sbx-shopscreen .product-name a:hover { color: var(--rd-blue); }
.sbx-shopscreen .product-remove a.remove { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; background: #fbe9e7; color: var(--rd-red) !important; text-decoration: none; font-size: 20px; line-height: 1; }
.sbx-shopscreen .product-remove a.remove:hover { background: var(--rd-red); color: #fff !important; }
.sbx-shopscreen .quantity .qty { width: 78px; text-align: center; }
.sbx-shopscreen .actions .coupon { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sbx-shopscreen .actions .coupon input { width: 200px; }
.sbx-shopscreen td.actions { background: #f7f9fb; }
.sbx-shopscreen .cart_totals { max-width: 480px; margin-left: auto; }
.sbx-shopscreen .cart_totals h2, .sbx-shopscreen #order_review_heading, .sbx-shopscreen .woocommerce-checkout h3 { font-size: 22px; margin: 0 0 12px; font-weight: 800; }
.sbx-shopscreen .order-total .amount { font-size: 22px; font-weight: 800; }

/* checkout: details on the left, the order on the right */
@media (min-width: 1000px) {
  .sbx-shopscreen form.woocommerce-checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); gap: 0 32px; align-items: start; }
  .sbx-shopscreen form.woocommerce-checkout #customer_details { grid-column: 1; grid-row: 1 / span 3; }
  .sbx-shopscreen form.woocommerce-checkout #order_review_heading { grid-column: 2; grid-row: 1; }
  .sbx-shopscreen form.woocommerce-checkout #order_review { grid-column: 2; grid-row: 2; position: sticky; top: 90px; }
}
.sbx-shopscreen #customer_details .col-1, .sbx-shopscreen #customer_details .col-2 { float: none; width: 100%; background: #fff; border: 1px solid var(--rd-line); border-radius: 12px; padding: 20px 22px; margin: 0 0 18px; box-shadow: var(--rd-shadow-s); box-sizing: border-box; }
.sbx-shopscreen #payment { background: #fff; border: 1px solid var(--rd-line); border-radius: 12px; padding: 16px 18px; }
.sbx-shopscreen #payment ul.payment_methods { list-style: none; margin: 0 0 14px; padding: 0; }
.sbx-shopscreen #payment .payment_box { background: #eef3f8; border-radius: 8px; padding: 12px 14px; margin: 8px 0; font-size: 15px; }
.sbx-shopscreen .woocommerce-privacy-policy-text { font-size: 14px; color: var(--rd-muted); margin-bottom: 12px; }

/* my account */
.sbx-shopscreen .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sbx-shopscreen .woocommerce-MyAccount-navigation a { display: block; padding: 10px 16px; border: 1px solid var(--rd-line); border-radius: 999px; background: #fff; color: var(--rd-text); text-decoration: none; font-weight: 600; font-size: 15px; }
.sbx-shopscreen .woocommerce-MyAccount-navigation .is-active a { background: var(--rd-navy-800); border-color: var(--rd-navy-800); color: #fff; }
.sbx-shopscreen .woocommerce-MyAccount-content, .sbx-shopscreen .u-columns > div, .sbx-shopscreen form.woocommerce-form-login, .sbx-shopscreen form.woocommerce-form-register { background: #fff; border: 1px solid var(--rd-line); border-radius: 12px; padding: 20px 22px; box-shadow: var(--rd-shadow-s); box-sizing: border-box; }
.sbx-shopscreen .u-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.sbx-shopscreen .u-columns .col-1, .sbx-shopscreen .u-columns .col-2 { float: none; width: auto; }
.sbx-shopscreen .return-to-shop { margin-top: 16px; }
.sbx-shopscreen .cart-empty { font-size: 20px; font-weight: 700; }

@media (max-width: 760px) {
  .pg-card { padding: 20px 16px; font-size: 16px; }
  .pg-wrap { padding-top: 16px; }
  .sbx-shopscreen .form-row-first, .sbx-shopscreen .form-row-last { width: 100%; display: block; margin-right: 0; }
  /* basket rows become stacked cards */
  .sbx-shopscreen table.shop_table_responsive thead { display: none; }
  .sbx-shopscreen table.shop_table_responsive tr { display: block; border-bottom: 1px solid var(--rd-line); padding: 8px 0; }
  .sbx-shopscreen table.shop_table_responsive td { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 0; padding: 8px 14px; text-align: right; }
  .sbx-shopscreen table.shop_table_responsive td::before { content: attr(data-title); font-weight: 700; color: var(--rd-muted); text-align: left; }
  .sbx-shopscreen table.shop_table_responsive td.product-remove::before, .sbx-shopscreen table.shop_table_responsive td.product-thumbnail::before, .sbx-shopscreen table.shop_table_responsive td.actions::before { display: none; }
  .sbx-shopscreen td.actions .coupon { flex-direction: column; align-items: stretch; }
  .sbx-shopscreen .actions .coupon input { width: 100%; }
  .sbx-shopscreen .cart_totals { max-width: none; }
}

/* Avada's own stylesheet hides the order summary until its "step 2" tab is clicked: this checkout is one page, so show it */
body.sbx-shopscreen form.woocommerce-checkout #order_review, body.sbx-shopscreen form.woocommerce-checkout #order_review_heading { display: block !important; }
body.sbx-shopscreen form.woocommerce-checkout #customer_details { display: block !important; }

/* ---- finishing touches for basket / checkout (override Avada's heading sizes, purple buttons and phone table) */
body.sbx-shopscreen .pg-card h2, body.sbx-shopscreen .pg-card h3 { font-size: 22px !important; line-height: 1.25 !important; margin: 0 0 14px !important; font-weight: 800 !important; color: var(--rd-text) !important; }
body.sbx-shopscreen .pg-card .woocommerce-billing-fields h3, body.sbx-shopscreen .pg-card #order_review_heading { padding-bottom: 8px; border-bottom: 1px solid var(--rd-line); }
body.sbx-shopscreen #place_order, body.sbx-shopscreen .checkout-button, body.sbx-shopscreen a.checkout-button { background: var(--rd-orange) !important; color: #fff !important; border-radius: 10px !important; min-height: 56px; }
body.sbx-shopscreen #place_order:hover, body.sbx-shopscreen .checkout-button:hover { background: var(--rd-orange-dark) !important; }
body.sbx-shopscreen .woocommerce-message .button, body.sbx-shopscreen .woocommerce-info .button { color: #fff !important; background: var(--rd-navy-800) !important; }
body.sbx-shopscreen .woocommerce-message .button *, body.sbx-shopscreen .woocommerce-info .button * { color: #fff !important; }
body.sbx-shopscreen table.shop_table th, body.sbx-shopscreen table.shop_table td { width: auto; }
body.sbx-shopscreen table.woocommerce-checkout-review-order-table td, body.sbx-shopscreen table.cart_totals td { text-align: right; }
body.sbx-shopscreen table.woocommerce-checkout-review-order-table td.product-name { text-align: left; }
body.sbx-shopscreen .woocommerce-shipping-totals td, body.sbx-shopscreen .cart_totals .shipping td { font-size: 14px; }
body.sbx-shopscreen #payment .payment_box { background: #eef3f8 !important; color: var(--rd-text) !important; }
body.sbx-shopscreen #payment .payment_box::before { display: none; }
body.sbx-shopscreen .pg-card a:not(.button) { color: var(--rd-blue-dark); }
@media (max-width: 760px) {
  body.sbx-shopscreen table.cart, body.sbx-shopscreen table.cart tbody, body.sbx-shopscreen table.cart tr, body.sbx-shopscreen table.cart td { display: block !important; width: 100% !important; position: static !important; float: none !important; box-sizing: border-box; }
  body.sbx-shopscreen table.cart tr, body.sbx-shopscreen table.cart td { height: auto !important; min-height: 0 !important; }
  body.sbx-shopscreen table.cart tr.cart_item { position: relative !important; padding: 14px 14px 10px 14px; border-bottom: 1px solid var(--rd-line); }
  body.sbx-shopscreen table.cart td { display: flex !important; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0 !important; border: 0 !important; text-align: right !important; }
  body.sbx-shopscreen table.cart td.product-name { flex-direction: column; align-items: flex-start; text-align: left !important; }
  body.sbx-shopscreen table.cart td.product-name::before { display: none; }
  body.sbx-shopscreen table.cart td.product-thumbnail { justify-content: flex-start; }
  body.sbx-shopscreen table.cart td.product-remove { position: absolute !important; top: 8px; right: 8px; width: auto !important; padding: 0 !important; }
  body.sbx-shopscreen table.cart td.actions { display: block !important; background: #f7f9fb; padding: 14px !important; }
  body.sbx-shopscreen table.cart td.actions .coupon { display: grid !important; grid-template-columns: 1fr; gap: 8px; width: 100%; float: none; }
  body.sbx-shopscreen table.cart td.actions .coupon input, body.sbx-shopscreen table.cart td.actions .coupon button, body.sbx-shopscreen table.cart td.actions > button { width: 100% !important; margin: 0 0 8px; }
  body.sbx-shopscreen .cart-collaterals .cart_totals, body.sbx-shopscreen .cart-collaterals { width: 100% !important; float: none !important; }
  body.sbx-shopscreen table.shop_table_responsive td::before { content: attr(data-title) ": "; }
  body.sbx-shopscreen table.cart_totals td, body.sbx-shopscreen table.woocommerce-checkout-review-order-table td { word-break: normal; overflow-wrap: break-word; }
  body.sbx-shopscreen .cart_totals table.shop_table tr { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--rd-line); }
  body.sbx-shopscreen .cart_totals table.shop_table th, body.sbx-shopscreen .cart_totals table.shop_table td { display: block; padding: 0 !important; border: 0 !important; width: auto !important; }
  body.sbx-shopscreen .cart_totals table.shop_table td::before { display: none; }
}

body.sbx-shopscreen .cart_totals th, body.sbx-shopscreen table.woocommerce-checkout-review-order-table th { white-space: nowrap; }
body.sbx-shopscreen form.woocommerce-checkout #customer_details .col-2 { display: block !important; }

/* ---- buttons that must always be readable (checked by the fault test's contrast check) */
body.sbx-shopscreen a.button, body.sbx-shopscreen a.button.wc-forward, body.sbx-shopscreen button.button, body.sbx-shopscreen input.button { color: #fff !important; background: var(--rd-navy-800) !important; }
body.sbx-shopscreen button.button[disabled], body.sbx-shopscreen button.button:disabled, body.sbx-shopscreen button.button[aria-disabled=true] { color: #fff !important; background: #5b6b7b !important; opacity: 1 !important; cursor: not-allowed; }
body.sbx-shopscreen .checkout-button, body.sbx-shopscreen #place_order { background: var(--rd-orange) !important; }

/* Avada's own notice styles colour links with !important: out-rank them for buttons inside notices, and never allow white-on-white page text */
html body.sbx-rd.sbx-shopscreen .pg-card .wc-block-components-notice-banner a.button, html body.sbx-rd.sbx-shopscreen .pg-card .woocommerce-message a.button, html body.sbx-rd.sbx-shopscreen .pg-card a.button.wc-forward { color: #fff !important; background: var(--rd-navy-800) !important; }
html body.sbx-rd.sbx-page .pg-card :is(span, strong, b, em, i, li, p, div, td, th, a)[style*="color"] { color: inherit !important; }
html body.sbx-rd.sbx-page .pg-card a[style*="color"] { color: var(--rd-blue-dark) !important; }

/* the floating Call button must never sit on top of the basket, checkout or account buttons */
body.sbx-shopscreen .sbx-help { display: none !important; }
/* notices: the button goes on its own line instead of wrapping into the text */
body.sbx-shopscreen .pg-card .wc-block-components-notice-banner { display: block; padding: 14px 18px; border-radius: 10px; }
body.sbx-shopscreen .pg-card .wc-block-components-notice-banner a.button { float: none !important; display: inline-flex !important; margin: 10px 12px 0 0 !important; }
body.sbx-shopscreen .pg-card .wc-block-components-notice-banner svg { vertical-align: -3px; margin-right: 8px; }

.sbx-terms-note { margin: 0 0 22px; padding: 16px 18px; border: 1px solid #b9d6f2; border-left: 5px solid #0f6cc4; border-radius: 10px; background: #eef6ff; color: #12202e; font-size: 16px; }
.sbx-terms-note a { color: #0b4f94; }
.pg-card .small { font-size: 14px; color: #55636f; }
.pg-card table { font-size: 15px; }
.sbx-oblig { font-size: 14px; color: #3d4b58; margin: 0 0 12px; }
.pg-lead { font-size: 19px; color: #12202e; }

/* tables that turn into stacked cards on a phone, so no column is ever squeezed into a thin strip of letters */
@media (max-width: 720px) {
  .pg-card table.stack, .pg-card table.stack thead, .pg-card table.stack tbody, .pg-card table.stack tr, .pg-card table.stack td { display: block; width: 100%; }
  .pg-card table.stack thead { display: none; }
  .pg-card table.stack tr { margin: 0 0 12px; border: 1px solid var(--rd-line); border-radius: 10px; padding: 6px 12px; background: #fff; }
  .pg-card table.stack td { border: 0; padding: 6px 0; }
  .pg-card table.stack td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--rd-muted); }
}

/* buttons placed inside page text (the "See all..." buttons) and the enquiry form's send button */
html body.sbx-rd.sbx-page .pg-card a.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; margin: 0 10px 10px 0; background: var(--rd-navy-800); color: #fff !important; border-radius: 8px; font-weight: 700; font-size: 16px; text-decoration: none; }
html body.sbx-rd.sbx-page .pg-card a.button:hover { background: var(--rd-navy-600); }
html body.sbx-rd.sbx-page .pg-card .wpcf7-submit { background: var(--rd-orange) !important; color: #fff !important; border: 0; border-radius: 8px; min-height: 50px; padding: 0 28px; font-size: 17px; font-weight: 800; cursor: pointer; }
html body.sbx-rd.sbx-page .pg-card .wpcf7-submit:hover { background: var(--rd-orange-dark) !important; }
html body.sbx-rd.sbx-page .pg-card .wpcf7 input[type=text], html body.sbx-rd.sbx-page .pg-card .wpcf7 input[type=email], html body.sbx-rd.sbx-page .pg-card .wpcf7 input[type=tel], html body.sbx-rd.sbx-page .pg-card .wpcf7 select, html body.sbx-rd.sbx-page .pg-card .wpcf7 textarea { width: 100%; min-height: 48px; padding: 8px 12px; font-size: 16px; border: 1px solid #c3cfdb; border-radius: 8px; background: #fff; color: var(--rd-text); box-sizing: border-box; }

/* =====================================================================================================================
   THE BASKET PAGE, reworked 6 Oct 2026 (sbx-cart-template.php + sbx-cart-totals-template.php): one card per item, a summary card beside it.
   ===================================================================================================================== */
.sbx-cartgrid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 24px; align-items: start; }
.sbx-cartgrid > * { min-width: 0; }
.sbx-ci-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sbx-ci { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto auto; grid-template-areas: "pic info qty total" "pic rm qty total"; gap: 4px 18px; align-items: center; background: #fff; border: 1px solid var(--rd-line); border-radius: 14px; padding: 14px 18px; box-shadow: var(--rd-shadow-s); }
.sbx-ci-pic { grid-area: pic; }
.sbx-ci-pic a { display: block; }
.sbx-ci-pic img { display: block; width: 104px; height: 104px; object-fit: contain; background: #fff; border: 1px solid var(--rd-line); border-radius: 10px; }
.sbx-ci-info { grid-area: info; align-self: end; min-width: 0; }
.sbx-ci-name { font-size: 17px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.sbx-ci-name a { color: var(--rd-text); text-decoration: none; }
.sbx-ci-name a:hover { color: var(--rd-blue); text-decoration: underline; }
.sbx-ci-name dl, .sbx-ci-name .variation { margin: 4px 0 0; font-size: 14px; font-weight: 400; color: var(--rd-muted); }
.sbx-ci-cond { display: inline-block; margin: 6px 8px 0 0; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; background: #fff1cc; color: #6b4200; border: 1px solid #e6bd5c; }
.sbx-ci-each { display: inline-block; margin-top: 6px; font-size: 14px; color: var(--rd-muted); }
.sbx-ci-qty { grid-area: qty; }
.sbx-ci-total { grid-area: total; min-width: 100px; text-align: right; font-size: 19px; font-weight: 800; color: var(--rd-text); }
.sbx-ci-remove { grid-area: rm; align-self: start; }
.sbx-ci-remove a.remove { display: inline-block; width: auto !important; height: auto !important; line-height: 1.4 !important; border-radius: 0 !important; background: none !important; color: var(--rd-muted) !important; font-size: 14px !important; font-weight: 600; text-decoration: underline; text-indent: 0 !important; }
.sbx-ci-remove a.remove:hover { color: var(--rd-text) !important; }
.sbx-ci-qty .quantity { display: inline-flex; align-items: center; }
.sbx-ci-qty .quantity input.qty { width: 64px; text-align: center; }
.sbx-ci-qty label.screen-reader-text { position: absolute; left: -9999px; }

.sbx-cart-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 14px 18px; background: #fff; border: 1px solid var(--rd-line); border-radius: 14px; }
.sbx-cart-actions .coupon { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; border: 0; float: none; }
.sbx-cart-actions .coupon input.input-text { width: 220px; max-width: 100%; height: 44px; margin: 0; }
.sbx-cart-actions .button { margin: 0; height: 44px; }
.sbx-cart-actions .sbx-update { background: #fff; color: var(--rd-text); border: 2px solid var(--rd-line); }
.sbx-cart-actions .sbx-update:not([disabled]) { background: #10202f; color: #fff; border-color: #10202f; }
.sbx-cart-actions .sbx-update[disabled] { opacity: .55; cursor: default; }

.sbx-sum { background: #fff; border: 1px solid var(--rd-line); border-radius: 14px; padding: 20px; box-shadow: var(--rd-shadow-s); position: sticky; top: 16px; max-width: none !important; margin: 0 !important; float: none !important; width: auto !important; }
.sbx-sum .sbx-sum-h { margin: 0 0 12px; font-size: 22px; font-weight: 800; }
.sbx-sum table.shop_table { border: 0; border-radius: 0; margin: 0 0 6px; background: transparent; table-layout: fixed; width: 100%; }   /* fixed: a long label (a custom build's "Build, install and test - with a graphics card") must wrap, never squeeze the amounts to one character a line */
body .sbx-sum table.shop_table th, body.woocommerce-cart .cart_totals table.shop_table th { white-space: normal !important; overflow-wrap: break-word; word-break: normal; padding-right: 12px !important; width: 46% !important; }
body .sbx-sum table.shop_table td, body.woocommerce-cart .cart_totals table.shop_table td { width: 54% !important; }
body .sbx-sum table.shop_table, body.woocommerce-cart .cart_totals table.shop_table { table-layout: fixed !important; }
html body.woocommerce-cart .sbx-sum table.shop_table tbody tr > th { white-space: normal !important; flex: 1 1 42% !important; min-width: 6.6em !important; }   /* on a phone each row is a flex row: the label may wrap, the amount keeps its room */
html body.woocommerce-cart .sbx-sum table.shop_table tbody tr > td { flex: 0 1 auto !important; min-width: 5.5em; }
html body.woocommerce-cart .sbx-sum table.shop_table tbody tr > td .amount { white-space: nowrap; }
.sbx-sum table.shop_table td .amount { white-space: nowrap; }
.sbx-sum table.shop_table th, .sbx-sum table.shop_table td { padding: 11px 0; border-bottom: 1px solid var(--rd-line); vertical-align: top; background: transparent; }
.sbx-sum table.shop_table th { width: 34%; font-weight: 700; text-align: left; white-space: normal; }
.sbx-sum table.shop_table td { text-align: right; width: 66%; }
.sbx-sum table.shop_table tr:last-child th, .sbx-sum table.shop_table tr:last-child td { border-bottom: 0; }
.sbx-sum tr.order-total th, .sbx-sum tr.order-total td { padding-top: 14px; font-size: 20px; font-weight: 800; border-bottom: 0; }
.sbx-sum tr.order-total .amount { color: var(--rd-blue); }
.sbx-sum .woocommerce-shipping-totals td { text-align: left; }
.sbx-sum ul#shipping_method { list-style: none; margin: 0; padding: 0; }
.sbx-sum ul#shipping_method li { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 8px; line-height: 1.35; }
.sbx-sum ul#shipping_method li input { margin-top: 4px; flex: 0 0 auto; }
.sbx-sum ul#shipping_method li label { font-weight: 600; cursor: pointer; }
.sbx-sum .woocommerce-shipping-destination { font-size: 14px; color: var(--rd-muted); margin: 6px 0 0; }
.awb-calc-shipping, .sbx-sum .shipping-calculator-button { display: none !important; }
.sbx-calc { margin: 6px 0 4px; padding: 14px; background: #f3f7fb; border: 1px solid var(--rd-line); border-radius: 12px; }
.sbx-calc-h { margin: 0 0 4px; font-size: 16px; font-weight: 800; }
.sbx-calc-p { margin: 0 0 10px; font-size: 14px; color: var(--rd-muted); }
.sbx-calc .shipping-calculator-form { display: block !important; margin: 0; }
.sbx-calc .shipping-calculator-form p { margin: 0 0 8px; }
.sbx-calc .shipping-calculator-form select, .sbx-calc .shipping-calculator-form input.input-text { width: 100%; height: 44px; margin: 0; }
.sbx-calc .shipping-calculator-form button.button { width: 100%; height: 44px; margin: 4px 0 0; }
.sbx-sum .wc-proceed-to-checkout { padding: 0; margin: 14px 0 0; }
.sbx-sum .wc-proceed-to-checkout .checkout-button { display: block; width: 100%; box-sizing: border-box; text-align: center; margin: 0; padding: 16px 18px; border-radius: 12px; background: var(--rd-orange); color: #fff !important; font-size: 18px; font-weight: 800; text-decoration: none; }
.sbx-sum .wc-proceed-to-checkout .checkout-button:hover { filter: brightness(.92); }

/* the added-to-basket message: one tidy line, and no pointless View basket button on the basket itself */
body.woocommerce-cart .woocommerce-message { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin: 0 0 12px; border-radius: 12px; background: #ecf7f0; border: 1px solid #9bd0ae; color: #0f3d24; font-size: 15px; }
body.woocommerce-cart .woocommerce-message::before { position: static; flex: 0 0 auto; margin: 0; }
body.woocommerce-cart .woocommerce-message .button.wc-forward { display: none; }

@media (max-width: 960px) {
  .sbx-cartgrid { grid-template-columns: 1fr; }
  .sbx-sum { position: static; }
}
@media (max-width: 640px) {
  .sbx-ci { grid-template-columns: 80px minmax(0, 1fr); grid-template-areas: "pic info" "pic rm" "qty total"; gap: 6px 14px; padding: 12px 14px; }
  .sbx-ci-pic img { width: 80px; height: 80px; }
  .sbx-ci-name { font-size: 16px; }
  .sbx-ci-qty { justify-self: start; }
  .sbx-ci-total { justify-self: end; font-size: 18px; }
  .sbx-cart-actions { flex-direction: column; align-items: stretch; }
  .sbx-cart-actions .coupon { flex-direction: column; align-items: stretch; }
  .sbx-cart-actions .coupon input.input-text, .sbx-cart-actions .button { width: 100%; }
}

/* basket fixes (6 Oct 2026, second pass): beat the theme's own rules for the Remove link, the checkout button and the banner-style notices */
body.sbx-rd .sbx-ci .sbx-ci-remove a.remove { display: inline-block !important; width: auto !important; height: auto !important; white-space: nowrap !important; overflow-wrap: normal !important; word-break: normal !important; padding: 0 !important; margin: 0 !important; }
body.sbx-rd .sbx-sum .wc-proceed-to-checkout a.checkout-button { background: var(--rd-orange) !important; color: #fff !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 18px !important; font-weight: 800 !important; line-height: 1.2 !important; padding: 16px 18px !important; border-radius: 12px !important; }
body.sbx-rd .sbx-sum .wc-proceed-to-checkout a.checkout-button:hover { filter: brightness(.92); }
body.sbx-rd .sbx-calc .shipping-calculator-form button.button { text-transform: none; letter-spacing: 0; font-size: 15px; }
body.sbx-rd .sbx-calc section.shipping-calculator-form, body.sbx-rd .sbx-calc .shipping-calculator-form > section { padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; margin: 0 !important; }
body.sbx-rd .sbx-calc .shipping-calculator-form .form-row { padding: 0; margin: 0 0 10px; width: 100%; float: none; }
body.sbx-rd .sbx-calc .shipping-calculator-form label { display: block; margin: 0 0 4px; font-weight: 700; font-size: 14px; }
body.sbx-rd.sbx-shopscreen .wc-block-components-notice-banner { display: flex !important; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px !important; margin: 0 0 12px !important; border: 1px solid #9bd0ae !important; border-radius: 12px !important; background: #ecf7f0 !important; color: #0f3d24 !important; font-size: 15px; }
body.sbx-rd.sbx-shopscreen .wc-block-components-notice-banner svg { flex: 0 0 24px; width: 24px; height: 24px; fill: #0f6a3a; margin: 0; }
body.sbx-rd.sbx-shopscreen .wc-block-components-notice-banner__content { flex: 1 1 auto; margin: 0 !important; padding: 0 !important; }
body.sbx-rd.sbx-shopscreen.woocommerce-cart .wc-block-components-notice-banner .button.wc-forward { display: none !important; }
body.sbx-rd.sbx-shopscreen .wc-block-components-notice-banner.is-error { border-color: #e0a3a3 !important; background: #fdeeee !important; color: #6b1a1a !important; }
body.sbx-rd.sbx-shopscreen .wc-block-components-notice-banner.is-error svg { fill: #b32d2e; }
/* basket fixes, third pass */
html body.sbx-rd .sbx-sum .wc-proceed-to-checkout a.checkout-button.button.alt, html body.sbx-rd .sbx-sum .wc-proceed-to-checkout a.checkout-button.button { background: var(--rd-orange) !important; background-image: none !important; border: 0 !important; color: #fff !important; }
html body.sbx-rd .sbx-calc .shipping-calculator-form { border: 0 !important; background: none !important; padding: 0 !important; box-shadow: none !important; }
html body.sbx-rd .sbx-calc .shipping-calculator-form select, html body.sbx-rd .sbx-calc .shipping-calculator-form .select2-selection { color: var(--rd-text) !important; opacity: 1 !important; background: #fff !important; }
/* the Update basket button is always usable (it used to start greyed out and depend on a script to wake it) */
html body.sbx-rd .sbx-cart-actions .sbx-update { background: #10202f !important; color: #fff !important; border: 0 !important; opacity: 1 !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 15px !important; }
/* basket fixes, fourth pass: label column wide enough for "Shipment" on a phone */
html body.sbx-rd .sbx-sum table.shop_table th { width: auto !important; white-space: nowrap !important; padding-right: 12px !important; }
html body.sbx-rd .sbx-sum table.shop_table td { width: auto !important; }
html body.sbx-rd .sbx-sum .woocommerce-shipping-totals td { text-align: right; }
html body.sbx-rd .sbx-sum .woocommerce-shipping-totals ul#shipping_method, html body.sbx-rd .sbx-sum .woocommerce-shipping-totals ul#shipping_method li { text-align: left; }
/* basket fixes, fifth pass: the calculator FORM itself carried the theme's border and 30px padding; the country text was greyed */
html body.sbx-rd .sbx-calc form.woocommerce-shipping-calculator { border: 0 !important; padding: 0 !important; margin: 0 !important; background: none !important; }
html body.sbx-rd .sbx-calc .select2-selection__rendered { color: var(--rd-text) !important; padding-left: 4px !important; }
/* "free delivery over £X" message and progress bar in the basket summary */
.sbx-freeship { margin: 0 0 14px; padding: 12px 14px; background: #eaf3fc; border: 1px solid #b9d6f2; border-radius: 12px; color: #0a2f57; font-size: 15px; }
.sbx-freeship-yes { background: #ecf7f0; border-color: #9bd0ae; color: #0f3d24; }
.sbx-freeship-bar { margin-top: 8px; height: 8px; background: #fff; border: 1px solid #b9d6f2; border-radius: 999px; overflow: hidden; }
.sbx-freeship-bar i { display: block; height: 100%; background: #0f6cc4; border-radius: 999px; }
.rdp-free span b { color: #0f5132; }
/* EMPTY BASKET (6 Oct 2026): the theme floats the message and the Return to shop button into two half-width strips with lines through them; stack them in the middle instead */
html body.sbx-rd.sbx-shopscreen .woocommerce .wc-empty-cart-message, html body.sbx-rd.sbx-shopscreen .woocommerce p.return-to-shop { float: none !important; width: auto !important; max-width: 560px; margin: 0 auto 14px !important; padding: 0 !important; border: 0 !important; background: none !important; text-align: center; clear: both; }
html body.sbx-rd.sbx-shopscreen .woocommerce .wc-empty-cart-message { margin-top: 18px !important; }
html body.sbx-rd.sbx-shopscreen .wc-empty-cart-message .wc-block-components-notice-banner { justify-content: center; text-align: left; margin: 0 !important; width: 100%; box-sizing: border-box; min-height: 0 !important; height: auto !important; }
html body.sbx-rd.sbx-shopscreen .wc-block-components-notice-banner.is-info { background: #eaf3fc !important; border-color: #b9d6f2 !important; color: #0a2f57 !important; }
html body.sbx-rd.sbx-shopscreen .wc-block-components-notice-banner.is-info svg { fill: #0f6cc4; }
html body.sbx-rd.sbx-shopscreen p.return-to-shop a.button { display: inline-block; float: none !important; margin: 0 !important; text-transform: none; letter-spacing: 0; font-size: 16px; padding: 14px 24px; }
html body.sbx-rd.sbx-shopscreen .wc-block-components-notice-banner__content, html body.sbx-rd.sbx-shopscreen .wc-block-components-notice-banner svg { position: static !important; transform: none !important; top: auto !important; left: auto !important; }html body.sbx-rd.sbx-shopscreen .wc-block-components-notice-banner { align-items: center !important; }
html body.sbx-rd.sbx-shopscreen .wc-block-components-notice-banner > *, html body.sbx-rd.sbx-shopscreen .wc-block-components-notice-banner__content > * { margin-top: 0 !important; margin-bottom: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; line-height: 1.4 !important; }
html body.sbx-rd.sbx-shopscreen .wc-block-components-notice-banner__content { display: block; align-self: center; }html body.sbx-rd.sbx-shopscreen .wc-block-components-notice-banner::before, html body.sbx-rd.sbx-shopscreen .wc-block-components-notice-banner::after { content: none !important; display: none !important; }
html body.sbx-rd.sbx-shopscreen .wc-block-components-notice-banner > svg { display: block !important; width: 24px !important; height: 24px !important; flex: 0 0 24px; }
html body.sbx-rd.sbx-shopscreen .wc-block-components-notice-banner { flex-wrap: nowrap !important; }
/* sbx-fix-cod-inline (10 Oct 2026): a payment label without a logo (Cash on delivery) was a full-width block and dropped under its round button */
.sbx-shopscreen #payment ul.payment_methods li > label { display: inline !important; width: auto !important; }

/* sbx-fix-cart-buttons (10 Oct 2026): WooPayments added a Klarna message and Apple/Google Pay buttons under Proceed to checkout; stack them with even gaps inside the box */
.sbx-sum .wc-proceed-to-checkout{display:flex !important;flex-direction:column !important;gap:14px !important;margin-top:16px !important}
.sbx-sum .wc-proceed-to-checkout .StripeElement{margin:0 !important;min-height:20px}
.sbx-sum .wc-proceed-to-checkout a.checkout-button{margin:0 !important;width:100% !important;box-sizing:border-box !important}
.sbx-sum .wc-proceed-to-checkout .wcpay-express-checkout-wrapper{margin:0 !important}

/* sbx-fix-cart-button-size (10 Oct 2026): Stephen said the cart buttons were too big - checkout 44px, Update 40px */
.sbx-sum .wc-proceed-to-checkout a.checkout-button{min-height:0 !important;height:44px !important;padding:0 16px !important;font-size:16px !important;line-height:44px !important;border-radius:8px !important}
.sbx-sum button[name=calc_shipping],.sbx-sum .shipping-calculator-form button.button{height:40px !important;min-height:0 !important;padding:0 16px !important;font-size:15px !important;line-height:40px !important}
/* max-height removed: it clipped Google Pay */

/* sbx-fix-cart-grid (10 Oct 2026): the Save-this-basket box was taking the right column and pushing Order summary down-left; put Order summary back on the right, tops aligned, Save-this-basket under the products */
@media(min-width:900px){.sbx-cartgrid{grid-template-rows:auto auto 1fr}.sbx-cartgrid > form.sbx-cartform{grid-column:1;grid-row:1}.sbx-cartgrid > div:not(.cart-collaterals){grid-column:1;grid-row:2;margin-top:0 !important;margin-bottom:0 !important}.sbx-cartgrid > .cart-collaterals.sbx-cartside{grid-column:2;grid-row:1 / span 3;margin-top:0 !important}}

/* sbx-fix-klarna-room (10 Oct 2026): the Klarna message wraps to 2-3 lines in the narrow summary column; give it room so it does not run into Proceed to checkout */
.sbx-sum .wc-proceed-to-checkout > .StripeElement{min-height:58px !important}

/* sbx-fix-calc-lean (10 Oct 2026, Stephen): delivery zones are decided by country + postcode only (Highlands AB/IV.., BT*, IM*, GY*, JE*, islands), so hide County and Town in the basket Where-is-it-going box */
.sbx-calc #calc_shipping_state_field, .sbx-calc #calc_shipping_city_field { display: none !important; }

/* sbx-fix-checkout-scroll (10 Oct 2026, Stephen): the Your-order box was sticky but its heading was not, so the box slid away from its title (gap 14px -> 80px) while scrolling; make it scroll normally with the page */
body.woocommerce-checkout #order_review { position: static !important; top: auto !important; }

/* sbx-fix-checkout-gap (10 Oct 2026, Stephen): the tall Billing column spans 3 grid rows and the grid shared its spare height across rows 1-2, opening a gap (14px to 51px at 1280 wide) between Your order and its box; give all spare height to the empty row 3 */
@media (min-width: 1000px) { .sbx-shopscreen form.woocommerce-checkout { grid-template-rows: auto auto auto 1fr !important; } }

/* sbx-fix-express-top (10 Oct 2026, Stephen): WooPayments Apple/Google Pay block (with its OR line) is meant to sit at the TOP of checkout; the two-column grid had dropped it to the bottom. Put it back on row 1 across both columns and move everything else down one row */
@media (min-width: 1000px) {
  .sbx-shopscreen form.woocommerce-checkout { grid-template-rows: auto auto auto 1fr !important; }
  .sbx-shopscreen form.woocommerce-checkout > .wcpay-express-checkout-wrapper { grid-column: 1 / -1 !important; grid-row: 1 !important; margin: 0 0 6px !important; }
  .sbx-shopscreen form.woocommerce-checkout #customer_details { grid-row: 2 / span 3 !important; }
  .sbx-shopscreen form.woocommerce-checkout #order_review_heading { grid-row: 2 !important; }
  .sbx-shopscreen form.woocommerce-checkout #order_review { grid-row: 3 !important; }
}
