/* =============================================================================
   Cookie consent banner — GDPR compliance
   Appears bottom-right, unobtrusive, auto-dismisses on decision.
   ============================================================================= */

.ux-banner {
    position: fixed;
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: 420px;
    margin-left: auto;
    z-index: 10000;
    background: #ffffff;
    border: 1px solid #e5e5ea;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    font-family: 'Avenir Next', 'Avenir', -apple-system, BlinkMacSystemFont, sans-serif;
    animation: ux-banner-slide-up 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ux-banner--dismissed {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}

@keyframes ux-banner-slide-up {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ux-banner-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ux-banner-text {
    font-size: 13px;
    line-height: 1.45;
    color: #1a1a2e;
}

.ux-banner-text strong {
    font-weight: 700;
}

.ux-banner-text a {
    color: #4a90d9;
    text-decoration: none;
}

.ux-banner-text a:hover {
    text-decoration: underline;
}

.ux-banner-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.ux-banner-decline,
.ux-banner-accept {
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
    border: 1px solid transparent;
}

.ux-banner-decline {
    background: transparent;
    color: #6e6e73;
    border-color: #e5e5ea;
}

.ux-banner-decline:hover {
    background: #f2f2f7;
    color: #1a1a2e;
}

.ux-banner-accept {
    background: #4a90d9;
    color: #ffffff;
}

.ux-banner-accept:hover {
    background: #357abd;
}

.ux-banner-decline:focus-visible,
.ux-banner-accept:focus-visible {
    outline: 2px solid #4a90d9;
    outline-offset: 2px;
}

/* Dark mode */
.dark-mode .ux-banner,
[data-theme="dark"] .ux-banner {
    background: #1e1e24;
    border-color: #2c2c32;
    color: #f5f5f7;
}

.dark-mode .ux-banner-text,
[data-theme="dark"] .ux-banner-text {
    color: #f5f5f7;
}

.dark-mode .ux-banner-decline,
[data-theme="dark"] .ux-banner-decline {
    border-color: #3a3a42;
    color: #aeaebc;
}

.dark-mode .ux-banner-decline:hover,
[data-theme="dark"] .ux-banner-decline:hover {
    background: #2c2c32;
    color: #f5f5f7;
}

@media (max-width: 480px) {
    .ux-banner {
        left: 8px;
        right: 8px;
        bottom: 8px;
    }
}
