/*
 * Bebelplatz — FASE 7.3
 * Cart + checkout usability and layout repair.
 * Isolated from theme files and payment logic.
 */

:root {
  --bp73-ink: #191816;
  --bp73-text: #36332f;
  --bp73-muted: #746f67;
  --bp73-paper: #fbfaf7;
  --bp73-paper-deep: #f3efe7;
  --bp73-line: rgba(25,24,22,.13);
  --bp73-accent: #f07c29;
  --bp73-accent-dark: #bb5b1d;
  --bp73-serif: Georgia, "Times New Roman", serif;
  --bp73-ui: "Montserrat", Arial, sans-serif;
  --bp73-shadow: 0 18px 42px -30px rgba(24,20,15,.55);
}

body.bp73-commerce .shopping-cart {
  float: none !important;
  width: 100%;
  padding: 52px 0 88px !important;
  background: #fff;
}

body.bp73-commerce .shopping-cart > .container {
  max-width: 1180px;
}

body.bp73-commerce .shopping-cart a:focus-visible,
body.bp73-commerce .shopping-cart button:focus-visible,
body.bp73-commerce .shopping-cart input:focus-visible,
body.bp73-commerce .shopping-cart select:focus-visible,
body.bp73-commerce .shopping-cart textarea:focus-visible,
body.bp73-commerce .shopping-cart .select2-selection:focus-visible {
  outline: 2px solid var(--bp73-accent) !important;
  outline-offset: 3px;
}

/* ==================== CART ==================== */
body.woocommerce-cart.bp73-commerce .main-cart > form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}

