/* Cookie consent — slim bottom bar; does not block page interaction */
.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    padding: 0.9rem max(1.15rem, env(safe-area-inset-right))
        max(0.9rem, env(safe-area-inset-bottom)) max(1.15rem, env(safe-area-inset-left));
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.cookie-consent__inner {
    pointer-events: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem 1.35rem;
    max-width: var(--home-max-wide);
    margin: 0 auto;
    padding: 1.05rem 1.25rem;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    font-family: var(--font-family);
}

.cookie-consent__copy {
    flex: 1 1 15rem;
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--muted);
    max-width: 38rem;
}

.cookie-consent__link {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-consent__link:hover {
    color: var(--accent);
}

.cookie-consent__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.55rem;
}

.cookie-consent__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 6rem;
    padding: 0.55rem 1.25rem;
    border-radius: 50px;
    font-family: var(--font-family);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    transition: background-color 0.2s, transform 0.1s, border-color 0.2s;
}

.cookie-consent__btn:active {
    transform: scale(0.98);
}

.cookie-consent__btn--accept:hover,
.cookie-consent__btn--decline:hover {
    background: #faf8f6;
    border-color: rgba(44, 38, 32, 0.18);
}

@media (max-width: 520px) {
    .cookie-consent__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0.95rem 1rem;
    }

    .cookie-consent__copy {
        flex-basis: auto;
        font-size: 0.875rem;
    }

    .cookie-consent__actions {
        width: 100%;
    }

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