/* Ð¡ÑÐ¸Ð»Ð¸ Ð´Ð»Ñ ÐºÐ°Ð»ÑÐºÑÐ»ÑÑÐ¾ÑÐ° ÑÐµÐ½ Ð°Ð²ÑÐ¾Ð¼Ð¾Ð±Ð¸Ð»ÐµÐ¹ */

.car-price-calculator {
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

.price-calculation-result {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
}

.price-calculation-result .total_sum {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.price-calculation-result .total_sum td {
    font-size: 14px;
    font-family: Oswald, Tahoma, sans-serif;
    border-bottom: 1px solid #bbb;
    padding: 8px;
    text-align: left;
}

.price-calculation-result .total_sum td b {
    font-weight: bold;
    color: #333;
    font-size: 12px;
}

.price-calculation-result .green_custom {
    color: #73aa00 !important;
    font-weight: bold;
}

/* ÐÐ¾Ð¼Ð¿Ð°ÐºÑÐ½Ð¾Ðµ Ð¾ÑÐ¾Ð±ÑÐ°Ð¶ÐµÐ½Ð¸Ðµ */
.price-calculation-compact {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.total-price-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.total-price-compact .price-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.total-price-compact .price-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.total-price-compact .price-usd {
    font-size: 16px;
    color: #888;
    font-weight: normal;
}

/* ÐÐ½ÑÐ¾ÑÐ¼Ð°ÑÐ¸Ñ Ð¾ Ð²Ð°Ð»ÑÑÐ°Ñ */
.currency-info-block {
    background: #f0f8ff;
    border: 1px solid #b0d4f1;
    border-radius: 5px;
    padding: 15px;
    margin-top: 20px;
}

.currency-info-block h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 16px;
}

.current-rate {
    margin-bottom: 10px;
}

.rate-label {
    font-weight: bold;
    margin-right: 10px;
}

.rate-value {
    color: #27ae60;
    font-weight: bold;
}

.rate-change {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.rate-change.rate-up {
    color: #27ae60;
}

.rate-change.rate-down {
    color: #e74c3c;
}

.rate-change.rate-stable {
    color: #95a5a6;
}

.change-icon {
    font-size: 16px;
    font-weight: bold;
}

/* ÐÐ¸Ð´Ð¶ÐµÑ ÐºÑÑÑÐ¾Ð² Ð²Ð°Ð»ÑÑ */
.currency-rates-widget {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    margin: 20px 0;
}

.currency-rates-table {
    width: 100%;
    border-collapse: collapse;
}

.currency-rates-table th,
.currency-rates-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.currency-rates-table th {
    background: #f5f5f5;
    font-weight: bold;
    color: #333;
}

.currency-rates-table tr:hover {
    background: #f9f9f9;
}

.currency-name {
    font-weight: bold;
    color: #2c3e50;
}

.currency-rate {
    font-family: monospace;
    font-size: 14px;
}

.currency-change.rate-up {
    color: #27ae60;
}

.currency-change.rate-down {
    color: #e74c3c;
}

.currency-change.rate-stable {
    color: #95a5a6;
}

/* Ð¡Ð¿Ð¸ÑÐ¾Ðº Ð²Ð°Ð»ÑÑ */
.currency-rates-list {
    padding: 15px;
}

.currency-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

.currency-code {
    font-weight: bold;
    color: #2c3e50;
    min-width: 50px;
}

.currency-item .currency-rate {
    font-family: monospace;
    margin-right: 10px;
}

.currency-item .currency-change {
    font-size: 12px;
    font-weight: bold;
}

/* ÐÑÐ¸Ð±ÐºÐ¸ */
.car-price-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 12px;
    margin: 10px 0;
    font-size: 14px;
}

.price-calc-error {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 12px;
    margin: 10px 0;
    font-size: 14px;
}

/* ÐÐ´Ð°Ð¿ÑÐ¸Ð²Ð½Ð¾ÑÑÑ */
@media (max-width: 768px) {
    .currency-rates-table {
        font-size: 14px;
    }
    
    .currency-rates-table th,
    .currency-rates-table td {
        padding: 8px;
    }
    
    .total-price-compact .price-value {
        font-size: 20px;
    }
    
    .currency-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .currency-item .currency-rate,
    .currency-item .currency-change {
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .car-price-calculator {
        margin: 10px 0;
    }
    
    .price-calculation-result {
        padding: 15px;
    }
    
    .currency-info-block {
        padding: 10px;
    }
    
    .total-price-compact .price-value {
        font-size: 18px;
    }
}

/* ÐÐ½Ð¸Ð¼Ð°ÑÐ¸Ð¸ */
.currency-rates-widget {
    transition: all 0.3s ease;
}

.currency-item:hover,
.currency-rates-table tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

.rate-change {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ð¡ÑÐ¸Ð»Ð¸ Ð´Ð»Ñ Ð¸Ð½ÑÐµÐ³ÑÐ°ÑÐ¸Ð¸ Ñ ÑÐµÐ¼Ð¾Ð¹ */
.price-desc-wrapper .car-price-calculator {
    margin: 0;
}

.price-desc-wrapper .price-calculation-result {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

/* ÐÑÐ¿ÑÐ°Ð²Ð»ÐµÐ½Ð¸Ñ Ð´Ð»Ñ ÑÑÑÐµÑÑÐ²ÑÑÑÐ¸Ñ ÑÑÐ¸Ð»ÐµÐ¹ ÑÐµÐ¼Ñ */
.price-chars .one-char {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.price-chars .one-char:last-child {
    border-bottom: none;
}

.one-char-left .m-16-400 {
    font-size: 14px;
    color: #666;
}

.one-char-right .m-16-600 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* ÐÐ°Ð³ÑÑÐ·ÐºÐ° */
.price-calculator-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: #666;
}

.price-calculator-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #666;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
