/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/hello-theme/
Description: Child theme de Hello Elementor para personalizaciones de Vinylum.
Author: Vinylum
Author URI: https://vinylumwarehouse.com/
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* Aquí puedes añadir CSS personalizado */


/* =========================
   VINYLUM CHECKOUT PRODUCT IMAGE
========================= */

/* =========================
   VINYLUM CHECKOUT - RESUMEN PEDIDO PREMIUM
========================= */

/* Ocultar cabecera Producto / Subtotal */
body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table thead {
  display: none !important;
}

/* Tabla limpia */
body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table {
  width: 100% !important;
  border: 0 !important;
  border-collapse: collapse !important;
  margin: 0 !important;
}

body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table th,
body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table td {
  border: 0 !important;
  padding: 0 !important;
  vertical-align: middle !important;
}

/* Fila del producto estilo Shopify */
body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tr.cart_item {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  column-gap: 24px !important;
  align-items: center !important;
  padding: 0 0 30px !important;
  margin: 0 0 28px !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.35) !important;
}

/* Celdas producto y precio */
body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tr.cart_item td.product-name,
body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tr.cart_item td.product-total {
  display: block !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Precio del producto a la derecha */
body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tr.cart_item td.product-total {
  text-align: right !important;
  white-space: nowrap !important;
  font-weight: 600 !important;
  font-size: 17px !important;
}

/* Wrapper producto */
body.woocommerce-checkout #order_review .vinylum-checkout-product {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  width: 100% !important;
}

/* Imagen producto */
body.woocommerce-checkout #order_review .vinylum-checkout-product__image {
  position: relative !important;
  width: 92px !important;
  height: 92px !important;
  min-width: 92px !important;
  flex: 0 0 92px !important;
  border-radius: 14px !important;
  background: #f8f5ef !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  overflow: visible !important;
}

/* Imagen real */
body.woocommerce-checkout #order_review .vinylum-checkout-product__image img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 14px !important;
}

/* Badge cantidad */
body.woocommerce-checkout #order_review .vinylum-checkout-product__qty {
  position: absolute !important;
  top: -11px !important;
  right: -11px !important;
  min-width: 26px !important;
  height: 26px !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  background: #000 !important;
  color: #fff !important;
  font-size: 13px !important;
  line-height: 26px !important;
  text-align: center !important;
  font-weight: 700 !important;
  z-index: 5 !important;
}

/* Contenedor texto */
body.woocommerce-checkout #order_review .vinylum-checkout-product__content {
  min-width: 0 !important;
}

/* Nombre producto */
body.woocommerce-checkout #order_review .vinylum-checkout-product__title {
  display: block !important;
  font-size: 17px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  color: #050505 !important;
}

/* Quitar cantidad clásica si quedase por algún lado */
body.woocommerce-checkout #order_review .product-quantity {
  display: none !important;
}

/* Totales */
body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tfoot tr {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  column-gap: 24px !important;
  align-items: start !important;
  padding: 18px 0 !important;
  border: 0 !important;
}

body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tfoot th {
  font-size: 22px !important;
  font-weight: 700 !important;
  text-align: left !important;
  padding: 0 !important;
  border: 0 !important;
}

body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tfoot td {
  text-align: right !important;
  font-size: 17px !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Línea antes del total */
body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tfoot tr.order-total {
  margin-top: 28px !important;
  padding-top: 28px !important;
  border-top: 1px solid rgba(0, 0, 0, 0.35) !important;
}

/* Total más potente */
body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tfoot tr.order-total th {
  font-size: 26px !important;
}

body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tfoot tr.order-total td {
  font-size: 26px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

/* Texto de envío más controlado */
body.woocommerce-checkout #order_review .woocommerce-shipping-methods {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.woocommerce-checkout #order_review .woocommerce-shipping-methods li {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.45 !important;
}

body.woocommerce-checkout #order_review .woocommerce-shipping-methods label {
  font-size: 17px !important;
  line-height: 1.45 !important;
}

/* Responsive */
@media (max-width: 600px) {
  body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tr.cart_item {
    grid-template-columns: 1fr !important;
    row-gap: 14px !important;
  }

  body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tr.cart_item td.product-total {
    text-align: left !important;
    padding-left: 86px !important;
  }

  body.woocommerce-checkout #order_review .vinylum-checkout-product {
    gap: 14px !important;
  }

  body.woocommerce-checkout #order_review .vinylum-checkout-product__image {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    flex-basis: 72px !important;
  }

  body.woocommerce-checkout #order_review .vinylum-checkout-product__title {
    font-size: 15px !important;
  }
}



/* =========================
   FIX ANCHOS RESUMEN PEDIDO
========================= */

/* Card del pedido: que respire mejor */
#order_review {
  padding: 42px !important;
}

