/* =====================================================
   COOKIE CONSENT BANNER - CSS
   Стили для баннера согласия на обработку cookie
   ===================================================== */

/* Основной контейнер баннера */
.cookie-consent-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    transform: translateX(120%);
    background: #FFFFFF;
    box-shadow: 1px 1px 20px #E5E5E5;
    border-radius: 10px;
    padding: 25px;
    max-width: 480px;
    width: calc(100% - 40px);
    z-index: 10001;
    transition: transform 0.4s ease;
    font-family: 'Open Sans', Arial, sans-serif;
}

/* Активное состояние - баннер виден */
.cookie-consent-banner.active {
    transform: translateX(0);
}

/* Состояние после отказа от cookie - синяя рамка с черным текстом */
.cookie-consent-banner.declined-state {
    border: 2px solid #00A2E2;
    background: #FFFFFF;
}

.cookie-consent-banner.declined-state .cookie-text {
    color: #000000 !important;
}

/* Текст согласия */
.cookie-text {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #212121;
    margin-bottom: 20px;
    text-align: center;
}

/* Ссылки в тексте */
.cookie-text a {
    color: #00A2E2;
    text-decoration: none;
}

.cookie-text a:hover {
    text-decoration: underline;
}

/* Контейнер кнопок */
.cookie-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Базовые стили кнопок */
.cookie-btn {
    border-radius: 5px;
    padding: 12px 20px;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
    border: none;
    font-family: inherit;
}

/* Кнопка "Согласиться" */
.cookie-btn-accept {
    background: #1DDA52;
    color: #FFFFFF;
}

.cookie-btn-accept:hover {
    background: #18c248;
}

/* Кнопка "Отказаться" */
.cookie-btn-decline {
    background: #FFFFFF;
    color: #00A2E2;
    border: 2px solid #00A2E2;
}

.cookie-btn-decline:hover {
    background: #00A2E2;
    color: #FFFFFF;
}

/* =====================================================
   АДАПТИВНОСТЬ
   ===================================================== */

/* Планшеты и маленькие экраны */
@media (max-width: 576px) {
    .cookie-consent-banner {
        bottom: 0;
        right: 0;
        left: 0;
        width: auto;
        margin: 10px;
        max-width: 100%;
        padding: 20px;
        border-radius: 15px 15px 0 0;
        transform: translateY(100%);
    }
    
    .cookie-consent-banner.active {
        transform: translateY(0);
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .cookie-btn {
        width: 100%;
        min-width: auto;
        padding: 15px 20px;
        font-size: 16px;
        border-radius: 8px;
    }
    
    .cookie-text {
        font-size: 14px;
        line-height: 20px;
        margin-bottom: 20px;
    }
    
    /* Мобильная версия - кнопка отказаться остается белой */
    .cookie-btn-decline {
        background: #FFFFFF !important;
        color: #00A2E2 !important;
        border: 1px solid #00A2E2 !important;
    }
    
    .cookie-btn-decline:active {
        background: #f0f8ff !important;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 15px;
        border-radius: 12px 12px 0 0;
    }
    
    .cookie-btn {
        padding: 12px 16px;
        font-size: 15px;
    }
}

/* =====================================================
   ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ УВЕДОМЛЕНИЙ
   ===================================================== */

/* Стили для всплывающих уведомлений (опционально) */
.cookie-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ffffff;
    color: rgb(49, 49, 49);
    padding: 15px 20px;
    border-radius: 5px;
    border: 1px solid #e1e1e1;
    box-shadow: 1px 1px 10px rgba(0,0,0,0.1);
    z-index: 10002;
    font-size: 14px;
    transition: all 0.3s ease;
    transform: translateX(100%);
    font-family: 'Open Sans', Arial, sans-serif;
}

.cookie-notification.show {
    transform: translateX(0);
}

/* Скрытый класс для элементов */
.cookie-hidden {
    display: none !important;
}