/* JobScale - Cookie consent */

.cookie-consent-open {
    overflow: hidden;
}

.cookie-consent-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px;
    background: rgba(14, 24, 20, .38);
    backdrop-filter: blur(3px);
}

.cookie-consent-panel {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 34px;
    align-items: end;
    padding: 28px 30px;
    border: 1px solid #dfe5e2;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 22px 70px rgba(14, 28, 22, .20);
}

.cookie-consent-kicker {
    display: inline-block;
    margin-bottom: 7px;
    color: #1f7a4d;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
}

.cookie-consent-copy h2 {
    margin: 0 0 10px;
    color: #17231f;
    font-size: clamp(20px, 2vw, 26px);
}

.cookie-consent-copy p {
    max-width: 700px;
    margin: 0;
    color: #59665f;
    font-size: 13px;
    line-height: 1.6;
}

.cookie-consent-copy .cookie-consent-note {
    margin-top: 7px;
    font-size: 11px;
    color: #78817d;
}

.cookie-consent-policy {
    display: inline-block;
    margin-top: 10px;
    color: #1f6c47;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.cookie-consent-policy:hover {
    text-decoration: none;
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    white-space: nowrap;
}

.cookie-consent-button {
    min-height: 44px;
    padding: 0 17px;
    border-radius: 11px;
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.cookie-consent-button.is-primary {
    border: 1px solid #1f7a4d;
    background: #1f7a4d;
    color: #fff;
}

.cookie-consent-button.is-primary:hover {
    filter: brightness(.95);
}

.cookie-consent-button.is-secondary {
    border: 1px solid #ccd6d1;
    background: #fff;
    color: #34453d;
}

.cookie-consent-button.is-secondary:hover {
    border-color: #9fb2a8;
}

.cookie-consent-settings-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 760px) {
    .cookie-consent-overlay {
        padding: 12px;
    }

    .cookie-consent-panel {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 22px 20px;
        border-radius: 17px;
    }

    .cookie-consent-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .cookie-consent-button {
        width: 100%;
    }
}
