/* LelexTea Commerce v2 — Phase 11 */
:root {
  --ltc-primary: #2f4a32;
  --ltc-primary-hover: #243a27;
  --ltc-text: #20251f;
  --ltc-muted: #62685f;
  --ltc-bg: #fff;
  --ltc-bg-soft: #f7f6f1;
  --ltc-border: #d9dcd5;
  --ltc-error: #b3261e;
  --ltc-error-bg: #fff1f0;
  --ltc-success: #27663a;
  --ltc-success-bg: #edf7ef;
  --ltc-radius: 6px;
  --ltc-focus: 0 0 0 3px rgba(47, 74, 50, .26);
}

body.lelextea-commerce .woocommerce {
  color: var(--ltc-text);
  font-size: 16px;
  line-height: 1.5;
}

body.lelextea-commerce .woocommerce input.input-text,
body.lelextea-commerce .woocommerce select,
body.lelextea-commerce .woocommerce textarea,
body.lelextea-commerce .select2-container .select2-selection--single {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--ltc-border);
  border-radius: var(--ltc-radius);
  background: var(--ltc-bg);
  color: var(--ltc-text);
  font-size: 16px;
  box-shadow: none;
}

body.lelextea-commerce .woocommerce textarea {
  min-height: 108px;
  resize: vertical;
}

body.lelextea-commerce .select2-container .select2-selection--single {
  display: flex;
  align-items: center;
}

body.lelextea-commerce .woocommerce input.input-text:focus,
body.lelextea-commerce .woocommerce select:focus,
body.lelextea-commerce .woocommerce textarea:focus,
body.lelextea-commerce .select2-container--focus .select2-selection--single,
body.lelextea-commerce .woocommerce a:focus-visible,
body.lelextea-commerce .woocommerce button:focus-visible {
  outline: 2px solid transparent;
  box-shadow: var(--ltc-focus);
  border-color: var(--ltc-primary);
}

body.lelextea-commerce .woocommerce form .form-row {
  margin: 0 0 20px;
}

body.lelextea-commerce .woocommerce form .form-row label {
  display: block;
  margin: 0 0 8px;
  color: var(--ltc-text);
  font-size: 15px;
  font-weight: 600;
}

body.lelextea-commerce .woocommerce-error,
body.lelextea-commerce .woocommerce-message,
body.lelextea-commerce .woocommerce-info {
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid var(--ltc-border);
  border-radius: var(--ltc-radius);
  background: var(--ltc-bg-soft);
  color: var(--ltc-text);
  font-size: 15px;
}

body.lelextea-commerce .woocommerce-error {
  border-color: var(--ltc-error);
  background: var(--ltc-error-bg);
}

body.lelextea-commerce .woocommerce-message {
  border-color: var(--ltc-success);
  background: var(--ltc-success-bg);
}

/* Cart */
body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table {
  border: 1px solid var(--ltc-border);
  border-radius: var(--ltc-radius);
  background: var(--ltc-bg);
}

body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table th,
body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table td {
  padding: 16px;
  border-color: var(--ltc-border);
  vertical-align: middle;
}

body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table .product-thumbnail {
  display: none !important;
}

body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table .product-name a {
  color: var(--ltc-text);
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.lelextea-commerce-cart .lelextea-remove-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--ltc-radius);
  color: var(--ltc-muted) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
}

body.lelextea-commerce-cart .cart_totals {
  padding: 22px;
  border: 1px solid var(--ltc-border);
  border-radius: var(--ltc-radius);
  background: var(--ltc-bg-soft);
}

body.lelextea-commerce-cart .wc-proceed-to-checkout a.checkout-button,
body.lelextea-commerce-checkout #place_order {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--ltc-primary);
  border-radius: var(--ltc-radius);
  background: var(--ltc-primary);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}

body.lelextea-commerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
body.lelextea-commerce-checkout #place_order:hover {
  border-color: var(--ltc-primary-hover);
  background: var(--ltc-primary-hover);
  color: #fff;
}

/* Checkout */
body.lelextea-commerce-checkout .lelextea-checkout-navigation {
  margin: 0 0 20px;
}

