/*
 * Consent banner (Plan 03 Task 9). Non-modal: sits at the bottom of the
 * viewport, never blocks the page (no overlay/backdrop -- no cookie wall),
 * and both actions ("Accept analytics" / "Reject") share one button class
 * so neither is visually more prominent than the other.
 */

.sp-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: #14171f;
    color: #f4f5f7;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
}

.sp-consent-banner[dir="rtl"] {
    text-align: right;
}

.sp-consent-title {
    flex: 1 1 100%;
    margin: 0;
    font-weight: 600;
    font-size: 15px;
}

.sp-consent-body {
    flex: 1 1 320px;
    margin: 0;
    color: #c7cad1;
}

.sp-consent-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

/*
 * Both buttons share this one class and the same size/weight/border -- the
 * "equal prominence" requirement -- and are told apart only by their label
 * and a neutral border-color tint, never by filled-vs-outline styling.
 */
.sp-consent-btn {
    appearance: none;
    border: 1px solid #4a4f5c;
    border-radius: 6px;
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    background: #1f232d;
    color: #f4f5f7;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.sp-consent-btn:hover,
.sp-consent-btn:focus-visible {
    background: #2a2f3c;
    border-color: #6a90ff;
}

.sp-consent-btn:focus-visible {
    outline: 2px solid #6a90ff;
    outline-offset: 2px;
}

.sp-consent-policy-link {
    color: #9fb4ff;
    text-decoration: underline;
    font-size: 13px;
    white-space: nowrap;
}

.sp-consent-policy-link:hover,
.sp-consent-policy-link:focus-visible {
    color: #c3d1ff;
}

@media (max-width: 640px) {
    .sp-consent-banner {
        padding: 14px 16px;
        gap: 10px;
    }

    .sp-consent-actions {
        flex: 1 1 100%;
    }

    .sp-consent-btn {
        flex: 1 1 auto;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sp-consent-btn {
        transition: none;
    }
}
