/* Cookie consent bar (see /consent.js). Non-blocking: the page stays usable while it is shown. */
.consent-bar {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    pointer-events: none;
    font-family: 'Rubik', sans-serif;
}

.consent-bar[hidden] {
    display: none;
}

.consent-bar__inner {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 1040px;
    padding: 16px 22px;
    background: #fff;
    color: var(--text-gray, #414856);
    border: 1px solid #d9e6f5;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(26, 52, 108, 0.18);
}

.consent-bar__text {
    flex: 1 1 auto;
    min-width: 0;
}

.consent-bar__body {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
}

.consent-bar__body a {
    color: var(--primary-blue, #3E66F9);
    text-decoration: underline;
    white-space: nowrap;
}

.consent-bar__actions {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
}

/* Accept is the filled brand button; Reject has the same size and shape in outline, clearly a button and fully
   readable, so refusing is as easy as accepting (the pattern of KoRo, Studyflix, Babbel). */
.consent-bar__btn {
    min-width: 130px;
    padding: 12px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--primary-blue, #3E66F9);
    color: #fff;
    font: 600 15px/1.2 'Rubik', sans-serif;
    cursor: pointer;
}

.consent-bar__btn:hover {
    background: #2f55e0;
}

.consent-bar__btn[data-consent="denied"] {
    background: #fff;
    color: var(--primary-blue, #3E66F9);
    box-shadow: inset 0 0 0 2px var(--primary-blue, #3E66F9);
}

.consent-bar__btn[data-consent="denied"]:hover {
    background: #f1f5ff;
}

.consent-bar__btn:focus-visible {
    outline: 3px solid var(--accent-orange, #FF9B26);
    outline-offset: 2px;
}

/* Keep the end of the page reachable while the bar is shown. */
body.has-consent-bar {
    padding-bottom: 110px;
}

/* Phones: a compact card, text above one row of two equal buttons. */
@media (max-width: 760px) {
    .consent-bar {
        left: 8px;
        right: 8px;
        bottom: 8px;
    }

    .consent-bar__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 16px;
        border-radius: 14px;
    }

    .consent-bar__body {
        font-size: 14px;
        line-height: 1.4;
    }

    .consent-bar__actions {
        gap: 8px;
    }

    .consent-bar__btn {
        flex: 1 1 0;
        min-width: 0;
        padding: 12px 10px;
        font-size: 15px;
    }

    body.has-consent-bar {
        padding-bottom: 190px;
    }
}