body.lelextea-commerce-checkout .lelextea-back-to-cart {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ltc-text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
}

body.lelextea-commerce-checkout #customer_details .col-1,
body.lelextea-commerce-checkout #customer_details .col-2 {
  float: none;
  width: 100%;
  margin: 0;
}

body.lelextea-commerce-checkout #customer_details .col-2 {
  margin-top: 28px;
}

body.lelextea-commerce-checkout #order_review {
  padding: 22px;
  border: 1px solid var(--ltc-border);
  border-radius: var(--ltc-radius);
  background: var(--ltc-bg-soft);
  overflow: hidden;
}

body.lelextea-commerce-checkout #order_review table.shop_table {
  width: 100%;
  margin: 0 0 22px;
  border: 0;
  background: transparent;
  table-layout: fixed;
}

body.lelextea-commerce-checkout #order_review table.shop_table th,
body.lelextea-commerce-checkout #order_review table.shop_table td {
  box-sizing: border-box;
  padding: 13px 0;
  border-color: var(--ltc-border);
  vertical-align: top;
}

body.lelextea-commerce-checkout .woocommerce-checkout-review-order-table th.product-name,
body.lelextea-commerce-checkout .woocommerce-checkout-review-order-table td.product-name {
  width: 72%;
  padding-right: 12px !important;
  text-align: left !important;
}

body.lelextea-commerce-checkout .woocommerce-checkout-review-order-table th.product-total,
body.lelextea-commerce-checkout .woocommerce-checkout-review-order-table td.product-total {
  width: 28%;
  padding-left: 8px !important;
  text-align: right !important;
  white-space: nowrap;
}

