/* LioPlus purchase-flow visual adapter for the existing WooCommerce owner.
   Visual-only: does not alter prices, shipping, payment logic, alerts or navigation. */
body.woocommerce-cart,
body.woocommerce-checkout,
body.woocommerce-order-pay,
body.woocommerce-order-received {
  --lio-purchase-surface: #ececec;
  --lio-purchase-paper: #f7f7f7;
  --lio-purchase-ink: #242424;
  --lio-purchase-muted: #666;
  --lio-purchase-accent: #650d27;
  --lio-cart-accent: #650d27;
  --lio-purchase-tint: #e6dadf;
  --lio-purchase-line: #d7d7d7;
  --lio-purchase-raised: -4px -4px 12px #fff, 4px 5px 12px rgba(0, 0, 0, .05);
  background-color: #eeeeee;
  color: var(--lio-purchase-ink);
}

/* The account owner already styles these optional WoodMart outer wrappers.
   Keep exactly one card when the native inner panel is present. */
body.woocommerce-cart .cart_totals:has(.cart-totals-inner),
body.woocommerce-cart [data-widget_type="wd_cart_totals.default"]:has(.cart-totals-inner),
body.woocommerce-cart [data-widget_type="wd_cart_table.default"]:has(.woocommerce-cart-form) {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.woocommerce-cart .cart_totals:has(.cart-totals-inner) {
  padding: 0 !important;
}
/* Elementor's widget container and the observed totals parent add their own
   card shell. Remove only those wrappers; the native inner panel owns it. */
body.woocommerce-cart [data-widget_type="wd_cart_table.default"] > .elementor-widget-container:has(.woocommerce-cart-form),
body.woocommerce-cart [data-widget_type="wd_cart_totals.default"] > .elementor-widget-container:has(.cart-totals-inner),
body.woocommerce-cart .e-con:has(> .e-con > [data-widget_type="wd_cart_totals.default"]) {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.woocommerce-cart .cart_totals h2 {
  color: var(--lio-purchase-ink) !important;
}
body:is(.woocommerce-cart,.woocommerce-checkout,.woocommerce-order-pay,.woocommerce-order-received) .lio-wallet-tender {
  --lio-red: var(--lio-purchase-accent);
}
body:is(.woocommerce-cart,.woocommerce-checkout) .lio-wallet-tender__wallet-link,
body:is(.woocommerce-cart,.woocommerce-checkout) .lio-wallet-tender__login,
body.woocommerce-checkout:not(.woocommerce-order-pay) #place_order {
  background: var(--lio-purchase-accent);
  color: #fff;
}

/* Page title and breadcrumb keep the current theme structure. */
body.woocommerce-cart .page-title,
body.woocommerce-checkout .page-title,
body.woocommerce-order-pay .page-title,
body.woocommerce-order-received .page-title {
  color: var(--lio-purchase-ink);
  border-bottom: 1px solid var(--lio-purchase-line);
  box-shadow: var(--lio-purchase-raised);
}

body.woocommerce-cart .page-title a,
body.woocommerce-checkout .page-title a,
body.woocommerce-order-pay .page-title a,
body.woocommerce-order-received .page-title a,
body.woocommerce-cart .breadcrumbs,
body.woocommerce-checkout .breadcrumbs,
body.woocommerce-order-pay .breadcrumbs,
body.woocommerce-order-received .breadcrumbs {
  color: var(--lio-purchase-accent);
}

/* Live cart inspection: the green background belongs to the ancestor title,
   not the transparent steps list. Limit this override to titles containing steps. */
body:is(.woocommerce-cart,.woocommerce-checkout,.woocommerce-order-pay,.woocommerce-order-received) .page-title:has(.wd-checkout-steps) {
  background: #eeeeee !important;
  color: var(--lio-purchase-ink);
}
body:is(.woocommerce-cart,.woocommerce-checkout,.woocommerce-order-pay,.woocommerce-order-received) .page-title .wd-checkout-steps a,
body:is(.woocommerce-cart,.woocommerce-checkout,.woocommerce-order-pay,.woocommerce-order-received) .page-title .wd-checkout-steps span {
  color: var(--lio-purchase-accent) !important;
}

/* Match the existing Woo/ Woodmart checkout step navigation to the prototype. */
body.woocommerce-cart .wd-checkout-steps,
body.woocommerce-checkout .wd-checkout-steps,
body.woocommerce-order-pay .wd-checkout-steps,
body.woocommerce-order-received .wd-checkout-steps {
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 21px;
  background: transparent;
  box-shadow: 0 4px 12px rgba(142, 29, 29, .12);
}

body.woocommerce-cart .wd-checkout-steps a,
body.woocommerce-cart .wd-checkout-steps span,
body.woocommerce-checkout .wd-checkout-steps a,
body.woocommerce-checkout .wd-checkout-steps span,
body.woocommerce-order-pay .wd-checkout-steps a,
body.woocommerce-order-pay .wd-checkout-steps span,
body.woocommerce-order-received .wd-checkout-steps a,
body.woocommerce-order-received .wd-checkout-steps span {
  color: var(--lio-purchase-accent);
}

/* Raised light-gray panels. Preserve the plugin/theme DOM and natural flow. */
body.woocommerce-cart .cart-totals-inner,
body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-checkout .woocommerce-billing-fields,
body.woocommerce-checkout .woocommerce-shipping-fields,
body.woocommerce-checkout .woocommerce-additional-fields,
body.woocommerce-checkout .woocommerce-checkout-review-order,
body.woocommerce-checkout .woocommerce-order,
body.woocommerce-order-pay .woocommerce,
body.woocommerce-order-received .woocommerce-order,
body.woocommerce-order-received .woocommerce-order-details,
body.woocommerce-order-received .woocommerce-customer-details {
  border: 1px solid rgba(255, 255, 255, .88);
  border-radius: 22px;
  background: linear-gradient(130deg, #f3f3f3, #ececec);
  box-shadow: var(--lio-purchase-raised);
}

body.woocommerce-cart .cart-totals-inner,
body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-checkout .woocommerce-billing-fields,
body.woocommerce-checkout .woocommerce-shipping-fields,
body.woocommerce-checkout .woocommerce-additional-fields,
body.woocommerce-checkout .woocommerce-checkout-review-order,
body.woocommerce-checkout .woocommerce-order,
body.woocommerce-order-pay .woocommerce,
body.woocommerce-order-received .woocommerce-order,
body.woocommerce-order-received .woocommerce-order-details,
body.woocommerce-order-received .woocommerce-customer-details {
  padding: 18px;
}

body.woocommerce-cart .woocommerce-cart-form table,
body.woocommerce-checkout .woocommerce-checkout-review-order-table,
body.woocommerce-order-received .woocommerce-table--order-details,
body.woocommerce-cart .cart_totals table {
  border-color: var(--lio-purchase-line);
  background: transparent;
}

body.woocommerce-cart .woocommerce-cart-form tr,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tr,
body.woocommerce-order-received .woocommerce-table--order-details tr,
body.woocommerce-cart .cart_totals tr {
  border-color: var(--lio-purchase-line);
}

body.woocommerce-cart .quantity input,
body.woocommerce-cart .quantity button,
body.woocommerce-cart .quantity .minus,
body.woocommerce-cart .quantity .plus {
  border-color: #cfcfcf;
  background-color: var(--lio-purchase-paper);
  color: var(--lio-purchase-accent);
}

/* Keep coupon actions and Woo notices visible and usable. */
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-error,
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout .woocommerce-error,
body.woocommerce-order-pay .woocommerce-message,
body.woocommerce-order-pay .woocommerce-info,
body.woocommerce-order-pay .woocommerce-error,
body.woocommerce-order-received .woocommerce-message,
body.woocommerce-order-received .woocommerce-info,
body.woocommerce-order-received .woocommerce-error {
  border: 1px solid rgba(142, 29, 29, .16);
  border-radius: 14px;
  background: linear-gradient(105deg, #f7f2f2, #f1eeee);
  box-shadow: 0 7px 18px rgba(0, 0, 0, .045);
  color: var(--lio-purchase-ink);
}

/* Keep price and shipping amounts under WooCommerce's existing calculation. */
body.woocommerce-cart .cart-totals-inner .amount,
body.woocommerce-cart .cart_totals .amount,
body.woocommerce-checkout .woocommerce-checkout-review-order .amount,
body.woocommerce-order-pay .amount,
body.woocommerce-order-received .woocommerce-order-overview__total,
body.woocommerce-order-received .woocommerce-table--order-details .amount {
  color: var(--lio-purchase-ink);
}

body.woocommerce-cart .woocommerce-cart-form .button,
body.woocommerce-cart .cart-totals-inner .button,
body:is(.woocommerce-cart,.woocommerce-checkout) button[name="apply_coupon"],
body.woocommerce-cart .cart_totals .checkout-button,
body.woocommerce-cart .checkout-button,
body.woocommerce-checkout #place_order,
body.woocommerce-order-pay #place_order {
  min-height: 50px;
  border: 1px solid rgba(142, 29, 29, .12);
  border-radius: 16px;
  background: var(--lio-purchase-accent);
  color: #fff;
  box-shadow: 0 5px 12px rgba(142, 29, 29, .14);
  transition: filter 160ms ease, box-shadow 160ms ease;
}

body.woocommerce-cart .woocommerce-cart-form .button:hover,
body.woocommerce-cart .cart-totals-inner .button:hover,
body:is(.woocommerce-cart,.woocommerce-checkout) button[name="apply_coupon"]:hover,
body.woocommerce-cart .cart_totals .checkout-button:hover,
body.woocommerce-cart .checkout-button:hover,
body.woocommerce-checkout #place_order:hover,
body.woocommerce-order-pay #place_order:hover {
  filter: brightness(.94);
  box-shadow: 0 7px 16px rgba(142, 29, 29, .18);
}

/* The native coupon form may sit outside the cart form in WoodMart. */
body:is(.woocommerce-cart,.woocommerce-checkout) button[name="apply_coupon"] {
  background: var(--lio-purchase-accent) !important;
  color: #fff !important;
}
body:is(.woocommerce-cart,.woocommerce-checkout) button[name="apply_coupon"]:focus-visible {
  outline: 2px solid var(--lio-purchase-accent);
  outline-offset: 3px;
}

body.woocommerce-cart .woocommerce-cart-form input:not([name="coupon_code"]):not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
body.woocommerce-cart .woocommerce-cart-form select,
body.woocommerce-cart .cart-totals-inner input:not([name="coupon_code"]):not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
body.woocommerce-cart .cart-totals-inner select,
body.woocommerce-cart .cart_totals input:not([name="coupon_code"]):not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
body.woocommerce-cart .cart_totals select,
body.woocommerce-checkout .form-row input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
body.woocommerce-checkout .form-row select,
body.woocommerce-checkout .form-row textarea,
body.woocommerce-order-pay input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]) {
  border: 1px solid #cfcfcf;
  border-radius: 12px;
  background-color: #f6f6f6;
  box-shadow: inset 2px 3px 6px rgba(0, 0, 0, .035), inset -2px -2px 6px #fff;
  color: var(--lio-purchase-ink);
}

