/* Factoría Checkout Visual 1.6.20
   Ajustes limitados a moneda, acciones de producto, propiedades y direcciones.
   La corrección del asterisco del consentimiento queda intacta en la capa 1.6.19. */

/* WooCommerce debe mostrar el símbolo €, nunca el código ISO añadido al importe. */
body.woocommerce-cart .woocommerce-Price-currencyCode,
body.woocommerce-checkout .woocommerce-Price-currencyCode,
body.woocommerce-order-received .woocommerce-Price-currencyCode,
body.woocommerce-cart .currency-code,
body.woocommerce-checkout .currency-code,
body.woocommerce-order-received .currency-code {display:none!important}
body.woocommerce-cart .cart_totals .amount,
body.woocommerce-cart .cart_totals .woocommerce-Price-amount,
body.woocommerce-checkout #order_review .amount,
body.woocommerce-checkout #order_review .woocommerce-Price-amount,
body.woocommerce-order-received .woocommerce-order-details .amount,
body.woocommerce-order-received .woocommerce-order-overview__total {white-space:nowrap!important}

/* Las acciones del producto se colocan juntas en una misma fila, con salto solo si falta espacio. */
body.woocommerce-cart .woocommerce-cart-form td.product-name,
body.woocommerce-checkout #order_review td.product-name,
body.woocommerce-order-received .woocommerce-order-details td.product-name {min-width:0!important;overflow-wrap:anywhere!important}
body.woocommerce-cart .woocommerce-cart-form td.product-name a.button,
body.woocommerce-cart .woocommerce-cart-form td.product-name .button,
body.woocommerce-cart .woocommerce-cart-form td.product-name button,
body.woocommerce-checkout #order_review td.product-name a.button,
body.woocommerce-checkout #order_review td.product-name .button,
body.woocommerce-checkout #order_review td.product-name button {
  display:inline-flex!important; flex:0 0 auto!important; align-items:center!important; justify-content:center!important;
  vertical-align:middle!important; width:auto!important; max-width:100%!important; min-width:0!important;
  margin:8px 7px 0 0!important; white-space:normal!important; line-height:1.3!important;
}
body.woocommerce-cart .woocommerce-cart-form td.product-name .fdt-product-actions,
body.woocommerce-cart .woocommerce-cart-form td.product-name .fdt-design-actions,
body.woocommerce-cart .woocommerce-cart-form td.product-name .fdt-cart-actions,
body.woocommerce-checkout #order_review td.product-name .fdt-product-actions,
body.woocommerce-checkout #order_review td.product-name .fdt-design-actions,
body.woocommerce-checkout #order_review td.product-name .fdt-cart-actions {
  display:flex!important; flex-flow:row wrap!important; align-items:center!important; gap:8px!important; width:100%!important;
}

/* Propiedades del producto del pedido recibido: etiqueta y valor en la misma línea;
   cada propiedad fluye en horizontal y pasa a otra línea de forma natural. */
body.woocommerce-order-received .woocommerce-order-details td.product-name p.fdt-product-meta-row,
body.woocommerce-order-received .woocommerce-order-details td.product-name .fdt-product-meta-row {
  display:flex!important; flex-direction:row!important; flex-wrap:wrap!important; align-items:baseline!important;
  justify-content:flex-start!important; gap:5px 15px!important; width:100%!important; max-width:100%!important;
  margin:7px 0 0!important; padding:0!important; text-align:left!important; font-size:13px!important; line-height:1.5!important;
}
body.woocommerce-order-received .woocommerce-order-details td.product-name .fdt-product-meta-item {
  display:inline-flex!important; flex:0 1 auto!important; flex-direction:row!important; flex-wrap:nowrap!important;
  align-items:baseline!important; gap:4px!important; width:auto!important; max-width:100%!important; min-width:0!important;
  margin:0!important; padding:0!important; float:none!important; clear:none!important; white-space:normal!important;
  overflow-wrap:anywhere!important; box-sizing:border-box!important;
}
body.woocommerce-order-received .woocommerce-order-details td.product-name .fdt-product-meta-item strong,
body.woocommerce-order-received .woocommerce-order-details td.product-name .fdt-product-meta-item b {
  display:inline!important; flex:0 0 auto!important; width:auto!important; min-width:0!important; max-width:none!important;
  margin:0!important; padding:0!important; white-space:nowrap!important; font-weight:700!important; color:#303030!important;
}
body.woocommerce-order-received .woocommerce-order-details td.product-name .fdt-product-meta-item br {display:none!important}
body.woocommerce-order-received .woocommerce-order-details table.shop_table td.product-name {vertical-align:top!important;text-align:left!important}
body.woocommerce-order-received .woocommerce-order-details table.shop_table td.product-total {vertical-align:top!important;text-align:right!important;white-space:nowrap!important}