body.lelextea-commerce-checkout .fusion-product-name-wrapper,
body.lelextea-commerce-checkout .fusion-product-name-wrapper .product-info {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.lelextea-commerce-checkout .lelextea-checkout-product-link {
  color: var(--ltc-text);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}

body.lelextea-commerce-checkout .woocommerce-checkout-review-order-table tbody td.product-total,
body.lelextea-commerce-checkout .woocommerce-checkout-review-order-table tbody td.product-total .amount {
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
}

/* Avada nests totals in a second table. Style that table directly. */
body.lelextea-commerce-checkout .awb-checkout-totals-wrapper > td {
  padding: 0 !important;
}

body.lelextea-commerce-checkout .awb-cart-totals-table {
  width: 100% !important;
  margin: 0 !important;
  table-layout: fixed !important;
}

body.lelextea-commerce-checkout .awb-cart-totals-table th,
body.lelextea-commerce-checkout .awb-cart-totals-table td {
  box-sizing: border-box;
  vertical-align: middle !important;
  line-height: 1.25 !important;
}

body.lelextea-commerce-checkout .awb-cart-totals-table th {
  width: 62% !important;
  padding: 16px 10px 16px 0 !important;
  text-align: right !important;
  white-space: nowrap;
}

body.lelextea-commerce-checkout .awb-cart-totals-table td {
  width: 38% !important;
  padding: 16px 0 16px 4px !important;
  text-align: right !important;
  white-space: nowrap;
}

body.lelextea-commerce-checkout .awb-cart-totals-table .amount {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  vertical-align: baseline !important;
}

body.lelextea-commerce-checkout .awb-cart-totals-table .cart-subtotal th,
body.lelextea-commerce-checkout .awb-cart-totals-table .cart-subtotal td,
body.lelextea-commerce-checkout .awb-cart-totals-table .cart-subtotal .amount {
  font-size: 14px !important;
  font-weight: 600 !important;
}

body.lelextea-commerce-checkout .awb-cart-totals-table .order-total th,
body.lelextea-commerce-checkout .awb-cart-totals-table .order-total td,
body.lelextea-commerce-checkout .awb-cart-totals-table .order-total .amount {
  font-size: 18px !important;
  font-weight: 700 !important;
}


@media (max-width: 767px) {
  /* Cart: mobile-first card layout. No absolute positioning. */
  body.lelextea-commerce-cart .woocommerce-content-box.full-width {
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  body.lelextea-commerce-cart .woocommerce-cart-form,
  body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table,
  body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table tbody {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table {
    border: 0 !important;
    background: transparent !important;
  }

  body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table thead {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table tr.cart_item {
    position: static !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 14px !important;
    padding: 16px !important;
    border: 1px solid var(--ltc-border) !important;
    border-radius: var(--ltc-radius) !important;
    background: var(--ltc-bg) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td {
    position: static !important;
    display: grid !important;
    grid-template-columns: 72px minmax(0, 1fr) !important;
    column-gap: 8px !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 10px 0 !important;
    border: 0 !important;
    box-sizing: border-box !important;
    text-align: right !important;
  }

  body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td::before {
    content: attr(data-title) !important;
    color: var(--ltc-muted) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    text-align: left !important;
  }

  body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-name {
    display: block !important;
    padding: 0 0 8px !important;
    text-align: left !important;
  }

  body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-name::before,
  body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-remove::before {
    content: none !important;
  }

  body.lelextea-commerce-cart .fusion-product-name-wrapper,
  body.lelextea-commerce-cart .fusion-product-name-wrapper .product-info {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table .product-name a:not(.lelextea-cart-remove-mobile) {
    display: inline !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }

  body.lelextea-commerce-cart .lelextea-cart-remove-mobile {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    min-height: 44px !important;
    margin: 8px 0 0 !important;
    padding: 6px 0 !important;
    color: var(--ltc-muted) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-decoration: underline !important;
  }

  body.lelextea-commerce-cart td.product-remove.lelextea-cart-remove-desktop {
    display: none !important;
  }

  body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-price .amount,
  body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-subtotal .amount {
    justify-self: end !important;
    font-size: 17px !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
  }

  body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-quantity .quantity {
    display: grid !important;
    grid-template-columns: 28px 40px 28px !important;
    justify-self: end !important;
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--ltc-border) !important;
    border-radius: var(--ltc-radius) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-quantity .quantity .minus,
  body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-quantity .quantity .plus,
  body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-quantity .quantity .qty {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    line-height: 42px !important;
    text-align: center !important;
  }

  body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-quantity .quantity .minus,
  body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-quantity .quantity .plus {
    font-size: 15px !important;
  }

  body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-quantity .quantity .qty {
    font-size: 16px !important;
  }

  body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table tr.avada-cart-actions,
  body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table tr.avada-cart-actions td.actions {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table td.actions .coupon {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
  }

  body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table td.actions .coupon .input-text,
  body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table td.actions .coupon .button,
  body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table td.actions > .button {
    width: 100% !important;
    margin: 0 !important;
  }

  body.lelextea-commerce-cart .cart-collaterals,
  body.lelextea-commerce-cart .cart_totals {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.lelextea-commerce-checkout #order_review {
    padding: 18px 14px;
  }

  body.lelextea-commerce-checkout .woocommerce-checkout-review-order-table th.product-name,
  body.lelextea-commerce-checkout .woocommerce-checkout-review-order-table td.product-name {
    width: 70%;
    padding-right: 6px !important;
  }

  body.lelextea-commerce-checkout .woocommerce-checkout-review-order-table th.product-total,
  body.lelextea-commerce-checkout .woocommerce-checkout-review-order-table td.product-total {
    width: 30%;
    padding-left: 2px !important;
    padding-right: 0 !important;
  }

  body.lelextea-commerce-checkout .woocommerce-checkout-review-order-table
  thead th.product-total {
    font-size: 13px !important;
  }

  body.lelextea-commerce-checkout .woocommerce-checkout-review-order-table
  tbody td.product-name,
  body.lelextea-commerce-checkout .woocommerce-checkout-review-order-table
  tbody td.product-name a,
  body.lelextea-commerce-checkout .woocommerce-checkout-review-order-table
  tbody td.product-total,
  body.lelextea-commerce-checkout .woocommerce-checkout-review-order-table
  tbody td.product-total .amount {
    font-size: 15px !important;
    line-height: 1.4 !important;
  }

  body.lelextea-commerce-checkout .awb-cart-totals-table th {
    width: 58% !important;
    padding-right: 8px !important;
  }

  body.lelextea-commerce-checkout .awb-cart-totals-table td {
    width: 42% !important;
    padding-left: 2px !important;
  }
}

@media (max-width: 360px) {
  body.lelextea-commerce-checkout #order_review {
    padding-right: 12px;
    padding-left: 12px;
  }

  body.lelextea-commerce-checkout .woocommerce-checkout-review-order-table th.product-name,
  body.lelextea-commerce-checkout .woocommerce-checkout-review-order-table td.product-name {
    width: 68%;
  }

  body.lelextea-commerce-checkout .woocommerce-checkout-review-order-table th.product-total,
  body.lelextea-commerce-checkout .woocommerce-checkout-review-order-table td.product-total {
    width: 32%;
  }

  body.lelextea-commerce-checkout .awb-cart-totals-table .order-total th,
  body.lelextea-commerce-checkout .awb-cart-totals-table .order-total td,
  body.lelextea-commerce-checkout .awb-cart-totals-table .order-total .amount {
    font-size: 17px !important;
  }
}

@media (min-width: 1024px) {
  body.lelextea-commerce-checkout form.checkout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr);
    grid-template-areas:
      'customer review-heading'
      'customer review';
    gap: 0 40px;
    align-items: start;
  }

  body.lelextea-commerce-checkout #customer_details {
    grid-area: customer;
  }

  body.lelextea-commerce-checkout #order_review_heading {
    grid-area: review-heading;
  }

  body.lelextea-commerce-checkout #order_review {
    grid-area: review;
  }

  body.lelextea-commerce-cart .cart-collaterals .cart_totals {
    float: right;
    width: min(100%, 420px);
  }
}

/* Phase 11 — subtotal amount size */
@media (max-width: 767px) {
    body.lelextea-commerce-checkout
    .woocommerce-checkout-review-order-table
    tfoot tr.cart-subtotal td,
    body.lelextea-commerce-checkout
    .woocommerce-checkout-review-order-table
    tfoot tr.cart-subtotal td .amount {
        font-size: 16px !important;
    }
}

/* Phase 11 cart mobile — reviewed correction (320–430px) */
@media (max-width: 767px) {
  /* The generic td grid rule has higher specificity than the earlier hide rule. */
  body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table tr.cart_item
  td.product-remove.lelextea-cart-remove-desktop {
    display: none !important;
  }

  /* Keep the single mobile Remove link on its own line below the product title. */
  body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table tr.cart_item
  td.product-name .lelextea-cart-remove-mobile {
    display: flex !important;
    width: max-content !important;
    min-height: 32px !important;
    margin: 5px 0 0 !important;
    padding: 3px 0 !important;
    clear: both !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
  }

  body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table tr.cart_item
  td.product-name a:not(.lelextea-cart-remove-mobile) {
    line-height: 1.35 !important;
  }

  body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table tr.cart_item {
    padding: 14px !important;
  }

  body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td {
    padding: 6px 0 !important;
  }

  body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-name {
    padding: 0 0 5px !important;
  }

  body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table tr.cart_item
  td.product-price,
  body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table tr.cart_item
  td.product-quantity,
  body.lelextea-commerce-cart .woocommerce-cart-form table.shop_table tr.cart_item
  td.product-subtotal {
    min-height: 40px !important;
  }
}

/* Phase 11 — remove empty mobile cart actions gap */
@media (max-width: 767px) {

    body.lelextea-commerce-cart
    table.shop_table
    tbody
    tr.avada-cart-actions {
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }

    body.lelextea-commerce-cart
    table.shop_table
    tbody
    tr.avada-cart-actions
    td.actions {
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }
}

/* Phase 11 — reviewed mobile checkout pass: typography, coupon, locale labels, shipping layout */
body.lelextea-commerce-checkout .lelextea-coupon-disclosure {
  margin: 0 0 24px;
  border-top: 1px solid var(--ltc-border);
  border-bottom: 1px solid var(--ltc-border);
}

body.lelextea-commerce-checkout .lelextea-coupon-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--ltc-text);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

