/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* Botón negro con texto blanco */
.woocommerce ul.products li.product .button {
  background-color: #000 !important;
  color: #fff !important;
  border: none;
  text-transform: none;
  font-weight: 500;
}

/* Botón al pasar el ratón */
.woocommerce ul.products li.product .button:hover {
  background-color: #333 !important;
  color: #fff !important;
}

/* ===== Chips (mismos que la lista) ===== */
.ecoi-pill{display:inline-block;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:600;color:#fff}
.ecoi-pill--green{background:#28a745}
.ecoi-pill--orange{background:#f39c12}
.ecoi-pill--blue{background:#2d7ef7}
.ecoi-pill--gray{background:#95a5a6}
.ecoi-pill--red{background:#e74c3c}
.ecoi-pill--dark{background:#34495e}

/* ===== Cabecera detalle ===== */
.ecoi-order-detail{background:#fff;border-radius:12px;padding:16px}
.ecoi-order-header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;border-bottom:1px solid #eee;padding-bottom:12px;margin-bottom:16px}
.ecoi-oh-number{font-size:20px;font-weight:800}
.ecoi-oh-date{color:#6e6e6e;font-size:13px;margin-top:2px}
.ecoi-oh-meta{color:#8e8e8e;font-size:13px;margin-top:6px}
.ecoi-oh-right{text-align:right}
.ecoi-oh-total{font-weight:800;margin-top:8px}

/* ===== Tabla ===== */
.ecoi-table{width:100%}
.ecoi-col-product{width:70%}
.ecoi-col-qty{width:10%;text-align:center}
.ecoi-col-total{width:20%;text-align:right}
.ecoi-line{display:flex;gap:10px;align-items:flex-start}
.ecoi-thumb img{width:56px;height:56px;object-fit:cover;border-radius:8px}
.ecoi-name{font-weight:600}

/* ===== Notas & Direcciones ===== */
.ecoi-order-notes{margin-top:18px}
.ecoi-addresses{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:18px}
.ecoi-address{background:#fff;border:1px solid #eee;border-radius:10px;padding:14px}
.ecoi-address h3{margin-top:0}

/* Responsive */
@media (max-width:900px){
  .ecoi-order-header{flex-direction:column;align-items:flex-start}
  .ecoi-oh-right{text-align:left}
  .ecoi-addresses{grid-template-columns:1fr}
  .ecoi-col-product{width:auto}
}

/* Dashboard My Account */
.ecoi-dashboard { background:#fff; border-radius:12px; padding:16px; }
.ecoi-stats { margin: 6px 0 14px; padding-left: 18px; }
.ecoi-links { padding-left: 18px; }
.ecoi-btn {
  display:inline-block; padding:10px 14px; border-radius:8px;
  background:#2f75ff; color:#fff; text-decoration:none; font-weight:600;
}
.ecoi-links li + li { margin-top: 6px; }

/* ====== Mis pedidos (lista) ====== */
.woocommerce-account .ecoi-orders {
  margin-top: 8px;
  display: grid;
  gap: 14px;
}

.woocommerce-account .ecoi-order-row {
  display: grid;
  grid-template-columns: 220px 1fr 140px 140px 150px; /* nº+fecha | pack | chip | total | botón */
  align-items: center;
  column-gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #e9e9e9;
}

.woocommerce-account .ecoi-order-col { min-width: 0; }

/* Nº y fecha */
.woocommerce-account .ecoi-order-number { font-weight: 700; }
.woocommerce-account .ecoi-order-date { color: #6e6e6e; font-size: 13px; margin-top: 2px; }

/* “Bultos” + subtítulo (primer producto) */
.woocommerce-account .ecoi-order-pack-title { font-weight: 600; }
.woocommerce-account .ecoi-order-pack-sub {
  color: #8e8e8e; font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Chip de estado (colores del mockup) */
.ecoi-pill{display:inline-block;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:600;color:#fff}
.ecoi-pill--green{background:#2db56f;}     /* Enviado */
.ecoi-pill--orange{background:#f39c12;}    /* Retrasado */
.ecoi-pill--blue{background:#3b5bdb;}      /* Entregado */
.ecoi-pill--gray{background:#95a5a6;}
.ecoi-pill--red{background:#e74c3c;}
.ecoi-pill--dark{background:#34495e;}

.woocommerce-account .ecoi-order-amount { font-weight: 700; text-align: right; }

/* Botón “Ver detalles” (a la derecha y azul) */
.ecoi-btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  background: #2f75ff;
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
}
.woocommerce-account .ecoi-order-cta { text-align: right; }

/* ====== Responsive ====== */
@media (max-width: 980px){
  .woocommerce-account .ecoi-order-row {
    grid-template-columns: 1fr 1fr auto;
    row-gap: 6px;
  }
  .woocommerce-account .ecoi-order-total,
  .woocommerce-account .ecoi-order-cta { justify-self: end; }
}

/* ====== Dashboard (si usas el override) ====== */
.ecoi-dashboard { background:#fff; border-radius:12px; padding:16px; }
.ecoi-stats { margin:6px 0 14px; padding-left:18px; }
.ecoi-links { padding-left:18px; }
.ecoi-links .ecoi-btn { margin-top:6px; }

/* ====== Detalle (si usas los overrides) ====== */
.ecoi-order-detail{background:#fff;border-radius:12px;padding:16px}
.ecoi-order-header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;border-bottom:1px solid #eee;padding-bottom:12px;margin-bottom:16px}
.ecoi-oh-number{font-size:20px;font-weight:800}
.ecoi-oh-date{color:#6e6e6e;font-size:13px;margin-top:2px}
.ecoi-oh-meta{color:#8e8e8e;font-size:13px;margin-top:6px}
.ecoi-oh-right{text-align:right}
.ecoi-oh-total{font-weight:800;margin-top:8px}
.ecoi-table{width:100%}
.ecoi-col-product{width:70%}
.ecoi-col-qty{width:10%;text-align:center}
.ecoi-col-total{width:20%;text-align:right}
.ecoi-line{display:flex;gap:10px;align-items:flex-start}
.ecoi-thumb img{width:56px;height:56px;object-fit:cover;border-radius:8px}
.ecoi-name{font-weight:600}
.ecoi-addresses{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:18px}
.ecoi-address{background:#fff;border:1px solid #eee;border-radius:10px;padding:14px}
@media (max-width:900px){
  .ecoi-order-header{flex-direction:column;align-items:flex-start}
  .ecoi-oh-right{text-align:left}
  .ecoi-addresses{grid-template-columns:1fr}
}

.ecoi-back{ margin-bottom:12px; display: flex; justify-content: space-between }
.ecoi-btn--ghost{
  background:#fff;
  color:#2f75ff !important;
  border:1px solid #d4dcff;
}
.ecoi-btn--ghost:hover{ background:#f3f6ff; }

/* —— Lista: nombre + ojito ————————————————————————— */
.ecoi-prod{ display:flex; flex-direction:column; gap:4px }
.ecoi-name--blue{ color:#2f75ff; font-weight:600; line-height:1.25 }
.ecoi-item-eye{
  display:inline-flex; align-items:center; gap:8px;
  margin-top:4px; font-size:14px; line-height:1.25;
  color:#2f75ff; text-decoration:none;
}
.ecoi-item-eye svg{ width:16px; height:16px; flex:0 0 16px; display:block; }
.ecoi-item-eye:hover{ text-decoration:underline }

/* —— Modal: centrado y layout horizontal ———————————— */
.ecoi-modal[hidden]{display:none!important;}
.ecoi-modal{ position:fixed !important; inset:0 !important; z-index:10000 !important; }
.ecoi-modal__overlay{ position:absolute !important; inset:0 !important; background:rgba(0,0,0,.35) !important; z-index:1 !important; }

/* Dialog centrado */
.ecoi-modal__dialog{
  position:absolute !important;
  top:50% !important; left:50% !important;
  transform:translate(-50%,-50%) !important;
  margin:0 !important; background:#fff; border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
  padding:18px;
  width:min(900px, calc(100% - 48px));
  max-height:calc(100vh - 48px); overflow:auto;
  z-index:2 !important;
}

/* Grid horizontal */
.ecoi-modal__grid{ display:grid; grid-template-columns:340px 1fr; gap:24px; align-items:start; }
.ecoi-modal__media img{ width:100%; height:auto; border-radius:10px; object-fit:cover; }
.ecoi-modal__title{ margin:0 0 6px; font-size:22px; font-weight:800; }
.ecoi-modal__subtitle{
  margin: 18px 0 6px;
  font-size:14px; color:#666; }

/* Atributos */
.ecoi-attrs{ margin:0 0 12px; padding-left:18px; }
.ecoi-attrs li{ margin:2px 0; }
.ecoi-attrs .k{ color:#666; }
.ecoi-attrs .v{ color:#111; font-weight:500; }
.ecoi-attrs-empty{ color:#777; }

/* Coste: columnas label / valor, con espacio generoso */
.ecoi-cost{ display:grid; gap:10px; max-width:360px; }
.ecoi-cost .row{ display:grid; grid-template-columns:1fr auto; align-items:baseline; column-gap:28px; }
.ecoi-cost .label{ color:#555; }
.ecoi-cost .value{ font-weight:700; }
.ecoi-cost .total .value{ font-size:16px; }

/* Cerrar (X negra simple) */
.ecoi-modal__close{
  position:absolute; top:10px; right:12px;
  background:none !important; border:none !important;
  color:#000 !important; padding:6px; cursor:pointer; line-height:1;
}

/* Responsive */
@media (max-width: 980px){
  .ecoi-modal__grid{ grid-template-columns:1fr; }
}

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info {
  color: gray
}
.woocommerce .woocommerce-info a {
  color: #1B71E9 !important;           /* verde */
}
.eco-invoice-note .woocommerce-message{ color: gray }

/* ============================================================
   PRECIO EN FICHA (Elementor)
   - Alineado a la derecha
   - Fondo blanco
   - Texto negro
   - Borde azul corporativo
   - Estilo limpio / premium
   ============================================================ */

.single-product
.elementor-widget-woocommerce-product-price
.elementor-widget-container{
  display: flex;
  justify-content: flex-end;
  align-items: center;

  background: transparent !important;
  padding: 0 !important;
  margin: 12px 0 18px !important;
}

/* Wrapper del precio */
.single-product
.elementor-widget-woocommerce-product-price
p.price{
  margin: 0 !important;
  padding: 0 !important;
}

/* Caja del precio */
.single-product
.elementor-widget-woocommerce-product-price
p.price .woocommerce-Price-amount{
  display: inline-flex;
  align-items: baseline;
  gap: 6px;

  padding: 12px 18px;
  border-radius: 14px;

  background: #ffffff;
  border: 2px solid #2165f1;

  color: #0f172a;
  font-weight: 800;
  font-size: 22px;
  line-height: 1;

  box-shadow: 0 6px 18px rgba(33, 101, 241, 0.12);
}

/* Símbolo € */
.single-product
.elementor-widget-woocommerce-product-price
.woocommerce-Price-currencySymbol{
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-left: 2px;
}

/* Por seguridad: evitar colores heredados raros */
.single-product
.elementor-widget-woocommerce-product-price
p.price,
.single-product
.elementor-widget-woocommerce-product-price
p.price *{
  color: #0f172a !important;
}

/* En fichas de producto (Elementor Add to Cart) -> apilar en columna */
.single-product .elementor-add-to-cart form.cart{
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 16px;
}

/* La cantidad y el botón a ancho completo */
.single-product .elementor-add-to-cart form.cart .quantity,
.single-product .elementor-add-to-cart form.cart .single_add_to_cart_button{
  width: 100% !important;
}

/* Evita que la cantidad quede estrecha */
.single-product .elementor-add-to-cart form.cart .quantity input.qty{
  width: 100% !important;
}

/* La calculadora ocupa todo el ancho dentro del form */
.single-product .elementor-add-to-cart form.cart .eco-bc-wrap{
  width: 100% !important;
}

/* Ocultar cantidad nativa de WooCommerce en productos con calculadora */
.single-product .elementor-add-to-cart form.cart .quantity {
  display: none !important;
}

/* Ocultar columnas cantidad y subtotal por si el tema las deja */
.woocommerce-cart table.cart th.product-quantity,
.woocommerce-cart table.cart td.product-quantity,
.woocommerce-cart table.cart th.product-subtotal,
.woocommerce-cart table.cart td.product-subtotal {
  display: none !important;
}

/* Quitar "(sin impuestos)" SOLO del botón del carrito en header */
#elementor-menu-cart__toggle_button .tax_label {
  display: none !important;
}

/* Productos relacionados: ocultar botón Añadir al carrito */
.single-product section.related.products a.add_to_cart_button,
.single-product section.related.products a.product_type_simple.button {
  display: none !important;
}

/* Quitar botones del loop de tienda/categorías */
.woocommerce ul.products li.product .woocommerce-loop-product__buttons {
  display: none !important;
}

/* Ocultar alerta Elementor en carrito y checkout */
.woocommerce-cart .elementor-alert,
.woocommerce-checkout .elementor-alert {
  display: none !important;
}

/* ============================================================
   PRESUPUESTOS (Mi cuenta > Downloads)
   - Grid propio (4 columnas)
   - Producto más ancho
   - Título en 2 líneas máximo (sin descuadrar)
   ============================================================ */

.woocommerce-account-downloads .ebc-quotes .ecoi-order-row{
  display: grid !important;
  /* ref+fecha | producto (ancho) | total | botón */
  grid-template-columns: 260px minmax(420px, 1fr) 140px 240px !important;
  column-gap: 16px !important;
  align-items: center !important;
  padding: 14px 0 !important;
  border-bottom: 1px solid #e9e9e9 !important;
}

/* Asegura que el contenido pueda encoger sin romper el grid */
.woocommerce-account-downloads .ebc-quotes .ecoi-order-col{
  min-width: 0 !important;
}

/* Producto: 2 líneas máximo y ellipsis */
.woocommerce-account-downloads .ebc-quotes .ecoi-order-items-title{
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: normal !important;
  max-width: 100% !important;
}

/* Total alineado como pedidos */
.woocommerce-account-downloads .ebc-quotes .ecoi-order-total{
  text-align: right !important;
}

/* Botón a la derecha como pedidos */
.woocommerce-account-downloads .ebc-quotes .ecoi-order-cta{
  text-align: right !important;
}

/* Responsive: apilar como tu bloque de pedidos */
@media (max-width: 980px){
  .woocommerce-account-downloads .ebc-quotes .ecoi-order-row{
    grid-template-columns: 1fr 1fr auto !important;
    row-gap: 6px !important;
  }
  .woocommerce-account-downloads .ebc-quotes .ecoi-order-total,
  .woocommerce-account-downloads .ebc-quotes .ecoi-order-cta{
    justify-self: end !important;
  }
}

/* ============================================================
   CARRITO: Cantidad antes de Precio + sin +/- + readonly
   ============================================================ */

/* Mostrar qty y precio */
.woocommerce-cart table.cart th.product-quantity,
.woocommerce-cart table.cart td.product-quantity,
.woocommerce-cart table.cart th.product-price,
.woocommerce-cart table.cart td.product-price{
  display: table-cell !important;
}

/* Subtotal sigue oculto (si lo quieres así) */
.woocommerce-cart table.cart th.product-subtotal,
.woocommerce-cart table.cart td.product-subtotal{
  display: none !important;
}

/* Ocultar botones +/- (varía según tema) */
.woocommerce-cart table.cart td.product-quantity .quantity .minus,
.woocommerce-cart table.cart td.product-quantity .quantity .plus,
.woocommerce-cart table.cart td.product-quantity button.minus,
.woocommerce-cart table.cart td.product-quantity button.plus{
  display: none !important;
}

/* Dejar el input visible, centrado y "bloqueado" */
.woocommerce-cart table.cart td.product-quantity .quantity input.qty{
  pointer-events: none !important;
  opacity: .70 !important;
  background: #f5f5f5 !important;
  border-color: #ddd !important;
  width: 54px !important;
  text-align: center !important;
}

/* Ocultar "Actualizar carrito" */
.woocommerce-cart button[name="update_cart"],
.woocommerce-cart button.update_cart{
  display: none !important;
}

/* cuando ocultamos por JS, esto asegura que no queda layout raro */
.eco-bc-wrap[style*="display: none"] { display: none !important; }

.eco-bc-unavailable-notice{
  background: #f0f0f6;
  border: 2px solid #101011;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.04);
}

/* Transición suave para ambos */
.elementor-menu-cart__footer-buttons a.elementor-button{
  border-radius:999px !important;
  text-transform:none !important;
  transition: all .25s ease !important;
}

/* ============================= */
/* VER CARRITO (gris) */
/* ============================= */
.elementor-menu-cart__footer-buttons a.elementor-button--view-cart{
  background:#e6e6e6 !important;
  color:#111 !important;
  border:1px solid #d0d0d0 !important;
}

.elementor-menu-cart__footer-buttons a.elementor-button--view-cart:hover{
  background:#cfcfcf !important;       /* más contraste */
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

/* ============================= */
/* FINALIZAR COMPRA (azul global) */
/* ============================= */
.elementor-menu-cart__footer-buttons a.elementor-button--checkout{
  background-color: var(--e-global-color-primary) !important;
  border-color: var(--e-global-color-primary) !important;
  color:#fff !important;
}

.elementor-menu-cart__footer-buttons a.elementor-button--checkout:hover{
  filter: brightness(0.85);             /* más oscuro que antes */
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

/* Input cantidad limpio estilo texto */
.eco-qty-clean{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  text-align: center;
  font-weight: 600;
  width: 40px;
  cursor: default;
}

/* ==============================
   Carrito - Imagen más grande y cuadrada
   ============================== */

.woocommerce-cart table.cart td.product-thumbnail img {
  width: auto !important;     /* tamaño */
  height: auto !important;    /* mismo valor = cuadrada */
  object-fit: cover !important; /* recorta sin deformar */
  border-radius: 8px;          /* opcional, más moderno */
}

/* Asegura que la celda no la limite */
.woocommerce-cart table.cart td.product-thumbnail {
  width: 140px !important;
}

/* ==============================
   Modal - evitar que la X se solape con el título
   ============================== */

.ecoi-modal__dialog {
  position: relative;
  padding-top: 40px; /* espacio reservado para la X */
}

/* Botón cerrar */
.ecoi-modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  font-size: 20px;
}

/* Ajuste título por seguridad */
.ecoi-modal__title {
  margin-top: 0;
  padding-right: 40px; /* evita que texto largo toque la X en horizontal */
}

/* ============================================================
   FIX DEFINITIVO — Modal (X no se solapa + media full height)
   Pegar al FINAL del style.css
   ============================================================ */

/* Reservar espacio superior para la X y evitar solape */
.ecoi-modal__dialog{
  position: relative !important;
  padding-top: 56px !important;  /* espacio real para la X */
}

/* X arriba derecha, siempre encima */
.ecoi-modal__close{
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  z-index: 50 !important;
  width: 40px !important;
  height: 40px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background: #fff !important;
}

/* El título deja hueco a la derecha por seguridad */
.ecoi-modal__title{
  padding-right: 80px !important;
}

/* Grid: estirar columnas para que la izquierda tenga alto */
.ecoi-modal__grid{
  align-items: stretch !important;
}

/* Media: ocupa todo el alto disponible */
.ecoi-modal__media{
  min-height: 340px !important; /* ajusta si quieres más grande */
  height: 100% !important;
  overflow: hidden !important;
  border-radius: 12px !important;
}

/* Imagen: rellena el contenedor */
.ecoi-modal__media img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display:block !important;
  border-radius: 12px !important;
}

/* Responsive */
@media (max-width: 980px){
  .ecoi-modal__media{ min-height: 220px !important; }
}


/* ============================================================
   FIX DEFINITIVO — Carrito: imagen grande y cuadrada
   Pegar al FINAL del style.css
   ============================================================ */

.woocommerce-cart table.cart td.product-thumbnail img{
  width: 110px !important;
  height: 110px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  display:block !important;
}

.woocommerce-cart table.cart td.product-thumbnail{
  width: 130px !important;
}

/* ==========================================
   MINI CART - Scroll interno
   ========================================== */

/* Limita la altura del contenido */
.woocommerce-mini-cart.cart_list {
  max-height: 380px;   /* ajusta a tu gusto */
  overflow-y: auto;
  padding-right: 6px;  /* evita que el scroll tape contenido */
}

/* Opcional: scroll más fino (moderno) */
.woocommerce-mini-cart.cart_list::-webkit-scrollbar {
  width: 6px;
}

.woocommerce-mini-cart.cart_list::-webkit-scrollbar-thumb {
  background: #cfcfcf;
  border-radius: 6px;
}

.woocommerce-mini-cart.cart_list::-webkit-scrollbar-thumb:hover {
  background: #b5b5b5;
}

.cart_totals .wc-proceed-to-checkout .button.alt {
  display: block;
  width: 100%;
  padding: 22px 0;     /* 👈 esto le da altura */
  font-size: 20px;     /* 👈 texto más grande */
  font-weight: 600;
  border-radius: 4px;
}

/* Botón realizar pedido (checkout) */
.woocommerce #place_order,
.woocommerce-page #place_order {
  width: 100%;
  padding: 24px 0;
  font-size: 22px;
  font-weight: 700;
  border-radius: 4px;
}

/* Mata cualquier <br> dentro del botón de checkout del carrito */
#eco_proceed_to_checkout br,
.wc-proceed-to-checkout br {
  display: none !important;
}

/* Finalizar compra (carrito) */
.wc-proceed-to-checkout a.checkout-button,
#eco_proceed_to_checkout {
  font-weight: 700 !important;
}

/* Realizar pedido (checkout) */
.woocommerce-checkout #place_order {
  font-weight: 700 !important;
}

/* Ocultar "1 Bulto" */
.ecoi-order-pack-title {
  display: none !important;
}

/* recortar texto sí o sí */
.ecoi-orders .ecoi-order-pack-sub,
.ecoi-orders .ecoi-order-tracking{
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* botón más compacto */
.ecoi-orders .ecoi-order-cta .ecoi-btn{
  padding: 7px 10px !important;
  font-size: 13px !important;
}

/* Centrar contenido de las columnas */
.ecoi-orders .ecoi-order-main,
.ecoi-orders .ecoi-order-pack,
.ecoi-orders .ecoi-order-tracking,
.ecoi-orders .ecoi-order-status,
.ecoi-orders .ecoi-order-total,
.ecoi-orders .ecoi-order-cta{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}

/* Pedido: número + fecha uno debajo del otro pero centrado */
.ecoi-orders .ecoi-order-main{
  flex-direction:column;
}

/* Total centrado correctamente */
.ecoi-orders .ecoi-order-total{
  font-weight:800;
}

/* Botón centrado */
.ecoi-orders .ecoi-order-cta{
  justify-content:center;
}

/* Cabecera visible */
.ecoi-orders .ecoi-order-row--head{
  padding: 10px 0 !important;
  border-bottom: 1px solid #eee !important;
  font-weight: 800 !important;
  color: #444 !important;
  background: transparent !important;
}

/* Alinear texto cabecera */
.ecoi-orders .ecoi-order-row--head .ecoi-order-col{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}

/* En total/acción, un pelín a la derecha si quieres estética tabla */
.ecoi-orders .ecoi-order-row--head .ecoi-order-total,
.ecoi-orders .ecoi-order-row--head .ecoi-order-cta{
  justify-content:flex-end;
  text-align:right;
}

form.cart .button:not(:first-child),
form.cart button:not(:first-child) {
    margin-left: 0 !important;
}

@media (max-width:768px){
  .product_title.entry-title{
    font-size:24px;
    line-height:1.3;
  }

  /* ocultar precio vacío en móvil */
  .elementor-widget-woocommerce-product-price:has(.price:empty){
    display:none !important;
  }
}

[data-cookiefirst-widget] {
    display: none !important;
}

[data-testid="cookieWidgetContent"] {
    display: none !important;
}

[class^="cf"], [class*=" cf"] {
    display: none !important;
}