html.cm-cookie-banner-open {
    overflow: hidden;
}

.cm-cookie-banner {
    position: fixed;
    inset: auto 0 0;
    z-index: 99999;
    padding: 20px;
    background: rgba(1, 19, 55, .35);
    backdrop-filter: blur(4px);
}

.cm-cookie-banner[hidden] {
    display: none !important;
}

.cm-cookie-banner__panel {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    color: #1d2b3a;
    border: 1px solid #dce5ef;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 20, 45, .25);
}

.cm-cookie-banner__intro h2 {
    margin: 0 0 10px;
    color: #07539a;
    font-size: 1.6rem;
}

.cm-cookie-banner__intro p {
    margin: 0 0 8px;
    color: #566576;
}

.cm-cookie-banner__intro a {
    font-weight: 700;
}

.cm-cookie-banner__actions,
.cm-cookie-settings__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.cm-cookie-button {
    min-height: 46px;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.cm-cookie-button--primary {
    background: #07539a;
    color: #fff;
}

.cm-cookie-button--secondary {
    background: #fff;
    color: #07539a;
    border-color: #07539a;
}

.cm-cookie-settings {
    margin-top: 24px;
    border-top: 1px solid #dce5ef;
    padding-top: 18px;
}

.cm-cookie-category {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
    padding: 20px 0;
    border-bottom: 1px solid #e5ebf2;
}

.cm-cookie-category__copy {
    flex: 1;
}

.cm-cookie-category h3 {
    margin: 0 0 6px;
    color: #07539a;
}

.cm-cookie-category p {
    margin: 0 0 6px;
    color: #566576;
}

.cm-cookie-category small {
    color: #657487;
}

.cm-cookie-switch {
    position: relative;
    flex: 0 0 auto;
    width: 52px;
    height: 30px;
    margin-top: 4px;
}

.cm-cookie-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cm-cookie-switch__slider {
    position: absolute;
    inset: 0;
    background: #c8d2df;
    border-radius: 999px;
    cursor: pointer;
    transition: .2s ease;
}

.cm-cookie-switch__slider:before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    left: 4px;
    top: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    transition: .2s ease;
}

.cm-cookie-switch input:checked + .cm-cookie-switch__slider {
    background: #0878d7;
}

.cm-cookie-switch input:checked + .cm-cookie-switch__slider:before {
    transform: translateX(22px);
}

@media (max-width: 700px) {
    .cm-cookie-banner {
        padding: 10px;
    }

    .cm-cookie-banner__panel {
        max-height: calc(100vh - 20px);
        overflow-y: auto;
        padding: 22px 18px;
    }

    .cm-cookie-banner__actions,
    .cm-cookie-settings__actions {
        flex-direction: column;
    }

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

    .cm-cookie-category {
        gap: 15px;
    }
}

/* Cookie banner width */
.cm-cookie-banner {
    left: 5%;
    right: 5%;
    width: 90%;
    inset-inline: 5%;
}

.cm-cookie-settings-trigger {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 100000;
    width: 46px;
    height: 46px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce5ef;
    border-radius: 50%;
    background: #fff;
    color: #07539a;
    box-shadow: 0 8px 24px rgba(0, 20, 45, .20);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.cm-cookie-settings-trigger:hover {
    transform: translateY(-2px);
}

@media (max-width: 700px) {
    .cm-cookie-banner {
        left: 5%;
        right: 5%;
        width: 90%;
        inset-inline: 5%;
        padding: 10px 0;
    }

    .cm-cookie-settings-trigger {
        left: 12px;
        bottom: 12px;
        width: 42px;
        height: 42px;
        font-size: 20px;
    }
}
