/* cookie-consent.css
   ------------------
   Styles for the cookie consent banner rendered in App.razor and driven by
   cookie-consent.js. Kept out of app.css so the banner can be dropped/updated
   as one unit. */

.gsu-cc-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000; /* above MudBlazor's app bar (1100) and drawer (1200) */
    background: #ffffff;
    color: #212529;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
    padding: 1rem 1.5rem 1.25rem 1.5rem;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.95rem;
    line-height: 1.45;
}

.gsu-cc-banner[hidden] {
    display: none;
}

.gsu-cc-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.75rem;
}

.gsu-cc-logo {
    height: 26px;
    width: auto;
    flex: 0 0 auto;
}

.gsu-cc-title {
    flex: 1 1 auto;
    text-align: center;
    margin: 0;
    font-size: 1.15rem;
    font-weight: 500;
    color: #183D62;
}

/* Balances the logo so the title stays optically centred. */
.gsu-cc-header-spacer {
    flex: 0 0 auto;
    width: 140px;
}

.gsu-cc-body {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.gsu-cc-text {
    flex: 1 1 auto;
    margin: 0;
}

.gsu-cc-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 0.75rem;
}

.gsu-cc-accept,
.gsu-cc-decline {
    border-radius: 0.35rem;
    padding: 0.85rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.gsu-cc-accept {
    background: #C0D419;
    color: #183D62;
    border: none;
}

    .gsu-cc-accept:hover {
        background: #98B624;
    }

.gsu-cc-decline {
    background: #FFFFFF;
    color: #183D62;
    border: 1px solid #183D62;
}

    .gsu-cc-decline:hover {
        background: #EDF1F5;
    }

    .gsu-cc-accept:focus-visible,
    .gsu-cc-decline:focus-visible {
        outline: 2px solid #183D62;
        outline-offset: 2px;
    }

.gsu-cc-links {
    padding-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

    .gsu-cc-links a {
        color: #7A9C15;
        text-decoration: underline;
    }

@media (max-width: 900px) {
    .gsu-cc-body {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .gsu-cc-actions {
        flex-direction: column;
    }

    .gsu-cc-accept,
    .gsu-cc-decline {
        width: 100%;
        padding: 0.85rem 1rem;
    }

    .gsu-cc-header-spacer {
        display: none;
    }

    .gsu-cc-title {
        text-align: left;
    }
}

/* ---- Consent toggles on the Opt-out preferences page ---- */

.gsu-cc-pref-actions {
    margin: 1rem 0;
}


.gsu-cc-pref {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #dee2e6;
}

    .gsu-cc-pref input[type="checkbox"] {
        margin-top: 0.25rem;
        width: 1.1rem;
        height: 1.1rem;
        accent-color: #98B624;
    }

    .gsu-cc-pref label {
        font-weight: 500;
        color: #183D62;
    }

.gsu-cc-pref-note {
    margin: 0.15rem 0 0 0;
    color: #636464;
    font-size: 0.9rem;
    font-weight: 400;
}

.gsu-cc-pref-status {
    margin-top: 1rem;
    color: #636464;
    font-size: 0.9rem;
}
