/* =========================================================================
   Cookie consent banner
   ========================================================================= */

#aa-consent {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1080; /* above Crisp's launcher, below Bootstrap modals */
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    max-width: 44rem;
    margin: 0 auto;
}

.aa-consent-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
}

.aa-consent-text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #334155;
}

.aa-consent-text a {
    color: #2563eb;
    text-decoration: underline;
    white-space: nowrap;
}

.aa-consent-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Accept and Reject are deliberately the same size, weight, and emphasis.
   Making Reject harder to find or use would invalidate the consent. */
.aa-consent-btn {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    border: 1px solid #2563eb;
    cursor: pointer;
    white-space: nowrap;
    min-width: 6rem;
}

.aa-consent-accept {
    background: #2563eb;
    color: #fff;
}

.aa-consent-reject {
    background: #fff;
    color: #2563eb;
}

.aa-consent-btn:hover {
    opacity: 0.9;
}

.aa-consent-btn:focus-visible {
    outline: 2px solid #0f172a;
    outline-offset: 2px;
}

@media (max-width: 575.98px) {
    .aa-consent-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.875rem;
    }

    .aa-consent-actions {
        flex-direction: row;
    }

    .aa-consent-btn {
        flex: 1;
    }
}

@media (prefers-color-scheme: dark) {
    #aa-consent {
        background: #1e293b;
        border-color: rgba(255, 255, 255, 0.14);
    }

    .aa-consent-text {
        color: #e2e8f0;
    }

    .aa-consent-reject {
        background: transparent;
        color: #93c5fd;
        border-color: #93c5fd;
    }
}
