:root { 
    --cb-blue: #007BFF; 
    --cb-blue-hover: #0069d9; 
    --cb-gray: #888; 
    --cb-bg-panel: #f4f7fa; 
}

/* Оверлей (фон при открытии) */
.cookie-ov { 
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background: rgba(0,0,0,0.4); 
    z-index: 2147483646; 
    opacity: 0; 
    visibility: hidden;
    transition: opacity 0.4s ease; 
    pointer-events: none;
}
.cookie-ov.active { 
    opacity: 1; 
    visibility: visible;
    pointer-events: auto;
}

/* Основной баннер */
.cookie-bn { 
    position: fixed; 
    bottom: 20px; left: 20px; right: 20px; 
    background: #fff; 
    border-radius: 16px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.15); 
    padding: 32px; 
    z-index: 2147483647; 
    font-family: 'Segoe UI', Roboto, sans-serif; 
    opacity: 0; 
    visibility: hidden;
    transform: translateY(30px); 
    transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1); 
    pointer-events: none;
}
.cookie-bn.active { 
    opacity: 1; 
    visibility: visible;
    transform: translateY(0); 
    pointer-events: auto;
}

/* Контент внутри */
.cookie-container { max-width: 1240px; margin: 0 auto; text-align: left; }
.cookie-title { font-size: 22px; font-weight: 700; color: #111; margin-bottom: 12px; }
.cookie-text { margin-bottom: 24px; font-size: 15px; line-height: 1.6; color: #444; max-width: 1000px; }

/* Ссылка настроек */
.cookie-settings-link { color: var(--cb-blue); cursor: pointer; text-decoration: none; border-bottom: 1px dashed var(--cb-blue); font-weight: 500; }

/* Панель чекбоксов */
.cookie-settings-panel { display: none; background: var(--cb-bg-panel); border-radius: 12px; padding: 24px; margin-bottom: 24px; }
.cookie-checkbox-group { display: flex; flex-direction: column; gap: 18px; }
.cookie-label { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: #111; cursor: pointer; }
.cookie-label input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }

/* Кнопки */
.cookie-button-wrapper { display: flex; gap: 12px; align-items: center; }
.cookie-btn { border-radius: 10px; cursor: pointer; font-size: 15px; transition: all 0.3s ease; border: none; }
.cookie-btn-primary { background: var(--cb-blue); color: #fff; padding: 14px 40px; font-weight: 600; box-shadow: 0 4px 14px rgba(0,123,255,0.3); }
.cookie-btn-secondary { background: transparent; color: var(--cb-gray); border: 1px solid #d1d5da; padding: 14px 28px; font-weight: 500; }

.cookie-btn-primary:hover { background: var(--cb-blue-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,123,255,0.4); }
.cookie-btn-secondary:hover { background: #f8f9fa; color: #333; border-color: #adb5bd; }

/* Футер */
.cookie-footer { margin-top: 24px; font-size: 13px; color: var(--cb-gray); line-height: 1.4; }
.cookie-footer a { color: var(--cb-gray); text-decoration: underline; margin-right: 5px; }

/* Плавающая кнопка вызова (триггер) */
#cookie-settings-trigger { 
    display: none; 
    position: fixed; 
    bottom: 30px; left: 30px; 
    width: 48px; height: 48px; 
    background: #fff; 
    border-radius: 50%; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.15); 
    border: 1px solid #e1e4e8; 
    cursor: pointer; 
    z-index: 2147483645; 
    align-items: center; 
    justify-content: center; 
    font-size: 22px; 
    transition: transform 0.2s; 
}
#cookie-settings-trigger:hover { transform: scale(1.1); }

/* Мобильная адаптация */
@media (max-width: 978px) {
    .cookie-bn { padding: 24px; bottom: 10px; left: 10px; right: 10px; border-radius: 24px; transform: translateY(50px); }
    .cookie-bn.active { transform: translateY(0); }
    .cookie-container { text-align: center; }
    .cookie-button-wrapper { flex-direction: column !important; gap: 10px !important; }
    #btn-decline-all, #btn-accept-all { width: 100% !important; box-sizing: border-box; }
    #btn-decline-all { order: 2; }
    #btn-accept-all { order: 1; }
    #cookie-settings-trigger { bottom: 130px !important; left: 30px !important; display: flex !important; }
    .cookie-label { text-align: left; }
}
