/**
 * DTF Custom Cart - Estilos para Carrito Personalizado
 * Versión optimizada: badges pequeños, sin imagen, tabla de descuentos a la izquierda
 */

/* ✅ CONTAINER PRINCIPAL */
.dtf-custom-cart {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

/* ✅ HEADER DEL CARRITO */
.dtf-cart-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    grid-column: 1 / -1;
}

.dtf-cart-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
    font-weight: 700;
}

.dtf-cart-header p {
    margin: 0;
    font-size: 1.1em;
    opacity: 0.9;
}

/* ✅ TABLA DEL CARRITO */
.dtf-cart-table {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.dtf-cart-header-row {
    display: grid;
    grid-template-columns: 4fr 1fr 80px; /* PRODUCTO MUCHO MÁS ANCHO | CANTIDAD | ACCIONES */
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
}

.dtf-product-row {
    display: grid;
    grid-template-columns: 4fr 1fr 80px; /* PRODUCTO MUCHO MÁS ANCHO | CANTIDAD | ACCIONES */
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    align-items: flex-start;
    transition: background-color 0.3s ease;
}

.dtf-product-row:hover {
    background-color: #f8f9fa;
}

.dtf-product-row:last-child {
    border-bottom: none;
}

/* ✅ COLUMNAS DEL PRODUCTO (SIN IMAGEN) */
.dtf-col-product {
    display: flex;
    align-items: flex-start;
    min-width: 0; /* PERMITIR QUE SE ENCOJA SI ES NECESARIO */
    flex: 1; /* TOMAR TODO EL ESPACIO DISPONIBLE */
}

.dtf-product-info {
    display: flex;
    align-items: flex-start;
    flex: 1;
    min-width: 0; /* PERMITIR QUE SE ENCOJA SI ES NECESARIO */
}

.dtf-product-details {
    flex: 1;
    min-width: 0;
    padding-right: 20px; /* ESPACIO ADICIONAL PARA LA INFORMACIÓN */
}

.dtf-product-title {
    margin: 0 0 8px 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #212529;
    line-height: 1.3;
}

.dtf-product-title a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dtf-product-title a:hover {
    color: #764ba2;
}

/* ✅ BADGES DE INFORMACIÓN DTF - MÁS PEQUEÑOS */
.dtf-file-info-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.dtf-file-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 8px;
    font-size: 0.75em;
    font-weight: 500;
    border: 1px solid #bbdefb;
    white-space: nowrap;
}

.dtf-file-badge.dtf-total-meters {
    background: #e8f5e8;
    color: #2e7d32;
    border-color: #c8e6c9;
}

.dtf-file-badge.dtf-quantity {
    background: #fff3e0;
    color: #f57c00;
    border-color: #ffcc02;
}

.dtf-file-badge.dtf-price-per-unit {
    background: #f3e5f5;
    color: #7b1fa2;
    border-color: #ce93d8;
}

.dtf-file-badge.dtf-subtotal {
    background: #f3e5f5;
    color: #7b1fa2;
    border-color: #ce93d8;
}

/* ✅ BADGE PRECIO POR COPIA - COLOR VERDE AZULADO */
.dtf-file-badge.dtf-file-price-per-copy-badge {
    background: #e0f2f1;
    color: #00695c;
    border-color: #b2dfdb;
}

/* ✅ BADGE METROS TOTALES INDIVIDUALES - COLOR NARANJA */
.dtf-file-badge.dtf-file-total-meters-badge {
    background: #fff8e1;
    color: #e65100;
    border-color: #ffcc80;
}

.dtf-file-badge .badge-icon {
    margin-right: 4px;
    font-size: 0.9em;
}

/* ✅ COLUMNAS DE PRECIO Y SUBTOTAL */
.dtf-col-price,
.dtf-col-subtotal {
    font-weight: 600;
    color: #28a745;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ✅ COLUMNA DE CANTIDAD - MÁS COMPACTA */
.dtf-col-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px; /* ANCHO MÍNIMO PARA LA CANTIDAD */
    max-width: 120px; /* ANCHO MÁXIMO PARA LA CANTIDAD */
}

.dtf-col-quantity .quantity {
    display: flex;
    align-items: center;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.dtf-col-quantity .quantity input {
    width: 60px;
    padding: 8px 12px;
    border: none;
    text-align: center;
    font-size: 1em;
    font-weight: 600;
    color: #495057;
    background: white;
}

.dtf-col-quantity .quantity input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.dtf-col-quantity .quantity .qty {
    border: none;
    background: transparent;
    width: 85px !important;
}

/* ✅ COLUMNA DE ACCIONES - COMPACTA */
.dtf-col-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px; /* ANCHO MÍNIMO PARA LAS ACCIONES */
    max-width: 80px; /* ANCHO MÁXIMO PARA LAS ACCIONES */
}

