/* Cookie consent banner — matches home/auth soft card + brand blue */

.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    width: calc(100% - 40px);
    font-family: 'Manrope', 'Inter', system-ui, sans-serif;
    transform: translateY(24px);
    opacity: 0;
    transition:
        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.35s ease;
    pointer-events: none;
}

.cookie-banner.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-banner.is-hiding {
    transform: translateY(16px);
    opacity: 0;
    pointer-events: none;
}

.cookie-banner__card {
    display: flex;
    gap: 14px;
    padding: 18px 18px 16px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 16px;
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.03),
        0 12px 32px rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

.cookie-banner__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eff4ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cookie-banner__body {
    flex: 1;
    min-width: 0;
}

.cookie-banner__title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #0f172a;
    line-height: 1.3;
}

.cookie-banner__text {
    margin: 0 0 14px;
    font-size: 13.5px;
    line-height: 1.55;
    color: #64748b;
    font-weight: 500;
}

.cookie-banner__link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

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

.cookie-banner__actions {
    display: flex;
    justify-content: flex-end;
}

.cookie-banner__btn {
    appearance: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    background: #2563eb;
    padding: 9px 22px;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.cookie-banner__btn:hover {
    background: #1d4ed8;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.cookie-banner__btn:active {
    transform: scale(0.98);
}

.cookie-banner__btn:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
        width: auto;
    }

    .cookie-banner__card {
        padding: 16px;
        gap: 12px;
    }
}

/* Dark theme */
body.dark-theme .cookie-banner__card {
    background: rgba(30, 41, 59, 0.94);
    border-color: #334155;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.2),
        0 16px 40px rgba(0, 0, 0, 0.35);
    color: #f1f5f9;
}

body.dark-theme .cookie-banner__icon {
    background: rgba(148, 163, 184, 0.12);
    color: #93c5fd;
}

body.dark-theme .cookie-banner__title {
    color: #f8fafc;
}

body.dark-theme .cookie-banner__text {
    color: #94a3b8;
}

body.dark-theme .cookie-banner__link {
    color: #93c5fd;
}

body.dark-theme .cookie-banner__btn {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