body.woocommerce-cart.bp73-commerce .shop_table.cart {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

body.woocommerce-cart.bp73-commerce .shop_table.cart tfoot tr:first-child {
  display: none !important;
}

body.woocommerce-cart.bp73-commerce .shop_table.cart tfoot .checkout-button {
  display: none !important;
}

body.woocommerce-cart.bp73-commerce .info-cart {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.woocommerce-cart.bp73-commerce .box-info-cart {
  padding: 26px 24px;
  background: var(--bp73-paper);
  border: 1px solid var(--bp73-line);
  box-shadow: var(--bp73-shadow);
}

body.woocommerce-cart.bp73-commerce .title-box-cart {
  margin-bottom: 24px;
}

body.woocommerce-cart.bp73-commerce .title-box-cart a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--bp73-text);
  font-family: var(--bp73-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.woocommerce-cart.bp73-commerce .cart_totals {
  float: none !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
}

body.woocommerce-cart.bp73-commerce .cart_totals .title-cart-total {
  margin: 0 0 16px;
  color: var(--bp73-ink);
  font-family: var(--bp73-serif);
  font-size: 25px;
  font-weight: 400;
  text-transform: none;
}

body.woocommerce-cart.bp73-commerce .cart_totals table {
  width: 100% !important;
  margin: 0;
  border-collapse: collapse;
}

body.woocommerce-cart.bp73-commerce .cart_totals table tr {
  float: none !important;
  display: table-row !important;
  width: auto !important;
  padding: 0 !important;
  border-bottom: 1px solid var(--bp73-line);
}

body.woocommerce-cart.bp73-commerce .cart_totals table td {
  float: none !important;
  padding: 13px 0 !important;
  border: 0 !important;
  color: var(--bp73-text);
  vertical-align: top;
}

body.woocommerce-cart.bp73-commerce .cart_totals table td:last-child {
  text-align: right;
}

body.woocommerce-cart.bp73-commerce .cart_totals .total-cart-preview td {
  padding-top: 18px !important;
  color: var(--bp73-ink);
  font-weight: 700;
}

body.woocommerce-cart.bp73-commerce .bp73-checkout-button {
  display: flex !important;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  margin: 24px 0 0 !important;
  padding: 0 24px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--bp73-accent) !important;
  color: #fff !important;
  font-family: var(--bp73-ui);
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
}

body.woocommerce-cart.bp73-commerce .bp73-checkout-button:hover {
  background: var(--bp73-accent-dark) !important;
}

body.woocommerce-cart.bp73-commerce .coupon-cart label {
  display: block;
  margin: 28px 0 10px;
  color: var(--bp73-muted);
  font-family: var(--bp73-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

body.woocommerce-cart.bp73-commerce .input-coup-on {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: stretch;
  gap: 8px;
}

body.woocommerce-cart.bp73-commerce .input-coup-on input[type="text"] {
  width: 100% !important;
  min-width: 0;
  min-height: 46px;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 1px solid var(--bp73-line) !important;
  border-radius: 999px !important;
  background: #fff;
  font-family: var(--bp73-ui);
  font-size: 16px;
}

body.woocommerce-cart.bp73-commerce .input-coup-on input[type="submit"] {
  min-width: 92px;
  min-height: 46px;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--bp73-ink) !important;
  color: #fff !important;
  font-family: var(--bp73-ui);
  font-size: 11px !important;
  font-weight: 700;
  text-transform: uppercase;
}

body.woocommerce-cart.bp73-commerce .shipping-calculator-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

/* ==================== CHECKOUT ==================== */
body.woocommerce-checkout.bp73-commerce .shopping-cart {
  background: var(--bp73-paper);
}

body.woocommerce-checkout.bp73-commerce form.checkout {
  float: none !important;
  width: 100%;
  margin: 0;
}

body.woocommerce-checkout.bp73-commerce .box-check-out {
  float: none !important;
  width: 100% !important;
  height: auto !important;
}

body.woocommerce-checkout.bp73-commerce #customer_details {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 56px;
  width: 100%;
  height: auto !important;
}

body.woocommerce-checkout.bp73-commerce #customer_details > .billing-address,
body.woocommerce-checkout.bp73-commerce #customer_details > .shipping-address {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.woocommerce-checkout.bp73-commerce .woocommerce-billing-fields,
body.woocommerce-checkout.bp73-commerce .woocommerce-shipping-fields,
body.woocommerce-checkout.bp73-commerce .woocommerce-additional-fields {
  width: 100%;
}

body.woocommerce-checkout.bp73-commerce .title-box-checkout,
body.woocommerce-checkout.bp73-commerce .woocommerce-additional-fields > h3 {
  float: none !important;
  width: 100% !important;
  margin: 0 0 24px !important;
  color: var(--bp73-ink);
  font-family: var(--bp73-serif) !important;
  font-size: 26px !important;
  font-weight: 400 !important;
  letter-spacing: -.015em;
  line-height: 1.2;
  text-transform: none !important;
}

body.woocommerce-checkout.bp73-commerce .woocommerce-shipping-fields > h3 {
  margin: 0 0 28px !important;
}

body.woocommerce-checkout.bp73-commerce .woocommerce-shipping-fields > h3 label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--bp73-ink);
  font-family: var(--bp73-serif);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.2;
}

body.woocommerce-checkout.bp73-commerce .form-row {
  float: none !important;
  width: 100% !important;
  margin: 0 0 18px !important;
}

body.woocommerce-checkout.bp73-commerce .form-row label {
  display: block;
  margin-bottom: 8px;
  color: var(--bp73-text);
  font-family: var(--bp73-ui);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

body.woocommerce-checkout.bp73-commerce .form-row input.input-text,
body.woocommerce-checkout.bp73-commerce .form-row textarea.input-text {
  float: none !important;
  width: 100% !important;
  min-height: 48px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 11px 14px !important;
  border: 1px solid var(--bp73-line) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--bp73-ink);
  font-family: var(--bp73-ui) !important;
  font-size: 16px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 1.45;
  box-sizing: border-box;
}

body.woocommerce-checkout.bp73-commerce .form-row textarea.input-text {
  min-height: 104px !important;
  resize: vertical;
}

body.woocommerce-checkout.bp73-commerce .select2-container {
  width: 100% !important;
}

body.woocommerce-checkout.bp73-commerce .select2-container .select2-selection--single {
  min-height: 48px !important;
  border: 1px solid var(--bp73-line) !important;
  border-radius: 10px !important;
  background: #fff !important;
}