.dtf-remove-btn {
    background: #dc3545 !important;
    color: white !important;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.dtf-remove-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* ✅ ACCIONES DEL CARRITO */
.dtf-cart-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

/* ✅ BOTÓN DE ACTUALIZAR CARRITO - FUNCIONALIDAD NATIVA */
.dtf-update-cart {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    z-index: 10;
    user-select: none;
    pointer-events: auto;
}

.dtf-update-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.dtf-update-cart:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ✅ TABLA DE DESCUENTOS POR VOLUMEN - EN LA COLUMNA IZQUIERDA */
.dtf-volume-discounts {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    grid-column: 1;
    width: 100%;
}

.dtf-volume-discounts h3 {
    margin: 0 0 15px 0;
    font-size: 1.3em;
    font-weight: 700;
    color: #212529;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.dtf-volume-discounts table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.dtf-volume-discounts th,
.dtf-volume-discounts td {
    padding: 8px 10px;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.9em;
}

.dtf-volume-discounts th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.dtf-volume-discounts td {
    color: #6c757d;
}

.dtf-volume-discounts .highlight {
    background: #e8f5e8;
    color: #2e7d32;
    font-weight: 600;
}

/* ✅ SIDEBAR DEL CARRITO */
.dtf-cart-sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 25px;
    grid-column: 2;
    position: sticky;
    top: 20px;
}

.dtf-cart-summary h3 {
    margin: 0 0 20px 0;
    font-size: 1.5em;
    font-weight: 700;
    color: #212529;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

/* ✅ SECCIÓN DE CUPONES */
.dtf-coupon-section {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.dtf-coupon-section h4 {
    margin: 0 0 15px 0;
    font-size: 1.2em;
    font-weight: 600;
    color: #495057;
    text-align: center;
}

.dtf-coupon-input-group {
    display: flex;
    gap: 10px;
}

.dtf-coupon-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.dtf-coupon-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.dtf-apply-coupon {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dtf-apply-coupon:hover {
    background: #218838;
    transform: translateY(-1px);
}

.dtf-apply-coupon:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* ✅ TOTALES DEL CARRITO */
.dtf-cart-totals {
    margin: 0;
}

.dtf-cart-totals .cart-collaterals {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.dtf-cart-totals .cart-collaterals h2 {
    margin: 0 0 15px 0;
    font-size: 1.3em;
    font-weight: 600;
    color: #495057;
    text-align: center;
}

.dtf-cart-totals .cart-collaterals .cart_totals {
    margin: 0;
}

.dtf-cart-totals .cart-collaterals .cart_totals table {
    width: 100%;
    border-collapse: collapse;
}

.dtf-cart-totals .cart-collaterals .cart_totals th,
.dtf-cart-totals .cart-collaterals .cart_totals td {
    padding: 10px 0;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.dtf-cart-totals .cart-collaterals .cart_totals th {
    font-weight: 600;
    color: #495057;
}

.dtf-cart-totals .cart-collaterals .cart_totals .order-total {
    font-weight: 700;
    font-size: 1.2em;
    color: #28a745;
}

.dtf-cart-totals .cart-collaterals .cart_totals .order-total th,
.dtf-cart-totals .cart-collaterals .cart_totals .order-total td {
    border-bottom: none;
    padding-top: 15px;
}

/* ✅ BOTÓN DE CHECKOUT */
.dtf-checkout-section {
    margin: 25px 0;
    text-align: center;
}

.dtf-checkout-btn {
    display: inline-block;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.dtf-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    color: white;
}

/* ✅ MEJORAS PARA FORMULARIOS NATIVOS DE WOOCOMMERCE */
.dtf-custom-cart .woocommerce-cart-form {
    position: relative;
}

.dtf-custom-cart .woocommerce-form-coupon {
    margin: 0;
}

/* ✅ RESPONSIVE */
@media (max-width: 1024px) {
    .dtf-custom-cart {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dtf-cart-sidebar {
        grid-column: 1;
        position: static;
    }
}

@media (max-width: 768px) {
    .dtf-cart-header h1 {
        font-size: 2em;
    }
    
    .dtf-cart-header-row,
    .dtf-product-row {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    
    .dtf-col-product {
        flex-direction: column;
        text-align: center;
    }
    
    .dtf-product-info {
        flex-direction: column;
        text-align: center;
    }
    
    .dtf-file-info-badges {
        justify-content: center;
    }
    
    .dtf-cart-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .dtf-coupon-input-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .dtf-custom-cart {
        padding: 15px;
    }
    
    .dtf-cart-header {
        padding: 15px;
    }
    
    .dtf-cart-header h1 {
        font-size: 1.8em;
    }
    
    .dtf-product-row {
        padding: 15px;
    }
    
    .dtf-cart-sidebar {
        padding: 20px;
    }
} 

/* ✅ RESUMEN PERSONALIZADO DEL CARRITO DTF - BADGES EN FILA */
.dtf-cart-info-summary {
    margin-bottom: 20px;
}

.dtf-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    justify-content: space-between;
}

.dtf-summary-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.dtf-summary-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dtf-summary-icon {
    font-size: 1.3em;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #667eea;
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.dtf-summary-value {
    font-size: 0.9em;
    font-weight: 600;
    color: #495057;
    line-height: 1.2;
}

/* ✅ RESPONSIVE PARA EL RESUMEN DEL CARRITO */
@media (max-width: 768px) {
    .dtf-summary-grid {
        flex-direction: column;
        gap: 10px;
    }
    
    .dtf-summary-item {
        padding: 12px 8px;
    }
    
    .dtf-summary-icon {
        width: 30px;
        height: 30px;
        font-size: 1.2em;
    }
} 

/* ✅ OCULTAR SOLO LA TABLA DE TOTALES DEL CARRITO, PERO MANTENER EL BOTÓN DE CHECKOUT */
.dtf-cart-totals .cart-collaterals {
    display: none !important;
}

/* ✅ OCULTAR TOTALES DEL CARRITO - SELECTORES ESPECÍFICOS (RESPALDO) */
.dtf-cart-sidebar .dtf-cart-totals .cart-collaterals,
.dtf-cart-sidebar .woocommerce-cart-totals .cart-collaterals,
.dtf-cart-sidebar .cart_totals,
.dtf-cart-sidebar .cart-subtotal,
.dtf-cart-sidebar .order-total {
    display: none !important;
}

/* ✅ OCULTAR SOLO LA TABLA DE TOTALES, NO EL CONTENEDOR COMPLETO */
.dtf-cart-sidebar .dtf-cart-totals .cart-collaterals * {
    display: none !important;
}

/* ✅ MOSTRAR EL BOTÓN DE CHECKOUT */
.dtf-cart-sidebar .dtf-cart-totals {
    display: block !important;
}

/* ✅ ESTILOS PARA EL BOTÓN DE CHECKOUT */
.dtf-cart-sidebar .dtf-cart-totals .checkout-button,
.dtf-cart-sidebar .dtf-cart-totals .wc-proceed-to-checkout,
.dtf-cart-sidebar .dtf-cart-totals .proceed-to-checkout,
.dtf-cart-sidebar .dtf-cart-totals .button,
.dtf-cart-sidebar .dtf-cart-totals input[type="submit"],
.dtf-cart-sidebar .dtf-cart-totals .btn {
    display: block !important;
    width: 100%;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white !important;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    margin-top: 20px;
    border: none;
    cursor: pointer;
}

.dtf-cart-sidebar .dtf-cart-totals .checkout-button:hover,
.dtf-cart-sidebar .dtf-cart-totals .wc-proceed-to-checkout:hover,
.dtf-cart-sidebar .dtf-cart-totals .proceed-to-checkout:hover,
.dtf-cart-sidebar .dtf-cart-totals .button:hover,
.dtf-cart-sidebar .dtf-cart-totals input[type="submit"]:hover,
.dtf-cart-sidebar .dtf-cart-totals .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    color: white !important;
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
}

/* ✅ ESTILOS ESPECÍFICOS PARA WOOCOMMERCE */
.dtf-cart-sidebar .dtf-cart-totals .wc-proceed-to-checkout {
    margin: 0 !important;
    padding: 0 !important;
}

.dtf-cart-sidebar .dtf-cart-totals .wc-proceed-to-checkout .checkout-button {
    margin: 0 !important;
    padding: 15px 30px !important;
}

/* ✅ FORZAR VISIBILIDAD DEL BOTÓN DE CHECKOUT */
.dtf-cart-sidebar .dtf-cart-totals .wc-proceed-to-checkout,
.dtf-cart-sidebar .dtf-cart-totals .wc-proceed-to-checkout * {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ✅ ESTILOS DE RESPALDO PARA CUALQUIER BOTÓN DE CHECKOUT */
.dtf-cart-sidebar .dtf-cart-totals a[href*="checkout"],
.dtf-cart-sidebar .dtf-cart-totals a[href*="checkout"] * {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ✅ ESTILOS PARA EL BOTÓN DE CHECKOUT PERSONALIZADO */
.dtf-custom-checkout-section {
    margin-top: 20px;
    text-align: center;
    grid-column: 1 / -1; /* Ocupar todo el ancho del grid */
    width: 100%;
    display: block;
}

.dtf-checkout-button {
    display: inline-block !important;
    width: 100%;
    max-width: 100%;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white !important;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    border: none;
    cursor: pointer;
    margin: 0;
    box-sizing: border-box;
}

.dtf-checkout-button:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    color: white !important;
    text-decoration: none;
}

.dtf-checkout-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.3);
}

/* ✅ FORZAR VISIBILIDAD DEL BOTÓN PERSONALIZADO */
.dtf-custom-checkout-section,
.dtf-custom-checkout-section *,
.dtf-checkout-button,
.dtf-checkout-button * {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1000 !important;
}

.dtf-checkout-button {
    display: inline-block !important;
}

/* ✅ ALINEACIÓN PERFECTA DEL BOTÓN EN EL GRID */
.dtf-summary-grid .dtf-custom-checkout-section {
    grid-column: 1 / -1;
    margin-top: 20px;
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.dtf-summary-grid .dtf-checkout-button {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 15px 30px;
}

/* ✅ RESPONSIVE PARA EL BOTÓN DE CHECKOUT */
@media (max-width: 768px) {
    .dtf-checkout-button {
        padding: 12px 20px;
        font-size: 1em;
    }
}

/* ✅ ESTILOS PARA LOS BOTONES DEL CARRITO */
.dtf-cart-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.dtf-update-cart,
.dtf-add-more-files {
    pointer-events: auto !important;
}

/* ✅ APLICAR COLORES FINALES Y ESTILOS */
.dtf-update-cart {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 1.1em !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

.dtf-update-cart:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
    color: white !important;
}

.dtf-update-cart:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3) !important;
}

.dtf-update-cart:disabled {
    background: #6c757d !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.6 !important;
}

.dtf-add-more-files {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 1.1em !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3) !important;
}

.dtf-add-more-files:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4) !important;
    color: white !important;
    text-decoration: none !important;
}

.dtf-add-more-files:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.3) !important;
}

