/* WebRates Plugin Styles */

.webrates-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.webrates-box,
.webrates-box-single {
    border: 2px solid #0A8637;
    border-radius: 12px;
    padding: 2rem;
}

.webrates-box h3,
.webrates-box-single h3 {
    color: #0A8637;
    font-size: 24px;
    font-weight: 700;
}

.price-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-item:last-child {
    border-bottom: none;
}

.price-item .label {
    font-size: 20px;
}

.price-item .value {
    font-weight: 700;
    font-size: 20px;
}

/* Taules detallades */
.webrates-detail-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
}

.webrates-detail-table thead th {
    background: #0A8637;
    color: var(--global-palette9);
    padding: 4px 10px;
    font-size: 20px;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
}

.webrates-detail-table thead th:nth-child(1) {
    background: #C8161E;
}
.webrates-detail-table thead th:nth-child(2) {
    background: #E97F13;
}
.webrates-detail-table thead th:nth-child(3) {
    background: #FFCB00;
}
.webrates-detail-table thead th:nth-child(4) {
    background: #1198D5;
}
.webrates-detail-table thead th:nth-child(5) {
    background: #0563A8;
}

.webrates-detail-table tbody td {
    background-color: var(--global-palette9);
    color: #0A8637;
    padding: 0.75rem;
    text-align: center;
    border-bottom: 0;
}

.webrates-detail-table tbody td:nth-child(1) {
    color: #C8161E;
}
.webrates-detail-table tbody td:nth-child(2) {
    color: #E97F13;
}
.webrates-detail-table tbody td:nth-child(3) {
    color: #FFCB00;
}
.webrates-detail-table tbody td:nth-child(4) {
    color: #1198D5;
}
.webrates-detail-table tbody td:nth-child(5) {
    color: #0563A8;
}

.webrates-detail-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.webrates-detail-table tbody tr:hover {
    background-color: #e9f2d2;
}

/* Responsive */
@media (max-width: 768px) {
    .webrates-boxes {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .webrates-box {
        padding: 1rem;
    }
    
    .webrates-box h3 {
        font-size: 1.2rem;
    }
    
    .price-item {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
    
    .webrates-detail-table {
        font-size: 0.8rem;
    }
    
    .webrates-detail-table th,
    .webrates-detail-table td {
        padding: 0.5rem 0.25rem;
    }
}

@media (max-width: 480px) {
    .webrates-detail-table {
        font-size: 0.7rem;
    }
    
    .webrates-detail-table th,
    .webrates-detail-table td {
        padding: 0.4rem 0.2rem;
    }
}

/* Errors */
.error {
    color: #dc3545;
    font-weight: 600;
    background: #f8d7da;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}