body.woocommerce-cart .woocommerce-cart-form input:focus-visible,
body.woocommerce-cart .woocommerce-cart-form select:focus-visible,
body.woocommerce-cart .cart-totals-inner input:focus-visible,
body.woocommerce-cart .cart-totals-inner select:focus-visible,
body.woocommerce-cart .cart_totals input:focus-visible,
body.woocommerce-cart .cart_totals select:focus-visible,
body.woocommerce-checkout .form-row input:focus-visible,
body.woocommerce-checkout .form-row select:focus-visible,
body.woocommerce-checkout .form-row textarea:focus-visible,
body.woocommerce-order-pay input:focus-visible {
  border-color: var(--lio-purchase-accent);
  outline: 3px solid rgba(142, 29, 29, .2);
  outline-offset: 2px;
}

body.woocommerce-checkout .form-row label,
body.woocommerce-checkout .woocommerce-billing-fields h3,
body.woocommerce-checkout .woocommerce-shipping-fields h3,
body.woocommerce-checkout .woocommerce-additional-fields h3,
body.woocommerce-checkout .woocommerce-checkout-review-order h3,
body.woocommerce-checkout #order_review_heading,
body.woocommerce-order-received .woocommerce-column__title,
body.woocommerce-order-received .woocommerce-order-details__title {
  color: var(--lio-purchase-ink);
}

