body.bsmm-modal-open {
    overflow: hidden;
}

.bsmm-modal-host {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, visibility .18s ease;
}

.bsmm-modal-host[hidden] {
    display: none;
}

.bsmm-modal-host.is-open {
    opacity: 1;
    visibility: visible;
}

.bsmm-modal-host .bsmm-modal-veil {
    min-height: 100%;
    display: grid;
    place-items: center;
    padding: 24px;
    overflow: auto;
    background: rgba(16, 38, 63, .55);
    backdrop-filter: blur(3px);
}

.bsmm-modal-host .bsmm-modal-dialog {
    position: relative;
    inset: auto;
    z-index: 1;
    width: 100%;
    max-width: var(--bsmm-modal-width, 560px);
    max-height: calc(100vh - 48px);
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 40px 90px -30px rgba(5, 30, 70, .6);
    transform: translateY(14px) scale(.98);
    transition: transform .2s cubic-bezier(.2, .8, .3, 1);
}

.bsmm-modal-host .bsmm-modal--sm {
    --bsmm-modal-width: 420px;
}

.bsmm-modal-host .bsmm-modal--md {
    --bsmm-modal-width: 520px;
}

.bsmm-modal-host .bsmm-modal--lg {
    --bsmm-modal-width: 560px;
}

.bsmm-modal-host .bsmm-modal--promo {
    --bsmm-modal-width: 600px;
}

.bsmm-modal-host .bsmm-modal--xl {
    --bsmm-modal-width: 760px;
}

.bsmm-modal-host.is-open .bsmm-modal-dialog {
    transform: none;
}

.bsmm-modal-host .m-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line, #e3ecf2);
}

.bsmm-modal-host .m-head h3 {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: var(--navy, #1f2d3d);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0;
}

.bsmm-modal-host .m-head h3 small {
    display: block;
    margin-top: 2px;
    color: var(--muted, #6e8193);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.35;
}

.bsmm-modal-host .m-x {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    margin-left: auto;
    border: 1px solid var(--line, #e3ecf2);
    border-radius: 10px;
    background: #fff;
    color: var(--muted, #6e8193);
    cursor: pointer;
}

.bsmm-modal-host .m-x:hover,
.bsmm-modal-host .m-x:focus-visible {
    background: var(--tint, #f4f8fb);
    color: var(--ink, #304b65);
}

.bsmm-modal-host .m-x svg {
    width: 16px;
    height: 16px;
}

.bsmm-modal-host .m-body {
    max-height: calc(100vh - 190px);
    overflow: auto;
    padding: 20px 22px;
}

.bsmm-modal-host .m-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 22px;
    border-top: 1px solid var(--line, #e3ecf2);
    background: #fbfdff;
}

@media (max-width: 1700px) and (min-width: 1199px) {
    .bsmm-modal-host {
        zoom: calc(1 / 0.75) !important;
    }
}

@media (max-width: 640px) {
    .bsmm-modal-host .bsmm-modal-veil {
        align-items: end;
        padding: 12px;
    }

    .bsmm-modal-host .bsmm-modal-dialog {
        width: 100%;
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        display: flex;
        flex-direction: column;
    }

    .bsmm-modal-host .m-head,
    .bsmm-modal-host .m-foot {
        flex: none;
    }

    .bsmm-modal-host .m-body {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .bsmm-modal-host .m-foot {
        flex-direction: column;
        align-items: stretch;
    }
}
