.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 980;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    background: rgba(10, 2, 18, 0.97);
    border-top: 1px solid rgba(188, 19, 254, 0.25);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35);
    transform: translateY(110%);
    transition: transform 0.25s ease;
    pointer-events: none;
}

/* Mobile: sit above the fixed bottom nav instead of covering it */
@media (max-width: 1199px) {
    .cookie-consent {
        bottom: calc(var(--bottom-nav-h, 62px) + env(safe-area-inset-bottom, 0px));
        padding-bottom: 14px;
    }

    html.has-cookie-consent body {
        padding-bottom: calc(
            var(--bottom-nav-h, 62px)
            + var(--cookie-consent-h, 0px)
            + var(--safe-bottom, env(safe-area-inset-bottom, 0px))
        );
    }
}

.cookie-consent.is-visible {
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-consent__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.cookie-consent__text {
    margin: 0;
    color: #ddd;
    font-size: 14px;
    line-height: 1.5;
    flex: 1 1 320px;
}

.cookie-consent__text a {
    color: #d5b8ff;
}

.cookie-consent__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cookie-consent__btn {
    border: none;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.cookie-consent__btn--primary {
    background: linear-gradient(135deg, #6a1b9a, #bc13fe);
    color: #fff;
}

.cookie-consent__btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #eee;
}

.cookie-consent__btn--link {
    background: transparent;
    color: #c9b6ff;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .cookie-consent__actions {
        width: 100%;
    }
    .cookie-consent__btn {
        flex: 1 1 auto;
    }
}