body.woocommerce-checkout.bp73-commerce .select2-container .select2-selection--single .select2-selection__rendered {
  min-height: 46px;
  padding: 0 38px 0 14px !important;
  color: var(--bp73-ink);
  font-family: var(--bp73-ui);
  font-size: 16px;
  line-height: 46px !important;
}

body.woocommerce-checkout.bp73-commerce .select2-container .select2-selection--single .select2-selection__arrow {
  top: 50% !important;
  right: 10px !important;
  transform: translateY(-50%);
}

body.woocommerce-checkout.bp73-commerce input[type="checkbox"] {
  width: 20px !important;
  min-width: 20px;
  height: 20px !important;
  min-height: 20px !important;
  margin: 0 8px 0 0 !important;
  vertical-align: middle;
}

body.woocommerce-checkout.bp73-commerce .order-check-out {
  clear: both !important;
  float: none !important;
  width: 100% !important;
  height: auto !important;
  margin: 64px 0 0;
}

body.woocommerce-checkout.bp73-commerce #order_review_heading {
  float: none !important;
  clear: both !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 0 26px !important;
  color: var(--bp73-ink);
  font-family: var(--bp73-serif) !important;
  font-size: 32px !important;
  font-weight: 400 !important;
  letter-spacing: -.02em;
  line-height: 1.15 !important;
}

body.woocommerce-checkout.bp73-commerce #order_review {
  display: grid !important;
  grid-template-columns: minmax(0,1.16fr) minmax(320px,.84fr);
  gap: 36px;
  width: 100% !important;
  height: auto !important;
  align-items: start;
}

body.woocommerce-checkout.bp73-commerce .woocommerce-checkout-review-order-table {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  border: 1px solid var(--bp73-line) !important;
  border-radius: 12px !important;
  background: #fff !important;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

body.woocommerce-checkout.bp73-commerce .woocommerce-checkout-review-order-table thead,
body.woocommerce-checkout.bp73-commerce .woocommerce-checkout-review-order-table tbody,
body.woocommerce-checkout.bp73-commerce .woocommerce-checkout-review-order-table tfoot {
  float: none !important;
  width: auto !important;
  height: auto !important;
}

body.woocommerce-checkout.bp73-commerce .woocommerce-checkout-review-order-table tr {
  float: none !important;
  display: table-row !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  border-bottom: 1px solid var(--bp73-line);
}

body.woocommerce-checkout.bp73-commerce .woocommerce-checkout-review-order-table th,
body.woocommerce-checkout.bp73-commerce .woocommerce-checkout-review-order-table td {
  float: none !important;
  display: table-cell !important;
  width: auto !important;
  max-width: none !important;
  padding: 16px 14px !important;
  border: 0 !important;
  vertical-align: middle;
  text-align: left !important;
}

body.woocommerce-checkout.bp73-commerce .woocommerce-checkout-review-order-table thead th {
  color: var(--bp73-muted);
  font-family: var(--bp73-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

body.woocommerce-checkout.bp73-commerce .woocommerce-checkout-review-order-table tbody .book-item {
  float: none !important;
  width: 64px !important;
  margin: 0 12px 0 0 !important;
  display: inline-block;
  vertical-align: middle;
}

body.woocommerce-checkout.bp73-commerce .woocommerce-checkout-review-order-table tbody .book-image img {
  display: block;
  width: 64px !important;
  height: auto !important;
}

body.woocommerce-checkout.bp73-commerce .woocommerce-checkout-review-order-table .product-info-name {
  display: inline-block;
  max-width: calc(100% - 82px);
  margin: 0 !important;
  color: var(--bp73-ink);
  font-family: var(--bp73-serif);
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  vertical-align: middle;
}

body.woocommerce-checkout.bp73-commerce .woocommerce-checkout-review-order-table tfoot th,
body.woocommerce-checkout.bp73-commerce .woocommerce-checkout-review-order-table tfoot td {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  font-family: var(--bp73-ui);
}

body.woocommerce-checkout.bp73-commerce .woocommerce-checkout-review-order-table .order-total th,
body.woocommerce-checkout.bp73-commerce .woocommerce-checkout-review-order-table .order-total td {
  color: var(--bp73-ink);
  font-size: 16px;
  font-weight: 700;
}

body.woocommerce-checkout.bp73-commerce #payment {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 24px !important;
  border: 1px solid var(--bp73-line);
  border-radius: 12px;
  background: #fff !important;
  box-shadow: var(--bp73-shadow);
  box-sizing: border-box;
}

body.woocommerce-checkout.bp73-commerce #payment .payment_methods,
body.woocommerce-checkout.bp73-commerce #payment .place-order {
  display: block !important;
  width: 100% !important;
  height: auto !important;
}

body.woocommerce-checkout.bp73-commerce #payment .payment_methods {
  margin: 0 !important;
  padding: 0 !important;
}

