/* --- СТИЛИ ДЛЯ ЗНАЧКА И БАННЕРА COOKIE --- */
.cookie-badge {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    opacity: 0.6;
}
.cookie-badge:hover {
    opacity: 1;
    transform: scale(1.05);
    border-color: var(--brand-blue);
}
.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 420px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    z-index: 9998;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.cookie-banner-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.cookie-banner-text h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 6px 0;
}
.cookie-banner-text p {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}
.cookie-banner-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
.btn-cookie-primary {
    background-color: var(--text-main);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-cookie-primary:hover {
    background-color: var(--brand-blue);
}
.btn-cookie-secondary {
    background-color: var(--bg-light);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}
.btn-cookie-link {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}
.btn-cookie-link:hover {
    color: var(--text-main);
}

/* --- СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА --- */
.cookie-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.cookie-modal-wrapper {
    background-color: #ffffff;
    border-radius: 16px;
    max-width: 560px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.cookie-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cookie-modal-header h3 {
    margin: 0; font-size: 18px; font-weight: 800;
}
.cookie-modal-close {
    background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-muted);
}
.cookie-modal-body {
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.cookie-group-item h5 {
    margin: 0 0 6px 0; font-size: 14px; font-weight: 700; color: var(--text-main);
}
.cookie-group-item p {
    margin: 0; font-size: 12px; color: var(--text-muted); line-height: 1.5;
}
.cookie-group-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.cookie-status-always {
    font-size: 11px; font-weight: 700; color: var(--brand-blue); background-color: rgba(29,78,216,0.05); padding: 2px 8px; border-radius: 4px;
}

/* Переключатели-слайдеры (Чекбоксы) */
.cookie-switch {
    position: relative; display: inline-block; width: 36px; height: 20px;
}
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--border-color); transition: .3s; border-radius: 20px;
}
.cookie-slider:before {
    position: absolute; content: ""; height: 14px; width: 14px; left: 3px; bottom: 3px;
    background-color: white; transition: .3s; border-radius: 50%;
}
input:checked + .cookie-slider { background-color: var(--brand-blue); }
input:checked + .cookie-slider:before { transform: translateX(16px); }

.cookie-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.hidden { display: none !important; }

