﻿motion-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 100001;
    background-color: transparent;
}

    motion-dialog .mo-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        background-color: #000;
        opacity: 0.5;
    }


    motion-dialog #mo-window {
        position: absolute;
        top: calc(50% - 175px);
        left: calc(50% - 335px);
        width: 670px;
        min-width: 250px;
        height: 350px;
        background-color: #fff;
        padding-top: 35px;
        box-shadow: 0 15px 24px rgb(0 0 0 / 22%), 0 19px 76px rgb(0 0 0 / 30%);
        box-sizing: content-box;
        border-radius: 2px;
        border: 1px solid rgba(0,0,0,.3);
        outline: 0;
        font-family: 'ABBvoice', sans-serif;
    }

        motion-dialog #mo-window .mo-window-titlebar {
            position: relative;
            width: 100%;
            height: 53px;
            font-size: 21px;
            font-weight: 600;
            line-height: 38px;
            padding: 0.4em 0;
            white-space: nowrap;
            min-height: 16px;
            color: #262626;
            background-color: #f0f0f0;
            border-bottom: none;
            border-radius: 2px 2px 0 0;
            margin-top: -54px;
        }

            motion-dialog #mo-window .mo-window-titlebar .mo-window-actions {
                position: absolute;
                top: 2px;
                right: 4px;
                padding: 0;
                white-space: nowrap;
                line-height: 5px;
            }

                motion-dialog #mo-window .mo-window-titlebar .mo-window-actions .mo-window-action {
                    background-image: none;
                    background-color: transparent;
                    border: none;
                    border-radius: 0;
                    color: #262626;
                    display: inline-block;
                    width: 16px;
                    height: 16px;
                    padding: 2px;
                    text-decoration: none;
                    vertical-align: middle;
                    opacity: .7;
                    cursor: pointer;
                    outline: 0;
                }

                    motion-dialog #mo-window .mo-window-titlebar .mo-window-actions .mo-window-action:hover .mo-icon {
                        color: #262626;
                    }

                    motion-dialog #mo-window .mo-window-titlebar .mo-window-actions .mo-window-action .mo-icon {
                        position: absolute;
                        top: 3px;
                        right: 2px;
                        cursor: pointer;
                        font-family: Font Awesome\ 5 Free;
                        line-height: 1;
                        background-image: none !important;
                        font-size: 18px;
                        font-weight: 900;
                        color: #6e6e6e;
                        padding: 10px;
                    }

            motion-dialog #mo-window .mo-window-titlebar .mo-window-title {
                position: absolute;
                left: 20px;
                right: 40px;
                overflow: hidden;
                cursor: default;
                text-overflow: ellipsis;
            }

        motion-dialog #mo-window .mo-window-content {
            padding: 10px 10px 75px;
            min-width: 250px;
            max-height: calc(95vh - 75px);
            overflow: hidden;
            outline: none;
            background-color: #fff;
            border-top: 1px solid #d0d0d0;
        }

            motion-dialog #mo-window .mo-window-content .mo-content {
                height: 250px;
                margin-bottom: 10px;
                padding: 5px 15px;
                z-index: 0;
                overflow-y: auto;
            }

                motion-dialog #mo-window .mo-window-content .mo-content .mo-window-footer {
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    right: 0;
                    background: #fff;
                    border-top: 1px solid #e1e1e1;
                    padding: 0;
                    text-align: right;
                }

                    motion-dialog #mo-window .mo-window-content .mo-content .mo-window-footer .mo-main-btns {
                        position: relative;
                        margin-left: 0;
                        -moz-transition: margin-left .3s ease-in-out 0s,margin-right .3s ease-in-out 0s;
                        -o-transition: margin-left .3s ease-in-out 0s,margin-right .3s ease-in-out 0s;
                        -webkit-transition: margin-left .3s ease-in-out 0s,margin-right .3s ease-in-out 0s;
                        transition: margin-left .3s ease-in-out 0s,margin-right .3s ease-in-out 0s;
                        padding: 15px 20px;
                    }

                        motion-dialog #mo-window .mo-window-content .mo-content .mo-window-footer .mo-main-btns .abb-button {
                            color: #ff000f;
                            background-color: #fff;
                            font-weight: 700;
                            border: none;
                            letter-spacing: normal;
                            font-size: 16px;
                            padding: 12px 16px;
                            border-radius: 0;
                            margin: 2px 8px !important;
                            text-transform: uppercase;
                        }

@media all and (max-width: 600px) {
    motion-dialog #mo-window {
        width: 90% !important;
        left: 5% !important;
    }
}
