.io-price-scales-wrapper {
    margin: 25px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.io-price-scales-title {
    font-size: 1.3em;
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-weight: 700;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.io-price-scales-table-container {
    overflow-x: auto;
    margin: 15px 0;
}

.io-price-scales-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    table-layout: fixed; /* Fuerza ancho fijo para evitar saltos */
}

.io-price-scales-table thead {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
}

.io-price-scales-table th {
    padding: 14px 16px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95em;
    letter-spacing: 0.5px;
    white-space: nowrap; /* Evita saltos de línea */
}

.io-price-scales-table td {
    padding: 14px 16px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    word-wrap: break-word;
    min-width: 120px; /* Ancho mínimo para cada columna */
}

.io-price-scales-table tbody tr {
    transition: background-color 0.3s ease;
}

.io-price-scales-table tbody tr:hover {
    background: #f8fafc;
}

/* Columna CANTIDAD */
.io-price-scales-table .io-quantity {
    font-weight: 700;
    color: #2c3e50;
    font-size: .85em;
    white-space: nowrap; /* IMPORTANTE: evita saltos de línea */
    overflow: hidden;
    text-overflow: ellipsis;
}

.io-quantity-cell {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.io-quantity-number {
    font-size: 1.1em;
    font-weight: 700;
    color: #2c3e50;
    white-space: nowrap;
}

.io-quantity-unit {
    font-size: 0.85em;
    color: #7f8c8d;
    margin-top: 2px;
}

/* Columna PRECIO UNITARIO */
.io-price-scales-table .io-unit-price {
    color: #27ae60;
    font-weight: 600;
    font-size: .85em;
    position: relative;
    white-space: nowrap;
}

.io-unit-price-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.io-unit-price-amount {
    font-size: 1.1em;
    font-weight: 700;
    color: #27ae60;
}

/* Columna PRECIO TOTAL */
.io-price-scales-table .io-total-price {
    color: #e74c3c;
    font-weight: 600;
    font-size: .85em;
    white-space: nowrap;
}

.io-total-price-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.io-total-price-amount {
    font-size: 1.1em;
    font-weight: 700;
    color: #e74c3c;
}

/* Porcentaje de aumento */
.io-price-increase {
    margin-top: 5px;
    font-size: 0.8em;
    color: #f39c12;
    font-weight: normal;
    background: #fff9e6;
    padding: 2px 6px;
    border-radius: 10px;
    display: inline-block;
}

/* Mejor precio (primera fila) */
.io-best-price-row {
    background: #f0f8ff !important;
    border-left: 4px solid #3498db;
}

.io-best-price-badge {
    display: inline-block;
    background: #3498db;
    color: white;
    font-size: 0.7em;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 5px;
    vertical-align: middle;
}

/* Mensajes */
.io-message {
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    color: #856404;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .io-price-scales-wrapper {
        padding: 15px;
        margin: 20px 0;
    }
    
    .io-price-scales-table {
        table-layout: auto; /* Auto en móviles para mejor ajuste */
    }
    
    .io-price-scales-table th,
    .io-price-scales-table td {
        padding: 10px 8px;
        font-size: 0.9em;
        min-width: 90px; /* Menor ancho mínimo en móviles */
    }
    
    .io-price-scales-title {
        font-size: 1.1em;
    }
    
    .io-quantity-number,
    .io-unit-price-amount,
    .io-total-price-amount {
        font-size: 1em;
    }
    
    /* Ocultar "pz" en móviles muy pequeños */
    @media (max-width: 480px) {
        .io-quantity-unit {
            display: none;
        }
        
        .io-price-increase {
            font-size: 0.7em;
            padding: 1px 4px;
        }
        
        .io-price-scales-table th,
        .io-price-scales-table td {
            padding: 8px 4px;
            font-size: 0.85em;
        }
        
        .io-price-scales-wrapper {
            padding: 12px;
        }
    }
}

/* Para pantallas muy grandes */
@media (min-width: 1200px) {
    .io-price-scales-wrapper {
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .io-price-scales-table td {
        min-width: 150px;
    }
}

/* Agrega al final de frontend.css */

.io-price-scales-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
    text-align: center;
}

.io-note {
    margin: 0;
    color: #fb0000  ;
    font-size: 1.05em;
    font-style: italic;
}

/* Estilos específicos para productos TAZAS */
.io-tazas-notice {
    background: #fff8e1;
    border: 1px solid #ffd54f;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 15px;
}

.io-tazas-message {
    margin: 0;
    color: #5d4037;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95em;
}

.io-tazas-message .dashicons {
    color: #ff9800;
}

.io-tazas-table {
    background: #fffbf0;
}

.io-tazas-table thead {
    background: linear-gradient(135deg, #5d4037 0%, #8d6e63 100%);
}

.io-tazas-row {
    background: #fffdf6;
}

.io-tazas-row:hover {
    background: #fff8e1 !important;
}

/* Badge para TAZAS */
.io-tazas-badge {
    display: inline-block;
    background: #ff9800;
    color: white;
    font-size: 0.7em;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 5px;
    vertical-align: middle;
}

/* Para precios iguales en TAZAS */
.io-price-same {
    margin-top: 5px;
    font-size: 0.8em;
    color: #5d4037;
    font-weight: normal;
    background: #ffecb3;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
}

/* Explicación TAZAS */
.io-tazas-explanation {
    margin-top: 15px;
    padding: 12px 15px;
    background: #f5f5f5;
    border-radius: 6px;
    border-left: 4px solid #8d6e63;
}

.io-tazas-explanation .io-note {
    color: #5d4037;
    margin: 0;
    font-size: 0.9em;
    line-height: 1.4;
}

/* Ajuste para filas TAZAS - todas iguales */
.io-tazas-row .io-quantity-number {
    color: #5d4037;
    font-weight: 700;
}

.io-tazas-row .io-unit-price-amount {
    color: #388e3c; /* Verde más suave */
}

.io-tazas-row .io-total-price-amount {
    color: #d32f2f; /* Rojo más suave */
}

/* Quitar hover effect excesivo en TAZAS */
.io-tazas-row:hover .io-unit-price-amount,
.io-tazas-row:hover .io-total-price-amount {
    color: inherit;
}

/* Asegurar que las cantidades no se partan */
.io-tazas-row .io-quantity-cell {
    white-space: nowrap;
}

/* Responsive para TAZAS */
@media (max-width: 768px) {
    .io-tazas-message {
        font-size: 0.9em;
    }
    
    .io-tazas-explanation .io-note {
        font-size: 0.85em;
    }
    
    .io-tazas-badge,
    .io-price-same {
        font-size: 0.65em;
        padding: 1px 6px;
    }
}

@media (max-width: 480px) {
    .io-tazas-notice {
        padding: 10px 12px;
    }
    
    .io-tazas-message {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .io-tazas-message .dashicons {
        align-self: center;
    }
}