/* =========================================================================
   1. ГЛАВНЫЙ КОНТЕЙНЕР БАННЕРА (Glassmorphism & Bento Style)
   ========================================================================= */
.snt-cookie-box {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 450px;
    width: calc(100% - 48px);
    background: rgba(238, 238, 238, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(130, 196, 236, 0.5);
    box-shadow: 0 0 10px 5px rgba(60, 72, 102, 0.2);
    border-radius: 16px;
    padding: 24px;
    z-index: 999;
    box-sizing: border-box;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Состояние скрытого баннера (плавное уплывание вниз) */
.snt-cookie-box.hidden {
    opacity: 0;
    transform: translateY(40px);
    pointer-events: none;
}

/* Текстовые блоки */
.snt-cookie-text-block h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.snt-cookie-text-block p {
    margin: 0 0 20px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #64748b;
}

/* =========================================================================
   2. СОВРЕМЕННЫЕ КНОПКИ УПРАВЛЕНИЯ
   ========================================================================= */
.snt-cookie-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.snt-cookie-btn {
    flex: 1;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;
	margin: 0 !important;
}

/* Кнопка: Принять всё (Трендовый градиент) */
.btn-primary { 
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%); 
    color: #ffffff !important; 
    box-shadow: 0 3px 8px rgba(59, 130, 246, 0.2); 
}
.btn-primary:hover { 
    transform: translateY(-1px); 
    box-shadow: 0 5px 12px rgba(59, 130, 246, 0.3); 
}

/* Кнопка: Настроить / Назад */
.btn-secondary { 
    background: #e2e8f0; 
    color: #334155 !important; 
}
.btn-secondary:hover { 
    background: #cbd5e1; 
}

/* Кнопка: Отклонить */
.btn-danger { 
    background: #ffffff; 
    color: #ef4444 !important; 
    border: 1px solid #fee2e2; 
}
.btn-danger:hover { 
    background: #fef2f2; 
}

/* Кнопка: Сохранить выбор (Появляется в настройках) */
.btn-success { 
    background: #22c55e; 
    color: #ffffff !important; 
    width: 100%; 
    margin-top: 10px; 
    box-shadow: 0 3px 8px rgba(34, 197, 94, 0.2);
}
.btn-success:hover { 
    background: #16a34a; 
    transform: translateY(-1px);
}

/* Хелпер-класс для скрытия кнопок */
.snt-cookie-btn.hidden {
    display: none !important;
}

/* =========================================================================
   3. СПИСОК ОПЦИЙ (Bento-плашки)
   ========================================================================= */
.snt-cookie-options {
    margin: 15px 0 20px 0;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}

.snt-cookie-options.hidden { 
    display: none !important; 
}

.snt-cookie-option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    margin-bottom: 8px;
    border: 1px solid #f1f5f9;
}

/* Плашка обязательных кук */
.snt-cookie-option-item.disabled { 
    background: #f8fafc; 
    opacity: 0.7; 
}

.option-info { 
    display: flex; 
    flex-direction: column; 
    width: 80%; 
    text-align: left;
}
.option-info strong { 
    font-size: 13px; 
    color: #1e293b; 
}
.option-info span { 
    font-size: 11px; 
    color: #64748b; 
    margin-top: 2px; 
    line-height: 1.3;
}

/* Полоса прокрутки для списка настроек */
.snt-cookie-options::-webkit-scrollbar {
    width: 4px;
}
.snt-cookie-options::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* =========================================================================
   4. СТИЛИЗОВАННЫЙ АНИМИРОВАННЫЙ ПЕРЕКЛЮЧАТЕЛЬ (Switch)
   ========================================================================= */
.snt-switch { 
    position: relative; 
    display: inline-block; 
    width: 38px; 
    height: 22px; 
    flex-shrink: 0;
}

/* Скрываем дефолтный чекбокс */
.snt-switch input { 
    opacity: 0; 
    width: 0; 
    height: 0; 
}

/* Задний фон ползунка */
.snt-slider { 
    position: absolute; 
    cursor: pointer; 
    top: 0; left: 0; right: 0; bottom: 0; 
    background-color: #cbd5e1; 
    transition: background-color 0.25s ease; 
    border-radius: 22px; 
}

/* Белая круглая кнопка внутри свитча */
.snt-slider:before { 
    position: absolute; 
    content: ""; 
    height: 16px; 
    width: 16px; 
    left: 3px; 
    bottom: 3px; 
    background-color: #ffffff; 
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1); 
    border-radius: 50%; 
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Анимация включения (градиент на фоне) */
input:checked + .snt-slider { 
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%); 
}

/* Смещение кружка вправо при включении */
input:checked + .snt-slider:before { 
    transform: translateX(16px); 
}

/* Стиль для заблокированного свитча */
input:disabled + .snt-slider {
    background: #94a3b8;
    cursor: not-allowed;
}

/* =========================================================================
   5. МЕДИА-ЗАПРОСЫ (Адаптивность для мобильных экранов)
   ========================================================================= */
@media (max-width: 576px) {
    .snt-cookie-box { 
        bottom: 12px; 
        right: 12px; 
        width: calc(100% - 24px); 
        padding: 18px; 
    }
    .snt-cookie-btn { 
        flex: unset; 
        width: 100%; 
    }
    .snt-cookie-buttons {
        flex-direction: column;
        gap: 6px;
    }
    .btn-success {
        margin-top: 4px;
    }
}
