/* Основной баннер согласия на cookies */
#cookieConsentBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    /*border-top: 2px solid #2c6aa0;*/
    padding: 10px;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    font-family: 'PT Sans', sans-serif;
    box-sizing: border-box;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

#cookieConsentBanner.show {
    transform: translateY(0);
}

/* Контейнер баннера (2 колонки) */
.cookie-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Левая колонка - текст */
.cookie-banner-text-column {
    flex: 1;
    min-width: 0;
}

.cookie-banner-text {
    color: #abaab0;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.cookie-banner-text a {
    color: #2c6aa0;
    text-decoration: underline;
    font-weight: bold;
}

.cookie-banner-text a:hover {
    text-decoration: none;
}

/* Правая колонка - кнопки */
.cookie-banner-buttons-column {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 180px;
}

/* Основные кнопки */
.cookie-btn {
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    border: none;
    text-align: center;
    transition: all 0.2s ease;
    width: 100%;
}

.cookie-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Принять все */
.cookie-btn-accept {
    background: #2c6aa0;
    color: white;
}

.cookie-btn-accept:hover {
    background: #1e4a6d;
}

/* Настроить */
.cookie-btn-settings {
    background: white;
    color: #2c6aa0;
    border: 2px solid #2c6aa0;
}

.cookie-btn-settings:hover {
    background: #f0f7ff;
}

/* === БАННЕР НАСТРОЕК === */
.cookie-settings-banner {
    display: none;
}

.cookie-settings-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Текст настроек */
.cookie-settings-text {
    color: #abaab0;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.cookie-settings-text a {
    color: #2c6aa0;
    text-decoration: underline;
    font-weight: bold;
}

.cookie-settings-text a:hover {
    text-decoration: none;
}

/* Контейнер настроек (чекбоксы в строку) */
.cookie-settings-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* Контейнер чекбоксов */
.cookie-checkboxes-container {
    display: flex;
    gap: 20px;
    align-items: center;
    flex: 1;
}

/* Чекбоксы */
.cookie-setting-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-setting-item.disabled {
    opacity: 0.7;
}

.cookie-setting-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
}

.cookie-setting-item.disabled input[type="checkbox"] {
    cursor: not-allowed;
}

.cookie-setting-item label {
    color: #333;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.cookie-setting-item.disabled label {
    color: #666;
    cursor: default;
    font-weight: bold;
}

/* Кнопка сохранения */
.cookie-btn-save {
    background: #2c6aa0;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    border: none;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.cookie-btn-save:hover {
    background: #1e4a6d;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}


@media (max-width: 768px) {
    .cookie-banner-container {
        flex-direction: row;
        flex-wrap: nowrap;
        padding: 12px 15px;
        align-items: flex-start; /* Выравниваем по верху */
    }

    .cookie-banner-text-column {
        flex: 2 1 0; /* Текст занимает 2/3 пространства */
        margin-right: 15px;
        max-height: 150px;
        /*max-height: 60px; !* Ограничиваем высоту *!*/
        /*overflow-y: auto; !* Прокрутка если не помещается *!*/
    }

    .cookie-banner-text {
        font-size: 13px;
        line-height: 1.3;
        margin: 0;
    }

    .cookie-banner-buttons-column {
        flex: 1 0 auto; /* Кнопки занимают 1/3 */
        display: flex;
        flex-direction: column; /* Кнопки вертикально */
        gap: 8px;
        min-width: 120px;
    }

    .cookie-btn {
        padding: 8px 10px;
        font-size: 13px;
        width: 100%; 
        box-sizing: border-box;
    }
}