.cookie-bar {
    position: fixed;
    bottom: 16px;
    left: 96px;
    z-index: 9000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    box-sizing: border-box;
    max-width: 420px;
    padding: 12px 40px 12px 16px;
    border: 1px solid var(--bw-border);
    border-radius: var(--bw-radius);
    background: #fff;
    box-shadow: var(--bw-shadow-md);
    color: var(--bw-muted);
    font-family: var(--bw-font);
    font-size: 13px;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s var(--bw-ease);
}

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

.cookie-bar.is-open {
    opacity: 1;
    transform: none;
}

.cookie-bar__text {
    flex: 1 1 100%;
    margin: 0;
    color: var(--bw-muted);
    font-size: 13px;
    line-height: 1.5;
}

.cookie-bar__link {
    color: var(--bw-primary);
    text-decoration: underline;
    white-space: nowrap;
}

.cookie-bar__link:hover {
    color: var(--bw-primary-hover);
}

.cookie-bar__actions {
    display: flex;
    gap: 8px;
}

.cookie-bar__btn {
    min-height: 32px;
    padding: 4px 16px;
    border: 1px solid var(--bw-border);
    border-radius: 999px;
    background: transparent;
    color: var(--bw-muted);
    font-family: inherit;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cookie-bar__btn:hover {
    border-color: var(--bw-accent);
    color: var(--bw-primary);
}

.cookie-bar__btn--primary {
    border-color: var(--bw-primary);
    background: var(--bw-primary);
    color: #fff;
}

.cookie-bar__btn--primary:hover {
    border-color: var(--bw-primary-hover);
    background: var(--bw-primary-hover);
    color: #fff;
}

.cookie-bar__close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--bw-muted);
    font-size: 14px;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
}

.cookie-bar__close:hover {
    background: var(--bw-border);
    color: var(--bw-ink);
}

.cookie-bar__btn:focus-visible,
.cookie-bar__close:focus-visible,
.cookie-bar__link:focus-visible,
.footer-legal a:focus-visible,
.footer-legal button:focus-visible {
    outline: 2px solid var(--bw-accent);
    outline-offset: 2px;
}

.footer-legal {
    padding-top: 6px;
    font-size: 12px;
    line-height: 1.8;
}

.footer-legal a,
.footer-legal button {
    display: inline;
    margin: 0 12px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    opacity: 0.8;
    text-decoration: underline;
    cursor: pointer;
}

.footer-legal a:hover,
.footer-legal button:hover {
    opacity: 1;
}

@media only screen and (max-width: 1036px) {
    .cookie-bar {
        right: 12px;
        bottom: 12px;
        left: 12px;
        max-width: none;
        padding: 10px 36px 10px 12px;
        gap: 6px 10px;
    }

    .cookie-bar__text {
        font-size: 12.5px;
        line-height: 1.45;
    }

    .cookie-bar__btn {
        min-height: 30px;
        padding: 3px 14px;
        font-size: 12.5px;
    }
}

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