/**
 * OSMDentis — Shop (classic cart & checkout)
 *
 * Loaded via OSM_PAGE_STYLES_MAP on the "cart" and "checkout" slugs
 * (order-received keeps the "checkout" slug, so it inherits everything).
 * Every rule is scoped under body.woocommerce-cart / body.woocommerce-checkout
 * so nothing leaks to the rest of the site.
 *
 * Design language (same as elsewhere on the site):
 *   accent ............ #669bbc (hover #7eb3d4)
 *   hairlines ......... rgba(255,255,255,0.08)
 *   text .............. #fff / rgba(255,255,255,0.62)
 *   pills ............. border-radius 100px
 *   inputs ............ rgba(255,255,255,0.04) bg,
 *                       rgba(255,255,255,0.12) border, 10px radius
 */

/* ══════════════════════════════════════
   Ohio chrome — hidden. The hero comes from the [osm_shop_hero] shortcode
   placed in a WPBakery stretch row; its band is drawn by the global.css
   .wpb_row:has(.osm-hero) / .vc_row:has(.osm-hero) rule.
   (same technique as legal.css / registration-forms.css)
   ══════════════════════════════════════ */
body.woocommerce-cart .breadcrumbs-nav-holder,
body.woocommerce-cart .page-headline,
body.woocommerce-checkout .breadcrumbs-nav-holder,
body.woocommerce-checkout .page-headline { display: none !important; }

/* Ohio narrows WooCommerce pages (style.css, min-width 769px):
   .woocommerce-page:not(.archive):not(.single) .site-content .page-container { padding: 0 5vw }
   That breaks the WPBakery stretch_row hero band (offset assumes the standard 1rem gutter).
   Restore the standard gutter on cart/checkout only. Selector must out-specify Ohio's. */
@media screen and (min-width: 769px) {
  body.woocommerce-cart.woocommerce-page:not(.archive):not(.single) .site-content .page-container,
  body.woocommerce-checkout.woocommerce-page:not(.archive):not(.single) .site-content .page-container {
    padding-left: var(--clb-container-side-gutter);
    padding-right: var(--clb-container-side-gutter);
  }
}

/* ══════════════════════════════════════
   Buttons — accent pills
   (scoped to the page content .woocommerce container, so the header
   mini-cart and other chrome stay untouched)
   ══════════════════════════════════════ */
body.woocommerce-cart .woocommerce .button,
body.woocommerce-checkout .woocommerce .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: none;
  border-radius: 100px !important;
  background: #669bbc !important;
  background-color: #669bbc !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-transform: none;
  text-decoration: none !important;
  text-shadow: none;
  box-sizing: border-box;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

body.woocommerce-cart .woocommerce .button:hover,
body.woocommerce-cart .woocommerce .button:focus,
body.woocommerce-checkout .woocommerce .button:hover,
body.woocommerce-checkout .woocommerce .button:focus {
  background: #7eb3d4 !important;
  background-color: #7eb3d4 !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.28);
}

body.woocommerce-cart .woocommerce .button:disabled,
body.woocommerce-cart .woocommerce .button[disabled],
body.woocommerce-cart .woocommerce .button.disabled,
body.woocommerce-checkout .woocommerce .button:disabled,
body.woocommerce-checkout .woocommerce .button[disabled],
body.woocommerce-checkout .woocommerce .button.disabled {
  background: rgba(255,255,255,0.08) !important;
  background-color: rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.35) !important;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

/* ══════════════════════════════════════
   Notices — accent-tinted, no green
   ══════════════════════════════════════ */
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-checkout .woocommerce-info {
  background: rgba(102,155,188,0.10) !important;
  border: 1px solid rgba(102,155,188,0.30) !important;
  border-radius: 12px !important;
  color: rgba(255,255,255,0.85) !important;
  padding: 14px 18px !important;
}

body.woocommerce-cart .woocommerce-error,
body.woocommerce-checkout .woocommerce-error {
  background: rgba(255,107,107,0.08) !important;
  border: 1px solid rgba(255,107,107,0.35) !important;
  border-radius: 12px !important;
  color: #ff8a8a !important;
  padding: 14px 18px !important;
}

body.woocommerce-cart .woocommerce-message li,
body.woocommerce-cart .woocommerce-info li,
body.woocommerce-cart .woocommerce-error li,
body.woocommerce-checkout .woocommerce-message li,
body.woocommerce-checkout .woocommerce-info li,
body.woocommerce-checkout .woocommerce-error li {
  color: inherit;
  list-style: none;
}