body.lelextea-commerce-checkout .lelextea-coupon-toggle::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

body.lelextea-commerce-checkout .lelextea-coupon-toggle[aria-expanded='true']::after {
  content: '−';
}

body.lelextea-commerce-checkout .lelextea-checkout-coupon-form[hidden] {
  display: none !important;
}

body.lelextea-commerce-checkout .lelextea-checkout-coupon-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 0 !important;
  padding: 0 0 16px !important;
  border: 0 !important;
  background: transparent !important;
}

body.lelextea-commerce-checkout .lelextea-checkout-coupon-form .form-row {
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

body.lelextea-commerce-checkout .lelextea-checkout-coupon-form .button {
  min-height: 52px;
  padding: 10px 16px;
  white-space: nowrap;
}

body.lelextea-commerce-checkout .woocommerce-form-coupon-toggle,
body.lelextea-commerce-checkout form.checkout_coupon:not(.lelextea-checkout-coupon-form) {
  display: none !important;
}

@media (max-width: 767px) {
  body.lelextea-commerce-checkout .woocommerce-content-box,
  body.lelextea-commerce-checkout #customer_details .col-1,
  body.lelextea-commerce-checkout #customer_details .col-2,
  body.lelextea-commerce-checkout #order_review {
    padding: 16px !important;
  }

  body.lelextea-commerce-checkout .woocommerce-billing-fields > h3,
  body.lelextea-commerce-checkout #order_review_heading {
    margin: 0 0 18px !important;
    padding: 0 0 12px !important;
    font-size: 22px !important;
    line-height: 1.25 !important;
  }

  body.lelextea-commerce-checkout #ship-to-different-address,
  body.lelextea-commerce-checkout #ship-to-different-address label,
  body.lelextea-commerce-checkout #ship-to-different-address span {
    font-size: 20px !important;
    line-height: 1.25 !important;
  }

  body.lelextea-commerce-checkout #ship-to-different-address {
    margin: 0 0 18px !important;
    padding: 0 0 12px !important;
  }

  body.lelextea-commerce-checkout .lelextea-coupon-disclosure {
    margin-bottom: 20px;
  }

  body.lelextea-commerce-checkout .lelextea-checkout-coupon-form {
    grid-template-columns: 1fr;
  }

  body.lelextea-commerce-checkout .lelextea-checkout-coupon-form .button {
    width: 100%;
  }

}

