/* ===================================
   WooCommerce Global Styles Override
   Aplicar estilos globales del tema
   =================================== */

/* Contenedores principales */
.woocommerce,
.woocommerce-page {
    font-family: var(--e-global-typography-text-font-family) !important;
    color: var(--e-global-color-text) !important;
    font-size: var(--e-global-typography-text-font-size) !important;
}

/* Tablas */
.woocommerce table,
.shop_table {
    font-family: var(--e-global-typography-text-font-family) !important;
    color: var(--e-global-color-text) !important;
    font-size: var(--e-global-typography-text-font-size) !important;
}

.woocommerce table td,
.woocommerce table th,
.shop_table td,
.shop_table th {
    font-family: var(--e-global-typography-text-font-family) !important;
    color: var(--e-global-color-text) !important;
    font-size: var(--e-global-typography-text-font-size) !important;
}

/* Mensajes y notificaciones */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    font-family: var(--e-global-typography-text-font-family) !important;
    color: var(--e-global-color-text) !important;
    font-size: var(--e-global-typography-text-font-size) !important;
    background-color: transparent !important;
    padding: 8px !important;
    border-radius: 12px !important;
}

/* Mensaje informativo - Azul */
.woocommerce-message,
.woocommerce-info {
    border: 1px solid #11B1EE !important;
}

/* Mensaje de error - Rojo */
.woocommerce-error {
    border: 1px solid #E1341E !important;
}

/* Mensaje de éxito - Verde */
.woocommerce-message.updated,
.woocommerce-message.success {
    border: 1px solid #67CB74 !important;
}

/* Links dentro de mensajes */
.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
    font-family: var(--e-global-typography-text-font-family) !important;
    color: #11B1EE !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.woocommerce-message a:hover,
.woocommerce-info a:hover,
.woocommerce-error a:hover {
    color: #E1341E !important;
}

/* Textos generales */
.woocommerce-result-count,
.woocommerce-ordering,
.woocommerce-pagination,
.woocommerce .quantity {
    font-family: var(--e-global-typography-text-font-family) !important;
    color: var(--e-global-color-text) !important;
    font-size: var(--e-global-typography-text-font-size) !important;
}

/* Suscripciones específicamente */
.shop_table.subscription_details,
.shop_table.subscription_details td,
.shop_table.subscription_details th {
    font-family: var(--e-global-typography-text-font-family) !important;
    color: var(--e-global-color-text) !important;
    font-size: var(--e-global-typography-text-font-size) !important;
}

/* Mi Cuenta */
.woocommerce-MyAccount-content,
.woocommerce-MyAccount-navigation {
    font-family: var(--e-global-typography-text-font-family) !important;
    color: var(--e-global-color-text) !important;
    font-size: var(--e-global-typography-text-font-size) !important;
}

/* Producto */
.product,
.product-title,
.product_title {
    font-family: var(--e-global-typography-text-font-family) !important;
    color: var(--e-global-color-text) !important;
}

/* Carrito */
.cart-contents,
.woocommerce-cart,
.woocommerce-checkout {
    font-family: var(--e-global-typography-text-font-family) !important;
    color: var(--e-global-color-text) !important;
    font-size: var(--e-global-typography-text-font-size) !important;
}

/* ===== TABLA DE PEDIDOS - ESPACIADO Y ESTILOS ===== */
.woocommerce-orders-table {
    border-collapse: separate !important;
    border-spacing: 0 4px !important;
    text-align: left !important;
}

.woocommerce-orders-table__row {
    height: auto !important;
}

/* Header sin padding lateral */
.woocommerce-orders-table thead th,
.woocommerce-orders-table__header {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    text-align: left !important;
    border: none !important;
}

/* Body sin padding lateral, solo vertical */
.woocommerce-orders-table tbody td,
.woocommerce-orders-table__cell {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    border: none !important;
    text-align: left !important;
    font-family: var(--e-global-typography-text-font-family) !important;
    color: var(--e-global-color-text) !important;
}

/* Número de pedido con fuente global */
.woocommerce-orders-table__cell-order-number a,
.woocommerce-orders-table__cell-order-number {
    font-family: var(--e-global-typography-text-font-family) !important;
    font-size: var(--e-global-typography-text-font-size) !important;
}

/* Alineación tablas de órdenes y detalles */
.shop_table.order_details,
.shop_table.order_details th,
.shop_table.order_details td,
.woocommerce-orders-table,
.woocommerce-orders-table th,
.woocommerce-orders-table td,
.woocommerce-MyAccount-orders,
.woocommerce-MyAccount-orders th,
.woocommerce-MyAccount-orders td {
    text-align: left !important;
}

/* ===== TABLA DESCARGAS ===== */
.woocommerce-table--order-downloads thead th {
    text-align: left !important;
}

.woocommerce-table--order-downloads tbody td {
    text-align: left !important;
}

.woocommerce-table--order-downloads td.download-remaining {
    text-align: center !important;
}

.woocommerce-MyAccount-downloads-file {
    min-width: 80px !important;
    white-space: nowrap !important;
}