body.woocommerce-cart .woocommerce-message .button,
body.woocommerce-cart .woocommerce-info .button,
body.woocommerce-cart .woocommerce-error .button,
body.woocommerce-checkout .woocommerce-message .button,
body.woocommerce-checkout .woocommerce-info .button,
body.woocommerce-checkout .woocommerce-error .button {
  padding: 9px 18px;
  font-size: 13px;
}

body.woocommerce-cart .woo-c_cart_messages,
body.woocommerce-checkout .woocommerce-notices-wrapper {
  margin-bottom: 24px;
}

/* WooCommerce moves focus to notices programmatically (tabindex="-1") and
   Ohio draws a blue focus ring — neutralize it on the notice containers
   only; link/button/input focus styles are untouched. */
body.woocommerce-cart .woocommerce-error:focus,
body.woocommerce-cart .woocommerce-error:focus-visible,
body.woocommerce-cart .woocommerce-message:focus,
body.woocommerce-cart .woocommerce-message:focus-visible,
body.woocommerce-cart .woocommerce-info:focus,
body.woocommerce-cart .woocommerce-info:focus-visible,
body.woocommerce-checkout .woocommerce-error:focus,
body.woocommerce-checkout .woocommerce-error:focus-visible,
body.woocommerce-checkout .woocommerce-message:focus,
body.woocommerce-checkout .woocommerce-message:focus-visible,
body.woocommerce-checkout .woocommerce-info:focus,
body.woocommerce-checkout .woocommerce-info:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* ══════════════════════════════════════
   CHECKOUT — package purchase warning + confirmation checkbox
   ══════════════════════════════════════ */
body.woocommerce-checkout .osm-pkg-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

body.woocommerce-checkout .osm-pkg-warning--alert {
  background: rgba(255,193,7,0.15) !important;
  border: 1px solid rgba(245,180,0,0.35) !important;
  border-left: 4px solid #f5b400 !important;
  border-radius: 12px !important;
  color: rgba(255,255,255,0.90) !important;
  padding: 14px 18px !important;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  box-sizing: border-box;
}

body.woocommerce-checkout .osm-pkg-warning__icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: #f5b400;
}

body.woocommerce-checkout .osm-pkg-warning__text {
  flex: 1 1 auto;
  min-width: 0;
}

body.woocommerce-checkout .osm-pkg-warning__text strong {
  color: #fff;
  font-weight: 600;
}

body.woocommerce-checkout .osm-pkg-warning--checkout {
  margin: 0 0 24px;
}

body.woocommerce-checkout .osm-pkg-confirm {
  margin: 0 0 16px;
  padding: 14px 18px;
  background: rgba(102,155,188,0.10);
  border: 1px solid rgba(102,155,188,0.30);
  border-radius: 12px;
}

body.woocommerce-checkout .osm-pkg-confirm__label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}

body.woocommerce-checkout .osm-pkg-confirm__label input[type="checkbox"] {
  flex: 0 0 auto;
  margin: 3px 0 0;
  accent-color: #669bbc;
}

/* ══════════════════════════════════════
   Sidebar cards — Cart totals / Your order
   ══════════════════════════════════════ */
body.woocommerce-cart .woo-sidebar.-boxed,
body.woocommerce-checkout .woo-sidebar.-boxed {
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 16px !important;
}

body.woocommerce-cart .woo-sidebar.-boxed .button,
body.woocommerce-checkout .woo-sidebar.-boxed .button {
  width: 100%;
}

/* ══════════════════════════════════════
   CART — table clean-up
   ══════════════════════════════════════ */

/* Thumbnail image column: hidden. The theme nests the per-item Remove
   control inside .product-thumbnail and keeps the anchor itself at
   opacity:0 until item hover — style wrapper AND anchor so the × is
   permanently visible in its own small circle. */
body.woocommerce-cart .woocommerce-cart-form .product-thumbnail {
  width: auto !important;
  min-width: 0 !important;
  margin-right: 12px !important;
}

body.woocommerce-cart .woocommerce-cart-form .product-thumbnail > a,
body.woocommerce-cart .woocommerce-cart-form .product-thumbnail img {
  display: none !important;
}

body.woocommerce-cart .woocommerce-cart-form .product-thumbnail .product-remove {
  position: static !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent !important;
  transition: border-color .18s ease;
}

body.woocommerce-cart .woocommerce-cart-form .product-thumbnail .product-remove:hover {
  border-color: rgba(102,155,188,0.60);
}

body.woocommerce-cart .woocommerce-cart-form .product-thumbnail .product-remove .remove {
  position: static !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  opacity: 1 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  color: rgba(255,255,255,0.55) !important;
  box-shadow: none !important;
  transition: color .18s ease;
}

