.msotp-popup-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid #E0D9C8;
    border-radius: 13px;
    background: #FFFFFF;
    color: #6B4A36;
    box-shadow: none;
    font-family: 'DanaFaNum', Tahoma, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease;
}

.msotp-popup-trigger:hover,
.msotp-popup-trigger:focus {
    border-color: #D3C5B4;
    background: #F6F2EB;
    color: #5C3E2B;
}

.msotp-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    font-family: 'DanaFaNum', Tahoma, sans-serif;
}

.msotp-popup[hidden] {
    display: none;
}

.msotp-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(42, 27, 20, .42);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity .22s ease;
}

.msotp-popup.is-open .msotp-popup__backdrop {
    opacity: 1;
}

.msotp-popup__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 456px;
    margin: 0;
    padding: 8px;
    overflow: hidden;
    border: 1px solid #E0D9C8;
    border-radius: 34px;
    background: #FBF8F3;
    box-shadow: 0 28px 80px rgba(42, 27, 20, .22);
    opacity: 0;
    transform: translateY(14px) scale(.985);
    transition:
        transform .24s cubic-bezier(.22, 1, .36, 1),
        opacity .2s ease;
}

.msotp-popup.is-open .msotp-popup__panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.msotp-popup__panel .msotp {
    max-width: none;
}

.msotp-popup__panel .msotp__card {
    padding: 30px 24px 24px;
    border: 0;
    border-radius: 27px;
    box-shadow: none;
    background: #FFFFFF;
}

.msotp-popup__close {
    position: absolute;
    top: 17px;
    left: 17px;
    z-index: 3;
    width: 35px;
    height: 35px;
    min-height: 35px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E0D9C8;
    border-radius: 50%;
    background: #F6F2EB !important;
    color: #6B4A36;
    box-shadow: none;
    font-family: inherit;
    font-size: 21px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition:
        background .18s ease,
        color .18s ease,
        border-color .18s ease;
}

.msotp-popup__close:hover {
    border-color: #6B4A36;
    background: #6B4A36 !important;
    color: #FFFFFF;
}

.msotp-popup__handle {
    display: none;
}

@media (max-width: 600px) {
    .msotp-popup {
        align-items: flex-end;
        justify-content: stretch;
        padding: 0;
    }

    .msotp-popup__panel {
        width: 100%;
        max-width: none;
        max-height: min(92dvh, 760px);
        margin: 0;
        padding: 7px 7px calc(7px + env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        border-width: 1px 0 0;
        border-radius: 28px 28px 0 0;
        opacity: 1;
        transform: translateY(100%);
        transition: transform .3s cubic-bezier(.22, 1, .36, 1);
        -webkit-overflow-scrolling: touch;
    }

    .msotp-popup.is-open .msotp-popup__panel {
        transform: translateY(0);
    }

    .msotp-popup__panel .msotp__card {
        padding: 25px 16px 18px;
        border-radius: 22px 22px 0 0;
    }

    .msotp-popup__handle {
        display: block;
        width: 42px;
        height: 4px;
        margin: 7px auto 2px;
        border-radius: 999px;
        background: #D7CBBB;
    }

    .msotp-popup__close {
        top: 13px;
        left: 14px;
        width: 34px;
        height: 34px;
        min-height: 34px;
    }
}

@media (max-width: 360px) {
    .msotp-popup__panel .msotp__card {
        padding-inline: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .msotp-popup__backdrop,
    .msotp-popup__panel,
    .msotp-popup-trigger,
    .msotp-popup__close {
        transition: none;
    }
}
