/* ── Калькулятор таможни ──────────────────────────────────────────────────── */

.customs-block {
    margin-bottom: 40px;
}

.customs-block h6 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--avg-text-muted, #888);
    margin-bottom: 0;
}

/* Вкладки ФЛ / ЮЛ */
.customs-tabs .uk-tab {
    margin-bottom: 0;
}

.customs-tabs .uk-tab > li > a {
    font-size: 13px;
    font-weight: 500;
}

.customs-switcher {
    margin-top: 0 !important;
    padding-top: 0;
}

/* Список строк расчёта */
.customs-list {
    margin-top: 0 !important;
}

.customs-list > li > div,
.customs-list > li.customs-sub-row > div,
.customs-list > li.customs-tks-total > div,
.customs-list > li.customs-grand-total > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.customs-list > li > div > span {
    flex: 1;
    color: var(--avg-text-secondary, #555);
    font-size: 14px;
}

.customs-list > li > div > p {
    margin: 0;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
}

/* Подпись-примечание (курс в скобках) */
.customs-note {
    display: block;
    font-style: normal;
    font-size: 11px;
    color: var(--avg-text-muted, #aaa);
    margin-top: 1px;
}

/* Заголовок группы ТКС */
.customs-group-header {
    padding-top: 10px !important;
    padding-bottom: 4px !important;
    border-top: none !important;
}

.customs-group-header > span {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--avg-text-muted, #999);
}

/* Подстроки ТКС (с отступом) */
.customs-sub-row > div > span {
    padding-left: 14px;
    font-size: 13px !important;
    color: var(--avg-text-muted, #888) !important;
}

.customs-sub-row > div > p {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: var(--avg-text-muted, #888) !important;
}

/* Итого ТКС */
.customs-tks-total > div > span {
    font-size: 13px !important;
    font-weight: 600 !important;
    padding-left: 14px;
}

.customs-tks-total > div > p {
    font-size: 13px !important;
    font-weight: 600 !important;
}

/* ИТОГО ПОД КЛЮЧ */
.customs-grand-total {
    margin-top: 4px;
    border-top: 2px solid var(--avg-border, #ddd) !important;
    padding-top: 12px !important;
}

.customs-grand-total > div > span {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--avg-text-primary, #111) !important;
}

.customs-grand-total > div > p {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: var(--avg-accent, #e63946) !important;
}

/* Предупреждение об отсутствующем объёме */
.customs-warning {
    font-size: 11px;
    color: #f0a500;
    margin-bottom: 8px;
}

/* Дисклеймер под таблицей */
.customs-disclaimer {
    font-size: 11px;
    color: var(--avg-text-muted, #aaa);
    margin-top: 8px;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Строка в каталоге */
.customs-total-catalog {
    font-size: 12px;
    margin-top: 2px;
    margin-bottom: 0;
    color: var(--avg-text-muted, #888);
}

/* Цена для юрлица под основной ценой (h4.car-price) на карточке товара */
.car-price-ul {
    font-size: 13px;
    margin-top: 2px;
    margin-bottom: 0;
    color: var(--avg-text-muted, #888);
    font-weight: 400;
}

/* Гибриды/электро — текст вместо цены (см. avg_manager_price_html()). Меньше и
   приглушённее обычной цены, чтобы не раздувало карточку/шапку товара, куда
   подставляется вместо числа того же уровня разметки (h4.car-price/h6.price). */
.price-on-request {
    font-size: 13px;
    font-weight: 400;
    color: var(--avg-text-muted, #888);
}

/* ── Страница настроек (WP Admin) ────────────────────────────────────────── */

.cbr-rates-panel {
    background: #f0f6fc;
    border: 1px solid #c3d4e6;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cbr-rates-panel .cbr-live-values {
    display: flex;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
}

.cbr-rates-panel .cbr-updated {
    font-size: 12px;
    color: #666;
}

.cbr-rates-panel .cbr-stale {
    color: #c00;
    font-weight: 600;
}

#cbr-refresh-btn {
    margin-left: auto;
}

#cbr-refresh-result {
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 4px;
}

#cbr-refresh-result.success {
    background: #d4edda;
    color: #155724;
}

#cbr-refresh-result.error {
    background: #f8d7da;
    color: #721c24;
}

.avg-customs-settings h3.customs-section-title {
    border-bottom: 1px solid #ddd;
    padding-bottom: 6px;
    margin-top: 28px;
    font-size: 14px;
}

.customs-rate-table {
    border-collapse: collapse;
    margin: 8px 0;
}

.customs-rate-table th,
.customs-rate-table td {
    padding: 4px 10px;
    font-size: 13px;
    text-align: left;
    border: 1px solid #e5e5e5;
}

.customs-rate-table th {
    background: #f9f9f9;
    font-weight: 600;
}

.customs-rate-table input[type="number"] {
    width: 90px;
}
