body[data-cookie-consent] {
    padding-bottom: var(--cookie-consent-space, 0px);
}

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

.cookie-consent {
    position: fixed;
    z-index: 900;
    right: 16px;
    bottom: 16px;
    left: 16px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    box-sizing: border-box;
    border: 1px solid #dadada;
    border-radius: 8px;
    background: #fff;
    color: #242424;
    box-shadow: 0 4px 24px rgba(20, 30, 70, .16);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

.cookie-consent__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
}

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

.cookie-consent h2 {
    margin: 0 0 8px;
    color: #243285;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.cookie-consent p {
    margin: 0 0 8px;
}

.cookie-consent a,
.cookie-consent__close {
    color: #243285;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-consent .cookie-consent__status {
    margin: 8px 0 0;
    color: #535353;
    font-size: 13px;
}

.cookie-consent__actions {
    display: flex;
    flex: 0 0 230px;
    flex-direction: column;
    gap: 10px;
}

.cookie-consent__button {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 12px 16px;
    border: 1px solid #243285;
    border-radius: 8px;
    background: #fff;
    color: #243285;
    font: inherit;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
}

.cookie-consent__button--accept {
    background: #243285;
    color: #fff;
}

.cookie-consent__button:hover {
    box-shadow: inset 0 0 0 1px #243285;
}

.cookie-consent__close,
.cookie-settings {
    min-height: 44px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.cookie-settings {
    color: inherit;
    text-decoration: underline;
}

.cookie-consent:focus,
.cookie-consent a:focus,
.cookie-consent button:focus,
body .cookie-settings:focus {
    outline: 2px solid #243285 !important;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .cookie-consent {
        right: 8px;
        bottom: 8px;
        bottom: max(8px, env(safe-area-inset-bottom));
        left: 8px;
        max-height: calc(100vh - 24px - env(safe-area-inset-bottom, 0px));
    }

    .cookie-consent__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px;
    }

    .cookie-consent__actions {
        flex: auto;
    }
}