/* Payment methods retain native radio inputs and Woo's disclosure behavior. */
body.woocommerce-checkout .wc_payment_method,
body.woocommerce-order-pay .wc_payment_method {
  margin-bottom: 10px;
  border: 1px solid #d1d1d1;
  border-radius: 15px;
  background: #f7f7f7;
}

body.woocommerce-checkout .wc_payment_method:has(input:checked),
body.woocommerce-order-pay .wc_payment_method:has(input:checked) {
  border-color: #b47979;
  background: #f4eeee;
}

body.woocommerce-checkout .wc_payment_method > label,
body.woocommerce-order-pay .wc_payment_method > label {
  color: var(--lio-purchase-ink);
}

body.woocommerce-checkout .payment_box,
body.woocommerce-order-pay .payment_box {
  border-radius: 11px;
  background: #f1eeee;
  color: var(--lio-purchase-muted);
}

body.woocommerce-order-received .woocommerce-thankyou-order-received {
  border: 1px solid rgba(142, 29, 29, .16);
  border-radius: 16px;
  background: linear-gradient(105deg, #f7f2f2, #ece8e8);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .05);
  color: var(--lio-purchase-ink);
}

body.woocommerce-order-received .woocommerce-order-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 135px), 1fr));
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
}

body.woocommerce-order-received .woocommerce-order-overview li {
  margin: 0;
  padding: 13px;
  border: 1px solid var(--lio-purchase-line);
  border-radius: 13px;
  background: #f7f7f7;
  box-shadow: var(--lio-purchase-raised);
}

