.cookie-consent {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 100000;
    width: min(360px, calc(100vw - 3rem));
    padding: 1rem;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-family: 'Inter', sans-serif;
    animation: cookie-consent-enter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    touch-action: manipulation;
}

.cookie-consent--closing {
    animation: cookie-consent-exit 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.cookie-consent__content {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0.75rem;
}

.cookie-consent__message {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: 0.05em;
}

.cookie-consent__message a {
    color: inherit;
    text-underline-offset: 0.2em;
}

.cookie-consent__message a:hover,
.cookie-consent__message a:focus-visible {
    color: rgba(255, 255, 255, 0.7);
}

.cookie-consent__actions {
    display: flex;
    gap: 0.5rem;
}

.cookie-consent__button {
    min-width: 80px;
    padding: 0.6rem 1rem;
    color: #ffffff;
    background: transparent;
    border: 1px solid #ffffff;
    border-radius: 25px;
    font: 400 0.65rem/1 'Inter', sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible {
    color: #000000;
    background: #ffffff;
    transform: translateY(-2px);
}

.cookie-consent__button:focus-visible,
.cookie-consent__message a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

@keyframes cookie-consent-enter {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cookie-consent-exit {
    to {
        opacity: 0;
        transform: translateY(1rem);
    }
}

@media (max-width: 768px) {
    .cookie-consent {
        bottom: 0.75rem;
        left: 0.75rem;
        width: calc(100vw - 1.5rem);
    }

    .cookie-consent__actions {
        justify-content: flex-start;
    }

    .cookie-consent__button {
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent,
    .cookie-consent--closing {
        animation-duration: 0.01ms;
    }

    .cookie-consent__button {
        transition: none;
    }
}
