/* Баннер согласия на использование cookie и локального хранилища */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100000;
    padding: 14px 18px 16px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.12);
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.45;
}

.cookie-consent-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px 20px;
}

.cookie-consent-text {
    flex: 1;
    min-width: min(100%, 280px);
}

.cookie-consent-text strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 0.8125rem;
    color: #64748b;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-consent-btn {
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cookie-consent-btn-ghost {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #334155;
}

.cookie-consent-btn-ghost:hover {
    background: #e2e8f0;
}

.cookie-consent-btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.cookie-consent-btn-primary:hover {
    filter: brightness(1.05);
}

[data-theme="dark"] .cookie-consent {
    background: #1e293b;
    border-top-color: #334155;
    color: #cbd5e1;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .cookie-consent-text strong {
    color: #f1f5f9;
}

[data-theme="dark"] .cookie-consent-text p {
    color: #94a3b8;
}

[data-theme="dark"] .cookie-consent-btn-ghost {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

[data-theme="dark"] .cookie-consent-btn-ghost:hover {
    background: #475569;
}

@media (max-width: 520px) {
    .cookie-consent-actions {
        width: 100%;
    }
    .cookie-consent-btn {
        flex: 1;
        justify-content: center;
    }
}