body.woocommerce-checkout .woocommerce-order-details,
body.woocommerce-checkout .woocommerce-customer-details,
body.woocommerce-order-pay .woocommerce-order-details,
body.woocommerce-order-pay .woocommerce-customer-details {
  margin-top: 16px;
}

@media (max-width: 480px) {
  body.woocommerce-cart .cart-totals-inner,
  body.woocommerce-cart .woocommerce-cart-form,
  body.woocommerce-checkout .woocommerce-billing-fields,
  body.woocommerce-checkout .woocommerce-shipping-fields,
  body.woocommerce-checkout .woocommerce-additional-fields,
  body.woocommerce-checkout .woocommerce-checkout-review-order,
  body.woocommerce-checkout .woocommerce-order,
  body.woocommerce-order-pay .woocommerce,
  body.woocommerce-order-received .woocommerce-order,
  body.woocommerce-order-received .woocommerce-order-details,
  body.woocommerce-order-received .woocommerce-customer-details {
    padding: 14px;
    border-radius: 18px;
  }
}

@media (max-width: 350px) {
  body.woocommerce-cart .cart-totals-inner,
  body.woocommerce-cart .woocommerce-cart-form,
  body.woocommerce-checkout .woocommerce-billing-fields,
  body.woocommerce-checkout .woocommerce-shipping-fields,
  body.woocommerce-checkout .woocommerce-additional-fields,
  body.woocommerce-checkout .woocommerce-checkout-review-order,
  body.woocommerce-checkout .woocommerce-order,
  body.woocommerce-order-pay .woocommerce,
  body.woocommerce-order-received .woocommerce-order,
  body.woocommerce-order-received .woocommerce-order-details,
  body.woocommerce-order-received .woocommerce-customer-details {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.woocommerce-cart .checkout-button,
  body.woocommerce-checkout #place_order,
  body.woocommerce-order-pay #place_order {
    transition: none;
  }
}

