/* cookie-consent.css
   ------------------
   Styles for the cookie consent banner in index.html, driven by cookie-consent.js.
   Web build only - the MAUI app does not show a cookie banner. */

.jd-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: #131313;
    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: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.95rem;
    line-height: 1.45;
}

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

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

/* The Job Duck logo asset is white, so it needs the brand teal behind it. */
.jd-cc-logo-chip {
    flex: 0 0 auto;
    background: #086A76;
    border-radius: 0.4rem;
    padding: 0.3rem 0.6rem;
    display: inline-flex;
    align-items: center;
}

.jd-cc-logo {
    height: 22px;
    width: auto;
    display: block;
}

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

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

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

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

.jd-cc-actions {
    flex: 0 0 auto;
}

.jd-cc-accept {
    background: #086A76;
    color: #ffffff;
    border: none;
    border-radius: 0.35rem;
    padding: 0.85rem 4rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}

    .jd-cc-accept:hover {
        background: #065159;
    }

    .jd-cc-accept:focus-visible {
        outline: 2px solid #131313;
        outline-offset: 2px;
    }

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

    .jd-cc-links a {
        color: #086A76;
        text-decoration: underline;
    }

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

    .jd-cc-accept {
        width: 100%;
        padding: 0.85rem 1rem;
    }

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

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