/**
 * Styles for Nexir Diamond Price Plugin
 */

.nexir-diamond-prices-container {
    margin: 20px 0;
}

.nexir-diamond-prices-update-info {
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

.nexir-diamond-prices-natural-note {
    color: #333;
    font-weight: 600;
    font-style: normal;
}

.nexir-diamond-prices-update-separator {
    color: #ccc;
    margin: 0 8px;
}

.nexir-diamond-prices-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.nexir-diamond-prices-table thead {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.nexir-diamond-prices-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    color: #333;
}

.nexir-diamond-prices-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    color: #555;
}

.nexir-diamond-prices-table tbody tr {
    transition: background-color 0.2s ease;
}

.nexir-diamond-prices-table tbody tr:hover {
    background-color: #f8f9fa;
}

.nexir-diamond-prices-table tbody tr:last-child td {
    border-bottom: none;
}

/* Section headers */
.nexir-diamond-prices-table tbody tr.nexir-diamond-section-header {
    background-color: #f1f5f9;
    border-top: 2px solid #cbd5e1;
    border-bottom: 2px solid #cbd5e1;
}

.nexir-diamond-prices-table tbody tr.nexir-diamond-section-header td {
    padding: 8px 20px;
    font-weight: 600;
    color: #1e293b;
    border-bottom: none;
    font-size: 0.9em;
}

.nexir-diamond-prices-table tbody tr.nexir-diamond-section-header:hover {
    background-color: #f1f5f9;
}

.nexir-diamond-section-title {
    font-size: 0.9em;
}

/* Zebra striping - exclude section headers */
.nexir-diamond-prices-table tbody tr:not(.nexir-diamond-section-header):nth-child(even) {
    background-color: #fafbfc;
}

.nexir-diamond-prices-table tbody tr:not(.nexir-diamond-section-header):nth-child(even):hover {
    background-color: #f0f1f2;
}

.nexir-diamond-type {
    font-weight: 500;
    color: #333;
}

.nexir-diamond-price-usd,
.nexir-diamond-price-eur,
.nexir-diamond-price-05ct,
.nexir-diamond-price-1ct,
.nexir-diamond-price-2ct {
    text-align: right;
    font-weight: 600;
}

.nexir-diamond-price-eur,
.nexir-diamond-price-05ct,
.nexir-diamond-price-1ct,
.nexir-diamond-price-2ct {
    color: #2563eb;
}

.nexir-diamond-prices-exchange-rate {
    color: #666;
    margin-top: 10px;
    text-align: center;
    font-style: italic;
}

.nexir-diamond-prices-no-data {
    padding: 30px;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    text-align: center;
}

.nexir-diamond-prices-message {
    margin: 0;
    color: #856404;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .nexir-diamond-prices-table th,
    .nexir-diamond-prices-table td {
        padding: 12px 15px;
    }
    
    .nexir-diamond-type {
        min-width: 120px;
    }
}

@media screen and (max-width: 480px) {
    .nexir-diamond-prices-container {
        margin: 15px 0;
    }
    
    .nexir-diamond-prices-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nexir-diamond-prices-table th,
    .nexir-diamond-prices-table td {
        padding: 10px 12px;
        white-space: nowrap;
    }
}