/* Compact cart invitation. Keep the existing account URL and native wallet logic. */
body.woocommerce-cart .woocommerce-cart-form .lio-wallet-tender--guest {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 8px 12px;
  width: 100% !important;
  min-width: 0;
  min-height: 0 !important;
  height: auto !important;
  aspect-ratio: auto !important;
  margin: 0 0 16px !important;
  padding: 12px !important;
  border-radius: 15px !important;
  box-shadow: none !important;
  background: #e7e5e6 !important;
}
body.woocommerce-cart .lio-wallet-tender--guest .lio-wallet-tender__intro h2 {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.8 !important;
}
body.woocommerce-cart .lio-wallet-tender--guest :is(.lio-wallet-tender__guest-copy,.lio-wallet-tender__note) {
  display: none !important;
}
body.woocommerce-cart .lio-wallet-tender--guest .lio-wallet-tender__login {
  width: auto !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 8px 10px !important;
  border-radius: 11px !important;
  background: var(--lio-purchase-accent) !important;
  box-shadow: none !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
}
/* The observed totals column has one extra Elementor wrapper padding.
   Remove that inset, preserving the outside column gutters on both columns. */
body.woocommerce-cart .e-con:has(> [data-widget_type="wd_cart_totals.default"]) {
  padding-inline: 0 !important;
}
body.woocommerce-cart :is(.woocommerce-cart-form,.cart_totals,.cart-totals-inner,.lio-cart-recommendations) {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
@media(max-width:767px) {
  body.woocommerce-cart .e-con:has(> .e-con-inner > .e-con > [data-widget_type="wd_cart_table.default"]) > .e-con-inner {
    gap: 0 !important;
    padding-block: 0 !important;
  }
  body.woocommerce-cart .e-con:has(> [data-widget_type="wd_cart_table.default"]),
  body.woocommerce-cart .e-con:has(> [data-widget_type="wd_cart_totals.default"]) {
    padding-block: 0 !important;
  }
  body.woocommerce-cart .lio-floating-cart[data-inline-cart='true'] {
    margin: 16px 0 !important;
  }
  body.woocommerce-cart .cart-totals-inner { padding: 16px !important; }
  body.woocommerce-cart .cart_totals h2 { font-size: 17px !important; }
  body.woocommerce-cart .woocommerce-cart-form { padding: 12px !important; }
  body.woocommerce-cart .woocommerce-cart-form .product-name { line-height: 1.8; }
  body.woocommerce-cart .woocommerce-cart-form .product-price { font-size: 12px; }
  body.woocommerce-cart .woocommerce-cart-form .product-subtotal { font-weight: 700; }
}
@media(max-width:360px) {
  body.woocommerce-cart .woocommerce-cart-form .lio-wallet-tender--guest { gap: 8px; padding: 10px !important; }
  body.woocommerce-cart .lio-wallet-tender--guest .lio-wallet-tender__intro h2 { font-size: 12px !important; }
  body.woocommerce-cart .lio-wallet-tender--guest .lio-wallet-tender__login { font-size: 11px !important; max-width: 144px; }
}

/* Selected deep-cherry candidate: purchase routes only; floating sitewide theme is untouched. */
body.woocommerce-cart .lio-floating-cart[data-inline-cart="true"] { --lio-shell:var(--lio-purchase-accent); --lio-shell-shadow:0 8px 22px #650d2729; }

/* Compact native journey header and account invitation, approved 2026-10-16. */
body:is(.woocommerce-cart,.woocommerce-checkout) .page-title:has(.wd-checkout-steps) {
  background: transparent !important;
  border: 0;
  box-shadow: none;
  padding-block: 16px;
  margin-bottom: 18px;
}
body:is(.woocommerce-cart,.woocommerce-checkout) .page-title .wd-page-title-bg { background: transparent !important; }
body:is(.woocommerce-cart,.woocommerce-checkout) .page-title:has(.wd-checkout-steps) > .container {
  width: calc(100% - 70px);
  max-width: 1280px;
  padding-inline: 0;
  margin-inline: auto;
}
body:is(.woocommerce-cart,.woocommerce-checkout) .page-title .wd-checkout-steps {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 8px;
  margin: 0;
  border: 1px solid #fff;
  border-radius: 18px;
  background: #eeecee;
  box-shadow: 0 4px 16px #38202a09;
}
body:is(.woocommerce-cart,.woocommerce-checkout) .page-title .wd-checkout-steps li {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 1;
}
body:is(.woocommerce-cart,.woocommerce-checkout) .page-title .wd-checkout-steps li::before,
body:is(.woocommerce-cart,.woocommerce-checkout) .page-title .wd-checkout-steps li::after { content: none !important; }
body:is(.woocommerce-cart,.woocommerce-checkout) .page-title .wd-checkout-steps li > a,
body:is(.woocommerce-cart,.woocommerce-checkout) .page-title .wd-checkout-steps li > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 6px 8px;
  margin: 0;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  text-decoration: none;
}
body:is(.woocommerce-cart,.woocommerce-checkout) .page-title .wd-checkout-steps li span {
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
}
body:is(.woocommerce-cart,.woocommerce-checkout) .page-title .wd-checkout-steps li.step-inactive :is(a,span) { color: #74666b !important; }
body:is(.woocommerce-cart,.woocommerce-checkout) .page-title .wd-checkout-steps li.step-active > :is(a,span) {
  width: 100%;
  background: var(--lio-purchase-accent);
  box-shadow: 0 3px 8px #650d2720;
  font-weight: 700;
}
body:is(.woocommerce-cart,.woocommerce-checkout) .page-title .wd-checkout-steps li.step-active :is(a,span) { color: #fff !important; }
body.woocommerce-cart .woocommerce-cart-form .lio-wallet-tender--guest {
  border: 1px solid #dbcbd1 !important;
  background: linear-gradient(115deg,#f6f2f3,#eee9ec) !important;
  border-radius: 16px !important;
}
body.woocommerce-cart .lio-wallet-tender--guest .lio-wallet-tender__intro h2 {
  color: var(--lio-purchase-accent) !important;
  font-weight: 600 !important;
}
body.woocommerce-cart .lio-wallet-tender--guest .lio-wallet-tender__login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff !important;
  border: 1px solid transparent !important;
  box-shadow: 0 3px 9px #650d2720 !important;
  font-weight: 600;
  text-align: center;
}
body.woocommerce-cart .lio-wallet-tender--guest .lio-wallet-tender__login::after { content: '\2190'; font-size: 18px; }
body.woocommerce-cart .lio-wallet-tender--guest .lio-wallet-tender__login:focus-visible { outline: 2px solid var(--lio-purchase-accent); outline-offset: 3px; }
@media(max-width:767px) {
  body:is(.woocommerce-cart,.woocommerce-checkout) .page-title .wd-checkout-steps li > a,
  body:is(.woocommerce-cart,.woocommerce-checkout) .page-title .wd-checkout-steps li > span { font-size: 11px; padding-inline: 4px; }
}
@media(max-width:360px) {
  body:is(.woocommerce-cart,.woocommerce-checkout) .page-title .wd-checkout-steps { gap: 2px; padding: 6px; }
  body:is(.woocommerce-cart,.woocommerce-checkout) .page-title .wd-checkout-steps li > a,
  body:is(.woocommerce-cart,.woocommerce-checkout) .page-title .wd-checkout-steps li > span { font-size: 10px; }
}
body:is(.woocommerce-cart,.woocommerce-checkout) .page-title .wd-checkout-steps { width: 100% !important; max-width: none !important; box-sizing: border-box; }

/* Observed Elementor checkout owns a separate review widget, not Woo's
   conventional review wrapper. Keep its real table, amounts and notices. */
body.woocommerce-checkout:not(.woocommerce-order-received):not(.woocommerce-order-pay) .elementor-element.elementor-element-8bef035 {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  padding: 20px !important;
  gap: 12px !important;
  border: 1px solid #fff !important;
  border-radius: 22px !important;
  background: linear-gradient(130deg,#f3f3f3,#ececec) !important;
  box-shadow: var(--lio-purchase-raised) !important;
  color: var(--lio-purchase-ink);
}
body.woocommerce-checkout .elementor-element-8bef035 .elementor-element-f0626e5,
body.woocommerce-checkout .elementor-element-8bef035 .elementor-element-92af97d {
  min-width: 0;
  max-width: 100%;
  margin-block: 0 !important;
}
body.woocommerce-checkout .elementor-element-f0626e5 .woodmart-title-container {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--lio-purchase-ink) !important;
  font-size: 17px !important;
  line-height: 1.8 !important;
}
body.woocommerce-checkout .elementor-element-92af97d.wd-order-table,
body.woocommerce-checkout .elementor-element-92af97d.wd-order-table > .elementor-widget-container {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
/* Remove only the review widget's decorative receipt edges. Row pseudo
   labels, shipping methods, native errors and gateway notices are untouched. */
body.woocommerce-checkout .elementor-element-8bef035::before,
body.woocommerce-checkout .elementor-element-8bef035::after,
body.woocommerce-checkout .elementor-element-92af97d.wd-order-table::before,
body.woocommerce-checkout .elementor-element-92af97d.wd-order-table::after,
body.woocommerce-checkout .elementor-element-92af97d > .elementor-widget-container::before,
body.woocommerce-checkout .elementor-element-92af97d > .elementor-widget-container::after,
body.woocommerce-checkout .elementor-element-92af97d table.woocommerce-checkout-review-order-table::before,
body.woocommerce-checkout .elementor-element-92af97d table.woocommerce-checkout-review-order-table::after {
  content: none !important;
  background: none !important;
}
body.woocommerce-checkout .elementor-element-92af97d table.woocommerce-checkout-review-order-table {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: collapse;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 13px;
  line-height: 1.9;
}
body.woocommerce-checkout .elementor-element-92af97d table.woocommerce-checkout-review-order-table :is(th,td) {
  padding: 10px 4px !important;
  border-color: #d7d2d4 !important;
  background: transparent !important;
  color: var(--lio-purchase-ink);
  font-size: inherit;
  line-height: inherit;
}
body.woocommerce-checkout .elementor-element-92af97d .product-name {
  overflow-wrap: anywhere;
  word-break: normal;
}
body.woocommerce-checkout .elementor-element-92af97d :is(.amount,.product-quantity) {
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}
body.woocommerce-checkout .elementor-element-92af97d tr.woocommerce-shipping-totals > th {
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none;
}

/* Exact observed VPN text widget: one compact cherry notice, without
   touching WooCommerce shipping/payment error containers elsewhere. */
body.woocommerce-checkout .elementor-element.elementor-element-63630c8 {
  min-width: 0;
  max-width: 100%;
  margin-block: 8px !important;
  padding: 0 !important;
}
body.woocommerce-checkout .elementor-element-63630c8 > .elementor-widget-container {
  box-sizing: border-box;
  padding: 12px !important;
  border: 1px solid #650d27 !important;
  border-radius: 14px !important;
  background: #650d27 !important;
  box-shadow: 0 3px 10px #650d2714 !important;
  color: #fff !important;
}
body.woocommerce-checkout .elementor-element-63630c8 .wd-text-block {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: #fff !important;
  font-size: 14px !important;
  line-height: 1.9 !important;
  overflow-wrap: anywhere;
}
body.woocommerce-checkout .elementor-element-63630c8 .wd-text-block :is(p,strong,span) {
  margin: 0 !important;
  color: #fff !important;
  font-size: inherit !important;
  line-height: inherit !important;
}
body.woocommerce-checkout .elementor-element-63630c8 .wd-text-block a {
  color: #fff !important;
  text-decoration: underline;
}
@media(max-width:767px) {
  body.woocommerce-checkout:not(.woocommerce-order-received):not(.woocommerce-order-pay) .elementor-element.elementor-element-8bef035 {
    padding: 16px !important;
    gap: 10px !important;
    border-radius: 20px !important;
  }
  body.woocommerce-checkout .elementor-element-f0626e5 .woodmart-title-container { font-size: 16px !important; }
}
@media(max-width:360px) {
  body.woocommerce-checkout:not(.woocommerce-order-received):not(.woocommerce-order-pay) .elementor-element.elementor-element-8bef035 { padding: 12px !important; }
  body.woocommerce-checkout .elementor-element-92af97d table.woocommerce-checkout-review-order-table { font-size: 12px; }
  body.woocommerce-checkout .elementor-element-92af97d table.woocommerce-checkout-review-order-table :is(th,td) { padding-inline: 2px !important; }
}

/* The observed native payment widget shares the compact billing/review
   surface. Do not alter payment visibility, radio inputs, terms or errors. */
body.woocommerce-checkout .elementor-element-30213e5.wd-payment-methods,
body.woocommerce-checkout .elementor-element-30213e5.wd-payment-methods > .elementor-widget-container {
  min-width: 0;
  max-width: 100%;
  margin-block: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.woocommerce-checkout .elementor-element-30213e5 .woocommerce-checkout-payment {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0 !important;
  padding: 18px !important;
  border: 1px solid #fff !important;
  border-radius: 22px !important;
  background: linear-gradient(130deg,#f3f3f3,#ececec) !important;
  box-shadow: var(--lio-purchase-raised) !important;
}
body.woocommerce-checkout .elementor-element-30213e5 .woocommerce-checkout-payment > ul.payment_methods {
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
body.woocommerce-checkout .elementor-element-30213e5 .wc_payment_method {
  box-sizing: border-box;
  margin: 0 0 10px !important;
  padding: 12px !important;
  border: 1px solid #d9d2d5 !important;
  border-radius: 14px !important;
  background: #f6f5f6 !important;
  font-size: 14px;
  line-height: 1.9;
}
body.woocommerce-checkout .elementor-element-30213e5 .wc_payment_method:has(input[name="payment_method"]:checked) {
  border-color: #ad7c8b !important;
  background: #f1e9ec !important;
}
body.woocommerce-checkout .elementor-element-30213e5 .payment_box {
  box-sizing: border-box;
  max-width: 100%;
  margin: 10px 0 0 !important;
  padding: 12px !important;
  border-radius: 10px !important;
  background: #eee9ec !important;
  font-size: 13px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
@media(max-width:360px) {
  body.woocommerce-checkout .elementor-element-30213e5 .woocommerce-checkout-payment { padding: 14px !important; }
  body.woocommerce-checkout .elementor-element-30213e5 .wc_payment_method { padding: 10px !important; font-size: 13px; }
}

/* Observed Elementor wrapper padding was nesting card widths by 20–40px.
   Keep padding on the actual cards; align their enclosing native columns. */
body.woocommerce-checkout form.checkout .elementor-element-3d50658,
body.woocommerce-checkout form.checkout .elementor-element-3d50658 > .e-con-inner {
  width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;gap:12px!important;
}
body.woocommerce-checkout form.checkout :is(.elementor-element-76d7e7e,.elementor-element-573fb36,.elementor-element-e7f65e0,.elementor-element-d6b2272,.elementor-element-10db5a2) {
  padding:0!important;gap:12px!important;margin-block:0!important;min-width:0;
}
body.woocommerce-checkout form.checkout .elementor-element-63630c8 {margin:0!important}
body.woocommerce-checkout form.checkout .elementor-element-63630c8 > .elementor-widget-container {padding:10px 12px!important}
body.woocommerce-checkout form.checkout .elementor-element-63630c8 .wd-text-block {font-size:13px!important;line-height:1.65!important}
/* WoodMart stretch rules also impose a viewport min-width and relative inset. */
body.woocommerce-checkout form.checkout {max-width:760px!important;margin-inline:auto!important}
body.woocommerce-checkout form.checkout :is(.elementor-element-3d50658,.elementor-element-e7f65e0) {min-width:0!important;left:0!important;right:0!important;width:100%!important;max-width:100%!important}
body.woocommerce-checkout form.checkout .elementor-element-63630c8 {width:100%!important;max-width:100%!important}
