.cookie-consent {
    position: fixed;
    inset: auto 0 0;
    z-index: 180;
    padding: 0 clamp(1.25rem, 4vw, 3.5rem) clamp(1.25rem, 3vw, 2rem);
    pointer-events: none;
    opacity: 0;
    transform: translateY(1.25rem);
    transition:
        opacity 0.45s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)),
        transform 0.45s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}

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

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

.cookie-consent.is-visible[hidden] {
    visibility: visible;
}

.cookie-consent-panel {
    max-width: 1360px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--line, rgba(0, 0, 0, 0.1));
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.cookie-consent-copy {
    flex: 1 1 16rem;
    min-width: 0;
}

.cookie-consent-label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--fg-faint, #82909b);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.cookie-consent-text {
    margin: 0;
    color: var(--fg, #0a0a0a);
    font-size: 0.9375rem;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.cookie-consent-text a {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.cookie-consent-text a:hover {
    color: var(--fg-dim, #82909b);
}

.cookie-consent-actions {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.cookie-consent-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    border: none;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.cookie-consent-btn--outline {
    border: 1px solid var(--line-strong, rgba(0, 0, 0, 0.2));
    background: transparent;
    color: var(--fg, #0a0a0a);
}

.cookie-consent-btn--outline:hover {
    background: var(--bg, #ffffff);
}

.cookie-consent-btn--primary {
    background: var(--accent, #0a0a0a);
    color: var(--accent-ink, #ffffff);
}

.cookie-consent-btn--primary:hover {
    background: var(--fg-dim, #82909b);
}

@media (hover: hover) and (pointer: fine) {
    .cookie-consent,
    .cookie-consent * {
        cursor: auto !important;
    }

    .cookie-consent-btn {
        cursor: pointer !important;
    }
}

@media (max-width: 639px) {
    .cookie-consent-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-actions {
        width: 100%;
    }

    .cookie-consent-btn {
        flex: 1 1 auto;
    }
}
