.cookie-consent {
    animation: cookie-consent-in 0.3s ease forwards;
    backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #fff;
    font-family: 'Roboto', sans-serif;
    left: 50%;
    max-width: 680px;
    padding: 20px;
    position: fixed;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    z-index: 200000;
}

.cookie-consent[hidden] {
    display: none;
}

/* Keep the custom pointer visible while it moves over the consent banner. */
html .cursor {
    z-index: 200002 !important;
}

html .cursor-trail,
html .trails-container {
    z-index: 200001 !important;
}

.cookie-consent__message {
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.6;
    margin: 0 0 16px;
}

.cookie-consent__link {
    color: inherit;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.cookie-consent__link:hover {
    opacity: 0.7;
}

.cookie-consent__actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.cookie-consent__button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    color: #fff;
    flex: 0 1 160px;
    font-family: 'Clash Display', sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    padding: 12px;
    text-transform: uppercase;
    transition:
        background-color 0.3s ease,
        transform 0.3s ease,
        border-color 0.3s ease;
}

.cookie-consent__button:hover {
    background-color: rgba(255, 255, 255, 0.149);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.cookie-consent__button:active {
    transform: translateY(0);
}

.cookie-consent__button:focus-visible,
.cookie-consent__link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

@keyframes cookie-consent-in {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@media (max-width: 768px) {
    .cookie-consent {
        bottom: 12px;
        padding: 16px;
        width: calc(100% - 24px);
    }

    .cookie-consent__actions {
        gap: 8px;
    }

    .cookie-consent__button {
        flex: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent {
        animation: none;
    }

    .cookie-consent__button,
    .cookie-consent__link {
        transition: none;
    }
}