body.woocommerce-cart .woocommerce-cart-form .product-thumbnail .product-remove:hover .remove {
  color: #669bbc !important;
}

body.woocommerce-cart .woocommerce-cart-form .product-thumbnail .product-remove .remove .icon,
body.woocommerce-cart .woocommerce-cart-form .product-thumbnail .product-remove .remove svg {
  display: inline-flex !important;
  width: 14px;
  height: 14px;
}

body.woocommerce-cart .woocommerce-cart-form .product-thumbnail .product-remove .remove svg path {
  fill: currentColor !important;
}

/* Category line under the product name (theme filter @ priority 99) */
body.woocommerce-cart .woo-category,
body.woocommerce-cart .category-holder,
body.woocommerce-checkout .woo-category,
body.woocommerce-checkout .category-holder {
  display: none !important;
}

/* Coupon block + Update cart button */
body.woocommerce-cart .woocommerce-cart-form .woo-actions,
body.woocommerce-cart .woocommerce-cart-form fieldset.coupon,
body.woocommerce-cart .woocommerce-cart-form button[name="update_cart"] {
  display: none !important;
}

/* Sold-individually quantity — plain text, no input box */
body.woocommerce-cart .woocommerce-cart-form .quantity.-limited .quantity-nav input {
  width: 24px !important;
  min-width: 0 !important;
  height: auto !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(255,255,255,0.85) !important;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  appearance: none;
  -moz-appearance: textfield;
}

body.woocommerce-cart .woocommerce-cart-form .quantity.-limited .quantity-nav input::-webkit-outer-spin-button,
body.woocommerce-cart .woocommerce-cart-form .quantity.-limited .quantity-nav input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Cart totals table rows — hairlines, label left / value right */
body.woocommerce-cart .cart_totals .shop_table tr th {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 12px 0;
  text-align: left;
  color: rgba(255,255,255,0.6);
}

body.woocommerce-cart .cart_totals .shop_table tr td {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 12px 0;
  text-align: right;
  color: rgba(255,255,255,0.92);
}

body.woocommerce-cart .cart_totals .shop_table tr:last-child th,
body.woocommerce-cart .cart_totals .shop_table tr:last-child td {
  border-bottom: none;
}

body.woocommerce-cart .cart_totals .shop_table tr.order-total td,
body.woocommerce-cart .cart_totals .shop_table tr.order-total td .amount {
  color: #fff;
  font-weight: 500;
}

/* Empty cart */
body.woocommerce-cart .cart-empty.woocommerce-info {
  margin-bottom: 20px;
}

/* ══════════════════════════════════════
   CHECKOUT — billing form
   ══════════════════════════════════════ */
body.woocommerce-checkout .woocommerce form .form-row input.input-text,
body.woocommerce-checkout .woocommerce form .form-row textarea,
body.woocommerce-checkout .woocommerce form .form-row select,
body.woocommerce-checkout .woocommerce form .form-row .select2-selection--single {
  width: 100%;
  box-sizing: border-box;
  min-height: 50px;
  padding: 13px 16px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  background-color: rgba(255,255,255,0.04) !important;
  color: #eaeaea !important;
  font-size: 15px;
  line-height: 1.4;
  box-shadow: none !important;
  transition: border-color .15s ease, background-color .15s ease;
}

body.woocommerce-checkout .woocommerce form .form-row textarea {
  min-height: 120px;
  resize: vertical;
}

body.woocommerce-checkout .woocommerce form .form-row select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  padding-right: 40px !important;
}

body.woocommerce-checkout .woocommerce form .form-row input.input-text:focus,
body.woocommerce-checkout .woocommerce form .form-row textarea:focus,
body.woocommerce-checkout .woocommerce form .form-row select:focus,
body.woocommerce-checkout .woocommerce form .form-row .select2-container--focus .select2-selection--single,
body.woocommerce-checkout .woocommerce form .form-row .select2-container--open .select2-selection--single {
  border-color: rgba(255,255,255,0.32) !important;
  background-color: rgba(255,255,255,0.07) !important;
  outline: none;
}

/* Labels + required asterisks */
body.woocommerce-checkout .woocommerce form .form-row label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
}

body.woocommerce-checkout .woocommerce form .form-row label .required,
body.woocommerce-checkout .woocommerce form .form-row label abbr.required {
  color: #669bbc !important;
  text-decoration: none;
  border: none;
}

