/* JHK shared cookie consent */

.jhk-cookie-consent[hidden],
.jhk-cookie-consent [hidden] {
    display: none !important;
}

.jhk-cookie-consent,
.jhk-cookie-consent *,
.jhk-cookie-consent *::before,
.jhk-cookie-consent *::after {
    box-sizing: border-box;
}

.jhk-cookie-consent {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2147483000;
    color: #4b5b7c;
    font-family: Helvetica, Calibri, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    pointer-events: none;
}

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

.jhk-cookie-consent__banner {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 24px 30px;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #dce2ee;
    box-shadow: 0 -12px 40px rgba(22, 29, 45, 0.18);
    pointer-events: auto;
}

.jhk-cookie-consent__content {
    flex: 1 1 auto;
    max-width: 1100px;
    padding-right: 30px;
}

.jhk-cookie-consent__title,
.jhk-cookie-consent__preferences h2,
.jhk-cookie-consent__preferences h3 {
    color: #15284f;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.25;
}

.jhk-cookie-consent__title {
    margin: 0 0 10px;
    font-size: 25px;
}

.jhk-cookie-consent__description,
.jhk-cookie-consent__note {
    max-width: 980px;
    margin: 0;
}

.jhk-cookie-consent__note {
    margin-top: 7px;
    font-size: 14px;
}

.jhk-cookie-consent__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

.jhk-cookie-consent__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 0 0 0 11px;
    padding: 11px 18px;
    color: #24408f;
    background: #ffffff;
    border: 1px solid #24408f;
    border-radius: 10px;
    box-shadow: none;
    font: 600 15px/1.25 Helvetica, Calibri, Arial, sans-serif;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.jhk-cookie-consent__button:hover {
    color: #ffffff;
    background: #1d3473;
    border-color: #1d3473;
}

.jhk-cookie-consent__button--primary {
    color: #ffffff;
    background: #24408f;
}

.jhk-cookie-consent__button--primary:hover {
    background: #15284f;
    border-color: #15284f;
}

.jhk-cookie-consent__button--link {
    background: transparent;
}

.jhk-cookie-consent__button:focus,
.jhk-cookie-consent__close:focus,
.jhk-cookie-consent a:focus,
.jhk-cookie-consent input:focus {
    outline: 3px solid rgba(36, 64, 143, 0.35);
    outline-offset: 2px;
}

.jhk-cookie-consent__backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    background: rgba(35, 43, 60, 0.38);
    pointer-events: auto;
}

.jhk-cookie-consent__preferences {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: calc(100% - 40px);
    max-width: 900px;
    max-height: calc(100vh - 40px);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dce2ee;
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(10, 18, 35, 0.32);
    transform: translate(-50%, -50%);
    pointer-events: auto;
}

.jhk-cookie-consent__preferences-header,
.jhk-cookie-consent__preferences-footer {
    flex: 0 0 auto;
    padding: 20px 24px;
    background: #ffffff;
}

.jhk-cookie-consent__preferences-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #dce2ee;
}

.jhk-cookie-consent__preferences-header h2 {
    margin: 0;
    padding-right: 20px;
    font-size: 25px;
}

.jhk-cookie-consent__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0 0 0 auto;
    padding: 0;
    color: #15284f;
    background: transparent;
    border: 0;
    border-radius: 50%;
    box-shadow: none;
    font: 400 34px/1 Arial, sans-serif;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.jhk-cookie-consent__close:hover {
    background: #eef2f8;
}

.jhk-cookie-consent__preferences-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 24px;
    overflow-x: hidden;
    overflow-y: auto;
}

.jhk-cookie-consent__introduction {
    margin-bottom: 22px;
}

.jhk-cookie-consent__introduction h3,
.jhk-cookie-consent__category h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.jhk-cookie-consent__introduction p,
.jhk-cookie-consent__category p {
    margin: 7px 0 0;
}

.jhk-cookie-consent__category {
    margin-top: 16px;
    padding: 18px;
    background: #f7f9fc;
    border: 1px solid #dce2ee;
    border-radius: 10px;
}

.jhk-cookie-consent__category-header {
    display: flex;
    align-items: flex-start;
}

.jhk-cookie-consent__category-header h3 {
    flex: 1 1 auto;
    padding-right: 20px;
}

.jhk-cookie-consent__category-header label {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    color: #15284f;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.jhk-cookie-consent__category-header input {
    width: 18px;
    height: 18px;
    margin: 1px 7px 0 0;
    accent-color: #24408f;
}

.jhk-cookie-consent__category-header input:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.jhk-cookie-consent__cookies {
    color: #65728c;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.jhk-cookie-consent__legal-links {
    display: flex;
    flex-wrap: wrap;
    margin-top: 22px;
}

.jhk-cookie-consent__legal-links a {
    margin: 0 22px 7px 0;
    color: #24408f;
    font-weight: 700;
    text-decoration: underline;
}

.jhk-cookie-consent__legal-links a:hover {
    color: #15284f;
}

.jhk-cookie-consent__preferences-footer {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #dce2ee;
}

.jhk-cookie-consent__preferences-footer .jhk-cookie-consent__button {
    margin-left: 0;
}

@media (max-width: 1050px) {
    .jhk-cookie-consent__banner {
        align-items: flex-start;
        flex-direction: column;
    }

    .jhk-cookie-consent__content {
        max-width: none;
        padding-right: 0;
    }

    .jhk-cookie-consent__actions {
        flex-wrap: wrap;
        justify-content: flex-start;
        margin: 18px 0 0 -11px;
    }

    .jhk-cookie-consent__button {
        margin-bottom: 8px;
    }
}

@media (max-width: 600px) {
    .jhk-cookie-consent {
        font-size: 15px;
    }

    .jhk-cookie-consent__banner {
        max-height: 100vh;
        padding: 20px;
        overflow-y: auto;
    }

    .jhk-cookie-consent__title,
    .jhk-cookie-consent__preferences-header h2 {
        font-size: 21px;
    }

    .jhk-cookie-consent__actions {
        display: block;
        width: 100%;
        margin-left: 0;
    }

    .jhk-cookie-consent__button {
        width: 100%;
        margin: 0 0 9px;
        white-space: normal;
    }

    .jhk-cookie-consent__preferences {
        top: 10px;
        right: 10px;
        bottom: 10px;
        left: 10px;
        width: auto;
        max-height: none;
        border-radius: 10px;
        transform: none;
    }

    .jhk-cookie-consent__preferences-header,
    .jhk-cookie-consent__preferences-body,
    .jhk-cookie-consent__preferences-footer {
        padding: 17px;
    }

    .jhk-cookie-consent__category-header {
        display: block;
    }

    .jhk-cookie-consent__category-header h3 {
        padding-right: 0;
    }

    .jhk-cookie-consent__category-header label {
        margin-top: 8px;
    }

    .jhk-cookie-consent__preferences-footer {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jhk-cookie-consent *,
    .jhk-cookie-consent *::before,
    .jhk-cookie-consent *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
