.msbd-consent-layer[hidden],
.msbd-consent [hidden] {
    display: none !important;
}

body.msbd-consent-open {
    overflow: hidden !important;
}

.msbd-consent-layer {
    position: fixed;
    z-index: 2147483000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: inherit;
}

.msbd-consent__overlay {
    position: fixed;
    z-index: 0;
    inset: 0;
    background: rgba(12, 18, 27, .68);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.msbd-consent {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .34);
    color: #202020;
    outline: 0;
}

.msbd-consent__inner {
    padding: 30px 32px 28px;
}

.msbd-consent__header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid #e7e7e7;
}

.msbd-consent__title {
    margin: 0;
    color: #171717;
    font-size: clamp(20px, 2.6vw, 25px);
    font-weight: 700;
    line-height: 1.25;
    text-transform: none;
}

.msbd-consent__copy {
    margin-top: 18px;
}

.msbd-consent__text,
.msbd-consent__privacy {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
}

.msbd-consent__privacy {
    margin-top: 10px;
}

.msbd-consent__privacy a,
.msbd-consent-settings-link {
    color: #315f53;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.msbd-consent__actions {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
}

.msbd-consent .msbd-consent__text-action,
.msbd-consent .msbd-consent__primary-action {
    appearance: none;
    margin: 0;
    font: inherit;
    text-transform: none;
    cursor: pointer;
}

.msbd-consent .msbd-consent__text-action {
    min-height: auto;
    padding: 3px 0;
    border: 0;
    border-radius: 2px;
    background: transparent;
    box-shadow: none;
    color: #3c3c3c;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.msbd-consent .msbd-consent__text-action:hover {
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #135f49;
}

.msbd-consent .msbd-consent__text-action:focus-visible,
.msbd-consent__privacy a:focus-visible,
.msbd-consent-settings-link:focus-visible {
    border-radius: 2px;
    outline: 2px solid #048b62;
    outline-offset: 3px;
}

.msbd-consent__text-action--reject {
    flex: 0 0 auto;
    max-width: 190px;
    text-align: right;
}

.msbd-consent .msbd-consent__primary-action {
    min-width: 240px;
    min-height: 50px;
    padding: 12px 24px;
    border: 1px solid #047653;
    border-radius: 9px;
    background: #048b62;
    box-shadow: 0 5px 16px rgba(4, 139, 98, .24);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

.msbd-consent .msbd-consent__primary-action:hover {
    border-color: #035e43;
    background: #037653;
    box-shadow: 0 7px 20px rgba(4, 139, 98, .3);
    color: #fff;
}

.msbd-consent .msbd-consent__primary-action:focus-visible {
    outline: 3px solid rgba(4, 139, 98, .35);
    outline-offset: 3px;
}

.msbd-consent__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.msbd-consent__choice {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 14px;
    border: 1px solid #d9d9d9;
    border-radius: 9px;
    background: #fff;
    color: #202020;
    cursor: pointer;
}

.msbd-consent__choice--locked {
    background: #f6f6f6;
    cursor: default;
}

.msbd-consent__choice strong,
.msbd-consent__choice small {
    display: block;
}

.msbd-consent__choice small {
    margin-top: 3px;
    color: #626262;
    font-size: 12px;
    line-height: 1.35;
}

.msbd-consent__choice input {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: #048b62;
}

@media (max-width: 680px) {
    .msbd-consent-layer {
        align-items: center;
        padding: 12px;
    }

    .msbd-consent {
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        border-radius: 13px;
    }

    .msbd-consent__inner {
        padding: 22px 18px 20px;
    }

    .msbd-consent__header {
        display: block;
        padding-bottom: 14px;
    }

    .msbd-consent__title {
        font-size: 20px;
    }

    .msbd-consent__text-action--reject {
        max-width: none;
        margin-top: 10px !important;
        text-align: left;
    }

    .msbd-consent__copy {
        margin-top: 15px;
    }

    .msbd-consent__text,
    .msbd-consent__privacy {
        font-size: 14px;
    }

    .msbd-consent__details {
        display: block;
        margin-top: 16px;
    }

    .msbd-consent__choice + .msbd-consent__choice {
        margin-top: 8px;
    }

    .msbd-consent__actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-top: 20px;
    }

    .msbd-consent .msbd-consent__primary-action {
        order: 1;
        width: 100%;
        min-width: 0;
    }

    .msbd-consent__text-action--customize {
        order: 2;
        align-self: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .msbd-consent *,
    .msbd-consent__overlay {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