body.woocommerce-checkout .woocommerce form .form-row .woocommerce-form__label-for-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  font-weight: 400;
  color: rgba(255,255,255,0.70);
}

/* Validation states */
body.woocommerce-checkout .woocommerce form .form-row.woocommerce-invalid input.input-text,
body.woocommerce-checkout .woocommerce form .form-row.woocommerce-invalid select {
  border-color: rgba(255,107,107,0.55) !important;
}

body.woocommerce-checkout .woocommerce form .form-row.woocommerce-validated input.input-text,
body.woocommerce-checkout .woocommerce form .form-row.woocommerce-validated select {
  border-color: rgba(102,155,188,0.45) !important;
}

/* Section headings ("Billing details", "Your order") */
body.woocommerce-checkout .woocommerce-billing-fields > h4,
body.woocommerce-checkout .woocommerce-checkout-review-order h4 {
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

/* select2 — country / county dropdowns */
body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0 !important;
  line-height: 1.4 !important;
  color: #eaeaea !important;
}

body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 50% !important;
  right: 12px !important;
  height: 20px !important;
  transform: translateY(-50%);
}

body.woocommerce-checkout .select2-dropdown {
  background: #1e1e1e !important;
  border: 1px solid #3a3a3a !important;
  border-radius: 10px !important;
  overflow: hidden;
}

body.woocommerce-checkout .select2-results__option {
  color: #e0e0e0 !important;
  background: #1e1e1e !important;
}

body.woocommerce-checkout .select2-results__option--highlighted {
  background: #669bbc !important;
  color: #fff !important;
}

body.woocommerce-checkout .select2-search--dropdown .select2-search__field {
  background: #1e1e1e !important;
  border: 1px solid #3a3a3a !important;
  border-radius: 8px;
  color: #e0e0e0 !important;
}

/* Browser autofill override (same treatment as registration forms) */
body.woocommerce-checkout input:-webkit-autofill,
body.woocommerce-checkout input:-webkit-autofill:hover,
body.woocommerce-checkout input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #1b1b1b inset !important;
  -webkit-text-fill-color: #eaeaea !important;
  border-color: rgba(255,255,255,0.15) !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

/* ══════════════════════════════════════
   CHECKOUT — order review
   ══════════════════════════════════════ */
body.woocommerce-checkout table.woocommerce-checkout-review-order-table {
  border-collapse: collapse;
}

body.woocommerce-checkout table.woocommerce-checkout-review-order-table th,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table td {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 12px 0;
  color: rgba(255,255,255,0.62);
  vertical-align: top;
}

body.woocommerce-checkout table.woocommerce-checkout-review-order-table thead th {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.40);
}

body.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot tr:last-child th,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot tr:last-child td {
  border-bottom: none;
}

body.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.order-total td .amount {
  color: #fff;
  font-weight: 500;
}

body.woocommerce-checkout table.woocommerce-checkout-review-order-table .product-name a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
}

body.woocommerce-checkout table.woocommerce-checkout-review-order-table .product-name a:hover {
  color: #fff;
}

/* Alignment at every width: product name left, subtotal right;
   totals rows split label (left) / value (right) */
body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table thead th,
body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tbody td.product-name,
body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tfoot tr th {
  text-align: left;
}

body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table thead th.product-total,
body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tbody td.product-total,
body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tfoot tr td {
  text-align: right;
}

/* ══════════════════════════════════════
   CHECKOUT — payment box
   ══════════════════════════════════════ */
body.woocommerce-checkout #payment {
  margin-top: 20px;
  padding: 18px 18px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
}

body.woocommerce-checkout #payment ul.wc_payment_methods {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

body.woocommerce-checkout #payment ul.wc_payment_methods li {
  padding: 4px 0;
  list-style: none;
}

body.woocommerce-checkout #payment .wc_payment_method label {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

body.woocommerce-checkout #payment .payment_box {
  margin: 10px 0 4px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: rgba(255,255,255,0.62);
  font-size: 13px;
  line-height: 1.5;
}

body.woocommerce-checkout #payment .payment_box::before {
  display: none;
}

/* Gateway logos (e.g. NETOPIA) — small white badge, never stretched */
body.woocommerce-checkout #payment img {
  height: 24px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  padding: 4px 8px;
  box-sizing: content-box;
  vertical-align: middle;
}

/* Terms + privacy line above Place order */
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
  margin-bottom: 16px;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  line-height: 1.5;
}

body.woocommerce-checkout .woocommerce-privacy-policy-text {
  color: rgba(255,255,255,0.50);
  font-size: 13px;
  line-height: 1.5;
}