body.woocommerce-checkout.bp73-commerce #payment .wc_payment_method {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

body.woocommerce-checkout.bp73-commerce #payment .wc_payment_method > label {
  display: block;
  margin: 0 0 16px;
  color: var(--bp73-ink);
  font-family: var(--bp73-serif);
  font-size: 22px;
  font-weight: 400;
}

body.woocommerce-checkout.bp73-commerce #payment .payment_box {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

body.woocommerce-checkout.bp73-commerce #payment .wc-upe-form,
body.woocommerce-checkout.bp73-commerce #payment .wc-stripe-upe-element {
  width: 100% !important;
  min-height: 48px;
}

body.woocommerce-checkout.bp73-commerce #payment .woocommerce-terms-and-conditions-wrapper {
  margin: 22px 0 16px;
  color: var(--bp73-muted);
  font-family: var(--bp73-ui);
  font-size: 12px;
  line-height: 1.55;
}

body.woocommerce-checkout.bp73-commerce #payment #place_order {
  display: flex !important;
  width: 100% !important;
  min-height: 52px !important;
  align-items: center;
  justify-content: center;
  margin: 16px 0 0 !important;
  padding: 0 24px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--bp73-accent) !important;
  color: #fff !important;
  font-family: var(--bp73-ui);
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .02em;
  text-transform: uppercase;
}

body.woocommerce-checkout.bp73-commerce #payment #place_order:hover {
  background: var(--bp73-accent-dark) !important;
}

