/* =============================================================
   SatQuiz Cookie Consent Banner - Custom HTML CMP
   GDPR / ePrivacy compliance (EN / CA / ES)
   Mobile-first: base 375px, then min-width 600px, then 1025px
   ============================================================= */

#satquiz-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2147483000; /* very high, above any UI overlays */
    padding: 16px;
    background: rgba(15, 23, 42, 0.97);           /* slate-900 */
    color: #f8fafc;                                /* slate-50 */
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    transform: translateY(100%);
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

#satquiz-cookie-banner.show {
    transform: translateY(0);
}

#satquiz-cookie-banner .scb-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#satquiz-cookie-banner .scb-text {
    margin: 0;
    color: #e2e8f0; /* slate-200 */
}

#satquiz-cookie-banner .scb-text strong {
    color: #f8fafc;
}

#satquiz-cookie-banner .scb-link {
    color: #7dd3fc;      /* sky-300 */
    text-decoration: underline;
    text-underline-offset: 2px;
}

#satquiz-cookie-banner .scb-link:hover,
#satquiz-cookie-banner .scb-link:focus {
    color: #bae6fd;
}

#satquiz-cookie-banner .scb-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#satquiz-cookie-banner .scb-btn {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;                        /* touch target WCAG */
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color 160ms ease, transform 80ms ease, border-color 160ms ease;
    font-family: inherit;
}

#satquiz-cookie-banner .scb-btn:active {
    transform: scale(0.98);
}

#satquiz-cookie-banner .scb-btn-accept {
    background: #10b981;                     /* emerald-500 */
    color: #ffffff;
}

#satquiz-cookie-banner .scb-btn-accept:hover,
#satquiz-cookie-banner .scb-btn-accept:focus {
    background: #059669;                     /* emerald-600 */
}

#satquiz-cookie-banner .scb-btn-reject {
    background: transparent;
    color: #f1f5f9;
    border-color: rgba(226, 232, 240, 0.35);
}

#satquiz-cookie-banner .scb-btn-reject:hover,
#satquiz-cookie-banner .scb-btn-reject:focus {
    background: rgba(226, 232, 240, 0.08);
    border-color: rgba(226, 232, 240, 0.6);
}

#satquiz-cookie-banner .scb-btn:focus-visible {
    outline: 2px solid #7dd3fc;
    outline-offset: 2px;
}

/* Tablet+ : text and buttons on one row */
@media (min-width: 600px) {
    #satquiz-cookie-banner {
        padding: 18px 24px;
        font-size: 14.5px;
    }
    #satquiz-cookie-banner .scb-inner {
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }
    #satquiz-cookie-banner .scb-text {
        flex: 1;
        min-width: 0;
    }
    #satquiz-cookie-banner .scb-actions {
        flex-direction: row;
        flex-shrink: 0;
        gap: 10px;
    }
    #satquiz-cookie-banner .scb-btn {
        min-width: 120px;
    }
}

/* Desktop: slightly larger */
@media (min-width: 1025px) {
    #satquiz-cookie-banner {
        padding: 20px 32px;
        font-size: 15px;
    }
    #satquiz-cookie-banner .scb-btn {
        min-width: 140px;
        padding: 12px 24px;
    }
}