/* Propiedades también alineadas en la tabla "Tu pedido" del checkout. */
body.woocommerce-checkout #order_review td.product-name dl.variation,
body.woocommerce-checkout #order_review td.product-name dl.wc-item-meta {
  display:grid!important; grid-template-columns:minmax(105px,0.34fr) minmax(0,1fr)!important;
  align-items:baseline!important; column-gap:9px!important; row-gap:4px!important;
  width:100%!important; max-width:100%!important; margin:7px 0 0!important; padding:0!important;
  font-size:12px!important; line-height:1.45!important;
}
body.woocommerce-checkout #order_review td.product-name dl.variation dt,
body.woocommerce-checkout #order_review td.product-name dl.variation dd,
body.woocommerce-checkout #order_review td.product-name dl.wc-item-meta dt,
body.woocommerce-checkout #order_review td.product-name dl.wc-item-meta dd {
  display:block!important; position:static!important; float:none!important; width:auto!important; min-width:0!important;
  margin:0!important; padding:0!important; align-self:baseline!important; transform:none!important; overflow-wrap:anywhere!important;
}
body.woocommerce-checkout #order_review td.product-name dl.variation dd p,
body.woocommerce-checkout #order_review td.product-name dl.wc-item-meta dd p {display:inline!important;margin:0!important;padding:0!important;line-height:inherit!important}

/* Direcciones: tarjetas limpias, de igual ancho y alineadas por arriba en pedido recibido. */
body.woocommerce-order-received .woocommerce .woocommerce-customer-details.fdt-address-root-hard {
  width:100%!important; max-width:100%!important; padding:22px!important; margin:24px 0!important;
  border:1px solid #e7e7e7!important; border-radius:14px!important; background:#fff!important;
}
body.woocommerce-order-received .woocommerce .woocommerce-customer-details .fdt-addresses-hard-grid {
  display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important; align-items:stretch!important;
  gap:18px!important; width:100%!important; max-width:100%!important; margin:0!important; padding:0!important;
}
body.woocommerce-order-received .woocommerce .woocommerce-customer-details .fdt-addresses-hard-grid > .woocommerce-column,
body.woocommerce-order-received .woocommerce .woocommerce-customer-details .fdt-addresses-hard-grid > .col-1,
body.woocommerce-order-received .woocommerce .woocommerce-customer-details .fdt-addresses-hard-grid > .col-2,
body.woocommerce-order-received .woocommerce .woocommerce-customer-details .fdt-addresses-hard-grid > div {
  align-self:stretch!important; min-width:0!important; width:100%!important; max-width:none!important; margin:0!important;
}
body.woocommerce-order-received .woocommerce .woocommerce-customer-details .fdt-addresses-hard-grid .woocommerce-column__title,
body.woocommerce-order-received .woocommerce .woocommerce-customer-details .fdt-addresses-hard-grid h2,
body.woocommerce-order-received .woocommerce .woocommerce-customer-details .fdt-addresses-hard-grid h3 {
  display:block!important; width:100%!important; min-height:0!important; margin:0 0 10px!important; padding:0 0 10px!important;
  border-bottom:1px solid #ededed!important; font-size:19px!important; font-weight:800!important; line-height:1.3!important;
  text-align:left!important; overflow-wrap:normal!important; word-break:normal!important;
}
body.woocommerce-order-received .woocommerce .woocommerce-customer-details .fdt-addresses-hard-grid address {
  display:block!important; width:100%!important; min-width:0!important; min-height:140px!important; height:100%!important;
  margin:0!important; padding:17px!important; border:1px solid #e6e6e6!important; border-radius:10px!important;
  background:#fafafa!important; font-style:normal!important; font-size:14px!important; line-height:1.65!important;
  color:#5f5f5f!important; overflow-wrap:anywhere!important; box-sizing:border-box!important;
}
body.woocommerce-order-received .woocommerce .woocommerce-customer-details .fdt-addresses-hard-grid address p {margin:3px 0!important}