body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a,
body.woocommerce-checkout .woocommerce-privacy-policy-text a {
  color: #7eb3d4;
}

/* ══════════════════════════════════════
   ORDER RECEIVED — overview list
   ══════════════════════════════════════ */
body.woocommerce-checkout .woocommerce-order-overview li {
  color: rgba(255,255,255,0.55) !important;
  font-size: 13px;
}

body.woocommerce-checkout .woocommerce-order-overview strong {
  color: #fff;
  font-weight: 500;
}

/* ══════════════════════════════════════
   Mobile — stack everything at 375px
   ══════════════════════════════════════ */
@media (max-width: 768px) {
  /* ═══ Cart items — one compact row: × · name · subtotal ═══ */
  body.woocommerce-cart .woocommerce-cart-form .woocommerce-cart-form__cart-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 16px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  body.woocommerce-cart .woocommerce-cart-form .woocommerce-cart-form__cart-item .product-thumbnail {
    flex: 0 0 auto;
    margin-right: 0 !important;
  }

  /* Price/quantity/subtotal become direct children of the item row, so the
     × sits first, the name stretches and the subtotal stays pinned right */
  body.woocommerce-cart .woocommerce-cart-form .woocommerce-cart-form__cart-item .product-quantity-holder {
    display: contents;
  }

  body.woocommerce-cart .woocommerce-cart-form .woocommerce-cart-form__cart-item .product-name {
    order: 2;
    flex: 1 1 0%;
    min-width: 0;
    padding-right: 0;
    margin-right: 0;
    text-align: left !important;
    overflow-wrap: anywhere;
  }

  /* Unit price is redundant next to the subtotal */
  body.woocommerce-cart .woocommerce-cart-form .woocommerce-cart-form__cart-item .product-price {
    display: none !important;
  }

  body.woocommerce-cart .woocommerce-cart-form .woocommerce-cart-form__cart-item .product-subtotal {
    order: 3;
    flex: 0 0 auto;
    margin-right: 0;
    text-align: right !important;
    white-space: nowrap;
    color: #fff !important;
    font-weight: 500;
  }

  /* Sold-individually quantity (no editable input) — hidden entirely */
  body.woocommerce-cart .woocommerce-cart-form .woocommerce-cart-form__cart-item .product-quantity:not(:has(input.qty)) {
    display: none !important;
  }

  /* Editable quantity — own line under the name, left-aligned */
  body.woocommerce-cart .woocommerce-cart-form .woocommerce-cart-form__cart-item:has(input.qty) .product-quantity {
    order: 4;
    flex: 0 0 100%;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding-left: 48px;
    text-align: left !important;
  }

  /* ═══ Cart totals — one flex row per line: label left, value right ═══ */
  body.woocommerce-cart .cart_totals table.shop_table_responsive tr {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  body.woocommerce-cart .cart_totals table.shop_table_responsive tr:last-child {
    border-bottom: none;
  }

  /* WooCommerce smallscreen hides tbody th and shows td::before labels;
     on this compact row the th label IS the label — show it, drop ::before */
  body.woocommerce-cart .cart_totals table.shop_table_responsive tr th {
    display: block !important;
    width: auto;
    border-bottom: none;
    padding: 12px 0 !important;
    text-align: left;
  }

  body.woocommerce-cart .cart_totals table.shop_table_responsive tr td {
    display: block;
    width: auto;
    border-bottom: none;
    padding: 12px 0 !important;
    text-align: right !important;
    clear: none !important;
  }

  body.woocommerce-cart .cart_totals table.shop_table_responsive tr td::before {
    display: none !important;
    content: none !important;
  }

  /* Checkout columns stack; no horizontal scroll */
  body.woocommerce-checkout .woocommerce .col2-set .col-1,
  body.woocommerce-checkout .woocommerce .col2-set .col-2 {
    float: none !important;
    width: 100% !important;
    margin: 0 0 20px !important;
  }

  body.woocommerce-checkout .woocommerce form .form-row-first,
  body.woocommerce-checkout .woocommerce form .form-row-last {
    float: none;
    width: 100%;
  }

  body.woocommerce-checkout table.woocommerce-checkout-review-order-table .product-name,
  body.woocommerce-checkout table.woocommerce-checkout-review-order-table td {
    word-break: break-word;
  }

  /* Full-width buttons */
  body.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
  body.woocommerce-checkout #place_order,
  body.woocommerce-checkout .woocommerce-message .button,
  body.woocommerce-checkout .woocommerce-info .button,
  body.woocommerce-checkout .woocommerce-error .button {
    width: 100%;
  }
}
