/* =====================================================================
 * AC14 — Mi Cuenta, Carrito, Checkout
 * ===================================================================== */

/* ── Menú Mi cuenta ─────────────────────────────────────────────────── */
.ac14-micuenta-nav ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ac14-nav-item a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
    font-size: 14px;
    color: #333 !important;
    text-decoration: none !important;
    border-left: 3px solid transparent;
    transition: background .15s, border-color .15s, color .15s;
}
.ac14-nav-item a:hover {
    background: #eceff1;
    color: #1a1a1a !important;
}
.ac14-nav-item.is-active a,
.ac14-nav-item.woocommerce-MyAccount-navigation-link--active a {
    background: #e8f0fb;
    border-left-color: #2E75B6;
    color: #1F4E79 !important;
    font-weight: 600;
}
.ac14-nav-item svg { flex-shrink: 0; color: #888; }
.ac14-nav-item.is-active svg,
.ac14-nav-item.woocommerce-MyAccount-navigation-link--active svg { color: #2E75B6; }

/* ── Detalles de cuenta ─────────────────────────────────────────────── */
.ac14-micuenta-aviso-readonly {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    color: #856404;
    margin-bottom: 20px;
}

.ac14-micuenta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.ac14-micuenta-bloque {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 18px 20px;
}
.ac14-bloque-envios {
    grid-column: 1 / -1;
}

.ac14-micuenta-bloque-titulo {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1F4E79 !important;
    margin: 0 0 14px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.ac14-micuenta-campos { display: flex; flex-direction: column; gap: 10px; }

.ac14-campo-row {
    display: flex;
    gap: 12px;
    font-size: 13px;
}
.ac14-campo-label {
    width: 130px;
    flex-shrink: 0;
    color: #888;
    font-weight: 500;
}
.ac14-campo-valor { color: #1a1a1a; flex: 1; }
.ac14-campo-desc { font-size: 11px; color: #aaa; margin-left: 8px; }

.ac14-pvp-margen-input-mc {
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 13px;
    outline: none;
}
.ac14-pvp-margen-input-mc:focus { border-color: #cf2e2e; }

/* Direcciones de envío */
.ac14-envios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}
.ac14-envio-card {
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ac14-envio-codigo { font-size: 11px; font-weight: 700; color: #2E75B6; text-transform: uppercase; letter-spacing: .04em; }
.ac14-envio-dir { font-size: 13px; color: #333; }

/* Comercial perfil */
.ac14-comercial-perfil {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 12px;
}
.ac14-comercial-perfil-foto {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
    flex-shrink: 0;
}
.ac14-comercial-perfil-info { display: flex; flex-direction: column; gap: 5px; }
.ac14-comercial-perfil-nombre { font-size: 15px; font-weight: 700; color: #1a1a1a; }
.ac14-comercial-perfil-dato {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #555;
    text-decoration: none !important;
    transition: color .15s;
}
.ac14-comercial-perfil-dato:hover { color: #1a1a1a !important; }
.ac14-comercial-perfil-wa:hover { color: #25d366 !important; }

.ac14-cambio-datos-aviso {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #999;
    background: #f8f9fa;
    border-radius: 4px;
    padding: 8px 10px;
    margin-top: 4px;
}

/* ── Carrito (diseño de tarjetas) ─────────────────────────────────────── */
.ac14-cart-cab { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.ac14-cart-titulo { margin: 0 !important; font-size: 26px !important; font-weight: 800 !important; letter-spacing: -.01em; color: #111; line-height: 1.2; }
.ac14-cart-resumen { font-size: 13px; color: #777; }

/* Lista de artículos */
.ac14-cart-lista { display: flex; flex-direction: column; gap: 12px; }
.ac14-ci {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) 96px 132px 104px 38px;
    grid-template-areas: "img info precio qty sub quitar" "aviso aviso aviso aviso aviso aviso";
    align-items: center;
    column-gap: 16px;
    row-gap: 10px;
    background: #fff;
    border: 1px solid #e8e8ea;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 1px 2px rgba(16,24,40,.04);
    transition: box-shadow .15s, border-color .15s;
}
.ac14-ci:hover { box-shadow: 0 6px 18px rgba(16,24,40,.08); border-color: #dcdce0; }
.ac14-ci__img    { grid-area: img; }
.ac14-ci__info   { grid-area: info; min-width: 0; }
.ac14-ci__precio { grid-area: precio; text-align: right; font-size: 15px; font-weight: 800; color: #cf2e2e; }
.ac14-ci__qty    { grid-area: qty; display: flex; justify-content: center; }
.ac14-ci__subtotal { grid-area: sub; text-align: right; font-size: 17px; font-weight: 800; color: #111; }
.ac14-ci__quitar { grid-area: quitar; display: flex; justify-content: flex-end; }
.ac14-ci__aviso  { grid-area: aviso; }

.ac14-cart-img {
    display: block;
    width: 88px; height: 88px;
    object-fit: contain;
    background: #f6f6f7;
    border: 0;
    border-radius: 10px;
    padding: 6px;
    box-sizing: border-box;
}
.ac14-cart-sku { font-size: 11.5px; color: #8a8a90; margin-bottom: 4px; letter-spacing: .02em; }
.ac14-cart-sku__n { display: inline-block; background: #cf2e2e; color: #fff; font-weight: 700; padding: 2px 7px; border-radius: 4px; line-height: 1.3; letter-spacing: .01em; }
.ac14-cart-dot { display: none; }
.ac14-cart-marca { text-transform: uppercase; margin-left: 4px; }
.ac14-disp-badge.ac14-disp-disponible { display: none; } /* «Disponible» es lo normal: solo se avisa de lo que no lo es */
.ac14-ci__envase-uds { margin-top: 4px; font-size: 12px; color: #667085; }
.ac14-ci__envase-uds strong { color: #333; font-weight: 600; }
.ac14-cart-nombre {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-weight: 700; font-size: 15px; line-height: 1.3; color: #111 !important; text-decoration: none !important;
}
.ac14-cart-nombre:hover { color: var(--ac14-acento, #cf2e2e) !important; }
.ac14-ci__info dl.variation { margin: 4px 0 0; font-size: 12px; color: #777; }

/* Estado de disponibilidad: píldora con punto */
.ac14-disp-badge {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 8px;
    font-size: 11px; font-weight: 700; letter-spacing: .02em;
    padding: 3px 10px 3px 8px;
    border-radius: 999px;
    text-transform: none;
}
.ac14-disp-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ac14-disp-disponible    { background: #ecfdf3; color: #067647; }
.ac14-disp-sinstock      { background: #fecdca; color: #cf2e2e; }
.ac14-disp-descatalogado { background: #f2f4f7; color: #475467; }

/* Selector de cantidad (− 12 +) */
.ac14-ci__qty .quantity {
    display: inline-flex; align-items: center;
    border: 1.5px solid #e0e0e4; border-radius: 10px; overflow: hidden; background: #fff;
    margin: 0; float: none;
}
.ac14-ci__qty .quantity .screen-reader-text { position: absolute; }
.ac14-ci__qty input.qty {
    width: 52px; height: 40px; padding: 0; margin: 0;
    border: 0 !important; border-radius: 0; box-shadow: none !important;
    text-align: center; font-size: 15px; font-weight: 700; color: #111; background: #fff;
    -moz-appearance: textfield; appearance: textfield;
}
.ac14-ci__qty input.qty::-webkit-outer-spin-button,
.ac14-ci__qty input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ac14-ci .ac14-cant {
    /* Botón − / + (clase propia: antes se llamaba ac14-qb, como la barra de subcategorías de la tienda, y heredaba su flex sin centrar) */
    display: inline-flex; align-items: center; justify-content: center; gap: 0; position: static;
    width: 36px; height: 40px; padding: 0; margin: 0;
    border: 0; border-radius: 0; box-shadow: none;
    background: #f5f5f7; color: #333;
    font-size: 19px; font-weight: 500; line-height: 1; cursor: pointer;
}
.ac14-ci .ac14-cant:hover, .ac14-ci .ac14-cant:focus { background: #e9e9ee; color: #111; outline: none; }
.ac14-ci .ac14-cant:active { background: #dcdce2; }

/* Quitar línea */
.ac14-ci__quitar a.remove {
    display: inline-flex !important; align-items: center; justify-content: center;
    width: 36px; height: 36px; margin: 0; padding: 0;
    border-radius: 50%;
    background: transparent !important; color: #9a9aa2 !important;
    font-size: 0; line-height: 1;
    transition: background .15s, color .15s;
}
.ac14-ci__quitar a.remove:hover { background: #fecdca !important; color: #cf2e2e !important; }

/* Línea no disponible */
.ac14-ci.is-nd { border-color: #fecdca; background: #fecdca; }
.ac14-ci.is-nd--descatalogado { border-color: #e4e7ec; background: #fafafa; }
.ac14-ci.is-nd .ac14-cart-img { filter: grayscale(1); opacity: .55; }
.ac14-ci.is-nd .ac14-ci__precio,
.ac14-ci.is-nd .ac14-ci__qty,
.ac14-ci.is-nd .ac14-ci__subtotal { opacity: .45; }
.ac14-ci__aviso {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.4;
}
.ac14-ci__aviso--sinstock { background: #fecdca; color: #cf2e2e; }
.ac14-ci__aviso--descat   { background: #f2f4f7; color: #475467; }
.ac14-ci__aviso-txt { display: flex; align-items: flex-start; gap: 8px; flex: 1 1 260px; }
.ac14-ci__aviso-txt svg { flex-shrink: 0; margin-top: 1px; }

/* Botón suave (acciones secundarias dentro de avisos) */
.ac14-btn-suave {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 14px; border-radius: 10px;
    background: #fff; border: 1.5px solid #d0d5dd; color: #344054 !important;
    font-size: 13px; font-weight: 700; line-height: 1.2; text-decoration: none !important; white-space: nowrap;
    cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.ac14-btn-suave:hover { background: #e4e7ec; }
.ac14-btn-suave--rojo { border-color: #fecdca; color: #cf2e2e !important; }
.ac14-btn-suave--rojo:hover { background: #cf2e2e; border-color: #cf2e2e; color: #fff !important; }

/* Alerta superior del carrito (artículos sin stock) */
.ac14-cart-alerta {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    margin: 0 0 14px; padding: 14px 16px;
    background: #fecdca; border: 1px solid #fecdca; border-radius: 14px; color: #cf2e2e;
}
.ac14-cart-alerta__ico {
    flex: 0 0 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #cf2e2e; color: #fff; font-weight: 800; font-size: 16px;
}
.ac14-cart-alerta__txt { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.4; }
.ac14-cart-alerta__txt strong { font-size: 14px; }

/* Barra de acciones: cupón + vaciar / actualizar */
.ac14-cart-barra {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    margin-top: 14px; padding: 12px 14px;
    background: #fff; border: 1px solid #e8e8ea; border-radius: 14px;
}
.ac14-cart-barra .coupon { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ac14-cart-barra .coupon input.input-text {
    width: 190px; height: 42px; padding: 0 12px; margin: 0;
    border: 1.5px solid #e0e0e4; border-radius: 10px; font-size: 14px; background: #fff;
}
.ac14-cart-barra .coupon input.input-text:focus { border-color: var(--ac14-acento, #cf2e2e); outline: none; box-shadow: none; }
.ac14-cart-barra .button {
    height: 42px; padding: 0 16px; margin: 0; border-radius: 10px;
    font-size: 13px; font-weight: 700; line-height: 1;
}
.ac14-cart-barra .coupon .button, .ac14-btn-actualizar {
    background: #f2f4f7 !important; color: #344054 !important; border: 1.5px solid #e0e0e4 !important;
}
.ac14-cart-barra .coupon .button:hover, .ac14-btn-actualizar:hover { background: #e4e7ec !important; }
.ac14-cart-acciones { display: flex; gap: 8px; align-items: center; float: none; }
.ac14-cart-form.ac14-auto .ac14-btn-actualizar { display: none; }
.ac14-btn-vaciar-carrito {
    background: #fff !important; color: #cf2e2e !important;
    border: 1.5px solid #fecdca !important;
    display: inline-flex !important; align-items: center !important; gap: 6px !important;
}
.ac14-btn-vaciar-carrito:hover { background: #fecdca !important; border-color: #cf2e2e !important; }

/* Bloque Excel */
.ac14-cart-excel-bloque {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    margin-top: 14px; padding: 14px 18px;
    background: #fff; border: 1px solid #e8e8ea; border-radius: 14px;
}
.ac14-cart-excel-info { display: flex; align-items: center; gap: 10px; flex: 1; }
.ac14-cart-excel-info svg { flex-shrink: 0; color: #276749; }
.ac14-cart-excel-info p { margin: 0; font-size: 13px; color: #667085; }
.ac14-btn-excel {
    display: inline-flex !important; align-items: center !important; gap: 7px !important;
    background: #fff !important; color: #276749 !important; border: 1.5px solid #b7dfc8 !important;
    border-radius: 10px !important; white-space: nowrap !important; font-size: 13px !important; font-weight: 700 !important;
}
.ac14-btn-excel:hover { background: #276749 !important; color: #fff !important; border-color: #276749 !important; }

/* ── Layout carrito — lista a la izquierda, resumen a la derecha ──── */
.woocommerce-cart #primary .woocommerce:has(.ac14-cart-form) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    grid-template-areas: "notices notices" "box box" "scan totals" "form totals" "excel totals";
    column-gap: 28px;
    align-items: start;
}
.woocommerce-cart #primary .woocommerce .ac14-scan { grid-area: scan; }
.woocommerce-cart #primary .woocommerce .woocommerce-notices-wrapper { grid-area: notices; }
.woocommerce-cart #primary .woocommerce .ac14av-cartbox { grid-area: box; }
.woocommerce-cart #primary .woocommerce .woocommerce-cart-form { grid-area: form; min-width: 0; }
.woocommerce-cart #primary .woocommerce .ac14-cart-excel-bloque { grid-area: excel; }
.woocommerce-cart #primary .woocommerce .cart-collaterals { grid-area: totals; position: sticky; top: 100px; min-width: 0; }

/* Carrito vacío */
.woocommerce-cart .cart-empty {
    margin: 30px auto 14px; max-width: 520px; text-align: center;
    padding: 36px 24px 8px; font-size: 17px; font-weight: 700; color: #344054;
}
.woocommerce-cart .return-to-shop { text-align: center; margin-bottom: 40px; }
.woocommerce-cart .return-to-shop .button {
    background: var(--ac14-acento, #cf2e2e); color: #fff; border-radius: 12px; padding: 14px 26px; font-weight: 700;
}

/* ── Resumen del pedido ────────────────────────────────────────────── */
.woocommerce-cart .cart_totals {
    width: 100% !important; min-width: 0; float: none !important;
    background: #fff; border: 1px solid #e8e8ea; border-radius: 14px; padding: 20px;
    box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.woocommerce-cart .cart_totals h2 { font-size: 18px !important; font-weight: 800 !important; margin: 0 0 8px !important; white-space: normal; }
.woocommerce-cart .cart_totals table { width: 100%; border: 0 !important; border-collapse: collapse; margin: 0; }
.woocommerce-cart .cart_totals th,
.woocommerce-cart .cart_totals td {
    border: 0 !important; border-bottom: 1px solid #f0f0f2 !important;
    background: none !important; padding: 12px 0 !important;
    font-size: 14px; word-break: normal; white-space: normal; vertical-align: top;
}
.woocommerce-cart .cart_totals th { font-weight: 600; color: #475467; width: 38%; }
.woocommerce-cart .cart_totals td { text-align: right; color: #111; }
.woocommerce-cart .cart_totals tr:last-child th,
.woocommerce-cart .cart_totals tr:last-child td { border-bottom: 0 !important; }
.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td { font-size: 19px; font-weight: 800; color: #111; padding-top: 16px !important; }
.woocommerce-cart .cart_totals ul#shipping_method { list-style: none; margin: 0; padding: 0; text-align: left; }
.woocommerce-cart .cart_totals ul#shipping_method li { margin: 0 0 8px; padding: 0; font-size: 13px; display: flex; gap: 8px; align-items: flex-start; }
.woocommerce-cart .cart_totals ul#shipping_method li input { margin-top: 3px; accent-color: var(--ac14-acento, #cf2e2e); }
.woocommerce-cart .cart_totals .woocommerce-shipping-destination,
.woocommerce-cart .cart_totals .shipping-calculator-button { font-size: 12px; color: #667085; }
.woocommerce-cart .wc-proceed-to-checkout { padding: 14px 0 0; }
.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    display: block; width: 100%; box-sizing: border-box; margin: 0;
    padding: 16px 20px; text-align: center;
    background: var(--ac14-acento, #cf2e2e); color: #fff;
    border-radius: 12px; font-size: 16px; font-weight: 700; line-height: 1.2;
    transition: filter .15s, transform .05s;
}
.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover { filter: brightness(.93); color: #fff; }
.woocommerce-cart .wc-proceed-to-checkout .checkout-button:active { transform: translateY(1px); }

/* Progreso hacia el pedido mínimo */
.ac14-minimo { margin: 0 0 14px; padding: 14px 16px; background: #fff; border: 1px solid #e8e8ea; border-radius: 14px; }
.ac14-minimo__txt { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; font-size: 13px; color: #475467; }
.ac14-minimo__txt strong { font-size: 14px; color: #111; }
.ac14-minimo__barra { height: 8px; border-radius: 999px; background: #eceef2; overflow: hidden; }
.ac14-minimo__barra i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #f79009, #cf2e2e); transition: width .4s; }
.ac14-minimo.is-ok { border-color: #abefc6; background: #f6fef9; }
.ac14-minimo.is-ok .ac14-minimo__txt strong { color: #067647; }
.ac14-minimo.is-ok .ac14-minimo__barra i { background: #12b76a; }

@media (max-width: 1100px) {
    .woocommerce-cart #primary .woocommerce:has(.ac14-cart-form) { grid-template-columns: minmax(0, 1fr) 340px; column-gap: 20px; }
    .ac14-ci { grid-template-columns: 76px minmax(0, 1fr) 124px 100px 34px; grid-template-areas: "img info qty sub quitar" "aviso aviso aviso aviso aviso"; }
    .ac14-ci__precio { display: none; }
    .ac14-cart-img { width: 76px; height: 76px; }
}

@media (max-width: 900px) {
    .woocommerce-cart #primary .woocommerce:has(.ac14-cart-form) {
        grid-template-columns: minmax(0, 1fr);
        /* Orden en móvil/tablet: avisos · pendientes de stock · barra de pedido mínimo · añadir por EAN · carrito · Excel · totales */
        grid-template-areas: "notices" "box" "minimo" "scan" "form" "excel" "totals";
    }
    /* .cart-collaterals deja de ser una caja para que la barra de mínimo y los totales se coloquen cada una en su sitio */
    .woocommerce-cart #primary .woocommerce .cart-collaterals { display: contents; }
    .woocommerce-cart #primary .woocommerce .cart-collaterals .ac14-minimo { grid-area: minimo; margin-top: 14px; margin-bottom: 0; }
    .woocommerce-cart #primary .woocommerce .cart-collaterals .cart_totals { grid-area: totals; margin-top: 16px; }
    .woocommerce-cart #primary .woocommerce .ac14-scan { margin: 14px 0; }
    .woocommerce-cart #primary .woocommerce .ac14-cart-excel-bloque { margin-bottom: 8px; }
}

@media (max-width: 640px) {
    .ac14-cart-titulo { font-size: 22px !important; }
    /* Línea del carrito (móvil), opción B: arriba imagen con borde fino + datos (chapa roja de SKU, marca, nombre, envase);
       debajo, separada por una línea, una fila alineada a la derecha: precio unidad · cantidad · subtotal.
       Sin categoría, sin precios tachados ni promoción, sin botón de lista (ya está para todo el carrito). */
    .ac14-cart-lista { gap: 10px; }
    .ac14-ci {
        position: relative;
        display: flex; flex-wrap: wrap; align-items: center;
        gap: 10px; padding: 12px;
        border-radius: 12px;
    }
    .ac14-ci__img { flex: 0 0 84px; }
    .ac14-ci__info { flex: 1 1 0; min-width: 0; }
    .ac14-ci::before { content: ""; order: 1; flex: 0 0 100%; height: 0; border-top: 1px solid #eceef2; }
    .ac14-ci__precio { order: 2; margin-left: auto; }
    .ac14-ci__qty { order: 3; }
    .ac14-ci__subtotal { order: 4; }
    .ac14-ci__aviso { order: 5; flex: 0 0 100%; }
    .ac14-ci__info { padding-right: 30px; }
    .ac14-ci__quitar { position: absolute; top: 4px; right: 4px; z-index: 1; }
    .ac14-ci__quitar a.remove { width: 32px; height: 32px; }
    .ac14-cart-img { width: 84px; height: 84px; padding: 5px; border-radius: 10px; background: #fff; border: 1px solid #e8e8ea; }
    .ac14-cart-sku, .ac14-cart-ean { display: inline-block; margin: 0 8px 3px 0; font-size: 11.5px; color: #667085; }
    .ac14-cart-sku__n { display: inline-block; background: #cf2e2e; color: #fff; font-weight: 700; padding: 2px 7px; border-radius: 4px; line-height: 1.3; letter-spacing: .01em; }
    .ac14-cart-dot { display: none; }
    .ac14-cart-marca { margin-left: 4px; }
    .ac14-cart-nombre { font-size: 14px; line-height: 1.25; margin-top: 2px; }
    .ac14-ci__envase-uds { margin-top: 4px; font-size: 12px; color: #667085; }
    .ac14-ci__envase-uds strong { color: #333; font-weight: 600; }
    .ac14-disp-badge.ac14-disp-disponible { display: none; } /* «Disponible» es lo normal: solo se avisa de lo que no lo es */
    .ac14-disp-badge { margin-top: 6px; font-size: 10.5px; padding: 2px 9px 2px 7px; }
    .ac14-ci__precio { display: block; max-width: 112px; text-align: right; font-size: 15px; font-weight: 800; line-height: 1.25; color: #cf2e2e; white-space: nowrap; }
    .ac14-ci__precio::before { content: "Ud. "; font-size: 11.5px; font-weight: 500; color: #98a2b3; }
    .ac14-ci__envase { white-space: normal; font-size: 10.5px; line-height: 1.25; font-weight: 500; color: #667085; margin-top: 2px; }
    .ac14-ci__qty { justify-content: flex-end; }
    .ac14-ci__qty input.qty { width: 46px; height: 42px; font-size: 16px; }
    .ac14-ci .ac14-cant { width: 36px; height: 42px; }
    .ac14-ci__subtotal { align-self: center; text-align: right; font-size: 18px; white-space: nowrap; }
    .ac14-ci__aviso .ac14-btn-suave, .ac14-cart-alerta .ac14-btn-suave { width: 100%; justify-content: center; }
    .ac14-cart-barra { flex-direction: column; align-items: stretch; }
    .ac14-cart-barra .coupon { flex-wrap: nowrap; }
    .ac14-cart-barra .coupon input.input-text { flex: 1; width: auto; min-width: 0; }
    .ac14-cart-acciones { justify-content: space-between; flex-wrap: wrap; }
    .ac14-cart-barra .ac14-cart-acciones .button {
        flex: 1 1 calc(50% - 4px); height: auto; min-height: 42px; padding: 8px 12px; line-height: 1.2;
        display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-align: center;
    }
    .ac14-cart-barra .ac14-cart-acciones .ac14-btn-crear-lista { flex-basis: 100%; }
    /* Bloque Excel: texto arriba y botón a todo el ancho (antes el texto se quedaba en una columna estrecha) */
    .ac14-cart-excel-bloque { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; }
    .ac14-cart-excel-info { flex: none; }
    .ac14-btn-excel { justify-content: center; }
}

/* ── Ancho completo con 30px laterales — Mi Cuenta, Carrito, Checkout ── */
.woocommerce-account #primary,
.woocommerce-cart #primary,
.woocommerce-checkout #primary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 20px 30px !important;
    margin: 20px 0 !important;
    box-sizing: border-box;
}

/* Móvil: menos margen lateral para que las tarjetas del carrito aprovechen el ancho */
@media (max-width: 640px) {
    .woocommerce-cart #primary { padding: 14px 12px !important; margin: 10px 0 !important; }
}

/* Asegurar que el header no se ve afectado */
.ac14-header { padding: 0 !important; margin: 0 !important; }

/* ── Mi Cuenta — menú nativo WooCommerce con nuestros estilos ────────── */
.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-MyAccount-navigation ul li a {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    color: #333 !important;
    text-decoration: none !important;
    border-left: 3px solid transparent !important;
    transition: background .15s, border-color .15s, color .15s !important;
}
.woocommerce-MyAccount-navigation ul li a:hover {
    background: #eceff1 !important;
    color: #1a1a1a !important;
}
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--active a {
    background: #e8f0fb !important;
    border-left-color: #2E75B6 !important;
    color: #1F4E79 !important;
    font-weight: 600 !important;
}

/* Layout mi cuenta — menú lateral pegado a la izquierda, a toda la altura, fondo gris sutil + contenido a la derecha */
.woocommerce-account .woocommerce {
    display: flex;
    gap: 0;
    align-items: stretch;
}
.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 20% !important;
    max-width: 240px;
    flex-shrink: 0;
    float: none !important;
    background: #f5f4f1;
    border: 0;
    border-right: 1px solid #ebe8e2;
    border-radius: 0;
    padding: 14px 0;
    box-sizing: border-box;
}
.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1;
    min-width: 0;
    float: none !important;
    width: auto !important;
    padding: 4px 0 4px 30px;
}

@media (max-width: 768px) {
    /* En móvil NO se usa flex: en Safari/iPhone un hijo con flex:1 dentro de una columna colapsa a altura 0 y el contenido
       se pinta encima del pie de página. Con bloque normal la altura la da el contenido. */
    .woocommerce-account .woocommerce {
        display: block;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation {
        width: 100% !important;
        max-width: 100%;
        border-right: 0;
        border-bottom: 1px solid #ebe8e2;
        padding: 6px 0;
    }
    .woocommerce-account .woocommerce-MyAccount-content {
        padding: 16px 0 0;
        display: block;
        flex: none;
        width: 100% !important;
    }
    .woocommerce-account #primary,
    .woocommerce-cart #primary,
    .woocommerce-checkout #primary {
        padding: 16px !important;
    }
}

/* Resumen del pedido: anula estilos de Astra/WooCommerce (título rojo con relleno, radios con sangría) */
.woocommerce-cart .cart-collaterals .cart_totals { border: 1px solid #e8e8ea !important; padding: 20px !important; background: #fff !important; }
.woocommerce-cart .cart-collaterals .cart_totals > h2 { color: #111 !important; padding: 0 0 6px !important; margin: 0 !important; border: 0 !important; background: none !important; font-size: 18px !important; }
.woocommerce-cart .cart-collaterals .cart_totals ul#shipping_method li { padding: 0 !important; margin: 0 0 8px !important; }
.woocommerce-cart .cart-collaterals .cart_totals ul#shipping_method li input[type="radio"] { position: static !important; margin: 2px 8px 0 0 !important; width: 16px; height: 16px; flex-shrink: 0; }
.woocommerce-cart .cart-collaterals .cart_totals ul#shipping_method li label { padding: 0 !important; margin: 0; cursor: pointer; font-weight: 600; }
.woocommerce-cart .cart-collaterals .cart_totals .woocommerce-shipping-destination { text-align: left; font-weight: 400; margin: 6px 0 0; }
.ac14-ci__quitar a.remove { border: 0 !important; }
.woocommerce-cart .cart-collaterals .cart_totals ul#shipping_method li label { text-indent: 0 !important; }

/* ═════════ Carrito: EAN, «Pocas unidades», bloque rojo de no disponibles ═════════ */
.ac14-cart-ean { font-size: 11.5px; color: #667085; margin: -1px 0 3px; letter-spacing: .02em; }
.ac14-disp-pocas { background: #fff4e5; color: #b45309; }

.ac14-cart-nd {
    margin: 20px 0 14px; padding: 14px;
    background: #fecdca; border: 2px solid #cf2e2e; border-radius: 16px;
}
.ac14-cart-nd__cab { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; color: #cf2e2e; }
.ac14-cart-nd__txt { flex: 1 1 280px; }
.ac14-cart-nd__t { margin: 0 0 3px; font-size: 17px; line-height: 1.25; color: #cf2e2e; }
.ac14-cart-nd__n {
    display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px;
    border-radius: 11px; background: #cf2e2e; color: #fff; font-size: 12px; font-weight: 800; vertical-align: 2px;
}
.ac14-cart-nd__txt p { margin: 0; font-size: 13px; line-height: 1.45; }
.ac14-cart-nd .ac14-cart-alerta__ico { flex: 0 0 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #cf2e2e; color: #fff; font-weight: 800; font-size: 16px; }
.ac14-ci.is-nd--sin_stock { border: 1.5px solid #cf2e2e; border-left-width: 5px; background: #fff; }
.ac14-ci.is-nd--sin_stock .ac14-ci__aviso--sinstock { background: #fecdca; }
.ac14-ci__aviso-acc { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ac14-pend-ok { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #067647; }
.ac14-pend-link { font-size: 12.5px; color: #475467 !important; text-decoration: underline !important; white-space: nowrap; }
.ac14-pend-link:hover { color: #cf2e2e !important; text-decoration: underline;}

/* ═════════ Añadir por EAN / SKU ═════════ */
.ac14-scan {
    margin: 0 0 16px; padding: 14px 16px;
    background: #fff; border: 1px solid #e4e7ec; border-radius: 14px;
}
.ac14-scan__label { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14px; font-weight: 700; color: #1a1a1a; }
.ac14-scan__row { display: flex; gap: 8px; align-items: stretch; }
.ac14-scan { padding: 10px 12px; }
.ac14-scan__campo { position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; }
.ac14-scan__campo svg { position: absolute; left: 12px; color: #667085; pointer-events: none; }
.ac14-scan .ac14-scan__campo .ac14-scan__input {
    flex: 1 1 auto; min-width: 0; width: 100%; height: 44px; padding: 0 12px 0 38px !important; margin: 0;
    border: 1.5px solid #d0d5dd; border-radius: 10px; font-size: 16px; background: #fff;
    text-overflow: ellipsis;
}
.ac14-scan__input:focus { outline: none; border-color: #cf2e2e; box-shadow: 0 0 0 3px rgba(207, 46, 46, .12); }
.ac14-scan__btn, .ac14-scan__cam {
    height: 44px; padding: 0 18px; border: 0; border-radius: 10px; cursor: pointer;
    background: #cf2e2e; color: #fff; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.ac14-scan__btn:hover, .ac14-scan__cam:hover { background: #fff; color: #cf2e2e; box-shadow: inset 0 0 0 1.5px #cf2e2e; }
.ac14-scan__cam { padding: 0 14px; background: #1a1a1a; }
.ac14-scan__cam[hidden] { display: none; }
.ac14-scan__msg { min-height: 0; margin-top: 8px; font-size: 13px; line-height: 1.4; }
.ac14-scan__msg:empty { display: none; }
.ac14-scan__msg.is-ok { color: #067647; }
.ac14-scan__msg.is-error { color: #cf2e2e; font-weight: 600; }

/* ═════════ Crear lista + ventana (modal) ═════════ */
.ac14-btn-crear-lista { display: inline-flex; align-items: center; gap: 7px; }
.ac14-modal {
    position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center;
    padding: 16px; background: rgba(16, 24, 40, .55);
}
.ac14-modal__box { width: 100%; max-width: 440px; padding: 22px; background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.ac14-modal__t { margin: 0 0 12px; font-size: 19px; line-height: 1.25; }
.ac14-modal__body p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.5; }
.ac14-modal__q { font-weight: 700; font-size: 15.5px !important; }
.ac14-modal__label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 700; }
.ac14-modal__input { width: 100%; height: 44px; padding: 0 12px; border: 1.5px solid #d0d5dd; border-radius: 10px; font-size: 16px; }
.ac14-modal__input:focus { outline: none; border-color: #cf2e2e; }
.ac14-modal__err { color: #cf2e2e; font-weight: 600; }
.ac14-modal__btns { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.ac14-modal__btn { height: 42px; padding: 0 18px; border: 1.5px solid #d0d5dd; border-radius: 10px; background: #fff; color: #344054; font-size: 14px; font-weight: 700; cursor: pointer; }
.ac14-modal__btn:hover { background: #e4e7ec; }
.ac14-modal__btn:disabled { opacity: .6; cursor: wait; }
.ac14-modal__btn--ok { background: #cf2e2e; border-color: #cf2e2e; color: #fff; }
.ac14-modal__btn--ok:hover { background: #fff; color: #cf2e2e; box-shadow: inset 0 0 0 1.5px #cf2e2e; }
.ac14-modal__btn--peligro { background: #cf2e2e; border-color: #cf2e2e; color: #fff; }
.ac14-modal__btn--peligro:hover { background: #fff; color: #cf2e2e; box-shadow: inset 0 0 0 1.5px #cf2e2e; }
@media (max-width: 600px) {
    .ac14-scan__row { flex-wrap: nowrap; }
    .ac14-scan__btn { flex: 0 0 auto; padding: 0 16px; }
    .ac14-modal__btns .ac14-modal__btn { flex: 1; }
}
.ac14-cart-barra .ac14-btn-crear-lista { background: #fff !important; color: #344054 !important; border: 1.5px solid #d0d5dd !important; }
.ac14-cart-barra .ac14-btn-crear-lista:hover { background: #e4e7ec !important; }

.ac14-ci__envase { margin-top: 4px; font-size: 12px; font-weight: 500; color: #667085; line-height: 1.3; }
.ac14-ci__envase.is-aplicado { color: #067647; font-weight: 600; }


/* ═════════ Mi cuenta → Pedidos y detalle de pedido ═════════
   Marcado con div/article (sin <table>): en Safari/iPhone las filas de tabla convertidas en flex/grid calculaban mal
   la altura y el contenido se pintaba encima del pie de página. */
.ac14-ped-titulo { font-size: 22px; line-height: 1.2; margin: 0 0 16px; color: #111; font-weight: 700; }

/* Estado (pastilla) */
.ac14-estado {
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
    padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.3;
    background: #f2f4f7; color: #475467;
}
.ac14-estado::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.ac14-estado--completed  { background: #ecfdf3; color: #067647; }
.ac14-estado--enviado    { background: #e6f7f5; color: #0e7490; }
.ac14-estado--recibido,
.ac14-estado--preparacion { background: #f4f3ff; color: #5925dc; }
.ac14-estado--parcial    { background: #eff8ff; color: #175cd3; }
.ac14-estado--processing,
.ac14-estado--on-hold,
.ac14-estado--pending    { background: #fff4e5; color: #b45309; }
.ac14-estado--cancelled,
.ac14-estado--failed     { background: #fef3f2; color: #b42318; }
.ac14-estado--refunded   { background: #f2f4f7; color: #475467; }

/* Botones */
.ac14-ped-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 16px; border-radius: 10px; border: 1px solid var(--ac14-acento, #cf2e2e);
    background: var(--ac14-acento, #cf2e2e); color: #fff !important; font-size: 13.5px; font-weight: 600; line-height: 1.2;
    text-decoration: none !important; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s;
}
.ac14-ped-btn:hover { background: #b32626; border-color: #b32626; }
.ac14-ped-btn--sec { background: #fff; border-color: #d0d5dd; color: #344054 !important; }
.ac14-ped-btn--sec:hover { background: #f9fafb; border-color: #98a2b3; }
.ac14-ped-btn--grande { padding: 12px 22px; font-size: 15px; border-radius: 12px; }

/* ── Lista de pedidos ── */
.ac14-ped-lista { border: 1px solid #e8e8ea; border-radius: 14px; background: #fff; overflow: hidden; }
.ac14-ped-cab, .ac14-ped-fila {
    display: grid; grid-template-columns: 110px 110px 150px minmax(110px, 1fr) auto; align-items: center; column-gap: 16px; padding: 0 16px;
}
.ac14-ped-cab { background: #f9fafb; border-bottom: 1px solid #e8e8ea; padding-top: 11px; padding-bottom: 11px; color: #667085; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.ac14-ped-fila { padding-top: 14px; padding-bottom: 14px; border-top: 1px solid #f0f0f2; font-size: 14px; color: #344054; }
.ac14-ped-cab + .ac14-ped-fila { border-top: 0; }
.ac14-ped-fila:hover { background: #fafafb; }
.ac14-ped-c-num a { font-weight: 700; font-size: 15px; color: #111 !important; text-decoration: none; }
.ac14-ped-c-num a:hover { color: var(--ac14-acento, #cf2e2e) !important; }
.ac14-ped-col-total, .ac14-ped-c-total { text-align: right; }
.ac14-ped-importe { display: block; font-size: 15px; color: #111; }
.ac14-ped-uds { display: block; font-size: 12px; color: #667085; margin-top: 1px; }
.ac14-ped-c-acc { display: flex; justify-content: flex-end; gap: 8px; white-space: nowrap; }
.ac14-ped-c-acc .ac14-ped-btn { padding: 7px 14px; }
.ac14-ped-paginas { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.ac14-ped-paginas__n { font-size: 13px; color: #667085; }

@media (max-width: 768px) {
    .ac14-ped-lista { border: 0; background: none; border-radius: 0; overflow: visible; }
    .ac14-ped-cab { display: none; }
    .ac14-ped-fila {
        grid-template-columns: 1fr auto; grid-template-areas: "num estado" "fecha total" "acc acc";
        gap: 6px 12px; background: #fff; border: 1px solid #e8e8ea; border-radius: 14px; padding: 14px; margin: 0 0 12px;
    }
    .ac14-ped-fila:hover { background: #fff; }
    .ac14-ped-c-num { grid-area: num; }
    .ac14-ped-c-estado { grid-area: estado; justify-self: end; }
    .ac14-ped-c-fecha { grid-area: fecha; color: #667085; font-size: 13px; }
    .ac14-ped-c-total { grid-area: total; justify-self: end; }
    .ac14-ped-c-acc { grid-area: acc; margin-top: 8px; padding-top: 12px; border-top: 1px solid #f0f0f2; }
    .ac14-ped-c-acc .ac14-ped-btn { flex: 1 1 0; }
    .ac14-ped-importe { display: inline; }
    .ac14-ped-uds { display: inline; margin-left: 6px; }
}

/* ── Detalle de pedido: cabecera ── */
.ac14-ped-volver { display: inline-block; font-size: 13.5px; color: #667085 !important; text-decoration: none !important; margin: 0 0 12px; }
.ac14-ped-volver:hover { color: var(--ac14-acento, #cf2e2e) !important; }
.ac14-ov-cab {
    display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap;
    background: #fff; border: 1px solid #e8e8ea; border-radius: 14px; padding: 18px 22px; margin: 0 0 18px;
}
.ac14-ov-cab__t { margin: 0 !important; font-size: 24px !important; line-height: 1.15; font-weight: 700; color: #111; }
.ac14-ov-cab__m { margin: 4px 0 0; font-size: 13.5px; color: #667085; }
.ac14-ov-cab__der { display: flex; align-items: center; gap: 16px; }
.ac14-ov-cab__total { font-size: 24px; color: #111; line-height: 1; }
.ac14-ov-sub { font-size: 17px !important; line-height: 1.25; margin: 22px 0 10px !important; color: #111; font-weight: 700; }
.ac14-ov-aviso { margin: 0 0 16px; padding: 12px 16px; background: #eff8ff; border: 1px solid #b2ddff; border-radius: 12px; color: #175cd3; font-size: 14px; line-height: 1.45; }
.ac14-ov-aviso strong { display: block; color: #1849a9; }

.ac14-ov-acciones { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 6px; }
.ac14-ov-acciones__ayuda { font-size: 13px; color: #667085; }

/* ── Líneas ── */
.ac14-ov-tabla { border: 1px solid #e8e8ea; border-radius: 14px; background: #fff; overflow: hidden; }
.ac14-ov-thead, .ac14-ov-linea {
    display: grid; grid-template-columns: 64px minmax(0, 1fr) 100px 60px 110px; align-items: center; column-gap: 16px; padding: 0 16px;
}
.ac14-ov-thead { background: #f9fafb; border-bottom: 1px solid #e8e8ea; padding-top: 10px; padding-bottom: 10px; color: #667085; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.ac14-ov-thead .ac14-ov-h-prod { grid-column: 1 / 3; }
.ac14-ov-h-num { text-align: right; }
.ac14-ov-linea { padding-top: 12px; padding-bottom: 12px; border-top: 1px solid #f0f0f2; font-size: 14px; color: #344054; }
.ac14-ov-thead + .ac14-ov-linea { border-top: 0; }
.ac14-ov-linea__img img { display: block; width: 64px; height: 64px; object-fit: contain; background: #fff; border: 1px solid #ececef; border-radius: 10px; padding: 3px; }
.ac14-ov-linea__nombre { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.3; color: #111 !important; text-decoration: none !important; margin-top: 2px; }
a.ac14-ov-linea__nombre:hover { color: var(--ac14-acento, #cf2e2e) !important; }
.ac14-ov-linea__precio, .ac14-ov-linea__cant, .ac14-ov-linea__total { text-align: right; white-space: nowrap; }
.ac14-ov-linea__total { font-weight: 700; color: #111; }
.ac14-ov-linea__cant strong { font-weight: 700; color: #111; }
.ac14-ov-linea__nota { grid-column: 1 / -1; font-size: 13px; color: #667085; }

/* ── Pie: nota + totales ── */
.ac14-ov-pie { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin: 16px 0 0; }
.ac14-ov-nota { flex: 1 1 280px; background: #fffaeb; border: 1px solid #fedf89; border-radius: 12px; padding: 12px 16px; font-size: 14px; color: #7a4b05; }
.ac14-ov-nota p { margin: 4px 0 0; }
.ac14-ov-totales { flex: 0 1 360px; margin: 0 0 0 auto; background: #fff; border: 1px solid #e8e8ea; border-radius: 14px; padding: 6px 18px; }
.ac14-ov-totales__f { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-top: 1px solid #f0f0f2; font-size: 14px; }
.ac14-ov-totales__f:first-child { border-top: 0; }
.ac14-ov-totales dt { margin: 0; color: #667085; font-weight: 500; }
.ac14-ov-totales dd { margin: 0; text-align: right; color: #111; font-weight: 600; }
.ac14-ov-totales dd small { display: block; font-weight: 400; color: #667085; font-size: 12px; }
.ac14-ov-totales__f--order_total dt, .ac14-ov-totales__f--order_total dd { font-size: 18px; font-weight: 700; color: #111; }

/* ── Direcciones ── */
.woocommerce-account .woocommerce-customer-details { margin-top: 26px; }
.woocommerce-account .woocommerce-customer-details .woocommerce-column__title { font-size: 15px !important; font-weight: 700; margin: 0 0 8px !important; color: #111; }
.woocommerce-account .woocommerce-customer-details .woocommerce-columns--addresses { display: flex; gap: 16px; flex-wrap: wrap; }
.woocommerce-account .woocommerce-customer-details .woocommerce-column { flex: 1 1 280px; width: auto !important; float: none !important; background: #fff; border: 1px solid #e8e8ea; border-radius: 14px; padding: 14px 18px; }
.woocommerce-account .woocommerce-customer-details address { border: 0 !important; padding: 0 !important; margin: 0; font-style: normal; font-size: 14px; color: #344054; line-height: 1.5; }

/* ── Detalle en móvil: cada línea es una tarjeta (mismo patrón flex-wrap del carrito) ── */
@media (max-width: 640px) {
    .ac14-ov-cab { padding: 14px; }
    .ac14-ov-cab__t, .ac14-ov-cab__total { font-size: 20px !important; }
    .ac14-ov-cab__der { width: 100%; justify-content: space-between; }
    .ac14-ov-acciones { flex-direction: column; align-items: stretch; }
    .ac14-ov-acciones .ac14-ped-btn { width: 100%; }
    .ac14-ov-acciones__ayuda { text-align: center; }
    .ac14-ov-tabla { border: 0; background: none; border-radius: 0; overflow: visible; }
    .ac14-ov-thead { display: none; }
    .ac14-ov-linea {
        display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 12px; background: #fff;
        border: 1px solid #e8e8ea; border-radius: 14px; padding: 12px; margin: 0 0 10px;
    }
    .ac14-ov-thead + .ac14-ov-linea { border-top: 1px solid #e8e8ea; }
    .ac14-ov-linea__img { flex: 0 0 72px; }
    .ac14-ov-linea__img img { width: 72px; height: 72px; }
    .ac14-ov-linea__info { flex: 1 1 calc(100% - 90px); min-width: 0; }
    .ac14-ov-linea__precio, .ac14-ov-linea__cant, .ac14-ov-linea__total { order: 5; margin-top: 10px; padding-top: 10px; border-top: 1px solid #f0f0f2; font-size: 13.5px; }
    .ac14-ov-linea__precio { flex: 1 1 auto; text-align: left; }
    .ac14-ov-linea__total { min-width: 70px; }
    .ac14-ov-linea__precio::before { content: attr(data-title) ": "; color: #667085; font-weight: 400; }
    .ac14-ov-linea__cant::before { content: "× "; color: #667085; }
    .ac14-ov-linea__nota { order: 6; flex: 0 0 100%; margin-top: 8px; }
    .ac14-ov-totales { flex-basis: 100%; }
    .woocommerce-account .woocommerce-customer-details .woocommerce-column { flex-basis: 100%; }
}

/* ═════════ Mi cuenta: altura del contenedor de Elementor ═════════
   La página «Mi cuenta» (Elementor) tiene un contenedor con «Altura: pantalla completa» (height:100vh).
   Cuando el contenido (pedidos, direcciones…) es más alto que la pantalla, desborda ese contenedor y se pinta
   encima del pie de página. Se deja que el contenedor crezca con su contenido. */
body.woocommerce-account .elementor .e-con { height: auto !important; min-height: 0 !important; }