/* ===== TABLA MÉTODOS DE PAGO ===== */
.woocommerce-MyAccount-paymentMethods thead th,
.woocommerce-MyAccount-paymentMethods tbody td {
    text-align: left !important;
}

.woocommerce-MyAccount-paymentMethods {
    margin-bottom: 24px !important;
}

/* Botón borrar → icono papelera rojo */
a.button.delete {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    color: #E1341E !important;
    font-size: 0;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

a.button.delete::before {
    content: "x";
    font-size: 18px;
    padding: 4px;
}

/* ===== FORMULARIO DE SUSCRIPCIONES ===== */
.form-row-wide#update_all_subscriptions_addresses_field {
    padding-top: 12px !important;
}

/* ===== TOGGLE DE RENOVACIÓN AUTOMÁTICA ===== */
.subscription-auto-renew-toggle {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* ===== MENSAJE SIN SUSCRIPCIONES ===== */
.no_subscriptions {
    margin-bottom: 12px !important;
}

.no-subscriptions-button {
    display: inline-block !important;
    background-color: #FFFFFF !important;
    color: #000000 !important;
    border: 3px solid #FFFFFF !important;
    padding: 12px 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    font-family: var(--e-global-typography-text-font-family) !important;
}

.no-subscriptions-button:hover {
    background-color: #E1341E !important;
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
}

/* ===== WIDGET SHOPPING CART ===== */
.widget_shopping_cart_content,
.wpr-woo-mini-cart {
    padding: 20px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.woocommerce-mini-cart-item img,
.woocommerce-mini-cart-item-image,
.wpr-mini-cart-image {
    display: none !important;
}

.wpr-mini-cart-separator {
    display: none !important;
}

.wpr-woo-mini-cart {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    width: 100% !important;
}

.woocommerce-mini-cart-item.mini_cart_item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 16px 0 !important;
    border-bottom: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.wpr-mini-cart-name-and-quantity {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    gap: 0 !important;
}

.wpr-mini-cart-product-name {
    margin: 0 !important;
}

.wpr-mini-cart-product-name a {
    font-size: 18px !important;
    font-weight: 500 !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
    display: inline !important;
    line-height: 1em !important;
    letter-spacing: 0.4px !important;
}

.wpr-mini-cart-product-name a:hover {
    color: #FFFFFF !important;
}

.wpr-mini-cart-name {
    color: #FFFFFF !important;
}

.wpr-mini-cart-quantity {
    margin: 0 !important;
    font-size: 18px !important;
    color: #FFFFFF !important;
    font-weight: 500 !important;
    line-height: 1em !important;
    letter-spacing: 0.4px !important;
}

.wpr-mini-cart-quantity .quantity {
    color: #FFFFFF !important;
    font-size: 18px !important;
    line-height: 1em !important;
    letter-spacing: 0.4px !important;
}

.wpr-mini-cart-quantity .woocommerce-Price-amount {
    color: #FFFFFF !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    line-height: 1em !important;
    letter-spacing: 0.4px !important;
}

.wpr-mini-cart-quantity .subscription-details {
    color: #FFFFFF !important;
    font-size: 18px !important;
    line-height: 1em !important;
    letter-spacing: 0.4px !important;
}

.wpr-mini-cart-remove {
    margin: 0 !important;
    padding: 0 !important;
}

.wpr-mini-cart-remove a.wpr-remove-item-from-mini-cart {
    font-size: 0 !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
    line-height: 1 !important;
    min-width: auto !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.wpr-mini-cart-remove a.wpr-remove-item-from-mini-cart::before {
    content: "" !important;
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm13-15h-3.5l-1-1h-5l-1 1H5v2h14V4z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
}

.wpr-mini-cart-remove a.wpr-remove-item-from-mini-cart:hover::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23E1341E"><path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm13-15h-3.5l-1-1h-5l-1 1H5v2h14V4z"/></svg>') !important;
}

.woocommerce-mini-cart__buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 16px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.woocommerce-mini-cart__buttons .button:not(.checkout) {
    width: 100% !important;
    background-color: #000000 !important;
    color: #FFFFFF !important;
    border: 1px solid #FFFFFF !important;
    padding: 20px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: block !important;
    text-align: center !important;
}

.woocommerce-mini-cart__buttons .button:not(.checkout):hover {
    background-color: #000000 !important;
    color: #11B1EE !important;
    border-color: #11B1EE !important;
}

.woocommerce-mini-cart__buttons .button.checkout {
    width: 100% !important;
    background-color: #FFFFFF !important;
    color: #000000 !important;
    border: 3px solid #FFFFFF !important;
    padding: 20px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: block !important;
    text-align: center !important;
}

.woocommerce-mini-cart__buttons .button.checkout:hover {
    background-color: #E1341E !important;
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
}

.woocommerce-mini-cart-empty {
    text-align: center !important;
    padding: 20px 0 !important;
    color: #666 !important;
    font-size: 18px !important;
}

/* ===== WIDGET CHECKOUT ===== */
@media (min-width: 768px) {
    .e-woocommerce-login-section .e-login-wrap-start .form-row-first,
    .e-woocommerce-login-section .e-login-wrap-start .form-row-last {
        float: none !important;
        width: 100% !important;
        clear: both !important;
        margin-right: 0 !important;
    }

    .e-woocommerce-login-section .e-login-wrap-start .clear {
        display: none !important;
    }

    .e-woocommerce-login-section .e-login-wrap {
        display: block !important;
    }

    .e-woocommerce-login-section .e-login-wrap-end {
        clear: both !important;
        width: 100% !important;
        margin-top: 12px !important;
    }

    .e-woocommerce-login-section .e-login-actions-wrap {
        display: flex !important;
        flex-direction: column !important;
        clear: both !important;
        gap: 12px;
    }
}

.e-woocommerce-login-section .e-login-wrap-end .form-row {
    width: 100% !important;
    margin: 0 !important;
}

.e-woocommerce-login-section .e-woocommerce-form-login-submit {
    width: 100% !important;
    background-color: #FFFFFF !important;
    color: #000000 !important;
    border: 3px solid #FFFFFF !important;
    padding: 12px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.e-woocommerce-login-section .e-woocommerce-form-login-submit:hover {
    background-color: #E1341E !important;
    color: #FFFFFF !important;
    border: 3px solid #FFFFFF !important;
}

.e-woocommerce-login-section .e-login-label {
    display: none !important;
}

.e-woocommerce-login-section .lost_password a {
    color: var(--links-normal-color, #5bc0de) !important;
    font-family: var(--e-global-typography-text-font-family), Sans-serif !important;
    font-size: var(--e-global-typography-text-font-size) !important;
    font-weight: var(--e-global-typography-text-font-weight) !important;
    letter-spacing: var(--e-global-typography-text-letter-spacing) !important;
    text-decoration: none !important;
}

.e-woocommerce-login-section .lost_password a:hover {
    text-decoration: underline !important;
}

.e-woocommerce-login-section .e-login-actions-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    clear: both !important;
}

.e-woocommerce-login-section .e-login-actions-wrap-start,
.e-woocommerce-login-section .e-login-actions-wrap-end {
    width: 100% !important;
}

.e-woocommerce-login-section .lost_password {
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-checkout-review-order-table {
    text-align: left !important;
}

.woocommerce-checkout-review-order-table thead th,
.woocommerce-checkout-review-order-table tbody td,
.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout-review-order-table tfoot td {
    text-align: left !important;
    padding-left: 0 !important;
}

.woocommerce-checkout-review-order-table .product-name,
.woocommerce-checkout-review-order-table .product-total {
    text-align: left !important;
}

#billing_first_name_field,
#billing_last_name_field {
    float: none !important;
    width: 100% !important;
    clear: both !important;
    margin-right: 0 !important;
}

.wc_payment_methods {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wc_payment_methods li {
    margin-bottom: 20px !important;
    padding: 0 !important;
    display: block !important;
}

.wc_payment_methods .wc_payment_method {
    display: block !important;
}

.wc_payment_methods input[type="radio"] {
    display: inline-block !important;
    width: auto !important;
    margin-right: 12px !important;
    cursor: pointer !important;
}

.wc_payment_methods label {
    display: inline !important;
    cursor: pointer !important;
    font-weight: 600 !important;
}

.payment_box.payment_method_ppcp-credit-card-gateway {
    display: block !important;
    flex-direction: unset !important;
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
}

.payment_box.payment_method_ppcp-credit-card-gateway .form-row {
    width: 100% !important;
    float: none !important;
    clear: both !important;
    margin-right: 0 !important;
    border: none !important;
    padding: 0 !important;
}

.payment_box.payment_method_ppcp-credit-card-gateway .form-row-first,
.payment_box.payment_method_ppcp-credit-card-gateway .form-row-last {
    width: 100% !important;
    float: none !important;
    clear: both !important;
    margin-right: 0 !important;
    border: none !important;
}

.wc-credit-card-form {
    display: block !important;
    width: 100% !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wc-credit-card-form .form-row {
    width: 100% !important;
    display: block !important;
    margin-bottom: 12px !important;
    margin-top: 12px !important;
}

[id^="zoid-paypal-card"] {
    width: 100% !important;
}

.woocommerce-SavedPaymentMethods-saveNew {
    display: block !important;
    width: 100% !important;
    clear: both !important;
    margin-top: 20px !important;
    padding: 0 !important;
    border: none !important;
}

.woocommerce-SavedPaymentMethods-saveNew input {
    display: inline-block !important;
    width: auto !important;
    margin-right: 8px !important;
}

.woocommerce-SavedPaymentMethods-saveNew label {
    display: inline !important;
}

/* ===== BOTÓN DE CUPÓN ===== */
.e-apply-coupon {
    background-color: #000000 !important;
    color: #FFFFFF !important;
    border: 3px solid #FFFFFF !important;
    padding: 12px 24px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-family: var(--e-global-typography-text-font-family) !important;
}

.e-apply-coupon:hover {
    background-color: #FFFFFF !important;
    color: #000000 !important;
    border-color: #FFFFFF !important;
}