/* Fila del producto: damos una columna fija razonable al precio */
#order_review .woocommerce-checkout-review-order-table tr.cart_item {
  grid-template-columns: minmax(0, 1fr) 120px !important;
  column-gap: 28px !important;
  align-items: center !important;
}

/* El precio no debe comerse el ancho */
#order_review .woocommerce-checkout-review-order-table tr.cart_item td.product-total {
  width: 120px !important;
  max-width: 120px !important;
  text-align: right !important;
}

/* Producto: imagen + texto con ancho real */
#order_review .vinylum-checkout-product {
  display: grid !important;
  grid-template-columns: 150px minmax(0, 1fr) !important;
  gap: 24px !important;
  align-items: center !important;
}

/* Imagen algo más controlada */
#order_review .vinylum-checkout-product__image {
  width: 150px !important;
  height: 150px !important;
  min-width: 150px !important;
  flex: none !important;
}

/* Texto producto: que no se parta palabra a palabra */
#order_review .vinylum-checkout-product__content {
  min-width: 0 !important;
  width: 100% !important;
}

#order_review .vinylum-checkout-product__title {
  font-size: 24px !important;
  line-height: 1.18 !important;
  font-weight: 700 !important;
  max-width: 320px !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

/* Totales: derecha más ancha para que el envío no quede fatal */
#order_review .woocommerce-checkout-review-order-table tfoot tr {
  grid-template-columns: minmax(0, 1fr) 300px !important;
  column-gap: 36px !important;
  align-items: start !important;
}

/* Columna derecha de subtotales/envío */
#order_review .woocommerce-checkout-review-order-table tfoot td {
  width: 300px !important;
  max-width: 300px !important;
  text-align: right !important;
}

/* Envío: que el texto tenga ancho decente */
#order_review .woocommerce-shipping-methods {
  width: 100% !important;
  max-width: 300px !important;
  margin-left: auto !important;
}

#order_review .woocommerce-shipping-methods li {
  text-align: right !important;
  width: 100% !important;
}

#order_review .woocommerce-shipping-methods label {
  display: block !important;
  width: 100% !important;
  max-width: 300px !important;
  font-size: 18px !important;
  line-height: 1.45 !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

/* El texto del tiempo de envío, si viene dentro del label */
#order_review .woocommerce-shipping-methods label strong,
#order_review .woocommerce-shipping-methods strong {
  font-weight: 700 !important;
}

/* Total más limpio */
#order_review .woocommerce-checkout-review-order-table tfoot tr.order-total {
  grid-template-columns: minmax(0, 1fr) 300px !important;
}

#order_review .woocommerce-checkout-review-order-table tfoot tr.order-total td {
  width: 300px !important;
  max-width: 300px !important;
}


/* =========================
   FIX PRODUCTO CHECKOUT
========================= */

/* Forzamos que la fila del producto sea flex, no grid raro de tabla */
#order_review .woocommerce-checkout-review-order-table tbody,
#order_review .woocommerce-checkout-review-order-table tr.cart_item {
  width: 100% !important;
}

#order_review .woocommerce-checkout-review-order-table tr.cart_item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 28px !important;
}

/* La celda del producto debe ocupar todo el espacio disponible */
#order_review .woocommerce-checkout-review-order-table tr.cart_item td.product-name {
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
}

/* Precio fijo a la derecha */
#order_review .woocommerce-checkout-review-order-table tr.cart_item td.product-total {
  flex: 0 0 120px !important;
  width: 120px !important;
  max-width: 120px !important;
  text-align: right !important;
}

/* Producto: imagen + texto */
#order_review .vinylum-checkout-product {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  width: 100% !important;
  max-width: none !important;
}

/* Bajamos tamaño de imagen: ahora estaba demasiado grande */
#order_review .vinylum-checkout-product__image {
  width: 104px !important;
  height: 104px !important;
  min-width: 104px !important;
  flex: 0 0 104px !important;
}

/* El texto debe poder respirar */
#order_review .vinylum-checkout-product__content {
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
}

/* Nombre producto más elegante y menos mazacote */
#order_review .vinylum-checkout-product__title {
  display: block !important;
  font-size: 18px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  max-width: none !important;
  width: 100% !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

/* =========================
   VINYLUM - PRECIOS CHECKOUT FINAL ELEGANTE
========================= */

/* Precio del producto */
html body.woocommerce-checkout #order_review tr.cart_item td.product-total,
html body.woocommerce-checkout #order_review tr.cart_item td.product-total .woocommerce-Price-amount,
html body.woocommerce-checkout #order_review tr.cart_item td.product-total .woocommerce-Price-amount bdi,
html body.woocommerce-checkout #order_review tr.cart_item td.product-total .woocommerce-Price-currencySymbol {
  font-size: 22px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
}

