/* Variables globales de WooCommerce */
:root {
    --wc-muted: #ecc5c5;
    --bg: #F3F3F3;
    --wc-radius: 5px;
}

/* Tipografía base de WooCommerce con variables Elementor */
.woocommerce {
    font-family: var(--e-global-typography-primary-font-family);   
    font-weight: var(--e-global-typography-primary-font-weight);
}
/* ========== WooCommerce My Account – */

/* No forzamos anchos ni columnas */
.woocommerce-account .woocommerce {
    display: block;
    max-width: none;
    padding: clamp(12px, 2vw, 20px);
    color: var(--e-global-color-text);
}

/* 1. NAVEGACIÓN (Vertical) */
.woocommerce-MyAccount-navigation {
    margin-bottom: 16px;
}

/* Lista de navegación */
.woocommerce-MyAccount-navigation ul {
    display: block;
    gap: 8px;
    background: var(--bg);
    border: none;
    border-radius: var(--wc-radius);
    padding: 20px 0;
    box-shadow: none;
}

/* Elementos de la lista de navegación */
.woocommerce-MyAccount-navigation li {
    list-style: none;
    margin-bottom: 2px;
}

/* Último elemento sin margen inferior */
.woocommerce-MyAccount-navigation li:last-child {
    margin-bottom: 0;
}

/* Enlaces de navegación */
.woocommerce-MyAccount-navigation a {
    display: block;
    padding: 10px 14px;
    color: var(--e-global-color-txt);
    text-decoration: none;
    transition: .5s;
    font-weight: 400;
}

/* Estado activo y hover de navegación */
.woocommerce-MyAccount-navigation .is-active a,
.woocommerce-MyAccount-navigation a:hover {
    color: var(--e-global-color-text);
    background: var(--e-global-color-accent);
    box-shadow: none;
}

/* 2. CONTENIDO GENERAL */
.woocommerce-MyAccount-content {
    background: var(--bg);
    border: none;
    border-radius: var(--wc-radius);
    padding: clamp(14px, 2vw, 22px);
    box-shadow: var(none);
}

/* NUEVO: Eliminamos la sombra del contenedor de detalles del pedido */
.woocommerce-order-details {
    box-shadow: none !important;
}