/* Logos de tarjetas y nombre de método permanecen en la misma línea en escritorio. */
body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label {
  display:flex!important; flex-flow:row nowrap!important; align-items:center!important; gap:7px!important;
  width:auto!important; max-width:100%!important; text-align:left!important;
}
body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label img {
  display:inline-block!important; flex:0 0 auto!important; position:static!important; float:none!important;
  width:auto!important; max-width:40px!important; height:auto!important; max-height:26px!important; margin:0!important;
  object-fit:contain!important;
}
body.woocommerce-checkout #payment .wc-stripe-card-icons-container,
body.woocommerce-checkout #payment .wc-payment-gateway-card-icons,
body.woocommerce-checkout #payment .payment-method-icons,
body.woocommerce-checkout #payment .stripe-card-icons {
  display:flex!important; flex-flow:row nowrap!important; align-items:center!important; justify-content:flex-end!important;
  gap:5px!important; margin-left:auto!important; max-width:100%!important; overflow:visible!important;
}

@media(max-width:767px){
  body.woocommerce-cart .woocommerce-cart-form td.product-name a.button,
  body.woocommerce-cart .woocommerce-cart-form td.product-name .button,
  body.woocommerce-cart .woocommerce-cart-form td.product-name button,
  body.woocommerce-checkout #order_review td.product-name a.button,
  body.woocommerce-checkout #order_review td.product-name .button,
  body.woocommerce-checkout #order_review td.product-name button {margin:7px 6px 0 0!important; max-width:100%!important; font-size:12px!important}
  body.woocommerce-order-received .woocommerce-order-details td.product-name p.fdt-product-meta-row,
  body.woocommerce-order-received .woocommerce-order-details td.product-name .fdt-product-meta-row {gap:5px 10px!important;font-size:12px!important}
  body.woocommerce-order-received .woocommerce-order-details td.product-name .fdt-product-meta-item {gap:4px!important}
  body.woocommerce-order-received .woocommerce .woocommerce-customer-details.fdt-address-root-hard {padding:13px!important}
  body.woocommerce-order-received .woocommerce .woocommerce-customer-details .fdt-addresses-hard-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  body.woocommerce-order-received .woocommerce .woocommerce-customer-details .fdt-addresses-hard-grid .woocommerce-column__title,
  body.woocommerce-order-received .woocommerce .woocommerce-customer-details .fdt-addresses-hard-grid h2,
  body.woocommerce-order-received .woocommerce .woocommerce-customer-details .fdt-addresses-hard-grid h3 {font-size:15px!important}
  body.woocommerce-order-received .woocommerce .woocommerce-customer-details .fdt-addresses-hard-grid address {padding:11px!important;min-height:0!important;height:100%!important;font-size:12px!important;line-height:1.55!important}
  body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label {flex-wrap:wrap!important}
  body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label img {margin-left:0!important}
}
@media(max-width:420px){
  body.woocommerce-order-received .woocommerce .woocommerce-customer-details .fdt-addresses-hard-grid {grid-template-columns:minmax(0,1fr)!important}
}