/* Subtotal */
html body.woocommerce-checkout #order_review tr.cart-subtotal td,
html body.woocommerce-checkout #order_review tr.cart-subtotal td .woocommerce-Price-amount,
html body.woocommerce-checkout #order_review tr.cart-subtotal td .woocommerce-Price-amount bdi,
html body.woocommerce-checkout #order_review tr.cart-subtotal td .woocommerce-Price-currencySymbol {
  font-size: 22px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
}

/* Envío */
html body.woocommerce-checkout #order_review tr.shipping td,
html body.woocommerce-checkout #order_review tr.woocommerce-shipping-totals td,
html body.woocommerce-checkout #order_review .woocommerce-shipping-methods label {
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
}

/* Precio del envío */
html body.woocommerce-checkout #order_review tr.shipping td .woocommerce-Price-amount,
html body.woocommerce-checkout #order_review tr.shipping td .woocommerce-Price-amount bdi,
html body.woocommerce-checkout #order_review tr.shipping td .woocommerce-Price-currencySymbol,
html body.woocommerce-checkout #order_review tr.woocommerce-shipping-totals td .woocommerce-Price-amount,
html body.woocommerce-checkout #order_review tr.woocommerce-shipping-totals td .woocommerce-Price-amount bdi,
html body.woocommerce-checkout #order_review tr.woocommerce-shipping-totals td .woocommerce-Price-currencySymbol {
  font-size: 22px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
}

/* Texto "Tiempo de Envío" */
html body.woocommerce-checkout #order_review .woocommerce-shipping-methods strong {
  font-size: 18px !important;
  font-weight: 700 !important;
}

/* Total: destacado pero sin pasarnos */
html body.woocommerce-checkout #order_review tr.order-total th {
  font-size: 36px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.025em !important;
}

html body.woocommerce-checkout #order_review tr.order-total td,
html body.woocommerce-checkout #order_review tr.order-total td strong,
html body.woocommerce-checkout #order_review tr.order-total td .woocommerce-Price-amount,
html body.woocommerce-checkout #order_review tr.order-total td .woocommerce-Price-amount bdi,
html body.woocommerce-checkout #order_review tr.order-total td .woocommerce-Price-currencySymbol {
  font-size: 26px !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.03em !important;
}

/* Evitar que WooCommerce meta rarezas en los importes */
html body.woocommerce-checkout #order_review .woocommerce-Price-amount {
  white-space: nowrap !important;
}





/* =========================
   VINYLUM - CHECKOUT MOBILE FINAL
========================= */

