.cookie-consent-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 1300px;
    margin: 0 auto;
    /* Кремовый фон в стиле блоков сайта (.manager-block, .totals .txt) */
    background: #feeacd;
    border: 1px solid #b5b5b5;
    border-radius: 4px;
    /* Тень как у .selection-block .full и .dialog */
    box-shadow: 0 0 20px #d8d8d8;
    color: #000;
    padding: 20px 25px;
    z-index: 99999;
    display: none;
    /* Стандартный шрифт проекта */
    font-family: Arial, Helvetica, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    align-items: center;
    gap: 25px;
    box-sizing: border-box;
}

.cookie-consent-banner.active {
    display: flex;
}

.cookie-consent-text {
    flex: 1;
    color: #333;
}

.cookie-consent-text a {
    color: #2c56a9;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.cookie-consent-text a:hover {
    color: #6695f1;
}

.cookie-consent-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* Базовые стили кнопки — повторяют .btn проекта */
.cookie-btn {
    display: inline-block;
    padding: 0 1em;
    height: 42px;
    line-height: 40px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: normal;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    font-family: Arial, Helvetica, Verdana, sans-serif;
    border: 1px solid #f1a012;
    text-shadow: 0 -1px 0 #b14e03;
    color: #fff;
    outline: none;
    box-sizing: border-box;
    /* Градиент как у стандартной .btn */
    background: #ffbb72;
    background: linear-gradient(to bottom, #ffbb72 0%, #ffa700 33%, #fe8600 66%, #ef9b00 100%);
    background-size: 300%;
    background-position: 0% 50%;
    transition: background-position 0.3s ease, border 0.3s ease;
}

.cookie-btn:hover {
    background-position: 0% 0%;
}

.cookie-btn:active {
    background-position: 0% 100%;
    text-shadow: 0 -1px 0 #8c3e02;
    color: #f5f5f5;
}

/* Кнопка "Отказаться" — стиль прозрачной кнопки .btn.notify-existance-btn */
.cookie-btn-decline {
    background: transparent;
    border: 1px dashed #c0c0c0;
    color: #8c8c8c;
    text-shadow: none;
    box-shadow: none;
}

.cookie-btn-decline:hover {
    color: #faa61a;
    border-color: currentColor;
    border-style: solid;
}

.cookie-btn-decline:active {
    color: #f85107;
}

.cookie-btn-decline:before,
.cookie-btn-decline:after {
    display: none !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .cookie-consent-banner {
        flex-direction: column;
        text-align: center;
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 15px;
        gap: 15px;
    }
    .cookie-consent-buttons {
        width: 100%;
        justify-content: center;
    }
}


.privacy-consent-field {
    margin: 20px 0;
}

.privacy-consent-field input[type="checkbox"] {
    cursor: pointer;
}

.privacy-consent-field label {
    cursor: pointer;
    /* Запрещаем выделение текста при частом клике по чекбоксу */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.privacy-consent-field label a {
    color: #2c56a9;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.privacy-consent-field label a:hover {
    color: #6695f1;
}

.privacy-consent-field .err {
    color: #d00;
    font-weight: bold;
    margin-top: 5px;
    font-size: 12px;
    display: block;
}

/* Подсветка самого чекбокса красным, если пользователь забыл поставить галочку */
.privacy-consent-field.error input[type="checkbox"] {
    outline: 1px solid #d00;
    outline-offset: 1px;
}

.adaptive-width {
    width: 100%;
    box-sizing: border-box;
}

/* На десктопе (экран шире 1024px) применяем 440px */
@media only screen and (min-width: 1025px) {
    .adaptive-width {
        width: 440px !important;; 
    }
}