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

.msbd-consent {
    position: fixed;
    z-index: 2147483000;
    right: 16px;
    bottom: 16px;
    left: 16px;
    color: #202020;
    font-family: inherit;
}

.msbd-consent__inner {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 16px 24px;
    align-items: center;
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px 20px;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 34px rgba(0, 0, 0, .22);
}

.msbd-consent__title {
    margin: 0 0 4px;
    color: #171717;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.msbd-consent__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.msbd-consent__text a {
    color: #087d59;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.msbd-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.msbd-consent__button {
    min-height: 42px;
    margin: 0;
    padding: 9px 14px;
    border: 1px solid #202020;
    border-radius: 7px;
    background: #fff;
    color: #202020;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.msbd-consent__button:hover,
.msbd-consent__button:focus-visible {
    box-shadow: 0 0 0 3px rgba(4, 180, 124, .24);
    outline: 0;
}

.msbd-consent__button--accept,
.msbd-consent__button--save {
    border-color: #048b62;
    background: #048b62;
    color: #fff;
}

.msbd-consent__button--reject {
    border-color: #202020;
    background: #202020;
    color: #fff;
}

.msbd-consent__button--customize {
    min-height: auto;
    padding: 6px 4px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #333;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.msbd-consent__button--customize:hover,
.msbd-consent__button--customize:focus-visible {
    color: #046f50;
    box-shadow: none;
    outline: 2px solid rgba(4, 139, 98, .45);
    outline-offset: 2px;
}

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

.msbd-consent__choice {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 12px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    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: 2px;
    color: #666;
    font-size: 12px;
    line-height: 1.35;
}

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

.msbd-consent-manage {
    position: fixed;
    z-index: 2147482999;
    bottom: 10px;
    left: 10px;
    min-height: 32px;
    margin: 0;
    padding: 6px 10px;
    border: 1px solid rgba(0, 0, 0, .25);
    border-radius: 6px;
    background: rgba(255, 255, 255, .96);
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    font: inherit;
    font-size: 11px;
    line-height: 1.2;
    text-transform: none;
    cursor: pointer;
}

.msbd-consent-manage:hover,
.msbd-consent-manage:focus-visible {
    border-color: #048b62;
    color: #046f50;
    outline: 0;
}

@media (max-width: 760px) {
    .msbd-consent {
        right: 10px;
        bottom: 10px;
        left: 10px;
    }

    .msbd-consent__inner {
        display: block;
        max-height: calc(100vh - 20px);
        padding: 16px;
        overflow-y: auto;
    }

    .msbd-consent__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 14px;
    }

    .msbd-consent__button {
        width: 100%;
    }

    .msbd-consent__button--customize,
    .msbd-consent__button--save {
        grid-column: 1 / -1;
    }

    .msbd-consent__button--customize {
        width: auto;
        justify-self: start;
    }

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

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

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