/* Ajustes finales de experiencia y consistencia visual del MVP. */

body :where(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid rgba(24, 137, 173, .38);
    outline-offset: 3px;
}

body :where(button, input, select, textarea, a) { -webkit-tap-highlight-color: transparent; }

/* Títulos de páginas operativas: menos espacio vacío y mayor continuidad. */
.woocommerce-account main > .wp-block-group.alignfull,
.woocommerce-cart main > .wp-block-group.alignfull,
.page-id-23 main > .wp-block-group.alignfull,
.page-id-58 main > .wp-block-group.alignfull {
    margin: 0 !important;
    padding-bottom: 30px !important;
    padding-top: 38px !important;
}

.woocommerce-account h1.hostinger-ai-page-title,
.woocommerce-cart h1.hostinger-ai-page-title,
.page-id-23 h1.hostinger-ai-page-title,
.page-id-58 h1.hostinger-ai-page-title {
    color: #09253d;
    line-height: 1.08;
    margin: 0 !important;
}

/* Catálogo: acerca herramientas y productos al título. */
.woocommerce-shop main,
.tax-product_cat main { padding-top: 30px !important; }
.woocommerce-shop main > .wp-block-woocommerce-breadcrumbs,
.tax-product_cat main > .wp-block-woocommerce-breadcrumbs { margin-bottom: 18px !important; }
.woocommerce-shop main > h1.wp-block-query-title,
.tax-product_cat main > h1.wp-block-query-title { margin-bottom: 26px !important; margin-top: 0 !important; }
.woocommerce-shop main > .wp-block-group.alignwide.is-layout-flex,
.tax-product_cat main > .wp-block-group.alignwide.is-layout-flex { margin-bottom: 20px !important; }
.woocommerce-shop .tydal-catalog-tools,
.tax-product_cat .tydal-catalog-tools { margin-top: 0; }

