
/* Триггер */
.cc-trigger-wrap { margin: 10px 0; }
.cc-trigger-link { color: var(--fm-blue); text-decoration: none; font-size: 14px; }
.cc-trigger-link:hover { text-decoration: underline; }

/* Оверлей */
.cc-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9998; }
.cc-overlay--visible { display: block; }

/* Drawer */
.cc-drawer {
    position: fixed; top: 0; right: -480px; width: 460px; height: 100%;
    background: #fff; z-index: 9999; overflow-y: auto;
    transition: right .3s ease; box-shadow: -2px 0 10px rgba(0,0,0,.2);
}
.cc-drawer--open { right: 0; }

.cc-drawer-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; border-bottom: 1px solid #eee;
    font-size: 16px; font-weight: 600; position: sticky; top: 0;
    background: #fff; z-index: 1;
}
.cc-drawer-close {
    background: none; border: none; font-size: 24px;
    cursor: pointer; color: #999; line-height: 1;
}
.cc-drawer-close:hover { color: #333; }

.cc-drawer-body { padding: 12px 0; }

/* Загрузка */
.cc-loading { text-align: center; padding: 40px; color: #999; }

/* Банки */
.cc-bank { border-bottom: 1px solid #eee; }

.cc-bank-header {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px; cursor: pointer;
}
.cc-bank-header:hover { background: #fafafa; }

.cc-bank-logo { width: 60px; height: 36px; object-fit: contain; }

.cc-bank-info { flex: 1; }
.cc-bank-name { display: block; font-weight: 600; font-size: 14px; }
.cc-bank-min { display: block; font-size: 12px; color: #666; margin-top: 2px; }

.cc-bank-chevron { color: #999; font-size: 12px; }

/* Тело банка */
.cc-bank-body { padding: 0 20px 16px; }

.cc-bank-description {
    font-size: 13px; color: #555; line-height: 1.5;
    margin-bottom: 16px; padding: 10px; background: #f9f9f9;
    border-radius: 4px;
}

/* Калькулятор */
.cc-field { margin-bottom: 20px; }

.cc-field-label {
    display: flex; justify-content: space-between;
    font-size: 13px; color: #666; margin-bottom: 8px;
}
.cc-field-label strong { color: #333; }

.cc-slider {
    
    background: #ddd; border-radius: 2px; outline: none; cursor: pointer;
    width: calc(100% + 0px);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.cc-slider::-webkit-slider-thumb {
    appearance: none; width: 18px; height: 18px;
    background: var(--fm-blue); border-radius: 50%; border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.cc-slider::-moz-range-thumb {
    width: 18px; height: 18px; background: var(--fm-blue);
    border-radius: 50%; border: 2px solid #fff;
}
.cc-slider::-webkit-slider-runnable-track {
    margin: 0;
    padding: 0;
}

.cc-slider-marks {
    display: flex; justify-content: space-between;
    font-size: 11px; color: #999; margin-top: 4px;
    padding: 0 4px 0 6px;
    box-sizing: border-box;
}

.cc-drawer-body {
    padding: 14px 20px 0;
}
.cc-credit-form h3 {
    padding: 20px 0 0;
}
.cc-credit-form .b24-form-header.b24-form-padding-side {
    /*display: none;*/
}
.cc-credit-form .b24-form-content.b24-form-padding-side {
    padding: 0;
}

/* Результаты */
.cc-results {
    background: #f5f8ff; border-radius: 6px;
    padding: 14px 16px; margin-top: 16px;
}
.cc-result-main {
    text-align: center; margin-bottom: 12px; padding-bottom: 12px;
    border-bottom: 1px solid #e0e8ff;
}
.cc-monthly-val { display: block; font-size: 24px; font-weight: 700; color: var(--fm-blue); }
.cc-result-main small { font-size: 12px; color: #888; }

.cc-result-row {
    display: flex; justify-content: space-between;
    font-size: 13px; padding: 4px 0; color: #555;
}
.cc-result-row strong { color: #333; }

/* Дисклеймер */
.cc-drawer .model-info { padding: 12px 20px 0; }

.cc-drawer h2 {letter-spacing: normal;}

/* Кнопка */
button.cc-add-to-cart.btn.btn-primary {
    width: 100%;
    margin-top: 16px;
    background: var(--fm-blue);
    border-color: var(--fm-blue);
}
.cc-credit-form button.b24-form-btn {
    min-height: 32px;
    padding: 7px 12px;
    border: 1px solid var(--fm-blue);
    font-size: 11px;
    line-height: 16px;
    border-radius: 3px;
    box-shadow: none;
    font-weight: bold;
}
button.cc-add-to-cart.btn.btn-primary:hover,
.cc-credit-form button.b24-form-btn:hover {
    color: #fff;
    background-color: #0068A6;
    border-color: #0068A6;
}
.cc-add-to-cart:disabled {
    background: #aaa;
    cursor: not-allowed;
}


/* Мобильная версия */
@media (max-width: 767px) {
    .cc-drawer {
        width: 100%;
        right: -100vw;
    }
    .cc-drawer--open {
        right: 0;
    }
}