/* Factoría de Tinta — 1.6.4. Ajustes concretos basados en capturas reales de móvil y escritorio. */
body.woocommerce-cart,body.woocommerce-checkout,body.woocommerce-order-received{overflow-x:hidden!important}
body.woocommerce-cart .site-main,body.woocommerce-checkout .site-main,body.woocommerce-order-received .site-main{min-width:0!important;max-width:100%!important}
/* Checkout móvil: evita títulos duplicados/superpuestos y campos comprimidos. */
body.woocommerce-checkout #customer_details h3,
body.woocommerce-checkout #order_review_heading,
body.woocommerce-checkout #order_review h3,
body.woocommerce-checkout .woocommerce-additional-fields h3,
body.woocommerce-checkout .woocommerce-billing-fields h3,
body.woocommerce-checkout .woocommerce-shipping-fields h3{display:block!important;position:static!important;float:none!important;clear:both!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0 0 20px!important;padding:0 0 12px!important;line-height:1.3!important;letter-spacing:normal!important;white-space:normal!important;overflow:visible!important;transform:none!important;text-shadow:none!important}
body.woocommerce-checkout #customer_details .col2-set{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:18px!important}
body.woocommerce-checkout #customer_details .col-1,body.woocommerce-checkout #customer_details .col-2{display:block!important;float:none!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:18px!important;border:1px solid #e7e7e7!important;border-radius:14px!important;background:#fff!important}
body.woocommerce-checkout #customer_details .form-row,body.woocommerce-checkout #customer_details .form-row-first,body.woocommerce-checkout #customer_details .form-row-last,body.woocommerce-checkout #customer_details .form-row-wide{display:block!important;float:none!important;clear:both!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0 0 16px!important;padding:0!important}
body.woocommerce-checkout #customer_details label{display:block!important;width:100%!important;margin:0 0 7px!important;line-height:1.45!important;white-space:normal!important;overflow-wrap:anywhere!important}
body.woocommerce-checkout #customer_details input,body.woocommerce-checkout #customer_details select,body.woocommerce-checkout #customer_details textarea{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;min-height:48px!important;line-height:1.45!important;padding:12px 14px!important;box-sizing:border-box!important}
body.woocommerce-checkout #customer_details textarea{min-height:125px!important;resize:vertical!important}
body.woocommerce-checkout .woocommerce-additional-fields,.woocommerce-checkout .woocommerce-additional-fields__field-wrapper{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;clear:both!important}
body.woocommerce-checkout #order_review table.shop_table{width:100%!important;max-width:100%!important;table-layout:fixed!important;border-collapse:collapse!important}
body.woocommerce-checkout #order_review table.shop_table th,body.woocommerce-checkout #order_review table.shop_table td{padding:12px 9px!important;vertical-align:top!important;overflow-wrap:anywhere!important;word-break:normal!important;line-height:1.45!important}
body.woocommerce-checkout #order_review table.shop_table th:first-child,body.woocommerce-checkout #order_review table.shop_table td:first-child{width:68%!important}
body.woocommerce-checkout #order_review table.shop_table th:last-child,body.woocommerce-checkout #order_review table.shop_table td:last-child{width:32%!important;text-align:right!important}
/* Pedido recibido: metadatos en una fila y direcciones en columnas alineadas. */
body.woocommerce-order-received .woocommerce-order-overview{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important;float:none!important;width:100%!important;max-width:100%!important;margin:0 0 26px!important;padding:0!important;list-style:none!important}
body.woocommerce-order-received .woocommerce-order-overview li{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;float:none!important;width:auto!important;min-width:0!important;min-height:86px!important;margin:0!important;padding:14px!important;box-sizing:border-box!important;overflow-wrap:anywhere!important;border:1px solid #e7e7e7!important;border-top:3px solid #e30613!important;border-radius:10px!important}
body.woocommerce-order-received .woocommerce-order-overview li strong{display:block!important;margin:8px 0 0!important;line-height:1.4!important;overflow-wrap:anywhere!important}
body.woocommerce-order-received .woocommerce-customer-details .addresses,
body.woocommerce-order-received .woocommerce-customer-details .col2-set,
body.woocommerce-order-received .woocommerce-columns--addresses,
body.woocommerce-order-received .woocommerce-customer-details{width:100%!important;max-width:100%!important;min-width:0!important}
body.woocommerce-order-received .woocommerce-customer-details .col2-set,
body.woocommerce-order-received .woocommerce-customer-details .addresses,
body.woocommerce-order-received .woocommerce-columns--addresses{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch!important;gap:18px!important}
body.woocommerce-order-received .woocommerce-customer-details .col-1,
body.woocommerce-order-received .woocommerce-customer-details .col-2,
body.woocommerce-order-received .woocommerce-columns--addresses .woocommerce-column{float:none!important;display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;box-sizing:border-box!important}
/* Carrito móvil: cada producto debe respirar y sus opciones no deben amontonarse. */
@media(max-width:767px){
 body.woocommerce-cart .site-main article .entry-content>.woocommerce,body.woocommerce-cart .site-main article .entry-content .woocommerce,body.woocommerce-checkout .site-main article .entry-content>.woocommerce,body.woocommerce-checkout .site-main article .entry-content .woocommerce,body.woocommerce-order-received .site-main article .entry-content>.woocommerce,body.woocommerce-order-received .site-main article .entry-content .woocommerce{width:100%!important;max-width:100%!important;margin-left:auto!important;margin-right:auto!important;padding-left:12px!important;padding-right:12px!important;box-sizing:border-box!important}
 body.woocommerce-cart .woocommerce-cart-form,body.woocommerce-cart .cart-collaterals,body.woocommerce-cart .cart_totals{width:100%!important;max-width:100%!important;min-width:0!important}
 body.woocommerce-cart .woocommerce-cart-form table.shop_table,body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody,body.woocommerce-cart .woocommerce-cart-form table.shop_table tr,body.woocommerce-cart .woocommerce-cart-form table.shop_table td{max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
 body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item{display:block!important;width:100%!important;margin:0 0 18px!important;padding:14px!important;border:1px solid #e5e5e5!important;border-radius:14px!important;background:#fff!important;box-shadow:0 3px 14px rgba(0,0,0,.04)!important}
 body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td{display:block!important;width:100%!important;padding:9px 0!important;border:0!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere!important}
 body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-thumbnail{display:inline-block!important;vertical-align:middle!important;width:82px!important;max-width:30%!important;padding:0 10px 8px 0!important}
 body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-thumbnail img{display:block!important;width:72px!important;height:72px!important;max-width:100%!important;object-fit:contain!important;margin:0!important}
 body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-name{display:block!important;font-size:16px!important;font-weight:700!important;line-height:1.45!important;padding:6px 0 12px!important}
 body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-name dl.variation{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:7px!important;margin:12px 0!important}
 body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-name dl.variation dt,body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-name dl.variation dd{display:block!important;width:auto!important;min-width:0!important;margin:0!important;padding:9px 10px!important;border-radius:8px!important;background:#f5f5f5!important;line-height:1.4!important;overflow-wrap:anywhere!important}
 body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-price:before,body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-quantity:before,body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-subtotal:before{display:inline-block!important;min-width:92px!important;margin-right:8px!important;font-weight:700!important}
 body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-price:before{content:'Precio:'!important}
 body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-quantity:before{content:'Cantidad:'!important}
 body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-subtotal:before{content:'Subtotal:'!important}
 body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-quantity .quantity{display:inline-flex!important;max-width:100%!important;margin:0!important}
 body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-quantity input.qty{width:66px!important;min-width:66px!important;min-height:42px!important}
 body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-remove{position:relative!important;text-align:right!important;padding:0!important}
 body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-remove a.remove{position:absolute!important;right:0!important;top:0!important}
 body.woocommerce-cart .coupon{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important;padding:14px!important}
 body.woocommerce-cart .coupon input#coupon_code,body.woocommerce-cart .coupon input[name="coupon_code"],body.woocommerce-cart .coupon button[name="apply_coupon"],body.woocommerce-cart .coupon input[name="apply_coupon"],body.woocommerce-cart .coupon .button{width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;box-sizing:border-box!important}
 body.woocommerce-cart .cart_totals,body.woocommerce-cart .cart_totals table,body.woocommerce-cart .cart_totals tbody,body.woocommerce-cart .cart_totals tr,body.woocommerce-cart .cart_totals th,body.woocommerce-cart .cart_totals td{max-width:100%!important;min-width:0!important;overflow-wrap:anywhere!important}
 body.woocommerce-cart .cart_totals table th,body.woocommerce-cart .cart_totals table td{padding:13px 10px!important;line-height:1.5!important}
 body.woocommerce-checkout #customer_details .col-1,body.woocommerce-checkout #customer_details .col-2{padding:15px!important}
 body.woocommerce-checkout #customer_details h3,body.woocommerce-checkout .woocommerce-additional-fields h3{font-size:21px!important;letter-spacing:0!important;word-spacing:normal!important}
 body.woocommerce-checkout #order_review_heading{font-size:22px!important;line-height:1.3!important}
 body.woocommerce-order-received .woocommerce-order-overview{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 body.woocommerce-order-received .woocommerce-order-overview li{min-height:78px!important;padding:12px!important}
 body.woocommerce-order-received .woocommerce-customer-details .col2-set,body.woocommerce-order-received .woocommerce-customer-details .addresses,body.woocommerce-order-received .woocommerce-columns--addresses{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
 body.woocommerce-order-received .woocommerce-customer-details address{padding:12px!important;overflow-wrap:anywhere!important}
}
@media(max-width:390px){
 body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-name dl.variation{grid-template-columns:minmax(0,1fr)!important}
 body.woocommerce-order-received .woocommerce-order-overview{grid-template-columns:minmax(0,1fr)!important}
 body.woocommerce-order-received .woocommerce-customer-details .col2-set,body.woocommerce-order-received .woocommerce-customer-details .addresses,body.woocommerce-order-received .woocommerce-columns--addresses{grid-template-columns:minmax(0,1fr)!important}
}