/* ==================== MOBILE ==================== */
@media (max-width: 767px) {
  body.bp73-commerce .shopping-cart {
    padding: 30px 0 64px !important;
  }

  body.woocommerce-cart.bp73-commerce .main-cart > form {
    display: block;
  }

  body.woocommerce-cart.bp73-commerce .shop_table.cart,
  body.woocommerce-cart.bp73-commerce .shop_table.cart tbody,
  body.woocommerce-cart.bp73-commerce .shop_table.cart tfoot {
    display: block !important;
    width: 100% !important;
  }

  body.woocommerce-cart.bp73-commerce .shop_table.cart thead {
    display: none !important;
  }

  body.woocommerce-cart.bp73-commerce .shop_table.cart tbody {
    float: none !important;
    border: 0 !important;
  }

  body.woocommerce-cart.bp73-commerce .shop_table.cart tbody tr.cart_item {
    float: none !important;
    display: block !important;
    width: 100% !important;
    margin: 0 0 22px;
    padding: 18px !important;
    border: 1px solid var(--bp73-line) !important;
    border-radius: 14px;
    background: var(--bp73-paper);
    box-shadow: var(--bp73-shadow);
    box-sizing: border-box;
  }

  body.woocommerce-cart.bp73-commerce .shop_table.cart tbody tr.cart_item > td {
    float: none !important;
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--bp73-line) !important;
    box-sizing: border-box;
    text-align: left !important;
  }

  body.woocommerce-cart.bp73-commerce .shop_table.cart tbody tr.cart_item > td:last-child {
    border-bottom: 0 !important;
  }

  body.woocommerce-cart.bp73-commerce .shop_table.cart tbody tr.cart_item > td.product-thumbnail {
    display: grid !important;
    grid-template-columns: 72px minmax(0,1fr);
    align-items: start;
    justify-content: stretch;
    padding-top: 0 !important;
  }

  body.woocommerce-cart.bp73-commerce .shop_table.cart .product-thumbnail .book-item {
    width: 72px !important;
    margin: 0 !important;
  }

  body.woocommerce-cart.bp73-commerce .shop_table.cart .product-thumbnail .book-image img {
    display: block;
    width: 72px !important;
    height: auto !important;
  }

  body.woocommerce-cart.bp73-commerce .shop_table.cart .product-info-name {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
  }

  body.woocommerce-cart.bp73-commerce .shop_table.cart .product-info-name a {
    float: none !important;
    display: block;
    width: auto !important;
    margin: 0 0 6px !important;
    color: var(--bp73-ink);
    font-family: var(--bp73-serif) !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
  }

  body.woocommerce-cart.bp73-commerce .shop_table.cart .product-info-name span {
    float: none !important;
    display: block;
    width: auto !important;
    color: var(--bp73-muted);
    font-family: var(--bp73-ui);
    font-size: 12px;
    line-height: 1.45;
  }

  body.woocommerce-cart.bp73-commerce .shop_table.cart td.product-price::before {
    content: "Precio";
  }

  body.woocommerce-cart.bp73-commerce .shop_table.cart td.product-quantity::before {
    content: "Cantidad";
  }

  body.woocommerce-cart.bp73-commerce .shop_table.cart td.product-subtotal::before {
    content: "Total";
  }

  body.woocommerce-cart.bp73-commerce .shop_table.cart td.product-price::before,
  body.woocommerce-cart.bp73-commerce .shop_table.cart td.product-quantity::before,
  body.woocommerce-cart.bp73-commerce .shop_table.cart td.product-subtotal::before {
    color: var(--bp73-muted);
    font-family: var(--bp73-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
  }

  body.woocommerce-cart.bp73-commerce .shop_table.cart td.product-quantity {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto;
  }

  body.woocommerce-cart.bp73-commerce .shop_table.cart td.product-quantity .quantity {
    justify-self: end;
  }

  body.woocommerce-cart.bp73-commerce .shop_table.cart td.product-quantity .remove {
    grid-column: 2;
    justify-self: end;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 0 !important;
    color: var(--bp73-muted) !important;
    font-family: var(--bp73-ui);
    font-size: 12px !important;
    font-weight: 500 !important;
  }

  body.woocommerce-cart.bp73-commerce .shop_table.cart input.qty {
    width: 68px !important;
    min-width: 68px;
    min-height: 44px;
    margin: 0 !important;
    padding: 0 10px !important;
    font-size: 16px !important;
  }

  body.woocommerce-cart.bp73-commerce .shop_table.cart tfoot {
    float: none !important;
    margin: 0 0 28px;
    border: 0 !important;
  }

  body.woocommerce-cart.bp73-commerce .shop_table.cart tfoot tr {
    float: none !important;
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
  }

  body.woocommerce-cart.bp73-commerce .shop_table.cart tfoot td {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
  }

  body.woocommerce-cart.bp73-commerce .shop_table.cart input[name="update_cart"] {
    width: 100% !important;
    min-height: 46px;
    margin: 0 !important;
    border: 1px solid var(--bp73-line) !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: var(--bp73-text) !important;
    font-family: var(--bp73-ui);
    font-size: 12px !important;
    font-weight: 600;
  }

  body.woocommerce-cart.bp73-commerce .info-cart {
    margin-top: 0 !important;
  }

  body.woocommerce-cart.bp73-commerce .box-info-cart {
    padding: 22px 18px;
  }

  body.woocommerce-cart.bp73-commerce .input-coup-on {
    grid-template-columns: 1fr;
  }

  body.woocommerce-cart.bp73-commerce .input-coup-on input[type="submit"] {
    width: 100%;
  }

  body.woocommerce-checkout.bp73-commerce #customer_details {
    grid-template-columns: minmax(0,1fr);
    gap: 34px;
  }

  body.woocommerce-checkout.bp73-commerce .title-box-checkout,
  body.woocommerce-checkout.bp73-commerce .woocommerce-additional-fields > h3,
  body.woocommerce-checkout.bp73-commerce .woocommerce-shipping-fields > h3 label {
    font-size: 24px !important;
  }

  body.woocommerce-checkout.bp73-commerce .order-check-out {
    margin-top: 46px;
  }

  body.woocommerce-checkout.bp73-commerce #order_review_heading {
    font-size: 29px !important;
    margin-bottom: 20px !important;
  }

  body.woocommerce-checkout.bp73-commerce #order_review {
    grid-template-columns: minmax(0,1fr);
    gap: 24px;
  }

  body.woocommerce-checkout.bp73-commerce .woocommerce-checkout-review-order-table {
    display: block !important;
    width: 100% !important;
  }

  body.woocommerce-checkout.bp73-commerce .woocommerce-checkout-review-order-table thead {
    display: none !important;
  }

  body.woocommerce-checkout.bp73-commerce .woocommerce-checkout-review-order-table tbody,
  body.woocommerce-checkout.bp73-commerce .woocommerce-checkout-review-order-table tfoot {
    display: block !important;
    width: 100% !important;
  }

  body.woocommerce-checkout.bp73-commerce .woocommerce-checkout-review-order-table tbody tr.cart_item {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 10px 14px;
    padding: 16px !important;
    border-bottom: 1px solid var(--bp73-line);
  }

  body.woocommerce-checkout.bp73-commerce .woocommerce-checkout-review-order-table tbody tr.cart_item td.product-name {
    grid-column: 1 / -1;
    display: grid !important;
    grid-template-columns: 64px minmax(0,1fr);
    gap: 12px;
    align-items: center;
    padding: 0 0 12px !important;
  }

  body.woocommerce-checkout.bp73-commerce .woocommerce-checkout-review-order-table tbody tr.cart_item td.product-quantity,
  body.woocommerce-checkout.bp73-commerce .woocommerce-checkout-review-order-table tbody tr.cart_item td.product-total {
    display: flex !important;
    width: auto !important;
    align-items: center;
    gap: 8px;
    padding: 0 !important;
    font-family: var(--bp73-ui);
    font-size: 13px;
  }

  body.woocommerce-checkout.bp73-commerce .woocommerce-checkout-review-order-table tbody tr.cart_item td.product-quantity::before {
    content: "Cantidad";
    color: var(--bp73-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  body.woocommerce-checkout.bp73-commerce .woocommerce-checkout-review-order-table tbody tr.cart_item td.product-total::before {
    content: "Precio";
    color: var(--bp73-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  body.woocommerce-checkout.bp73-commerce .woocommerce-checkout-review-order-table tfoot tr {
    display: flex !important;
    width: 100% !important;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 0 16px !important;
    border-bottom: 1px solid var(--bp73-line);
    box-sizing: border-box;
  }

  body.woocommerce-checkout.bp73-commerce .woocommerce-checkout-review-order-table tfoot th,
  body.woocommerce-checkout.bp73-commerce .woocommerce-checkout-review-order-table tfoot td {
    display: block !important;
    width: auto !important;
    max-width: 68% !important;
    padding: 14px 0 !important;
  }

  body.woocommerce-checkout.bp73-commerce .woocommerce-checkout-review-order-table tfoot td {
    text-align: right !important;
  }

  body.woocommerce-checkout.bp73-commerce #payment {
    padding: 20px !important;
  }

  body.woocommerce-checkout.bp73-commerce #payment .wc_payment_method > label {
    font-size: 20px;
  }
}

@media (min-width:768px) and (max-width:1024px) {
  body.woocommerce-cart.bp73-commerce .main-cart > form {
    grid-template-columns: minmax(0,1fr) 280px;
    gap: 28px;
  }

  body.woocommerce-checkout.bp73-commerce #customer_details {
    gap: 34px;
  }

  body.woocommerce-checkout.bp73-commerce #order_review {
    grid-template-columns: minmax(0,1.1fr) minmax(300px,.9fr);
    gap: 26px;
  }
}

/* FASE 7.3 refinement: tablet order/payment must stack before two-column mode. */
@media (min-width: 768px) and (max-width: 899px) {
  body.woocommerce-checkout.bp73-commerce #order_review {
    grid-template-columns: minmax(0,1fr) !important;
    gap: 26px !important;
  }

  body.woocommerce-checkout.bp73-commerce #payment {
    max-width: 560px;
  }
}