/* ✅ FORZAR ALINEACIÓN DEL CONTAINER */
.dtf-cart-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
    margin: 30px 0 !important;
}

.dtf-cart-buttons {
    display: flex !important;
    gap: 15px !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 600px !important;
}

/* ✅ RESPONSIVE MEJORADO */
@media (max-width: 768px) {
    .dtf-cart-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .dtf-update-cart,
    .dtf-add-more-files {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .dtf-cart-actions {
        margin: 20px 0 !important;
        padding: 0 15px !important;
    }
}

/* ✅ PREVENIR CONFLICTOS CON TEMAS DE WOOCOMMERCE */
.woocommerce .dtf-update-cart,
.woocommerce .dtf-add-more-files,
.woocommerce-cart .dtf-update-cart,
.woocommerce-cart .dtf-add-more-files {
    all: unset !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0 30px !important;
    border-radius: 8px !important;
    font-size: 1.1em !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* ✅ APLICAR COLORES DESPUÉS DE RESET EN WOOCOMMERCE */
.woocommerce .dtf-update-cart,
.woocommerce-cart .dtf-update-cart {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

.woocommerce .dtf-add-more-files,
.woocommerce-cart .dtf-add-more-files {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3) !important;
}

/* ✅ HOVER STATES EN WOOCOMMERCE */
.woocommerce .dtf-update-cart:hover,
.woocommerce-cart .dtf-update-cart:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
    color: white !important;
}

.woocommerce .dtf-add-more-files:hover,
.woocommerce-cart .dtf-add-more-files:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4) !important;
    color: white !important;
}

/* ✅ RESPONSIVE PARA LOS BOTONES */
@media (max-width: 768px) {
    .dtf-cart-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .dtf-update-cart,
    .dtf-add-more-files {
        width: 100%;
        justify-content: center;
    }
}

/* ✅ RESPONSIVE EXTREMO PARA BADGES */
@media (max-width: 360px) {
    .dtf-file-info-badges {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
    
    .dtf-file-badge {
        min-width: 120px;
        justify-content: center;
    }
}

/* ✅ RESPONSIVE PARA LAS BADGES */
@media (max-width: 768px) {
    .dtf-file-info-badges {
        gap: 4px;
        margin: 8px 0;
        justify-content: center;
    }
    
    .dtf-file-badge {
        padding: 5px 8px;
        font-size: 0.7em;
        min-width: 80px;
        flex: 0 0 auto;
    }
    
    .dtf-file-badge .badge-icon {
        margin-right: 4px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .dtf-file-info-badges {
        gap: 3px;
        margin: 6px 0;
        justify-content: center;
    }
    
    .dtf-file-badge {
        padding: 4px 6px;
        font-size: 0.65em;
        min-width: 70px;
    }
}

/* Animación de pulso para badges en análisis */
@keyframes dtf-pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}
