/*
    Cookie consent (cookie-consent.js) - the SAME file on the main website (CSG.Cms.Portal) and on the applicant
    portals (CSG.EServices.Portal): keep the two copies alike. It stands on its own: no class or variable of either
    site is needed, so it looks the same on all of them.
*/
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 2147483000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 20px 24px;
    border-radius: 14px;
    background: #ffffff;
    color: #1e293b;
    box-shadow: 0 12px 40px rgba(0, 26, 80, .22), 0 0 0 1px rgba(0, 26, 80, .08);
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    text-align: start;
}

.cookie-banner[hidden], .cookie-state[hidden] {
    display: none;
}

.cookie-copy {
    flex: 1 1 420px;
    min-width: 0;
}

.cookie-banner h2 {
    margin: 0 0 4px;
    padding: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    color: #001a50;
}

.cookie-banner p {
    margin: 0;
    max-width: 68ch;
    font-size: 15px;
    line-height: 1.5;
    color: #334155;
}

.cookie-banner a {
    color: #00339e;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-banner .cookie-state {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #001a50;
}

.cookie-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 12px;
}

/* "Accept" and "Reject" are one class: the same size, weight and colour. */
.cookie-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    min-height: 46px;
    margin: 0;
    padding: 10px 22px;
    border: 2px solid #00339e;
    border-radius: 999px;
    background: #00339e;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}

    .cookie-button:hover {
        background: #001a50;
        border-color: #001a50;
    }

    .cookie-button:focus-visible {
        outline: 3px solid #27b0af;
        outline-offset: 2px;
    }

/* An embedded player or map that waits for consent */
.cookie-blocked {
    display: grid;
    gap: 14px;
    justify-items: start;
    padding: 24px;
    border: 1px dashed #b9c2d6;
    border-radius: 12px;
    background: #f3f6fc;
    color: #334155;
    text-align: start;
}

    .cookie-blocked p {
        margin: 0;
        max-width: 60ch;
    }

/* "Cookie settings" in a footer: a button that reads as one of the footer's links */
.cookie-settings {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

    .cookie-settings:hover {
        text-decoration-thickness: 2px;
    }

    .cookie-settings:focus-visible {
        outline: 3px solid #27b0af;
        outline-offset: 2px;
        border-radius: 2px;
    }

@media (max-width: 640px) {
    .cookie-banner {
        left: 8px;
        right: 8px;
        bottom: 8px;
        padding: 16px;
    }

    .cookie-actions {
        flex: 1 1 100%;
    }

    .cookie-button {
        flex: 1 1 0;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-button {
        transition: none;
    }
}