@media (max-width: 1024px) {

  html body.woocommerce-checkout #order_review {
    width: 100% !important;
    max-width: 100% !important;
    padding: 18px !important;
    border-radius: 10px !important;
    margin-top: 24px !important;
  }

  html body.woocommerce-checkout #order_review::before {
    font-size: 18px !important;
    margin-bottom: 22px !important;
  }

  /* Producto: dejamos la fila en bloque */
  html body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tr.cart_item {
    display: block !important;
    padding: 0 0 22px !important;
    margin: 0 0 22px !important;
    border-bottom: 1px solid rgba(0,0,0,.25) !important;
  }

  html body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tr.cart_item td.product-name,
  html body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tr.cart_item td.product-total {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: left !important;
    padding: 0 !important;
  }

  /* Imagen + nombre producto */
  html body.woocommerce-checkout #order_review .vinylum-checkout-product {
    display: grid !important;
    grid-template-columns: 76px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: center !important;
    width: 100% !important;
  }

  html body.woocommerce-checkout #order_review .vinylum-checkout-product__image {
    width: 76px !important;
    height: 76px !important;
    min-width: 76px !important;
    flex: 0 0 76px !important;
  }

  html body.woocommerce-checkout #order_review .vinylum-checkout-product__image img {
    width: 76px !important;
    height: 76px !important;
    object-fit: cover !important;
  }

  html body.woocommerce-checkout #order_review .vinylum-checkout-product__qty {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    line-height: 24px !important;
    font-size: 12px !important;
    top: -9px !important;
    right: -9px !important;
  }

  html body.woocommerce-checkout #order_review .vinylum-checkout-product__title {
    font-size: 13px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    max-width: 100% !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  /* Precio producto debajo, alineado limpio */
  html body.woocommerce-checkout #order_review tr.cart_item td.product-total {
    margin-top: 10px !important;
    padding-left: 88px !important;
  }

  html body.woocommerce-checkout #order_review tr.cart_item td.product-total,
  html body.woocommerce-checkout #order_review tr.cart_item td.product-total .woocommerce-Price-amount,
  html body.woocommerce-checkout #order_review tr.cart_item td.product-total .woocommerce-Price-amount bdi,
  html body.woocommerce-checkout #order_review tr.cart_item td.product-total .woocommerce-Price-currencySymbol {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
  }

  /* Totales en mobile */
  html body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tfoot tr {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    column-gap: 12px !important;
    align-items: start !important;
    padding: 14px 0 !important;
  }

  html body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tfoot th {
    font-size: 18px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    text-align: left !important;
  }

  html body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tfoot td {
    width: auto !important;
    max-width: 150px !important;
    text-align: right !important;
  }

  /* Importes normales */
  html body.woocommerce-checkout #order_review tr.cart-subtotal td,
  html body.woocommerce-checkout #order_review tr.cart-subtotal td .woocommerce-Price-amount,
  html body.woocommerce-checkout #order_review tr.cart-subtotal td .woocommerce-Price-amount bdi,
  html body.woocommerce-checkout #order_review tr.cart-subtotal td .woocommerce-Price-currencySymbol,
  html body.woocommerce-checkout #order_review tr.shipping td .woocommerce-Price-amount,
  html body.woocommerce-checkout #order_review tr.shipping td .woocommerce-Price-amount bdi,
  html body.woocommerce-checkout #order_review tr.shipping td .woocommerce-Price-currencySymbol {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
  }

  /* Envío */
  html body.woocommerce-checkout #order_review tr.shipping td,
  html body.woocommerce-checkout #order_review tr.woocommerce-shipping-totals td {
    max-width: 170px !important;
  }

  html body.woocommerce-checkout #order_review .woocommerce-shipping-methods,
  html body.woocommerce-checkout #order_review .woocommerce-shipping-methods li,
  html body.woocommerce-checkout #order_review .woocommerce-shipping-methods label {
    width: 100% !important;
    max-width: 170px !important;
    text-align: right !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    font-weight: 400 !important;
  }

  html body.woocommerce-checkout #order_review .woocommerce-shipping-methods strong {
    font-size: 12px !important;
    font-weight: 700 !important;
  }

  /* Separador antes del total */
  html body.woocommerce-checkout #order_review tr.order-total {
    margin-top: 16px !important;
    padding-top: 20px !important;
    border-top: 1px solid rgba(0,0,0,.25) !important;
  }

  /* Total mobile */
  html body.woocommerce-checkout #order_review tr.order-total th {
    font-size: 22px !important;
    font-weight: 800 !important;
  }

  html body.woocommerce-checkout #order_review tr.order-total td,
  html body.woocommerce-checkout #order_review tr.order-total td strong,
  html body.woocommerce-checkout #order_review tr.order-total td .woocommerce-Price-amount,
  html body.woocommerce-checkout #order_review tr.order-total td .woocommerce-Price-amount bdi,
  html body.woocommerce-checkout #order_review tr.order-total td .woocommerce-Price-currencySymbol {
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }
}


/* =========================
   MOBILE FIX - BLOC PRODUCTE
========================= */
@media (max-width: 767px) {

  /* La fila del producte */
  html body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tr.cart_item {
    display: block !important;
    width: 100% !important;
    padding: 0 0 16px !important;
    margin: 0 0 16px !important;
    border-bottom: 1px solid rgba(0,0,0,.2) !important;
  }

  /* Celdas */
  html body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tr.cart_item td.product-name,
  html body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tr.cart_item td.product-total {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
  }

  /* Wrapper del producto */
  html body.woocommerce-checkout #order_review .vinylum-checkout-product {
    display: grid !important;
    grid-template-columns: 64px 1fr !important;
    gap: 10px !important;
    align-items: center !important;
    width: 100% !important;
  }

  /* Imagen */
  html body.woocommerce-checkout #order_review .vinylum-checkout-product__image {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    flex: 0 0 64px !important;
    border-radius: 10px !important;
    overflow: visible !important;
  }

  html body.woocommerce-checkout #order_review .vinylum-checkout-product__image img {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    display: block !important;
  }

  /* Badge cantidad */
  html body.woocommerce-checkout #order_review .vinylum-checkout-product__qty {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    line-height: 20px !important;
    font-size: 11px !important;
    top: -6px !important;
    right: -6px !important;
  }

  /* Texto */
  html body.woocommerce-checkout #order_review .vinylum-checkout-product__content {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  html body.woocommerce-checkout #order_review .vinylum-checkout-product__title {
    display: block !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    margin: 0 !important;
    max-width: 100% !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
  }

  /* Precio debajo del producto */
  html body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tr.cart_item td.product-total {
    padding-left: 74px !important;
    margin-top: 8px !important;
  }

  html body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tr.cart_item td.product-total,
  html body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tr.cart_item td.product-total .woocommerce-Price-amount,
  html body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tr.cart_item td.product-total .woocommerce-Price-amount bdi {
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
  }
}