/* Mi cuenta: navegación con jerarquía clara y contenido contenido en una tarjeta. */
.woocommerce-account .entry-content { padding-bottom: 72px !important; padding-top: 0 !important; }
.woocommerce-account .entry-content > .woocommerce {
    align-items: start;
    display: grid;
    gap: 30px;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    margin: 0 auto;
    max-width: 1120px;
}
.woocommerce-account .entry-content > .woocommerce::before,
.woocommerce-account .entry-content > .woocommerce::after {
    content: none !important;
    display: none !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content { float: none !important; width: auto !important; }
.woocommerce-account .woocommerce-MyAccount-navigation {
    background: #09253d;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(9, 37, 61, .12);
    overflow: hidden;
    padding: 10px;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li { margin: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation a {
    align-items: center;
    border-radius: 9px;
    color: #dceaf1;
    display: flex;
    font-size: 14px;
    font-weight: 750;
    min-height: 48px;
    padding: 11px 14px;
    text-decoration: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a { background: #176d9b; color: #fff; }
.woocommerce-account .woocommerce-MyAccount-content {
    background: #fff;
    border: 1px solid #dbe5ea;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(9, 37, 61, .06);
    min-width: 0;
    padding: clamp(22px, 3vw, 34px);
}
.woocommerce-account .woocommerce-MyAccount-content > p:first-child { color: #314b5e; font-size: 15px; margin-top: 0; }
.woocommerce-account .woocommerce-MyAccount-content a { overflow-wrap: anywhere; }

/* Solicitud: restaura el CTA principal y alinea correctamente el resumen. */
.woocommerce-cart .entry-content { padding-bottom: 66px !important; padding-top: 0 !important; }
.woocommerce-cart .cart_totals { max-width: 520px; width: 100% !important; }
.woocommerce-cart .wc-proceed-to-checkout { padding: 14px 0 0 !important; }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-cart .wc-proceed-to-checkout a.tydal-cart-quote-button {
    align-items: center;
    background: #176d9b !important;
    border: 0 !important;
    border-radius: 10px !important;
    box-sizing: border-box;
    color: #fff !important;
    display: flex !important;
    font-size: 16px !important;
    font-weight: 850 !important;
    justify-content: center;
    line-height: 1.25 !important;
    min-height: 54px;
    padding: 14px 22px !important;
    text-align: center;
    text-decoration: none !important;
    width: 100%;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-cart .wc-proceed-to-checkout a.tydal-cart-quote-button:hover { background: #09253d !important; }

/* Formulario: evita saltos de línea innecesarios en importes. */
.tydal-quote-form { grid-template-columns: minmax(0, 1fr); }
.tydal-form-card { min-width: 0; }
.tydal-summary-card strong,
.tydal-summary-breakdown strong { white-space: nowrap; }

@media (min-width: 701px) {
    .tydal-quote-shell {
        box-sizing: border-box;
        max-width: 1200px !important;
        width: calc(100% - 40px) !important;
    }
}

/* Matrices: comunica explícitamente la navegación horizontal. */
.tydal-matrix-swipe-hint { color: #5a6f7d; display: none; font-size: 12px; font-weight: 700; margin: 0 0 9px; }

@media (max-width: 900px) {
    .woocommerce-account .entry-content > .woocommerce { gap: 20px; grid-template-columns: 1fr; }
    .woocommerce-account .woocommerce-MyAccount-navigation ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .woocommerce-account .woocommerce-MyAccount-navigation li:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .woocommerce-account .woocommerce-MyAccount-navigation li:not(.is-active) a {
        background: rgba(255, 255, 255, .07) !important;
        border-color: rgba(255, 255, 255, .14) !important;
        color: #eaf5fa !important;
    }
}

@media (max-width: 700px) {
    /* La primera pantalla del inicio muestra antes la propuesta de valor. */
    .tydal-home-family-nav { scroll-padding-inline: 12px; scroll-snap-type: x proximity; }
    .tydal-home-family-nav a { flex-basis: 44vw; scroll-snap-align: start; }
    .tydal-home-benefits {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 6px 12px;
        scroll-padding-inline: 12px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .tydal-home-benefits::-webkit-scrollbar { display: none; }
    .tydal-home-benefits article,
    .tydal-home-benefits article + article {
        background: #fff;
        border: 1px solid #d7e1e6;
        border-radius: 10px;
        box-sizing: border-box;
        flex: 0 0 68%;
        min-height: 52px;
        padding: 7px 10px;
        scroll-snap-align: start;
    }
    .tydal-home-hero { min-height: 365px; }

    .woocommerce-shop main,
    .tax-product_cat main { padding-top: 18px !important; }
    .woocommerce-shop main > .wp-block-woocommerce-breadcrumbs,
    .tax-product_cat main > .wp-block-woocommerce-breadcrumbs { margin-bottom: 12px !important; }
    .woocommerce-shop main > h1.wp-block-query-title,
    .tax-product_cat main > h1.wp-block-query-title { font-size: 34px !important; margin-bottom: 20px !important; }
    .woocommerce-shop main > .wp-block-group.alignwide.is-layout-flex,
    .tax-product_cat main > .wp-block-group.alignwide.is-layout-flex { margin-bottom: 16px !important; }
    .tydal-catalog-tools { margin-bottom: 16px; padding: 18px 15px; }
    .tydal-catalog-intro h2 { font-size: 26px; }
    .tydal-category-links a { box-sizing: border-box; width: 100%; }

    .woocommerce-account main > .wp-block-group.alignfull,
    .woocommerce-cart main > .wp-block-group.alignfull,
    .page-id-23 main > .wp-block-group.alignfull,
    .page-id-58 main > .wp-block-group.alignfull { padding-bottom: 24px !important; padding-top: 28px !important; }
    .woocommerce-account h1.hostinger-ai-page-title,
    .woocommerce-cart h1.hostinger-ai-page-title,
    .page-id-23 h1.hostinger-ai-page-title,
    .page-id-58 h1.hostinger-ai-page-title { font-size: 31px !important; }

    .woocommerce-account .entry-content { padding: 0 14px 52px !important; }
    .woocommerce-account .woocommerce-MyAccount-navigation { border-radius: 12px; padding: 7px; }
    .woocommerce-account .woocommerce-MyAccount-navigation a { font-size: 13px; min-height: 44px; padding: 9px 10px; }
    .woocommerce-account .woocommerce-MyAccount-content { border-radius: 13px; padding: 18px; }
    .woocommerce-account .woocommerce-MyAccount-content > p:first-child { line-height: 1.55; }

    .woocommerce-cart .entry-content { padding-left: 14px !important; padding-right: 14px !important; }
    .woocommerce-cart table.shop_table_responsive td.product-name { text-align: left !important; }
    .woocommerce-cart table.shop_table_responsive td.product-name::before { display: block; float: none !important; margin-bottom: 8px; text-align: left; }
    .woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
    .woocommerce-cart .wc-proceed-to-checkout a.tydal-cart-quote-button { min-height: 56px; }

    .tydal-quote-shell { padding-top: 10px; }
    .tydal-order-table tbody tr {
        display: grid;
        gap: 4px 14px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 14px 0;
    }
    .tydal-order-table tbody td { display: block; min-width: 0; padding: 7px 0; }
    .tydal-order-table tbody td:first-child,
    .tydal-order-table tbody td:nth-child(3) { grid-column: 1 / -1; }
    .tydal-order-table tbody td::before { display: block; margin-bottom: 4px; }
    .tydal-summary-card > div,
    .tydal-summary-breakdown > div { align-items: center; }
    .tydal-summary-card strong { font-size: 16px; }

    .tydal-matrix-page { padding-top: 10px; }
    .tydal-matrix-swipe-hint { align-items: center; display: flex; gap: 6px; }
    .tydal-matrix-scroll { border-bottom: 1px solid #d7e1e6; padding-bottom: 8px; }
    .tydal-matrix-table th:first-child,
    .tydal-matrix-table tbody th { left: 0; position: sticky; z-index: 2; }
    .tydal-matrix-table tbody th { background: #fff; }
    .tydal-matrix-table tbody tr:nth-child(even) th { background: #f6f9fb; }

    /* En productos relacionados, el cotizador necesita todo el ancho de la tarjeta. */
    .single-product .wp-block-woocommerce-product-collection li.wc-block-product {
        display: flex !important;
        flex-direction: column;
        padding: 0 !important;
    }
    .single-product .wp-block-woocommerce-product-collection .wp-block-woocommerce-product-image {
        aspect-ratio: 16 / 9;
        border-bottom: 1px solid #e1e7e9;
        border-right: 0;
        box-sizing: border-box;
        grid-row: auto;
        min-height: 0;
        padding: 14px;
        width: 100%;
    }
    .single-product .wp-block-woocommerce-product-collection .wp-block-woocommerce-product-image img {
        height: 100%;
        max-height: 180px;
        object-fit: contain;
        width: 100%;
    }
    .single-product .wp-block-woocommerce-product-collection .wp-block-post-title {
        font-size: 15px !important;
        margin: 15px 15px 8px !important;
    }
    .single-product .wp-block-woocommerce-product-collection .wp-block-woocommerce-product-price {
        font-size: 17px !important;
        margin: 0 15px 10px !important;
    }
    .single-product .wp-block-woocommerce-product-collection .tydal-card-quote {
        margin-left: 14px;
        margin-right: 14px;
        margin-top: auto;
        width: calc(100% - 28px);
    }
}

/* Panel de revisión en escritorio: jerarquía propia, sin columnas de tabla comprimidas. */
@media (min-width: 783px) {
    body .wc-block-mini-cart__drawer.is-mobile {
        background: #f3f6f7;
        box-shadow: -14px 0 42px rgba(7, 31, 49, .2);
        inset-inline-end: 0 !important;
        inset-inline-start: auto !important;
        left: auto !important;
        margin-left: auto !important;
        max-width: 540px !important;
        right: 0 !important;
        width: min(100vw, 540px) !important;
    }
    body .wc-block-components-drawer__screen-overlay .wc-block-mini-cart__drawer.is-mobile {
        transform: translateX(100%) !important;
    }
    body .wc-block-components-drawer__screen-overlay--with-slide-in .wc-block-mini-cart__drawer.is-mobile {
        transform: translateX(0) !important;
    }
    body .wc-block-mini-cart__drawer .wc-block-components-drawer__content { background: #f3f6f7; }
    body .wc-block-mini-cart__drawer .wc-block-components-drawer__close-wrapper {
        height: 48px;
        position: absolute;
        right: 16px;
        top: 16px;
        width: 48px;
        z-index: 3;
    }
    body .wc-block-mini-cart__drawer .wc-block-components-drawer__close {
        background: #edf3f5;
        border-radius: 50%;
        height: 42px;
        min-height: 42px;
        min-width: 42px;
        padding: 9px;
        width: 42px;
    }
    body .wc-block-mini-cart__title {
        align-items: center;
        background: #fff;
        border-bottom: 1px solid #dbe4e8;
        box-sizing: border-box;
        display: grid;
        gap: 14px;
        grid-template-columns: minmax(0, 1fr) auto;
        height: auto !important;
        line-height: 1.15;
        margin: 0 !important;
        min-height: 94px;
        padding: 22px 76px 22px 22px !important;
        width: 100%;
    }
    body .wc-block-mini-cart__title .wp-block-woocommerce-mini-cart-title-label-block {
        color: #0d2a43;
        font-size: 27px;
        font-weight: 850;
        min-width: 0;
    }
    body .wc-block-mini-cart__title .wp-block-woocommerce-mini-cart-title-items-counter-block {
        background: #e7f3f7;
        border-radius: 999px;
        color: #17688f;
        font-size: 12px;
        font-weight: 850;
        padding: 7px 10px;
        white-space: nowrap;
    }
    body .wc-block-mini-cart__items {
        background: #f3f6f7;
        padding: 0 !important;
    }
    body .wc-block-mini-cart__products-table {
        box-sizing: border-box;
        margin: 0 !important;
        padding: 20px 20px 24px;
        width: 100%;
    }
    body .wc-block-mini-cart__products-table .wc-block-cart-items,
    body .wc-block-mini-cart__products-table tbody { display: block; width: 100%; }
    body .wc-block-mini-cart__products-table thead { display: none; }
    body .wc-block-mini-cart__products-table .wc-block-cart-items__row {
        background: #fff;
        border: 1px solid #d8e3e7;
        border-radius: 14px;
        box-sizing: border-box;
        box-shadow: 0 6px 18px rgba(13, 42, 67, .06);
        display: grid !important;
        gap: 0;
        grid-template-columns: minmax(0, 1fr) !important;
        height: auto !important;
        margin: 0 0 14px;
        padding: 18px !important;
        width: 100%;
    }
    body .wc-block-mini-cart__products-table .wc-block-cart-item__image { display: none !important; }
    body .wc-block-mini-cart__products-table .wc-block-cart-item__product {
        display: block !important;
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        height: auto !important;
        padding: 0 !important;
        width: 100% !important;
    }
    body .wc-block-mini-cart__products-table .wc-block-cart-item__wrap { width: 100%; }
    body .wc-block-mini-cart__products-table .wc-block-components-product-name {
        color: #0d2a43;
        display: block;
        font-size: 16px;
        font-weight: 850;
        line-height: 1.35;
        max-width: 410px;
        text-decoration: none;
    }
    body .wc-block-mini-cart__products-table .wc-block-components-product-backorder-badge { display: none; }
    body .wc-block-mini-cart__products-table .wc-block-cart-item__prices {
        color: #17688f;
        font-size: 14px;
        font-weight: 850;
        margin: 8px 0 5px;
    }
    body .wc-block-mini-cart__products-table .wc-block-components-product-metadata {
        color: #526975;
        font-size: 12px;
        line-height: 1.45;
        margin: 0;
    }
    body .wc-block-mini-cart__products-table .wc-block-components-product-metadata p { margin: 3px 0; }
    body .wc-block-mini-cart__products-table .wc-block-components-product-metadata__description > *:not(:first-child) {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    body .wc-block-mini-cart__products-table .wc-block-cart-item__quantity {
        align-items: center;
        display: flex;
        gap: 10px;
        justify-content: flex-start;
        margin-top: 14px;
    }
    body .wc-block-mini-cart__products-table .wc-block-components-quantity-selector {
        border: 1px solid #bfd0d8;
        border-radius: 9px;
        height: 42px;
        margin: 0;
        width: 138px;
    }
    body .wc-block-mini-cart__products-table .wc-block-components-quantity-selector__button {
        color: #0d2a43;
        min-width: 40px;
    }
    body .wc-block-mini-cart__products-table .wc-block-cart-item__remove-link {
        align-items: center;
        background: #f7eded;
        border: 1px solid #efd6d6;
        border-radius: 9px;
        color: #8c3030;
        display: inline-flex;
        height: 42px;
        justify-content: center;
        margin: 0;
        min-width: 42px;
        padding: 10px;
        width: 42px;
    }
    body .wc-block-mini-cart__products-table .wc-block-cart-item__total {
        align-items: center;
        border-top: 1px solid #e1e8eb;
        display: flex !important;
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        height: auto !important;
        justify-content: space-between;
        margin-top: 15px;
        padding: 13px 0 0 !important;
        width: 100% !important;
    }
    body .wc-block-mini-cart__products-table .wc-block-cart-item__total::before {
        color: #526975;
        content: "Total del producto";
        font-size: 12px;
        font-weight: 750;
    }
    body .wc-block-mini-cart__products-table .wc-block-cart-item__total-price-and-sale-badge-wrapper { margin-left: auto; }
    body .wc-block-mini-cart__products-table .wc-block-cart-item__total .price {
        color: #0d2a43;
        font-size: 15px;
        font-weight: 900;
    }
    body .wc-block-mini-cart__products-table .wc-block-components-sale-badge { display: none; }
    body .wc-block-mini-cart__footer {
        background: #fff;
        border-top: 1px solid #d5e0e5;
        box-shadow: 0 -8px 24px rgba(13, 42, 67, .08);
        height: auto !important;
        padding: 16px 20px 18px;
    }
    body .wc-block-mini-cart__footer-subtotal { margin: 0; padding: 0; }
    body .wc-block-mini-cart__footer-subtotal .wc-block-components-totals-item__label,
    body .wc-block-mini-cart__footer-subtotal .wc-block-components-totals-item__value {
        color: #0d2a43;
        font-size: 17px;
        font-weight: 900;
    }
    body .wc-block-mini-cart__footer-subtotal .wc-block-components-totals-item__description {
        color: #617582;
        font-size: 11px;
        line-height: 1.35;
        margin-top: 4px;
    }
    body .wc-block-mini-cart__footer-actions { margin-top: 12px; }
    body .wc-block-mini-cart__footer-actions .wc-block-mini-cart__footer-cart {
        background: #0d2a43 !important;
        border: 1px solid #0d2a43 !important;
        border-radius: 10px !important;
        box-sizing: border-box;
        color: #fff !important;
        font-size: 14px;
        font-weight: 850;
        min-height: 48px;
        width: 100%;
    }
}

/* Panel móvil de revisión: productos legibles como tarjetas, no como tabla comprimida. */
@media (max-width: 782px) {
    body .wc-block-components-drawer__screen-overlay .wc-block-mini-cart__drawer.is-mobile {
        left: auto !important;
        margin: 0 !important;
        right: 0 !important;
        transform: translateX(100%) !important;
    }
    body .wc-block-components-drawer__screen-overlay--with-slide-in .wc-block-mini-cart__drawer.is-mobile {
        transform: translateX(0) !important;
    }
    body .wc-block-mini-cart__drawer.is-mobile {
        background: #f3f6f7;
        box-shadow: -10px 0 36px rgba(7, 31, 49, .2);
        margin-left: auto;
        max-width: 440px !important;
        width: min(100vw, 440px) !important;
    }
    body .wc-block-mini-cart__drawer .wc-block-components-drawer__content { background: #f3f6f7; }
    body .wc-block-mini-cart__drawer .wc-block-components-drawer__close-wrapper {
        height: 52px;
        position: absolute;
        right: 8px;
        top: 8px;
        width: 52px;
        z-index: 3;
    }
    body .wc-block-mini-cart__drawer .wc-block-components-drawer__close {
        background: #edf3f5;
        border-radius: 50%;
        height: 42px;
        min-height: 42px;
        min-width: 42px;
        padding: 9px;
        width: 42px;
    }
    body .wc-block-mini-cart__title {
        align-items: center;
        background: #fff;
        border-bottom: 1px solid #dbe4e8;
        box-sizing: border-box;
        display: grid;
        font-size: 24px !important;
        gap: 10px;
        grid-template-columns: minmax(0, 1fr) auto;
        height: auto !important;
        line-height: 1.15;
        margin: 0 !important;
        min-height: 78px;
        padding: 17px 62px 17px 16px !important;
    }
    body .wc-block-mini-cart__title .wp-block-woocommerce-mini-cart-title-label-block {
        font-size: 24px;
        font-weight: 850;
        min-width: 0;
    }
    body .wc-block-mini-cart__title .wp-block-woocommerce-mini-cart-title-items-counter-block {
        background: #e7f3f7;
        border-radius: 999px;
        color: #17688f;
        font-size: 12px;
        font-weight: 850;
        padding: 6px 9px;
        white-space: nowrap;
    }
    body .wc-block-mini-cart__items { background: #f3f6f7; }
    body .wc-block-mini-cart__products-table {
        box-sizing: border-box;
        margin: 0 !important;
        padding: 12px 13px 18px;
        width: 100%;
    }
    body .wc-block-mini-cart__products-table .wc-block-cart-items,
    body .wc-block-mini-cart__products-table tbody { display: block; width: 100%; }
    body .wc-block-mini-cart__products-table thead { display: none; }
    body .wc-block-mini-cart__products-table .wc-block-cart-items__row {
        background: #fff;
        border: 1px solid #d8e3e7;
        border-radius: 14px;
        box-sizing: border-box;
        box-shadow: 0 5px 16px rgba(13, 42, 67, .055);
        display: grid !important;
        gap: 0;
        grid-template-columns: minmax(0, 1fr) !important;
        height: auto !important;
        margin: 0 0 12px;
        padding: 14px !important;
        width: 100%;
    }
    body .wc-block-mini-cart__products-table .wc-block-cart-item__image { display: none !important; }
    body .wc-block-mini-cart__products-table .wc-block-cart-item__product {
        display: block !important;
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        height: auto !important;
        padding: 0 !important;
        width: 100% !important;
    }
    body .wc-block-mini-cart__products-table .wc-block-cart-item__wrap { width: 100%; }
    body .wc-block-mini-cart__products-table .wc-block-components-product-name {
        color: #0d2a43;
        font-size: 15px;
        font-weight: 850;
        line-height: 1.35;
        text-decoration: none;
    }
    body .wc-block-mini-cart__products-table .wc-block-components-product-backorder-badge { display: none; }
    body .wc-block-mini-cart__products-table .wc-block-cart-item__prices {
        color: #17688f;
        font-size: 14px;
        font-weight: 850;
        margin: 7px 0 5px;
    }
    body .wc-block-mini-cart__products-table .wc-block-components-product-metadata {
        color: #526975;
        font-size: 12px;
        line-height: 1.4;
        margin: 0;
    }
    body .wc-block-mini-cart__products-table .wc-block-components-product-metadata p { margin: 3px 0; }
    body .wc-block-mini-cart__products-table .wc-block-components-product-metadata__description > *:not(:first-child) {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    body .wc-block-mini-cart__products-table .wc-block-cart-item__quantity {
        align-items: center;
        display: flex;
        gap: 9px;
        justify-content: flex-start;
        margin-top: 12px;
    }
    body .wc-block-mini-cart__products-table .wc-block-components-quantity-selector {
        border: 1px solid #bfd0d8;
        border-radius: 9px;
        height: 42px;
        margin: 0;
        width: 138px;
    }
    body .wc-block-mini-cart__products-table .wc-block-components-quantity-selector__button {
        color: #0d2a43;
        min-width: 40px;
    }
    body .wc-block-mini-cart__products-table .wc-block-cart-item__remove-link {
        align-items: center;
        background: #f7eded;
        border: 1px solid #efd6d6;
        border-radius: 9px;
        color: #8c3030;
        display: inline-flex;
        height: 42px;
        justify-content: center;
        margin: 0;
        min-width: 42px;
        padding: 10px;
        width: 42px;
    }
    body .wc-block-mini-cart__products-table .wc-block-cart-item__total {
        align-items: center;
        border-top: 1px solid #e1e8eb;
        display: flex !important;
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        height: auto !important;
        justify-content: space-between;
        margin-top: 13px;
        padding: 11px 0 0 !important;
        width: 100% !important;
    }
    body .wc-block-mini-cart__products-table .wc-block-cart-item__total::before {
        color: #526975;
        content: "Total del producto";
        font-size: 12px;
        font-weight: 750;
    }
    body .wc-block-mini-cart__products-table .wc-block-cart-item__total-price-and-sale-badge-wrapper {
        margin-left: auto;
    }
    body .wc-block-mini-cart__products-table .wc-block-cart-item__total .price {
        color: #0d2a43;
        font-size: 14px;
        font-weight: 900;
    }
    body .wc-block-mini-cart__products-table .wc-block-components-sale-badge { display: none; }
    body .wc-block-mini-cart__footer {
        background: #fff;
        border-top: 1px solid #d5e0e5;
        box-shadow: 0 -8px 24px rgba(13, 42, 67, .08);
        height: auto !important;
        padding: 13px 16px calc(14px + env(safe-area-inset-bottom));
    }
    body .wc-block-mini-cart__footer-subtotal { margin: 0; padding: 0; }
    body .wc-block-mini-cart__footer-subtotal .wc-block-components-totals-item__label,
    body .wc-block-mini-cart__footer-subtotal .wc-block-components-totals-item__value {
        color: #0d2a43;
        font-size: 16px;
        font-weight: 900;
    }
    body .wc-block-mini-cart__footer-subtotal .wc-block-components-totals-item__description {
        color: #617582;
        font-size: 11px;
        line-height: 1.35;
        margin-top: 3px;
    }
    body .wc-block-mini-cart__footer-actions { margin-top: 11px; }
    body .wc-block-mini-cart__footer-actions .wc-block-mini-cart__footer-cart {
        background: #0d2a43 !important;
        border: 1px solid #0d2a43 !important;
        border-radius: 10px !important;
        box-sizing: border-box;
        color: #fff !important;
        font-size: 14px;
        font-weight: 850;
        min-height: 48px;
        width: 100%;
    }
}

@media (max-width: 700px) {
    /* Terminales: los datos secundarios viven dentro de “Detalles técnicos”. */
    .tydal-terminal-section { padding: 30px 12px; }
    .tydal-terminal-results .tydal-terminal-heading { margin-bottom: 20px; }
    .tydal-terminal-table tr { gap: 2px 8px; grid-template-columns: 78px minmax(0, 1fr); padding: 12px; }
    .tydal-terminal-table td:nth-child(5),
    .tydal-terminal-table td:nth-child(6) { display: none; }
    .tydal-terminal-table td:nth-child(4),
    .tydal-terminal-table td:nth-child(7),
    .tydal-terminal-table td:nth-child(8),
    .tydal-terminal-table td:nth-child(9) { grid-column: 1 / -1; }
    .tydal-terminal-details {
        align-items: center;
        border: 1px solid #bfd2dc;
        border-radius: 7px;
        display: inline-flex;
        justify-content: center;
        margin-top: 10px;
        min-height: 38px;
        padding: 7px 10px;
        width: 100%;
    }
    .tydal-terminal-extra.is-open {
        background: #f1f6f8;
        display: grid;
        gap: 7px 12px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 8px;
        padding: 10px;
    }
    .tydal-terminal-extra small { color: #425b6a; line-height: 1.4; }
    .tydal-terminal-table input[type="number"] { font-size: 16px; min-height: 50px; }
    .tydal-terminal-batch-bar button { min-height: 48px; }
}