/* Primer párrafo del contenido */
.woocommerce-MyAccount-content>p:first-child {
    background: linear-gradient(180deg, var(--e-global-color-secondary), #fff);
    border: 1px solid var(none);
    padding: 14px 16px;
    border-radius: var(--wc-radius);
    box-shadow: var(none);
    margin-bottom: 14px;
}

/* 3. TABLAS (PEDIDOS/DESCARGAS/DETALLES) */
/* Estilo básico de tablas (Sin borde exterior) */

/* Celdas y encabezados de tabla sin bordes */
.woocommerce .woocommerce-MyAccount-content table table td,
.woocommerce .woocommerce-MyAccount-content table table th,
.woocommerce table.shop_table td,
.woocommerce table.shop_table th {
    border: none !important;
}

/* Tabla principal de tienda */
.woocommerce table.shop_table {
    width: 100%;
    border: 3px solid var(--e-global-color-secondary) !important;
    border-radius: var(--wc-radius);
    overflow: hidden;
    box-shadow: none !important;
    margin-bottom: 20px;
    border-collapse: collapse;
    background: ar(--e-global-color-secondary) !important;
}

/* Padding de encabezados de tabla */
.woocommerce table.shop_table:not(.order_details) th,
.woocommerce table.shop_table.order_details th,
.woocommerce table.shop_table.customer_details th {
    padding: 16px 14px !important;
}

/* Estilo de encabezados generales */
.woocommerce table.shop_table:not(.order_details) th {
    background: transparent;
    font-weight: 600;
    color: var(--e-global-color-text);
    border: none !important;
}

/* Borde inferior de fila de encabezado */
.woocommerce table.shop_table:not(.order_details) thead tr {
    border-bottom: 1px solid #fff;
}

/* Celdas de datos de tabla */
.woocommerce table.shop_table:not(.order_details) td {
    padding: 14px 14px;
    border: none !important;
}

/* Filas del cuerpo de tabla */
.woocommerce table.shop_table:not(.order_details) tbody tr {
    border-bottom: 1px solid var(none);
}

/* Última fila sin borde inferior */
.woocommerce table.shop_table:not(.order_details) tbody tr:last-child {
    border-bottom: none;
}

/* Filas pares con fondo alternado */
.woocommerce table.shop_table:not(.order_details) tbody tr:nth-child(even) td {
    background: var(--wc-muted);
}

/* Input de selección de país */
.wc-block-components-form .wc-block-components-checkout-step .wc-block-components-country-input {
    margin-top: 12px !important;
}

/* Tabla de detalles del pedido (VER PEDIDO) */
.woocommerce table.shop_table.order_details,
.woocommerce table.shop_table.customer_details {
    box-shadow: none;
    background: transparent;
}

/* Filas de tabla de detalles y datos de cliente */
.woocommerce table.shop_table.order_details tr,
.woocommerce table.shop_table.customer_details tr {
    background: var(--e-global-color-secondary) !important;
}


/* Encabezado de tabla de detalles del pedido */
.woocommerce table.shop_table.order_details thead th {
    background: var(--e-global-color-secondary) !important;
    font-weight: 600 !important;
}


/* MEJORA DE LOS BOTONES DE ACCIÓN EN LAS TABLAS DE HISTORIAL */
.woocommerce-orders-table__cell-order-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

/* Botones dentro de celdas de acción */
.woocommerce-orders-table__cell-order-actions .button {
    width: auto;
    text-align: center;
}

/* Botones en detalles de suscripción */
.subscription_details .button {
    margin: 10px !important;
}

/* Botón de guardar detalles de cuenta */
.woocommerce-Button.button[name="save_account_details"] {
    margin-top: 20px;
}

/* FIX CRÍTICO: Botón 'alt' (Factura, etc.) Texto Blanco Asegurado + Eliminación de decoración forzada */
.woocommerce .button.alt,
.woocommerce .woocommerce-invoice-button,
.woocommerce-page .woocommerce-invoice-button,
.woocommerce-account a.button.alt,
.woocommerce-account a.woocommerce-invoice-button {
    background: var(--e-global-color-text) !important;
    color: #fff !important;
    /* MANTENEMOS EL COLOR BLANCO FORZADO */
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
    text-shadow: none !important;
    /* ELIMINA SOMBRAS DE TEXTO */
    text-decoration: none !important;
    /* ELIMINA SUBRAYADO */
}

.woocommerce .button.alt:hover,
.woocommerce .woocommerce-invoice-button:hover,
.woocommerce-page .woocommerce-invoice-button:hover,
.woocommerce-account a.button.alt:hover,
.woocommerce-account a.woocommerce-invoice-button:hover {
    background: #000 !important;
    color: #fff !important;
    /* MANTENEMOS EL COLOR BLANCO HOVER FORZADO */
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    text-shadow: none !important;
    /* ELIMINA SOMBRAS DE TEXTO HOVER */
    text-decoration: none !important;
    /* ELIMINA SUBRAYADO HOVER */
}

/* FIX CRÍTICO FINAL: Selector de enlace del botón "Factura" en la vista de pedido (Máxima Especificidad) */
section.woocommerce-order-details a.button,
section.woocommerce-order-details a.button:hover,
section.woocommerce-order-details a.woocommerce-invoice-button,
section.woocommerce-order-details a.woocommerce-invoice-button:hover {

    text-decoration: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
}


/* 7. NOTICES (SOLUCIÓN ICONO) */
/* Estilos de mensajes de error, información y éxito */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    border-radius: 12px !important;
    border: none !important;
    box-shadow: var(none);
    padding: 12px 14px !important;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* Posicionamiento de iconos en notices */
.woocommerce-error::before,
.woocommerce-info::before,
.woocommerce-message::before {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    flex-shrink: 0;
}

/* Párrafos dentro de notices */
.woocommerce-error p,
.woocommerce-info p,
.woocommerce-message p {
    margin: 0;
    display: inline;
}

/* Colores de fondo y texto para notices */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message,
.woocommerce-notices-wrapper ul {
    background: var(--e-global-color-secondary) !important;
    color: var(--e-global-color-text) !important;
    ;
}

/* 8. ENLACES GLOBALES */
/* Enlaces en título de dirección */
.woocommerce-Address-title a {
    color: var(--e-global-color-secondary);
    background-color: var(--e-global-color-primary);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: var(--wc-radius);
    font-size: 1.4rem;
}

/* Hover en enlaces de título de dirección */
.woocommerce-Address-title a:hover {
    color: var(--e-global-color-secondary);
    background-color: var(--e-global-color-text);
}

/* Contador de elementos en carrito */
.elementor-menu-cart--items-indicator-bubble .elementor-menu-cart__toggle .elementor-button-icon .elementor-button-icon-qty[data-counter] {
    background-color: var(--e-global-color-secondary) !important;
    color: var(--e-global-color-primary) !important;
    font-family: sans-serif !important;
    font-size: 10px;
    height: 1.6em;
}

/* 9. RESPONSIVO SUAVE */
/* Estilos para tablets y móviles */
@media (max-width: 782px) {

    /* Direcciones en columna en móviles */
    .woocommerce-Addresses {
        flex-direction: column;
        gap: 10px;
    }

    /* Padding reducido en direcciones */
    .woocommerce-Addresses .woocommerce-Address {
        padding: 12px;
    }

    /* Enlaces de navegación más pequeños en móviles */
    .woocommerce-MyAccount-navigation a {
        padding: 8px 10px;
        font-size: 14px;
    }

    /* Tablas más compactas en móviles */
    .woocommerce table.shop_table th,
    .woocommerce table.shop_table td {
        padding: 10px;
        font-size: 14px;
    }

    /* Menor espacio entre botones de acción */
    .woocommerce-orders-table__cell-order-actions {
        gap: 5px;
    }
}

/* 4. DIRECCIONES */
/* Contenedor de direcciones en fila */
.woocommerce-Addresses {
    display: flex;
    gap: 20px;
}


/* Estilos de bloques de dirección */
.woocommerce .woocommerce-customer-details address,
.woocommerce-Address address {
    font-style: normal;
    border: none;
    text-align: left;
    width: 100%;
    border-radius: var(--wc-radius);
    padding: 25px;
    box-sizing: border-box;
    background: var(--e-global-color-secondary);
    font-size: 1.5rem;
    line-height: 25px;
    margin-top: 10px;
    /*color: var(--wc-muted);*/
}

/* Enlaces en pie de tabla de detalles del pedido */
section.woocommerce-order-details>table>tfoot:nth-child(3)>tr>td>a {
    color: white;
}

/* Sin subrayado en hover */
section.woocommerce-order-details>table>tfoot:nth-child(3)>tr>td>a:hover {
    text-decoration: none;
}



/* ========== CARRITO Y CHECKOUT ========== */
/* Títulos principales de página */
.woocommerce-cart .entry-title,
.woocommerce-cart h1.page-title,
.elementor-widget-theme-page-title .elementor-heading-title,
.woocommerce-account h1,
.woocommerce-checkout h1 {
    font-size: 6rem;
    text-align: center;
    margin-bottom: 10px;
    text-transform: capitalize;
    font-weight: 400;
}

/* Nombres de productos en carrito más pequeños */
.editor-styles-wrapper table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name,
table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name {
    font-size: 2rem !important;
    line-height: 1.3em !important;

    color: var(--e-global-color-primary);
}

/* Hover en botones de cantidad */
.wc-block-components-quantity-selector__button:hover {
    background-color: var(--e-global-color-text) !important;
    color: var(--e-global-color-secondary) !important;
}



/* Reducir espacio entre productos de la lista del carrito */
.woocommerce-cart .cart_item {
    margin-bottom: 6px !important;
    padding-bottom: 6px !important;
    border-bottom: 1px solid #e5e5e5;
}

/* Encabezados y precios en negrita */
.editor-styles-wrapper table.wc-block-cart-items .wc-block-cart-items__header th,
table.wc-block-cart-items .wc-block-cart-items__header th,
.wc-block-components-product-price {
    font-weight: 600 !important;
}

/* Contenedor de cantidad de artículo */
.wc-block-cart-item__quantity {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px;
}

/* Selector de cantidad de productos */
.wc-block-components-quantity-selector {
    border: none !important;
    border-radius: 4px;
    box-sizing: border-box;
    display: flex;
    margin: 0px;
    position: relative;
    width: auto;
    background: var(--bg);
}

/* Fuente de números genéricos */
input.wc-block-components-quantity-selector__input,
.wc-block-components-formatted-money-amount,
.wc-block-components-product-price__regular,
.woocommerce-Price-amount,
.woocommerce-orders-table__cell-order-number,
.wc-block-components-product-price__value.is-discounted,
.wc-block-components-order-summary .wc-block-components-order-summary-item__quantity {
    font-family: Helvetica, Arial, sans-serif !important;
}

/* Cantidad en resumen de pedido */
.wc-block-components-order-summary .wc-block-components-order-summary-item__quantity {
    background: var(--e-global-color-primary) !important;
    border: none !important;
    color: var(--e-global-color-text) !important;
}

/* Sección secundaria de tarjeta de dirección */
.wc-block-components-address-card address .wc-block-components-address-card__address-section--secondary {
    color: inherit !important;
}

/* Elimina l'última línia del darrer producte */
.woocommerce-cart .cart_item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Contenedor de tabla del carrito */
.woocommerce-cart .cart-collaterals,
.woocommerce-cart .cart_totals,
.woocommerce-cart .shop_table {
    background: #fff !important;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-top: 30px;
    padding: 0;
}

/* Título de totales del carrito */
.woocommerce-cart .cart_totals h2,
.woocommerce-cart .cart_totals .woocommerce-cart-details__title {
    background: none !important;
    box-shadow: none !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    font-size: 28px !important;
    font-weight: 600;
    color: #43B195;
}

/* Tabla del carrito */
.woocommerce-cart table.shop_table {
    background: #fff !important;
    border: none !important;
    box-shadow: none !important;
}

/* Cabeceras de tabla */
.woocommerce-cart table.shop_table th {
    background: #faf6ef !important;

    text-transform: uppercase;
    font-size: 0.85rem !important;
    letter-spacing: 0.5px;
    border: none !important;
}

/* Filas de tabla */
.woocommerce-cart table.shop_table td {
    border: none !important;
    padding: 14px 18px !important;
    font-size: 0.95rem !important;
}

/* Filas pares con fondo claro */
.woocommerce-cart table.shop_table tr:nth-child(even) td {
    background: #fafafa !important;
}

/* Totales de tabla */
.woocommerce-cart table.shop_table tfoot th,
.woocommerce-cart table.shop_table tfoot td {
    font-weight: 600 !important;
}

/* Última fila de totales destacada */
.woocommerce-cart table.shop_table tfoot tr:last-child td {
    font-size: 1.05rem !important;
    color: var(--e-global-color-primary);
}

/* Enllaços productes */
.woocommerce-cart table.shop_table a {
    color: var(--e-global-color-primary);
    font-weight: 500;
    text-decoration: none !important;
}

/* Subrayado en hover de enlaces */
.woocommerce-cart table.shop_table a:hover {
    text-decoration: underline !important;
}


/* Botones WooCommerce generales */
.woocommerce-cart .wc-block-components-button,
.woocommerce-cart .wc-block-components-button:hover,
.woocommerce-cart .button,
.woocommerce-cart a.button,
.woocommerce-cart button.button,
.woocommerce-cart input.button,
.woocommerce-cart .button.alt,
.wc-block-components-button,
.wc-block-components-button:hover,
.woocommerce #place_order,
.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .button.alt {
    background: var(--e-global-color-primary) !important;
    color: var(--e-global-color-secondary) !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: var(--wc-radius) !important;
    text-decoration: none !important;
    letter-spacing: 0.5px !important;
    box-shadow: none !important;
    ;
}

/* Hover de botones */
.woocommerce-cart .wc-block-components-button:hover,
.woocommerce-cart .button:hover,
.woocommerce-cart a.button:hover,
.woocommerce-cart button.button:hover,
.woocommerce-cart input.button:hover,
.woocommerce-cart .button.alt:hover,
.wc-block-components-button:hover,
.woocommerce #place_order:hover,
.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce .button.alt:hover {
    background: var(--e-global-color-text) !important;
    color: var(--e-global-color-secondary) !important;
}

/* Ocultar descripción de productos en checkout */
.wc-block-components-product-metadata__description {
    display: none;
}

/* Reducir espacio entre productos del resumen */
.wc-block-components-order-summary-item {
    margin-bottom: 6px !important;
    /* menos espacio abajo */
    padding-bottom: 6px !important;
    border-bottom: 1px solid #e5e5e5;
    /* línea suave separadora */
}

/* Elimina la última línea del último producto */
.wc-block-components-order-summary-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Contenedor de tabla "Detalles del pedido" 
.woocommerce-order-details,
.woocommerce-table--order-details {
    background: #fff !important;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-top: 30px;
    padding: 0;
}
*/
/* Padding de encabezados de detalles del pedido */
.woocommerce table.shop_table.order_details thead th,
.woocommerce table.shop_table.order_details th {
    padding: 10px;
}

/* Título sin fondo ni sombra */
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content .woocommerce-order-details__title {
    background: none;
    box-shadow: none;
    padding: 10px !important;
    font-size: 2rem;
    color: var(--e-global-color-primary);
    font-weight: 600;
}

/* Padding especial para h2 en encabezado */
.woocommerce-order-details header h2 {
    padding: 30px 0 10px !important;
}

/* Subtítulos h3 sin fondo */
.woocommerce-MyAccount-content h3 {
    background: none !important;
    box-shadow: none !important;
    padding: 10px;
    font-size: 2.8rem;
    color: var(--e-global-color-primary);
}

/* Tabla de detalles del pedido */
.woocommerce-order-details table.shop_table,
.woocommerce-table--order-details.shop_table {
    background: var(--e-global-color-secondary);
    border: none !important;
    box-shadow: none !important;
}

/* Cabeceras de tabla */
.woocommerce-order-details table.shop_table th {
    background: var(--e-global-color-secondary);
    text-transform: uppercase;
    font-size: 1.5rem !important;
    letter-spacing: 0.5px;
    border: none !important;
}

/* Filas de tabla */
.woocommerce-order-details table.shop_table td {
    border: none !important;
    padding: 14px 18px !important;
    background: var(--e-global-color-secondary);
    font-size: 1.8rem;
    color: var(--e-global-color-text) !important;
}

/* Totales del pedido */
.woocommerce-order-details tfoot th,
.woocommerce-order-details tfoot td {
    font-weight: 600 !important;
}


/* Enlaces de productos en detalles */
.woocommerce-order-details table.shop_table a {
    color: var(--e-global-color-primary);
    font-weight: 500;
    text-decoration: none !important;
}

/* Subrayado en hover */
.woocommerce-order-details table.shop_table a:hover {
    text-decoration: underline !important;
}

/* Prompt de inicio de sesión en checkout */
.wc-block-checkout__login-prompt {
    background: var(--e-global-color-primary);
    color: #fff !important;
    font-weight: 600 !important;
    padding: 3px 7px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    display: inline-block;
}

/* Hover del prompt de login */
.wc-block-checkout__login-prompt:hover {
    background: #37957F !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* Formularios centrados con ancho máximo */
.woocommerce form.checkout_coupon,
.woocommerce form.login,
.woocommerce form.register {
    max-width: 666px;
    margin: 0 auto;
}

/* Peso de fuente para títulos de componentes */
.wc-block-components-title.wc-block-components-title,
.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title .wc-block-components-checkout-order-summary__title-text {
    font-weight: 600 !important;
}

/* Tamaños de fuente para instrucciones y taxes */
.wc-stripe-payment-method-instruction,
.wc-block-components-totals-footer-item .wc-block-components-totals-footer-item-tax {
    font-size: 1.4rem;
}

/* Tamaño de fuente estándar para componentes de checkout */
.wc-block-components-checkbox__label,
.wc-block-components-address-card address .wc-block-components-address-card__address-section--secondary,
.wc-block-components-address-card address .wc-block-components-address-card__address-section--primary,
.wc-block-components-radio-control__description-group .wc-block-components-radio-control__description,
.wc-block-components-radio-control__description-group .wc-block-components-radio-control__label,
.wc-block-components-radio-control__label-group .wc-block-components-radio-control__description,
.wc-block-components-radio-control__label-group .wc-block-components-radio-control__label,
.wc-block-components-address-card,
.wc-block-components-formatted-money-amount,
.wc-block-components-panel__button,
.wc-block-components-totals-item__label {
    font-size: 1.6rem;
}

/* Tamaño de fuente para labels y botón de volver al carrito */
.wc-block-components-checkout-return-to-cart-button,
.wc-block-components-form .wc-block-components-text-input label,
.wc-block-components-text-input label {
    font-size: 1.8rem !important;
}


/* Estilos de inputs de formulario */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.wc-block-components-form .wc-block-components-text-input input[type=email],
.wc-block-components-form .wc-block-components-text-input input[type=number],
.wc-block-components-form .wc-block-components-text-input input[type=password],
.wc-block-components-form .wc-block-components-text-input input[type=tel],
.wc-block-components-form .wc-block-components-text-input input[type=text],
.wc-block-components-form .wc-block-components-text-input input[type=url],
.wc-block-components-text-input input[type=email],
.wc-block-components-text-input input[type=number],
.wc-block-components-text-input input[type=password],
.wc-block-components-text-input input[type=tel],
.wc-block-components-text-input input[type=text],
.wc-block-components-text-input input[type=url],
.wc-block-components-textarea {
    background-color: var(--bg) !important;
    border: 1px solid var(--e-global-color-text) !important;
    border-radius: var(--wc-radius) !important;
    box-shadow: none !important;
    color: var(--e-global-color-text) !important;
    font-family: inherit !important;
    font-size: 1.6rem !important;
    height: auto !important;
    letter-spacing: inherit !important;
    line-height: 1em !important;

}

/* Select personalizado */
.wc-blocks-components-select .wc-blocks-components-select__select {
    background-color: var(--bg) !important;
    border: 1px solid var(--e-global-color-text) !important;
    border-radius: var(--wc-radius) !important;
    color: var(--e-global-color-text) !important;
}

/* Estados de focus en inputs */
.woocommerce form .form-row input:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.wc-block-components-textarea:focus,
.wc-block-components-form .wc-block-components-text-input input[type=email]:focus,
.wc-block-components-form .wc-block-components-text-input input[type=number]:focus,
.wc-block-components-form .wc-block-components-text-input input[type=password]:focus,
.wc-block-components-form .wc-block-components-text-input input[type=tel]:focus,
.wc-block-components-form .wc-block-components-text-input input[type=text]:focus,
.wc-block-components-form .wc-block-components-text-input input[type=url]:focus,
.wc-block-components-text-input input[type=email]:focus,
.wc-block-components-text-input input[type=number]:focus,
.wc-block-components-text-input input[type=password]:focus,
.wc-block-components-text-input input[type=tel]:focus,
.wc-block-components-text-input input[type=text]:focus,
.wc-block-components-text-input input[type=url]:focus,
.wc-block-components-form .wc-block-components-text-input input:-webkit-autofill:focus,
.wc-block-components-form .wc-block-components-text-input.is-active input[type=email]:focus,
.wc-block-components-form .wc-block-components-text-input.is-active input[type=number]:focus,
.wc-block-components-form .wc-block-components-text-input.is-active input[type=password]:focus,
.wc-block-components-form .wc-block-components-text-input.is-active input[type=tel]:focus,
.wc-block-components-form .wc-block-components-text-input.is-active input[type=text]:focus,
.wc-block-components-form .wc-block-components-text-input.is-active input[type=url]:focus,
.wc-block-components-text-input input:-webkit-autofill:focus,
.wc-block-components-text-input.is-active input[type=email]:focus,
.wc-block-components-text-input.is-active input[type=number]:focus,
.wc-block-components-text-input.is-active input[type=password]:focus,
.wc-block-components-text-input.is-active input[type=tel]:focus,
.wc-block-components-text-input.is-active input[type=text]:focus,
.wc-block-components-text-input.is-active input[type=url]:focus {
    box-shadow: none !important;
    border: 1px solid var(--e-global-color-accent) !important;
    color: var(--e-global-color-text) !important;
    outline: none !important;
}

/* Estados de focus y hover para botones */
[type=button]:focus,
[type=button]:hover,
[type=submit]:focus,
[type=submit]:hover,
button:focus,
button:hover {
    background-color: var(--e-global-color-text);
}

/* Alineación ancha sin márgenes laterales */
.alignwide {
    margin-inline: 0px;
}

/* Altura mínima automática para botones */
body:not(.woocommerce-block-theme-has-button-styles) .wc-block-components-button:not(.is-link) {
    min-height: auto !important;
}

/* Ocultar totales de checkout y carrito */
.wp-block-woocommerce-checkout-order-summary-totals-block,
.wcs-recurring-totals-panel__details {
    display: none;
}
/* Ocultar add note */
.wc-block-checkout__add-note{
    display: none !important;
}
/* CAMPO CHECKOT PERSONALIZADO */
.wc-block-components-address-form__thwcfe-block-fact input{ 
    display: none !important;
}
.wc-block-components-address-form__thwcfe-block-fact label span{ 
    color: var(--e-global-color-primary);
    font-size: var(--wp--preset--font-size--medium, 22px);
    font-weight: 600;
    line-height: 27px;
}
wc-block-components-additional-fields-list{
    display: none !important;
}
/* Media query para pantallas grandes */
@media screen and (max-width: 1440px) {}

/* Media query para tablets */
@media screen and (max-width: 1025px) {}

/* Media query para móviles */
@media screen and (max-width: 760px) {

    /* Filas de carrito en columna para móviles */
    .is-medium table.wc-block-cart-items .wc-block-cart-items__row,
    .is-mobile table.wc-block-cart-items .wc-block-cart-items__row,
    .is-small table.wc-block-cart-items .wc-block-cart-items__row {
        display: flex !important;
        flex-direction: column !important;
        align-content: center !important;
        flex-wrap: wrap;
        align-items: center;
    }

    /* Contenedor de artículo en columna */
    .wc-block-cart-item__wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    /* Cantidad de artículo en columna para móviles */
    .wc-block-cart-item__quantity {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: wrap;
        align-items: center !important;
        padding: 0px;
        gap: 0px;
        width: 100%;
        padding-bottom: 10px;
    }

    /* Imagen de producto a ancho completo en móviles */
    .wc-block-cart-item__image {
        min-width: 90vw;
    }
    /* Padding en checkout y carrito */
    .wc-block-components-sidebar-layout {
        padding: 0 20px;
    }
}