/* Carrito: complementos de cada móvil (garantía, caja) con «Quitar» discreto y «＋ Añadir» */
.fwn-cx { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 2px; max-width: 420px; }
.fwn-cx.is-cargando { opacity: .5; pointer-events: none; }

.fwn-cx__fila { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; line-height: 1.35; }
.fwn-cx__fila.is-on { padding: 7px 10px; border-radius: 10px; background: #eef4ff; border: 1px solid #d6e3fb; color: #0b2a4a; }

.fwn-cx__ico { display: inline-flex; width: 18px; height: 18px; color: #1d4ed8; flex: none; }
.fwn-cx__ico svg { width: 18px; height: 18px; }
.fwn-cx__nom { font-weight: 600; flex: 1 1 0; min-width: 0; }
.fwn-cx__nom em, .fwn-cx__poner em { white-space: nowrap; font-style: normal; font-weight: 500; color: #475569; margin-left: 4px; }

/* Botones como texto: el tema les pone fondo y mayúsculas */
.woocommerce-cart .fwn-cx button { all: unset; cursor: pointer; font: inherit; }
.woocommerce-cart .fwn-cx button:focus-visible { outline: 2px solid #1d4ed8; outline-offset: 2px; border-radius: 4px; }

.woocommerce-cart .fwn-cx .fwn-cx__quitar { margin-left: auto; font-size: 12px; color: #94a3b8; text-decoration: underline; text-underline-offset: 2px; }
.woocommerce-cart .fwn-cx .fwn-cx__quitar:hover { color: #64748b; }

.fwn-cx__conf { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; font-size: 12.5px; color: #334155; }
.fwn-cx__acc { display: inline-flex; gap: 14px; white-space: nowrap; }
.fwn-cx [hidden], .woocommerce-cart .fwn-cx button[hidden] { display: none !important; }
.woocommerce-cart .fwn-cx .fwn-cx__si { color: #b91c1c; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.woocommerce-cart .fwn-cx .fwn-cx__no { color: #0b2a4a; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.woocommerce-cart .fwn-cx .fwn-cx__poner { font-size: 12.5px; font-weight: 600; color: #1d4ed8; padding: 2px 0; }
.woocommerce-cart .fwn-cx .fwn-cx__poner:hover { text-decoration: underline; text-underline-offset: 2px; }

@media (prefers-reduced-motion: no-preference) {
  .fwn-cx { transition: opacity .15s; }
}

/* Móvil: la foto del producto iba encima del nombre y los datos → foto más pequeña y el texto a su derecha */
@media (max-width: 767px) {
  .woocommerce-cart .cart_item .product-thumbnail img { width: 72px !important; height: auto !important; }
  .woocommerce-cart .cart_item td.product-name { padding-left: 92px !important; min-height: 84px; box-sizing: border-box; }
  .woocommerce-cart .fwn-cx { max-width: none; }
}

/* Datos del móvil en una línea */
.woocommerce-cart .fwn-cx-datos { margin: 2px 0 8px; font-size: 13px; color: #64748b; line-height: 1.4; }
.woocommerce-cart .fwn-cx-datos b { color: #334155; font-weight: 600; }

/* Columna Precio: tachado, precio por unidad y ahorro */
.fwn-cx-precio { display: inline-flex; flex-direction: column; line-height: 1.3; }
.fwn-cx-precio del { font-size: 13px; color: #94a3b8; }
.fwn-cx-precio del .amount { color: inherit; font-weight: 400; }
.fwn-cx-precio__ud { white-space: nowrap; }
.fwn-cx-precio__ud small { font-size: 12px; color: #64748b; }
.fwn-cx-precio__ahorro { margin-top: 2px; font-size: 12px; font-weight: 500; color: #15803d; white-space: nowrap; }
@media (max-width: 767px) { .fwn-cx-precio { align-items: flex-end; text-align: right; } }

/* Totales: subtotal sin descuento, descuento en verde y aviso de ahorro */
.woocommerce-cart .cart_totals .fwn-cx-sindesc { display: block; font-size: 12px; color: #64748b; font-weight: 400; }
.woocommerce-cart .cart_totals tr.fsr-cart-discount td { color: #15803d; font-weight: 600; }
.woocommerce-cart .cart_totals tr.fsr-cart-discount td .amount { color: inherit; }
.woocommerce-cart .cart_totals tr.fwn-cx-ahorro td { border: 0; padding: 4px 0 12px; text-align: center; }
.woocommerce-cart .cart_totals tr.fwn-cx-ahorro td::before { display: none; }
.woocommerce-cart .cart_totals tr.fwn-cx-ahorro span { display: block; font-size: 12.5px; color: #15803d; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; padding: 7px 10px; }
@media (max-width: 767px) {
  .woocommerce-cart .cart_totals tr.cart-subtotal td { flex-wrap: wrap; align-items: baseline; }
  .woocommerce-cart .cart_totals tr.cart-subtotal td .fwn-cx-sindesc { flex-basis: 100%; text-align: right; margin-top: -2px; }
  .woocommerce-cart .cart_totals tr.fwn-cx-ahorro, .woocommerce-cart .cart_totals tr.fwn-cx-ahorro td { display: block; width: 100%; }
}
