/* ── Cookie Consent Banner ────────────────── */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.4s ease;
    pointer-events: none;
}

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

.cookie-consent__inner {
    max-width: 960px;
    margin: 0 auto 20px;
    padding: 24px 28px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(20px);
}

html[data-theme='dark'] .cookie-consent__inner {
    background: var(--color-dark-elevated);
    border-color: var(--color-dark-accent);
    box-shadow: var(--shadow-lg);
}

.cookie-consent__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--color-surface-muted);
    color: var(--color-brand);
    font-size: 1.3rem;
}

html[data-theme='dark'] .cookie-consent__icon {
    background: var(--color-dark-brand);
    color: var(--color-brand-light);
}

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

.cookie-consent__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 4px;
    line-height: 1.3;
}

html[data-theme='dark'] .cookie-consent__title {
    color: var(--color-on-dark);
}

.cookie-consent__text {
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.55;
}

html[data-theme='dark'] .cookie-consent__text {
    color: var(--color-on-dark-secondary);
}

.cookie-consent__text a {
    color: var(--color-brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}

html[data-theme='dark'] .cookie-consent__text a {
    color: var(--color-brand-light);
}

.cookie-consent__actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-consent__btn {
    padding: 10px 22px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.cookie-consent__btn--accept {
    background: var(--gradient-brand);
    color: var(--color-on-brand);
    box-shadow: var(--shadow-brand);
}

.cookie-consent__btn--accept:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-brand);
}

.cookie-consent__btn--reject {
    background: var(--color-surface-muted);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

html[data-theme='dark'] .cookie-consent__btn--reject {
    background: var(--color-dark-surface);
    color: var(--color-on-dark-secondary);
    border-color: var(--color-dark-accent);
}

.cookie-consent__btn--reject:hover {
    background: var(--color-border);
    color: var(--color-text);
    transform: translateY(-2px);
}

html[data-theme='dark'] .cookie-consent__btn--reject:hover {
    background: var(--color-dark-accent);
    color: var(--color-on-dark);
}

/* Responsive */
@media (max-width: 767px) {
    .cookie-consent__inner {
        flex-direction: column;
        text-align: center;
        margin: 0 12px 12px;
        padding: 20px;
        gap: 14px;
    }

    .cookie-consent__icon {
        margin: 0 auto;
    }

    .cookie-consent__actions {
        width: 100%;
        flex-direction: column;
    }

    .cookie-consent__btn {
        width: 100%;
        justify-content: center;
    }
}
