.cookie-consent,
.cookie-modal,
.cookie-settings-button {
    font-family: "Raleway", Arial, sans-serif;
    color: #07224C;
    box-sizing: border-box;
}

.cookie-consent *,
.cookie-modal *,
.cookie-settings-button * {
    box-sizing: border-box;
}

.cookie-consent {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 26px;
    z-index: 10000;
    display: none;
    width: calc(100vw - 120px);
    max-width: 1120px;
    background: #ffffff;
    border: 1px solid #7D95BA;
    box-shadow: 0 18px 45px rgba(7, 34, 76, 0.18);
    transform: translateX(-50%);
}

.cookie-consent.is-visible {
    display: block;
}

.cookie-consent__inner {
    padding: 34px 40px 30px;
}

.cookie-consent h2 {
    margin: 0 0 18px;
    color: #07224C;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0;
}

.cookie-consent p,
.cookie-modal p {
    margin: 0;
    color: #07224C;
    font-size: 15px;
    line-height: 1.55;
}

.cookie-consent a,
.cookie-modal a {
    display: inline;
    color: #BA9A7D;
    font-weight: 700;
    text-decoration: none;
}

.cookie-consent a:hover,
.cookie-modal a:hover {
    text-decoration: underline;
}

.cookie-consent__close,
.cookie-modal__close {
    position: absolute;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #7D95BA;
    background: #ffffff;
    color: #07224C;
    width: 42px;
    height: 42px;
    padding: 0;
    font-size: 34px;
    line-height: 36px;
    cursor: pointer;
    text-align: center;
}

.cookie-consent__close {
    top: 30px;
    right: 30px;
    border-color: transparent;
    color: #07224C;
}

.cookie-modal__close {
    top: 40px;
    right: 40px;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.cookie-button,
.cookie-modal__accept-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    min-height: 52px;
    padding: 0 24px;
    border: 1px solid #07224C;
    background: #ffffff;
    color: #07224C;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-align: center;
    text-transform: none;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.cookie-button--primary {
    border-color: #07224C;
    background: #07224C;
    color: #ffffff;
}

.cookie-button--outline:hover,
.cookie-button--outline:focus,
.cookie-modal__accept-all:hover,
.cookie-modal__accept-all:focus {
    background: #DEE4EE;
}

.cookie-button--primary:hover,
.cookie-button--primary:focus {
    border-color: #0B315F;
    background: #0B315F;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: none;
}

.cookie-modal.is-open {
    display: block;
}

.cookie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.cookie-modal__dialog {
    position: relative;
    width: min(872px, calc(100vw - 52px));
    max-height: calc(100vh - 72px);
    margin: 38px auto;
    overflow: auto;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(7, 34, 76, 0.24);
}

.cookie-modal__content {
    padding: 54px 54px 46px;
}

.cookie-modal h2 {
    margin: 0 70px 18px 0;
    color: #07224C;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0;
}

.cookie-modal__accept-all {
    min-width: 0;
    min-height: auto;
    margin: 24px 0 30px;
    padding: 0;
    border: 0;
    color: #07224C;
    font-size: 14px;
    font-weight: 700;
    background: transparent;
}

.cookie-preferences h3 {
    margin: 0 0 24px;
    color: #07224C;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0;
}

.cookie-preference {
    border: 1px solid #DEE4EE;
    border-bottom: 0;
}

.cookie-preference:last-child {
    border-bottom: 1px solid #DEE4EE;
}

.cookie-preference__head {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 84px;
    padding: 16px 24px;
}

.cookie-preference__toggle {
    appearance: none;
    -webkit-appearance: none;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.cookie-preference__arrow {
    display: block;
    width: 13px;
    height: 13px;
    margin: 8px auto 0;
    border-right: 2px solid #07224C;
    border-bottom: 2px solid #07224C;
    transform: rotate(45deg);
    transition: transform 160ms ease;
}

.cookie-preference__toggle[aria-expanded="true"] .cookie-preference__arrow {
    margin-top: 12px;
    transform: rotate(225deg);
}

.cookie-preference__title {
    color: #07224C;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 700;
}

.cookie-preference__always {
    color: #BA9A7D;
    font-size: 19px;
    font-weight: 700;
    white-space: nowrap;
}

.cookie-preference__body {
    padding: 0 24px 24px 74px;
    border-top: 1px solid #DEE4EE;
    background: #F8FAFD;
}

.cookie-preference__body p {
    padding-top: 20px;
}

.cookie-switch {
    position: relative;
    display: inline-flex;
    width: 70px;
    height: 38px;
    margin: 0;
}

.cookie-switch input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.cookie-switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #7D95BA;
    cursor: pointer;
    transition: background-color 160ms ease;
}

.cookie-switch span:before {
    content: "";
    position: absolute;
    left: 7px;
    top: 7px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 160ms ease;
}

.cookie-switch input:checked + span {
    background: #07224C;
}

.cookie-switch input:checked + span:before {
    transform: translateX(32px);
}

.cookie-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    font-size: 13px;
}

.cookie-table th,
.cookie-table td {
    padding: 12px;
    border: 1px solid #DEE4EE;
    color: #07224C;
    line-height: 1.4;
    text-align: left;
    vertical-align: top;
}

.cookie-table th {
    background: #EDE6DE;
    font-weight: 700;
}

.cookie-modal__actions {
    margin-top: 36px;
}

.cookie-settings-button {
    position: fixed;
    left: 20px;
    bottom: 18px;
    z-index: 9998;
    min-width: 0;
    min-height: 0;
    padding: 10px 14px;
    border: 1px solid #07224C;
    background: #ffffff;
    color: #07224C;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(7, 34, 76, 0.12);
}

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

@media only screen and (max-width: 767px) {
    .cookie-consent {
        width: calc(100vw - 24px);
        max-width: none;
        bottom: 12px;
    }

    .cookie-consent__inner {
        padding: 26px 18px 20px;
    }

    .cookie-consent h2 {
        padding-right: 42px;
        font-size: 23px;
    }

    .cookie-consent__close {
        top: 16px;
        right: 16px;
    }

    .cookie-consent__actions,
    .cookie-button {
        width: 100%;
    }

    .cookie-modal__dialog {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
        margin: 12px auto;
    }

    .cookie-modal__content {
        padding: 46px 20px 30px;
    }

    .cookie-modal__close {
        top: 16px;
        right: 16px;
    }

    .cookie-modal h2 {
        margin-right: 48px;
        font-size: 28px;
    }

    .cookie-preferences h3 {
        font-size: 22px;
    }

    .cookie-preference__head {
        grid-template-columns: 28px minmax(0, 1fr);
        min-height: 82px;
        padding: 16px;
    }

    .cookie-preference__always,
    .cookie-switch {
        grid-column: 2;
        justify-self: start;
        margin-top: 10px;
    }

    .cookie-preference__title {
        font-size: 18px;
    }

    .cookie-preference__always {
        font-size: 16px;
    }

    .cookie-preference__body {
        padding: 0 16px 20px;
    }

    .cookie-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
