/* GDPR consent banner + modal styling. */

.consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: rgba(22, 22, 23, 0.97);
    color: #fff;
    padding: 1rem 1.25rem;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.consent-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .consent-banner-inner {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }
    .consent-banner-text {
        flex: 1;
    }
    .consent-banner-actions {
        flex-shrink: 0;
    }
}

.consent-banner-title {
    font-size: 1.05rem;
    margin: 0 0 0.4rem 0;
    font-weight: 600;
}

.consent-banner-body {
    font-size: 0.9rem;
    line-height: 1.45;
}

.consent-banner-body a {
    color: #fff;
    text-decoration: underline;
}

.consent-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* Equal-prominence buttons per EDPB Guidelines 05/2020:
   Reject and Accept must look the same — only color differs. */
.consent-btn {
    min-width: 110px;
    font-weight: 500;
}

/* Force readable text inside the consent modal regardless of page-level overrides
   (home.css applies `body { color: rgba(255,255,255,.8) !important; }`). */
#consentModal .modal-header,
#consentModal .modal-title,
#consentModal .modal-body,
#consentModal .modal-body p,
#consentModal .modal-body code,
#consentModal .modal-body label,
#consentModal .modal-footer {
    color: #212529 !important;
}

#consentModal .modal-body .text-muted {
    color: #6c757d !important;
}

.consent-category {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.85rem;
}

.consent-category:last-of-type {
    margin-bottom: 0;
}

.consent-toggle {
    margin-bottom: 0.4rem;
}

.consent-toggle .form-check-input {
    cursor: pointer;
}

.consent-toggle .form-check-input:disabled {
    cursor: not-allowed;
}