@media (max-width: 360px) {
  body.lelextea-commerce-checkout .woocommerce-content-box,
  body.lelextea-commerce-checkout #customer_details .col-1,
  body.lelextea-commerce-checkout #customer_details .col-2,
  body.lelextea-commerce-checkout #order_review {
    padding: 14px !important;
  }

  body.lelextea-commerce-checkout .woocommerce-billing-fields > h3,
  body.lelextea-commerce-checkout #order_review_heading {
    font-size: 21px !important;
  }

  body.lelextea-commerce-checkout #ship-to-different-address,
  body.lelextea-commerce-checkout #ship-to-different-address label,
  body.lelextea-commerce-checkout #ship-to-different-address span {
    font-size: 19px !important;
  }
}

/* ============================================================
   Phase 11 — Checkout shipping layout (single canonical block)
   ============================================================ */

/* Desktop/tablet: keep valid table semantics. The child template supplies
   separate full-span heading and methods rows. */
body.lelextea-commerce-checkout
.awb-cart-totals-table tr.lelextea-shipping-heading-row > th,
body.lelextea-commerce-checkout
.woocommerce-checkout-review-order-table tr.lelextea-shipping-heading-row > th {
  width: auto !important;
  max-width: none !important;
  padding: 16px 0 8px !important;
  text-align: left !important;
  white-space: normal !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

body.lelextea-commerce-checkout
.awb-cart-totals-table tr.lelextea-shipping-methods-row > td,
body.lelextea-commerce-checkout
.woocommerce-checkout-review-order-table tr.lelextea-shipping-methods-row > td {
  width: auto !important;
  max-width: none !important;
  padding: 0 0 16px !important;
  text-align: left !important;
  white-space: normal !important;
  vertical-align: top !important;
}

body.lelextea-commerce-checkout ul.lelextea-shipping-methods {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  text-align: left !important;
}

body.lelextea-commerce-checkout ul.lelextea-shipping-methods > li {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr) !important;
  align-items: start !important;
  column-gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid #d7d9d2 !important;
  border-radius: 5px !important;
  box-sizing: border-box !important;
  text-align: left !important;
}

