/* Cookie consent banner — Quarter Results
   Paired with js/consent.js and the Consent Mode v2 defaults in header.php */

.qr-consent-banner {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%) translateY(0);
    width: min(960px, calc(100% - 2rem));
    background: #ffffff;
    color: #1f2933;
    border: 1px solid rgba(0, 82, 204, 0.18);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
    z-index: 12000;
    padding: 1rem 1.25rem;
    animation: qrConsentIn 0.28s ease;
}

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

@keyframes qrConsentIn {
    from { opacity: 0; transform: translateX(-50%) translateY(16px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.qr-consent-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.qr-consent-text { flex: 1 1 360px; min-width: 240px; }
.qr-consent-text strong { display: block; font-size: 1rem; margin-bottom: 0.25rem; }
.qr-consent-text p { margin: 0; font-size: 0.875rem; line-height: 1.5; color: #52606d; }
.qr-consent-text a { color: #0052cc; text-decoration: underline; }

.qr-consent-actions {
    display: flex;
    gap: 0.6rem;
    flex: 0 0 auto;
    flex-wrap: wrap;
}

.qr-consent-btn {
    font: inherit;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.65rem 1.25rem;
    border-radius: 9px;
    cursor: pointer;
    border: 2px solid #0052cc;
    transition: background 0.18s ease, color 0.18s ease;
    white-space: nowrap;
}

.qr-consent-accept { background: #0052cc; color: #fff; }
.qr-consent-accept:hover { background: #003d99; border-color: #003d99; }

.qr-consent-reject { background: #fff; color: #0052cc; }
.qr-consent-reject:hover { background: #eef4ff; }

.qr-consent-btn:focus-visible { outline: 3px solid rgba(0, 82, 204, 0.4); outline-offset: 2px; }

.footer-cookie-settings {
    background: none;
    border: none;
    padding: 0;
    margin-left: 0.5rem;
    color: inherit;
    opacity: 0.8;
    text-decoration: underline;
    font: inherit;
    cursor: pointer;
}
.footer-cookie-settings:hover { opacity: 1; }

@media (max-width: 600px) {
    .qr-consent-banner { bottom: 0; border-radius: 14px 14px 0 0; width: 100%; left: 0; transform: none; }
    @keyframes qrConsentIn {
        from { opacity: 0; transform: translateY(16px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    .qr-consent-actions { width: 100%; }
    .qr-consent-actions .qr-consent-btn { flex: 1 1 auto; }
}
