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

.cookie-consent-banner {
    position: fixed;
    inset: auto 0 0;
    z-index: 9500;
    padding: 16px;
    background: linear-gradient(to top, rgba(50, 49, 48, 0.16), transparent);
    animation: cookie-consent-show 220ms ease-out;
}

.cookie-consent-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    width: min(100%, 1040px);
    margin: 0 auto;
    padding: 18px 20px;
    color: var(--bazr-text-primary, #323130);
    background: var(--bazr-surface, #ffffff);
    border: 1px solid var(--bazr-border, #edebe9);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(50, 49, 48, 0.22);
}

.cookie-consent-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    font-size: 1.75rem;
    background: rgba(0, 120, 212, 0.1);
    border-radius: 12px;
}

.cookie-consent-content {
    min-width: 0;
}

.cookie-consent-title {
    margin: 0 0 4px;
    color: inherit;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.cookie-consent-message {
    margin: 0 0 4px;
    color: var(--bazr-text-secondary, #605e5c);
    font-size: 0.875rem;
    line-height: 1.5;
}

.cookie-consent-link {
    color: var(--bazr-primary, #0078d4);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.cookie-consent-link:hover {
    color: var(--bazr-primary-hover, #106ebe);
    text-decoration: underline;
}

.cookie-consent-button {
    min-height: 42px;
    padding: 9px 18px;
    color: #ffffff;
    white-space: nowrap;
    background: var(--bazr-primary, #0078d4);
    border: 0;
    border-radius: var(--bazr-radius, 6px);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 160ms ease, box-shadow 160ms ease;
}

.cookie-consent-button:hover {
    background: var(--bazr-primary-hover, #106ebe);
    box-shadow: var(--bazr-shadow, 0 2px 4px rgba(0, 0, 0, 0.1));
}

.cookie-consent-button:focus-visible,
.cookie-consent-link:focus-visible {
    outline: 3px solid rgba(0, 120, 212, 0.28);
    outline-offset: 3px;
}

@keyframes cookie-consent-show {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

@media (prefers-color-scheme: dark) {
    .cookie-consent-panel {
        color: #ffffff;
        background: #292827;
        border-color: #484644;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.42);
    }

    .cookie-consent-message {
        color: #c8c6c4;
    }
}

@media (max-width: 720px) {
    .cookie-consent-banner {
        padding: 12px;
    }

    .cookie-consent-panel {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 14px;
        padding: 16px;
    }

    .cookie-consent-button {
        grid-column: 1 / -1;
        width: 100%;
    }
}

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

    .cookie-consent-button {
        transition: none;
    }
}
