/* NOVA TI – Gestión de Compras. Scoped to WooCommerce cart/checkout. */
body.woocommerce-cart,body.woocommerce-checkout{--nvg-blue:#23469A;--nvg-dark:#1B387D;--nvg-border:#dce4f1;--nvg-bg:#F5F7FA;}
body.woocommerce-cart #Content,body.woocommerce-checkout #Content{background:var(--nvg-bg)}
body.woocommerce-cart .woocommerce,body.woocommerce-checkout .woocommerce{font-family:"Plus Jakarta Sans",sans-serif;color:#2B2B2B}
/* Recover hero after theme reset; target existing banner classes and keep contrast. */
body.woocommerce-cart .nv-cart-hero,body.woocommerce-cart .novati-cart-hero,body.woocommerce-cart .novati-checkout-hero,body.woocommerce-cart .nv-checkout-hero,body.woocommerce-cart .nvti-cart-hero,
body.woocommerce-checkout .nv-cart-hero,body.woocommerce-checkout .novati-cart-hero,body.woocommerce-checkout .novati-checkout-hero,body.woocommerce-checkout .nv-checkout-hero{background:var(--nvg-dark);color:#fff;padding:28px 32px;border-radius:12px;margin:0 0 28px}
body.woocommerce-cart .nv-cart-hero *,body.woocommerce-cart .novati-cart-hero *,body.woocommerce-cart .novati-checkout-hero *,body.woocommerce-cart .nv-checkout-hero *,body.woocommerce-cart .nvti-cart-hero *,body.woocommerce-checkout .novati-checkout-hero *{color:#fff}
body.woocommerce-cart .woocommerce-cart-form,body.woocommerce-cart .cart_totals,body.woocommerce-checkout #customer_details,body.woocommerce-checkout #order_review{background:#fff;border:1px solid var(--nvg-border);border-radius:14px;padding:24px;box-shadow:0 6px 22px rgba(27,56,125,.055)}
body.woocommerce-cart .woocommerce-cart-form{overflow-x:auto}body.woocommerce-cart table.shop_table,body.woocommerce-checkout table.shop_table{border-collapse:collapse;width:100%;border:0}body.woocommerce-cart table.shop_table th,body.woocommerce-cart table.shop_table td,body.woocommerce-checkout table.shop_table th,body.woocommerce-checkout table.shop_table td{padding:15px 12px;border-bottom:1px solid #e8edf5;vertical-align:middle}
body.woocommerce-cart table.shop_table img{width:75px;height:75px;object-fit:contain;border-radius:8px}
body.woocommerce-cart .cart_totals h2,body.woocommerce-checkout #order_review_heading,body.woocommerce-checkout .woocommerce-billing-fields h3,body.woocommerce-checkout .nvcp-checkout-billing h3{color:var(--nvg-dark);font-weight:700}
body.woocommerce-cart .woocommerce a.button,body.woocommerce-cart .woocommerce button.button,body.woocommerce-cart .woocommerce .checkout-button,body.woocommerce-checkout .woocommerce button.button,body.woocommerce-checkout .woocommerce #place_order{background:var(--nvg-blue)!important;color:#fff!important;border-radius:8px;padding:14px 20px;transition:background .2s,transform .2s}
body.woocommerce-cart .woocommerce a.button:hover,body.woocommerce-cart .woocommerce button.button:hover,body.woocommerce-checkout .woocommerce button.button:hover{background:var(--nvg-dark)!important;transform:translateY(-1px)}
body.woocommerce-checkout .woocommerce form .form-row input.input-text,body.woocommerce-checkout .woocommerce form .form-row select,body.woocommerce-checkout .woocommerce form .form-row textarea{border:1px solid #cdd7e6;border-radius:8px;background:#fff;min-height:43px;padding:10px;color:#263447}
body.woocommerce-checkout #payment{background:#f6f8fc;border:1px solid var(--nvg-border);border-radius:12px;padding:14px}
body.woocommerce-checkout #payment ul.payment_methods{border-bottom:1px solid var(--nvg-border)}
body.woocommerce-checkout .nvcp-checkout-billing{margin:24px 0}body.woocommerce-checkout .nvcp-checkout-billing h3{margin-bottom:12px}
@media(max-width:767px){body.woocommerce-cart .woocommerce-cart-form,body.woocommerce-cart .cart_totals,body.woocommerce-checkout #customer_details,body.woocommerce-checkout #order_review{padding:16px}body.woocommerce-cart table.shop_table th,body.woocommerce-cart table.shop_table td{padding:10px 7px}body.woocommerce-cart .nv-cart-hero,body.woocommerce-cart .novati-cart-hero,body.woocommerce-cart .novati-checkout-hero,body.woocommerce-cart .nv-checkout-hero{padding:20px}}

/* v1.0.1: ajustes exclusivos de carrito; checkout y confirmacion intactos */
body.woocommerce-cart .woocommerce-cart-form{min-width:0}
body.woocommerce-cart .woocommerce-cart-form table.shop_table{table-layout:auto}
body.woocommerce-cart .woocommerce-cart-form table.shop_table th{white-space:nowrap;font-size:12px;letter-spacing:.035em}
body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-name{min-width:150px;overflow-wrap:anywhere;font-weight:600;line-height:1.5}
body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-price,body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-subtotal{white-space:nowrap;color:#23469A;font-weight:700}
body.woocommerce-cart .cart_totals table.shop_table th{width:45%;white-space:normal;overflow-wrap:normal;word-break:normal}
body.woocommerce-cart .cart_totals table.shop_table td{text-align:right;white-space:nowrap}
body.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button{display:block;text-align:center;width:100%;box-sizing:border-box}
/* Encabezados y pasos existentes, sin crear contenido duplicado */
body.woocommerce-cart :is(.nv-cart-steps,.novati-cart-steps,.nv-checkout-steps,.novati-checkout-steps,.nvti-cart-steps,.nv-steps,.checkout-steps,.cart-steps){display:flex!important;flex-direction:row!important;flex-wrap:wrap;align-items:center;gap:12px;margin-top:20px}
body.woocommerce-cart :is(.nv-cart-steps,.novati-cart-steps,.nv-checkout-steps,.novati-checkout-steps,.nvti-cart-steps,.nv-steps,.checkout-steps,.cart-steps)>*{display:inline-flex;align-items:center;gap:8px;width:auto!important;margin:0!important;color:#fff}
/* Mini carrito BeTheme: evita compresion de nombres y precios */
body :is(.mfn-cart-holder,.mfn-cart-panel,.mfn-cart-sidebar,.mfn-cart-flyout,.mfn-cart-content,.mfn-cart-wrapper) .woocommerce-mini-cart-item{min-width:0;box-sizing:border-box}
body :is(.mfn-cart-holder,.mfn-cart-panel,.mfn-cart-sidebar,.mfn-cart-flyout,.mfn-cart-content,.mfn-cart-wrapper) .woocommerce-mini-cart-item a:not(.remove){overflow-wrap:anywhere;line-height:1.45}
body :is(.mfn-cart-holder,.mfn-cart-panel,.mfn-cart-sidebar,.mfn-cart-flyout,.mfn-cart-content,.mfn-cart-wrapper) .woocommerce-mini-cart-item img{object-fit:contain}
body :is(.mfn-cart-holder,.mfn-cart-panel,.mfn-cart-sidebar,.mfn-cart-flyout,.mfn-cart-content,.mfn-cart-wrapper) .woocommerce-mini-cart__buttons a{border-radius:9px;text-align:center}
@media(max-width:767px){body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-name{min-width:0}body.woocommerce-cart .cart_totals table.shop_table td{white-space:normal}body.woocommerce-cart :is(.nv-cart-steps,.novati-cart-steps,.nv-checkout-steps,.novati-checkout-steps,.nvti-cart-steps,.nv-steps,.checkout-steps,.cart-steps){gap:8px}}

/* v1.0.2 — identidad corporativa y hero compacto SOLO en carrito */
body.woocommerce-cart :is(.nv-cart-hero,.novati-cart-hero,.novati-checkout-hero,.nv-checkout-hero,.nvti-cart-hero){padding-top:20px!important;padding-bottom:20px!important;min-height:0!important;height:auto!important;margin-bottom:20px!important}
body.woocommerce-cart :is(.nv-cart-hero,.novati-cart-hero,.novati-checkout-hero,.nv-checkout-hero,.nvti-cart-hero) :is(h1,h2){margin-top:0!important;margin-bottom:7px!important;line-height:1.18!important}
body.woocommerce-cart :is(.nv-cart-hero,.novati-cart-hero,.novati-checkout-hero,.nv-checkout-hero,.nvti-cart-hero) p{margin-bottom:7px!important}
body.woocommerce-cart :is(.nv-cart-steps,.novati-cart-steps,.nv-checkout-steps,.novati-checkout-steps,.nvti-cart-steps,.nv-steps,.checkout-steps,.cart-steps){margin-top:10px!important;margin-bottom:0!important}
/* BeTheme side cart buttons; limited to the offcanvas cart containers */
body :is(.mfn-cart-holder,.mfn-cart-panel,.mfn-cart-sidebar,.mfn-cart-flyout,.mfn-cart-content,.mfn-cart-wrapper,.mfn-cart-side,.mfn-cart-drawer) :is(.checkout,.checkout-button,.button.checkout,.woocommerce-mini-cart__buttons a.checkout){background:#23469A!important;background-color:#23469A!important;border-color:#23469A!important;color:#fff!important}
body :is(.mfn-cart-holder,.mfn-cart-panel,.mfn-cart-sidebar,.mfn-cart-flyout,.mfn-cart-content,.mfn-cart-wrapper,.mfn-cart-side,.mfn-cart-drawer) :is(.checkout,.checkout-button,.button.checkout,.woocommerce-mini-cart__buttons a.checkout):hover{background:#1B387D!important;background-color:#1B387D!important;border-color:#1B387D!important}
@media(max-width:767px){body.woocommerce-cart :is(.nv-cart-hero,.novati-cart-hero,.novati-checkout-hero,.nv-checkout-hero,.nvti-cart-hero){padding-top:16px!important;padding-bottom:16px!important}}

/* v1.0.7 — ajustes validados en NOVA TI: encabezados y totales. */
/* BeTheme añade un segundo título antes del hero propio de compra. */
body.woocommerce-cart #Subheader,
body.woocommerce-checkout:not(.woocommerce-order-received) #Subheader {display:none!important}
/* Encabezado del carrito compacto, sin margen inferior redundante. */
body.woocommerce-cart .nv-cart-hero {
  padding:14px 24px!important;
  margin-bottom:0!important;
  min-height:0!important;
  height:auto!important;
}
body.woocommerce-cart .nv-cart-hero h1 {font-size:34px!important;line-height:1.2!important;margin-bottom:4px!important}
body.woocommerce-cart .nv-cart-hero p {margin-bottom:4px!important}
body.woocommerce-cart .nv-cart-steps {margin-top:6px!important}
/* Eliminar el marco gris de 30 px que estrechaba la tarjeta. */
body.woocommerce-cart .cart-collaterals {
  padding:0!important;
  background:transparent!important;
  border:none!important;
  box-shadow:none!important;
  box-sizing:border-box!important;
}
body.woocommerce-cart .cart-collaterals .cart_totals {
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding:24px!important;
  box-sizing:border-box!important;
  background:#fff!important;
  border:1px solid #DCE5F2!important;
  border-radius:12px!important;
}
body.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button {
  display:block;width:100%!important;box-sizing:border-box!important;
}
/* Evitar corte del impuesto incluido sin modificar su cálculo. */
body.woocommerce-cart .cart_totals .includes_tax {
  display:block;
  white-space:normal!important;
  overflow-wrap:normal;
  word-break:normal;
  font-size:11px;
  line-height:1.5;
}
@media(max-width:767px){
  body.woocommerce-cart .nv-cart-hero {padding:14px 18px!important}
  body.woocommerce-cart .nv-cart-hero h1 {font-size:28px!important}
  body.woocommerce-cart .cart-collaterals .cart_totals {padding:18px!important}
}


/* v1.0.8 — Checkout aprobado: franja superior eliminada y hero compacto.
   BeTheme: sección identificada en la página de finalizar compra. */
body.woocommerce-checkout:not(.woocommerce-order-received) #Content {
  padding-top: 0 !important;
}
body.woocommerce-checkout:not(.woocommerce-order-received) .mcb-section-530ea95fe {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  margin-top: 0 !important;
  min-height: 0 !important;
}
body.woocommerce-checkout:not(.woocommerce-order-received) .mcb-section-530ea95fe .mcb-column {
  margin-bottom: 0 !important;
  min-height: 0 !important;
}
body.woocommerce-checkout:not(.woocommerce-order-received) .mcb-section-530ea95fe .nv-cart-hero {
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  height: auto !important;
}
body.woocommerce-checkout:not(.woocommerce-order-received) .mcb-section-530ea95fe .nv-cart-hero h1 {
  font-size: 34px !important;
  line-height: 1.2 !important;
  margin-bottom: 4px !important;
}
body.woocommerce-checkout:not(.woocommerce-order-received) .mcb-section-530ea95fe .nv-cart-hero p {
  margin-bottom: 4px !important;
}
body.woocommerce-checkout:not(.woocommerce-order-received) .mcb-section-530ea95fe .nv-cart-steps {
  margin-top: 6px !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-form-coupon-toggle {
  margin-bottom: 12px !important;
}
@media(max-width:767px) {
  body.woocommerce-checkout:not(.woocommerce-order-received) .mcb-section-530ea95fe {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
  body.woocommerce-checkout:not(.woocommerce-order-received) .mcb-section-530ea95fe .nv-cart-hero h1 {
    font-size: 28px !important;
  }
}

/* v1.0.9 — Indicador de progreso del carrito, igual al checkout. */
body.woocommerce-cart .nv-cart-steps .nv-cart-step__number {
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:32px!important;
  height:32px!important;
  flex-shrink:0!important;
  border:1px solid rgba(255,255,255,.65)!important;
  border-radius:50%!important;
  background:transparent!important;
  color:#fff!important;
  font-weight:500!important;
}
body.woocommerce-cart .nv-cart-steps .nv-cart-step.is-active .nv-cart-step__number {
  background:#fff!important;
  color:#1B387D!important;
  border-color:#fff!important;
  font-weight:700!important;
}
body.woocommerce-cart .nv-cart-steps .nv-cart-step.is-active {font-weight:700!important}


/* v1.0.12: checkout BeTheme sin clase woocommerce-checkout en BODY.
   Scope mediante presencia de plantilla real; no toca carrito ni thank-you. */
@media (max-width: 767px) {
  body:has(.mfn-checkout-tmpl-builder) .mfn-checkout-tmpl-builder .section_wrapper {
    width:100%!important;max-width:100%!important;
    padding-left:12px!important;padding-right:12px!important;box-sizing:border-box!important;
  }
  body:has(.mfn-checkout-tmpl-builder) .mfn-checkout-tmpl-builder :is(.mcb-wrap,.mcb-column,.mcb-column-inner,.column_attr) {
    min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
  }
  body:has(.mfn-checkout-tmpl-builder) .mfn-checkout-tmpl-builder .nv-cart-hero {
    background:#1B387D!important;color:#fff!important;
    padding:18px!important;margin:0 0 16px!important;
    border-radius:12px!important;box-sizing:border-box!important;
    min-height:0!important;height:auto!important;
  }
  body:has(.mfn-checkout-tmpl-builder) .mfn-checkout-tmpl-builder .nv-cart-hero,
  body:has(.mfn-checkout-tmpl-builder) .mfn-checkout-tmpl-builder .nv-cart-hero * {
    color:#fff!important;
  }
  body:has(.mfn-checkout-tmpl-builder) .mfn-checkout-tmpl-builder .nv-cart-hero :is(h1,h2,h3) {
    font-size:clamp(21px,6vw,27px)!important;line-height:1.2!important;margin:0 0 8px!important;
  }
  body:has(.mfn-checkout-tmpl-builder) .mfn-checkout-tmpl-builder .nv-cart-steps {
    display:flex!important;flex-flow:row wrap!important;
    align-items:center!important;gap:6px 8px!important;margin:10px 0 0!important;
  }
  body:has(.mfn-checkout-tmpl-builder) .mfn-checkout-tmpl-builder .nv-cart-steps > * {
    display:inline-flex!important;align-items:center!important;
    width:auto!important;min-width:0!important;margin:0!important;
    font-size:12px!important;line-height:1.4!important;
  }
  body:has(.mfn-checkout-tmpl-builder) .mfn-checkout-tmpl-builder :is(.woocommerce-checkout,.woocommerce-checkout-review-order,#customer_details) {
    width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;
  }
  body:has(.mfn-checkout-tmpl-builder) .mfn-checkout-tmpl-builder .woocommerce-checkout-review-order {
    padding:12px!important;
  }
  body:has(.mfn-checkout-tmpl-builder) .mfn-checkout-tmpl-builder .woocommerce-checkout-review-order-table {
    width:100%!important;max-width:100%!important;min-width:0!important;
    table-layout:fixed!important;box-sizing:border-box!important;
  }
  body:has(.mfn-checkout-tmpl-builder) .mfn-checkout-tmpl-builder .woocommerce-checkout-review-order-table :is(th,td) {
    padding:9px 5px!important;white-space:normal!important;overflow-wrap:anywhere!important;
    box-sizing:border-box!important;
  }
  body:has(.mfn-checkout-tmpl-builder) .mfn-checkout-tmpl-builder :is(#payment,.woocommerce-checkout-payment,#place_order) {
    width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;
  }
  body:has(.mfn-checkout-tmpl-builder) .mfn-checkout-tmpl-builder #payment ul.payment_methods li {
    overflow-wrap:anywhere;
  }
}
/* Ocultar el subheader del tema solo si existe la plantilla de checkout.
   BeTheme puede usar #Subheader o el bloque .mfn-subheader. */
body:has(.mfn-checkout-tmpl-builder) #Subheader,
body:has(.mfn-checkout-tmpl-builder) .mfn-subheader {
  display:none!important;
}


/* v1.0.13 — márgenes exteriores móviles 5px en Carrito y Checkout.
   No se modifica desktop ni la lógica de WooCommerce/Culqi. */
@media screen and (max-width:767px) {
  /* BeTheme limita el contenido a calc(100% - 67px) en el Android real. */
  body:has(.nv-cart-hero):is(.woocommerce-cart, :has(.mfn-checkout-tmpl-builder)) #Content > .content_wrapper,
  body:has(.nv-cart-hero):is(.woocommerce-cart, :has(.mfn-checkout-tmpl-builder)) #Content .content_wrapper,
  body.woocommerce-cart #Content .content_wrapper {
    width:calc(100% - 10px)!important;
    max-width:calc(100% - 10px)!important;
    margin-left:auto!important;margin-right:auto!important;
    box-sizing:border-box!important;
  }
  /* El layout de BeTheme puede envolver el contenido en un contenedor con max-width. */
  body.woocommerce-cart #Content :is(.sections_group,.entry-content,.mfn-builder-content),
  body:has(.mfn-checkout-tmpl-builder) #Content :is(.sections_group,.entry-content,.mfn-builder-content) {
    width:100%!important;max-width:100%!important;min-width:0!important;
    box-sizing:border-box!important;
  }
  body.woocommerce-cart #Content .section_wrapper,
  body:has(.mfn-checkout-tmpl-builder) .mfn-checkout-tmpl-builder .section_wrapper {
    width:100%!important;max-width:100%!important;
    padding-left:0!important;padding-right:0!important;
    box-sizing:border-box!important;
  }
  body.woocommerce-cart #Content :is(.mcb-wrap,.mcb-column,.mcb-column-inner,.column_attr),
  body:has(.mfn-checkout-tmpl-builder) .mfn-checkout-tmpl-builder :is(.mcb-wrap,.mcb-column,.mcb-column-inner,.column_attr) {
    min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
  }
  /* Tarjetas conservan espacio interno para que los textos no toquen el borde. */
  body.woocommerce-cart .woocommerce-cart-form,
  body.woocommerce-cart .cart-collaterals .cart_totals,
  body:has(.mfn-checkout-tmpl-builder) .mfn-checkout-tmpl-builder .woocommerce-checkout-review-order {
    max-width:100%!important;min-width:0!important;box-sizing:border-box!important;
    padding:12px!important;
  }
  body.woocommerce-cart .nv-cart-hero,
  body:has(.mfn-checkout-tmpl-builder) .mfn-checkout-tmpl-builder .nv-cart-hero {
    max-width:100%!important;box-sizing:border-box!important;
    padding:14px 12px!important;
  }
  /* Separación visual entre número y nombre de los pasos. */
  body.woocommerce-cart .nv-cart-steps .nv-cart-step,
  body:has(.mfn-checkout-tmpl-builder) .nv-cart-steps .nv-cart-step {
    gap:6px!important;
  }
  body.woocommerce-cart .nv-cart-steps .nv-cart-step__number,
  body:has(.mfn-checkout-tmpl-builder) .nv-cart-steps .nv-cart-step__number {
    margin-right:4px!important;
  }
}

/* v1.0.14: BeTheme aplica max-width:calc(100% - 67px) en un
   envoltorio sin clase por encima de .content_wrapper en Android.
   La corrección anterior sólo alcanzaba los descendientes. */
@media screen and (max-width:767px) {
  body:has(.mfn-checkout-tmpl-builder) #Content {
    width:100%!important;max-width:100%!important;min-width:0!important;
    box-sizing:border-box!important;
  }
  body:has(.mfn-checkout-tmpl-builder) #Content > div,
  body:has(.mfn-checkout-tmpl-builder) #Content > div > div,
  body:has(.mfn-checkout-tmpl-builder) #Content .content_wrapper {
    width:calc(100% - 10px)!important;
    max-width:calc(100% - 10px)!important;
    min-width:0!important;
    margin-left:auto!important;margin-right:auto!important;
    box-sizing:border-box!important;
  }
  /* Los hijos del wrapper deben ocupar el espacio ya disponible, sin
     aplicar una segunda reducción de 10px. */
  body:has(.mfn-checkout-tmpl-builder) #Content .content_wrapper,
  body:has(.mfn-checkout-tmpl-builder) #Content .sections_group,
  body:has(.mfn-checkout-tmpl-builder) #Content .entry-content,
  body:has(.mfn-checkout-tmpl-builder) #Content .mfn-builder-content {
    width:100%!important;max-width:100%!important;min-width:0!important;
    box-sizing:border-box!important;
  }
  body:has(.mfn-checkout-tmpl-builder) .mfn-checkout-tmpl-builder .section_wrapper {
    width:100%!important;max-width:100%!important;
    padding-left:0!important;padding-right:0!important;
    box-sizing:border-box!important;
  }
}

/* v1.0.15: espaciado inferior, solo pantallas móviles. */
@media (max-width:767px) {
  body:has(.mfn-checkout-tmpl-builder) .mfn-checkout-tmpl-builder .mcb-section-8e4856dd2 {
    padding-bottom:0!important;
  }
  body:has(.mfn-checkout-tmpl-builder) .mfn-checkout-tmpl-builder .mcb-wrap-ac5071ca6 {
    padding-bottom:0!important;margin-bottom:0!important;
  }
  body:has(.mfn-checkout-tmpl-builder) .mfn-checkout-tmpl-builder .col2-set {margin-bottom:16px!important;}
  body:has(.mfn-checkout-tmpl-builder) .mfn-checkout-tmpl-builder .woocommerce-checkout-review-order {margin-bottom:12px!important;}
  body:has(.mfn-checkout-tmpl-builder) .mfn-checkout-tmpl-builder .woocommerce-checkout-review-order-table {margin-bottom:16px!important;}
  body.woocommerce-cart .cart-collaterals,
  body.woocommerce-cart .cart-collaterals .cart_totals {margin-bottom:0!important;}
}

/* v1.0.17: ancho aplicado en la primera renderización, sin JS ni animaciones.
   Estructura comprobada en Android: body > contenedor principal > div > .content_wrapper.
   Se evita el selector #Content anterior porque no alcanzaba al contenedor externo. */
@media screen and (max-width:767px) {
  body:has(.mfn-checkout-tmpl-builder) > div:has(> div > .content_wrapper) {
    width:calc(100% - 10px)!important;
    max-width:calc(100% - 10px)!important;
    margin-left:5px!important;
    margin-right:5px!important;
    box-sizing:border-box!important;
    transition:none!important;animation:none!important;
  }
  body:has(.mfn-checkout-tmpl-builder) > div:has(> div > .content_wrapper) > div {
    width:100%!important;max-width:100%!important;min-width:0!important;
    box-sizing:border-box!important;transition:none!important;
  }
  body:has(.mfn-checkout-tmpl-builder) > div:has(> div > .content_wrapper) > div > .content_wrapper {
    width:calc(100% - 10px)!important;max-width:calc(100% - 10px)!important;
    margin-left:5px!important;margin-right:5px!important;
    min-width:0!important;box-sizing:border-box!important;transition:none!important;
  }
}
