/* Cookie consent banner. Self-contained (no dependency on page-specific .btn
   classes) and theme-aware via the same CSS variables used across the site. */
.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%) translateY(150%);
    width: calc(100% - 2rem);
    max-width: 720px;
    background: var(--bg-tool, #ffffff);
    color: var(--text-primary, #0b1c2f);
    border: 1px solid var(--border-color, #d1d9e6);
    border-radius: 1rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    padding: 1.25rem 1.5rem;
    z-index: 1000;
    font-size: 0.9rem;
    line-height: 1.55;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}
.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.cookie-banner p {
    margin: 0 0 1rem;
    color: var(--text-secondary, #1e293b);
}
.cookie-banner a {
    color: var(--primary, #2563eb);
    text-decoration: underline;
}
.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
}
.cb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.4rem;
    border-radius: 40px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    color: inherit;
    background: none;
    transition: background 0.15s, border-color 0.15s;
}
.cb-btn:focus-visible {
    outline: 2px solid var(--primary, #2563eb);
    outline-offset: 2px;
}
.cb-reject {
    border-color: var(--border-color, #d1d9e6);
    color: var(--text-primary, #0b1c2f);
}
.cb-reject:hover {
    background: var(--btn-hover, #e2e8f0);
}
.cb-accept {
    background: var(--primary, #2563eb);
    color: #ffffff;
}
.cb-accept:hover {
    background: var(--primary-hover, #1d4ed8);
}
@media (max-width: 480px) {
    .cookie-banner {
        padding: 1rem 1.1rem;
        bottom: 0.75rem;
        width: calc(100% - 1.5rem);
    }
    .cookie-actions {
        flex-direction: column-reverse;
    }
    .cb-btn {
        width: 100%;
    }
}