/* Основной баннер – тёмно-синий фон */
#cookie-banner-smart {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1000px;
    background: #1e3a5f !important;
    color: #fff !important;
    padding: 15px 25px;
    z-index: 9999999;
    border-radius: 12px;
    /* Добавляем градиентную тень, чтобы баннер не сливался с фоном */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    font-family: Arial, sans-serif !important;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
#cookie-banner-smart p {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    flex: 1;
    color: #fff !important;
    text-transform: none !important;
}

/* Кнопки на баннере */
.cb-btns {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}
.cb-btn {
    background: #fff !important;
    color: #1e3a5f !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    transition: 0.2s !important;
    white-space: nowrap !important;
    text-transform: none !important;
    line-height: 1 !important;
    height: auto !important;
}
.cb-btn:hover {
    background: #e6f0ff !important;
    color: #0f2b4a !important;
}
.cb-btn-settings {
    margin-left: 15px;
    opacity: 0.9;
}

/* Постоянная кнопка в углу – яркая, непрозрачная */
#cookie-settings-trigger {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 9999998;
    background: #1e3a5f; /* полностью непрозрачный тёмно-синий */
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* добавляем лёгкую тень */
    display: none;
    text-transform: none !important;
    transition: all 0.2s ease;
}
#cookie-settings-trigger:hover {
    background: #0f2b4a; /* чуть темнее при наведении */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Модальное окно */
#cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000000;
    display: none;
    align-items: center;
    justify-content: center;
}
#cookie-modal {
    background: #fff !important;
    color: #333 !important;
    width: 95%;
    max-width: 550px;
    border-radius: 16px;
    overflow: hidden;
    font-family: Arial, sans-serif !important;
    position: relative;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
}
.cm-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cm-header h2 {
    margin: 0 !important;
    font-size: 18px !important;
    color: #222 !important;
    font-weight: bold !important;
}
.cm-body {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}
.cm-footer {
    padding: 15px 25px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    background: #f9f9f9;
    align-items: center;
    gap: 10px;
}
.cm-item {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: flex-start;
}
.cm-item-text {
    text-align: left !important;
}
.cm-item-text h4 {
    margin: 0 0 5px 0 !important;
    font-size: 15px !important;
    color: #222 !important;
    font-weight: 600 !important;
    text-transform: none !important;
}
.cm-item-text p {
    margin: 0 !important;
    font-size: 13px !important;
    color: #666 !important;
    line-height: 1.4 !important;
    text-transform: none !important;
}

/* Переключатели (тёмно-синие в активном состоянии) */
.cb-switch {
    position: relative !important;
    display: inline-block !important;
    width: 44px !important;
    height: 24px !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    vertical-align: middle !important;
    padding: 0 !important;
    margin: 0 !important;
}
.cb-switch input {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
    display: block !important;
}
.cb-slider {
    position: absolute !important;
    cursor: pointer !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: #ccc !important;
    transition: .4s !important;
    border-radius: 24px !important;
    display: block !important;
}
.cb-slider:before {
    position: absolute !important;
    content: "" !important;
    height: 18px !important;
    width: 18px !important;
    left: 3px !important;
    bottom: 3px !important;
    background-color: white !important;
    transition: .4s !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}
.cb-switch input:checked + .cb-slider {
    background-color: #1e3a5f !important;
}
.cb-switch input:checked + .cb-slider:before {
    transform: translateX(20px) !important;
}
.cb-switch input:disabled + .cb-slider {
    background-color: #f0f0f0 !important;
    cursor: default !important;
}

/* Адаптивность */
@media (max-width: 850px) {
    #cookie-banner-smart {
        flex-direction: column;
        text-align: center;
        width: 90%;
        bottom: 10px;
    }
    .cb-btns {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }
    .cb-btn {
        flex: 1;
        min-width: 110px;
        font-size: 12px !important;
        padding: 10px 10px !important;
    }
    .cb-btn-settings {
        margin-left: 0;
        width: 100%;
    }
    .cm-footer .cb-btn {
        min-width: auto !important;
        width: 48% !important;
    }
}

/* Стили для ссылок в баннере (на тёмно-синем фоне) */
#cookie-banner-smart a {
    color: #ffffff !important;
    text-decoration: underline !important;
    font-weight: 500;
    transition: color 0.2s ease;
}
#cookie-banner-smart a:hover {
    color: #66c2ff !important; /* светло-голубой при наведении */
}

/* Стили для ссылок в модальном окне (на белом фоне) */
#cookie-modal a {
    color: #1e3a5f !important;
    text-decoration: underline !important;
    transition: color 0.2s ease;
}
#cookie-modal a:hover {
    color: #0f2b4a !important;
}

/* Кнопка «Отменить все» – нейтрально-серая (переопределяем inline-стили, если нужно) */
.cm-footer .cb-btn-cancel {
    background: #f0f0f0 !important;
    color: #666 !important;
    border: 1px solid #ccc !important;
}
.cm-footer .cb-btn-cancel:hover {
    background: #e0e0e0 !important;
    color: #333 !important;
}

/* Также задаём для кнопки «Отменить все» в модалке, если она имеет класс или селектор */
.cm-footer button[onclick="cancelAllSettings()"] {
    background: #f0f0f0 !important;
    color: #666 !important;
    border: 1px solid #ccc !important;
}
.cm-footer button[onclick="cancelAllSettings()"]:hover {
    background: #e0e0e0 !important;
    color: #333 !important;
}
.cm-footer button.cb-btn.cb-btn-save {
    background: #1e3a5f !important;
    color: #fff !important;
}
.cm-footer button.cb-btn.cb-btn-save:hover {
    background: #2c5a8c !important;
    color: #fff !important;
}