body.lelextea-commerce-checkout ul.lelextea-shipping-methods > li input[type='radio'] {
  grid-column: 1 !important;
  width: 16px !important;
  height: 16px !important;
  margin: 3px 0 0 !important;
}

body.lelextea-commerce-checkout ul.lelextea-shipping-methods > li label {
  grid-column: 2 !important;
  display: block !important;
  min-width: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  hyphens: none !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
}

body.lelextea-commerce-checkout ul.lelextea-shipping-methods > li label .amount {
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: inherit !important;
  white-space: nowrap !important;
}

/* Mobile: stop using table column widths entirely for the nested totals table.
   This is the key fix: the shipping rows become true full-width blocks. */
@media (max-width: 767px) {
  body.lelextea-commerce-checkout .awb-cart-totals-table,
  body.lelextea-commerce-checkout .awb-cart-totals-table > tbody {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.lelextea-commerce-checkout .awb-cart-totals-table > tbody > tr {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Normal totals retain a compact label/value layout. */
  body.lelextea-commerce-checkout .awb-cart-totals-table > tbody > tr.cart-subtotal,
  body.lelextea-commerce-checkout .awb-cart-totals-table > tbody > tr.order-total,
  body.lelextea-commerce-checkout .awb-cart-totals-table > tbody > tr.cart-discount,
  body.lelextea-commerce-checkout .awb-cart-totals-table > tbody > tr.fee,
  body.lelextea-commerce-checkout .awb-cart-totals-table > tbody > tr.tax-rate {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    column-gap: 10px !important;
  }

  body.lelextea-commerce-checkout .awb-cart-totals-table > tbody > tr.cart-subtotal > th,
  body.lelextea-commerce-checkout .awb-cart-totals-table > tbody > tr.cart-subtotal > td,
  body.lelextea-commerce-checkout .awb-cart-totals-table > tbody > tr.order-total > th,
  body.lelextea-commerce-checkout .awb-cart-totals-table > tbody > tr.order-total > td,
  body.lelextea-commerce-checkout .awb-cart-totals-table > tbody > tr.cart-discount > th,
  body.lelextea-commerce-checkout .awb-cart-totals-table > tbody > tr.cart-discount > td,
  body.lelextea-commerce-checkout .awb-cart-totals-table > tbody > tr.fee > th,
  body.lelextea-commerce-checkout .awb-cart-totals-table > tbody > tr.fee > td,
  body.lelextea-commerce-checkout .awb-cart-totals-table > tbody > tr.tax-rate > th,
  body.lelextea-commerce-checkout .awb-cart-totals-table > tbody > tr.tax-rate > td {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  body.lelextea-commerce-checkout .awb-cart-totals-table > tbody > tr.lelextea-shipping-heading-row,
  body.lelextea-commerce-checkout .awb-cart-totals-table > tbody > tr.lelextea-shipping-methods-row {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.lelextea-commerce-checkout .awb-cart-totals-table > tbody > tr.lelextea-shipping-heading-row > th,
  body.lelextea-commerce-checkout .awb-cart-totals-table > tbody > tr.lelextea-shipping-methods-row > td {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    text-align: left !important;
    white-space: normal !important;
  }

  body.lelextea-commerce-checkout .awb-cart-totals-table > tbody > tr.lelextea-shipping-heading-row > th {
    padding: 16px 0 8px !important;
  }

  body.lelextea-commerce-checkout .awb-cart-totals-table > tbody > tr.lelextea-shipping-methods-row > td {
    padding: 0 0 16px !important;
  }

  body.lelextea-commerce-checkout ul.lelextea-shipping-methods {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.lelextea-commerce-checkout ul.lelextea-shipping-methods > li {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 44px !important;
    padding: 10px !important;
  }

  body.lelextea-commerce-checkout ul.lelextea-shipping-methods > li label,
  body.lelextea-commerce-checkout ul.lelextea-shipping-methods > li label .amount {
    font-size: 14px !important;
    line-height: 1.35 !important;
  }
}


/* Phase 11 — Cart mobile shipping uses the full available width */
@media (max-width: 767px) {

    body.lelextea-commerce-cart
    .cart_totals
    table.shop_table
    tr.woocommerce-shipping-totals.shipping {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        height: auto !important;
        padding: 16px 0 !important;
    }

    body.lelextea-commerce-cart
    .cart_totals
    table.shop_table
    tr.woocommerce-shipping-totals.shipping > th,
    body.lelextea-commerce-cart
    .cart_totals
    table.shop_table
    tr.woocommerce-shipping-totals.shipping > td {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
        white-space: normal !important;
        box-sizing: border-box !important;
    }

    body.lelextea-commerce-cart
    .cart_totals
    table.shop_table
    tr.woocommerce-shipping-totals.shipping > th {
        margin-bottom: 12px !important;
    }

    body.lelextea-commerce-cart
    .cart_totals
    ul#shipping_method {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
        list-style: none !important;
    }

    body.lelextea-commerce-cart
    .cart_totals
    ul#shipping_method > li {
        display: grid !important;
        grid-template-columns: 18px minmax(0, 1fr) !important;
        align-items: start !important;
        column-gap: 9px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 10px 12px !important;
        border: 1px solid #d7d9d2 !important;
        border-radius: 5px !important;
        box-sizing: border-box !important;
        text-align: left !important;
    }

    body.lelextea-commerce-cart
    .cart_totals
    ul#shipping_method > li input {
        grid-column: 1 !important;
        margin: 3px 0 0 !important;
    }

    body.lelextea-commerce-cart
    .cart_totals
    ul#shipping_method > li label {
        grid-column: 2 !important;
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        text-align: left !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        line-height: 1.35 !important;
    }

    body.lelextea-commerce-cart
    .cart_totals
    .woocommerce-shipping-destination {
        width: 100% !important;
        margin: 10px 0 0 !important;
        text-align: left !important;
        white-space: normal !important;
    }
}

/* Phase 11 — Cart mobile shipping: true full-width template rows */
@media (max-width: 767px) {

    body.lelextea-commerce-cart
    .cart_totals
    tr.lelextea-shipping-heading-row > th,
    body.lelextea-commerce-cart
    .cart_totals
    tr.lelextea-shipping-methods-row > td {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        text-align: left !important;
        white-space: normal !important;
    }

    body.lelextea-commerce-cart
    .cart_totals
    tr.lelextea-shipping-heading-row > th {
        padding: 16px 0 10px !important;
    }

    body.lelextea-commerce-cart
    .cart_totals
    tr.lelextea-shipping-methods-row > td {
        padding: 0 0 16px !important;
    }

    body.lelextea-commerce-cart
    .cart_totals
    ul.lelextea-shipping-methods {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        text-align: left !important;
    }

    body.lelextea-commerce-cart
    .cart_totals
    ul.lelextea-shipping-methods > li {
        display: grid !important;
        grid-template-columns: 18px minmax(0, 1fr) !important;
        column-gap: 9px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 10px 12px !important;
        border: 1px solid #d7d9d2 !important;
        border-radius: 5px !important;
        box-sizing: border-box !important;
        text-align: left !important;
    }

    body.lelextea-commerce-cart
    .cart_totals
    ul.lelextea-shipping-methods > li input[type="radio"] {
        grid-column: 1 !important;
        width: 16px !important;
        height: 16px !important;
        margin: 3px 0 0 !important;
    }

    body.lelextea-commerce-cart
    .cart_totals
    ul.lelextea-shipping-methods > li label {
        grid-column: 2 !important;
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        text-align: left !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-break: normal !important;
        font-size: 14px !important;
        line-height: 1.35 !important;
    }

    body.lelextea-commerce-cart
    .cart_totals
    .woocommerce-shipping-destination {
        width: 100% !important;
        margin: 10px 0 0 !important;
        text-align: left !important;
    }
}

/* Phase 11 — visible disabled state for Place Order */
body.lelextea-commerce-checkout
#place_order:disabled,
body.lelextea-commerce-checkout
#place_order.disabled,
body.lelextea-commerce-checkout
#place_order[aria-disabled="true"] {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    filter: grayscale(35%) !important;
}
