@media (min-width: 1200px){
    #productWindow {
        width: 60vw;
        height: 60vh;
    }

    .yjsms_product_table {
        width: 100%;
        height: 90%;
        min-height: 260px;
    }

    .yjsms_product_form_mask {
        position: fixed !important;
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0,0,0,0.7);
        position: relative;
        display: none;
    }

        .yjsms_product_form_mask > .yjsms_product_form {
            width: 60vw;
            height: 60vh;
            top: calc( 50vh - 30vh);
            left: calc( 50vw - 30vw);
            position: absolute;
            opacity: 1;
            background-color: #fefefe;
            border-radius: 4px;
            padding: 50px;
            box-shadow: 2px 1px 3px rgba(128, 128, 168, .3);
        }

        .yjsms_product_form_mask > .yjsms_product_form_btn_close {
            width: 30px;
            height: 30px;
            top: calc( 50vh - 30vh);
            left: calc( 50vw + 30vw - 30px);
            position: absolute;
            opacity: 1;
            background-color: #fefefe;
            border-radius: 4px;
            border: 1px solid #ccc;
            cursor: pointer;
            z-index: 99999;
            font-size: 16px;
            padding-left: 10px;
            box-shadow: 2px 1px 3px rgba(128, 128, 168, .3);
        }

        .yjsms_product_form_mask > .yjsms_product_form > .yjsms_product_form_icon {
            width: 100px;
            height: 100px;
            background-image: url('/images/loading.gif');
            background-position: center;
            background-repeat: no-repeat;
            margin: calc( 30vh - 120px) auto 0 auto;
        }

        .yjsms_product_form_mask > .yjsms_product_form > .yjsms_product_form_message {
            width: 200px;
            height: 100px;
            margin: 5px auto 0 auto;
            text-align: center;
            font-size: 20px;
        }

    .yjsms_product_order_form {
        width: auto;
        height: auto;
        position: relative;
        opacity: 1;
        background-color: #fefefe;
        padding: 30px;
    }

             .yjsms_product_order_form > .yjsms_product_name {
                font-size: 20px;
                text-align: left;
            }

             .yjsms_product_order_form > .yjsms_product_item {
                clear: both;
                margin: 30px 10px;
            }

                 .yjsms_product_order_form > .yjsms_product_item > .yjsms_product_item_name {
                    float: left;
                }

             .yjsms_product_order_form > .yjsms_product_order_form_message {
                font-size: 20px;
                text-align: center;
                margin-top: 20%;
            }

        .yjsms_product_order_form > .yjsms_product_item > .yjsms_product_attributes {
            float: left;
            width: 100px;
            height: 50px;
            border: 1px solid #ccc;
            margin-right: 10px;
            margin-top: 10px;
            cursor: pointer;
            padding: 0 8px;
            line-height: 50px;
        }

        .yjsms_product_order_form > .yjsms_product_item > .active {
            border: 1px solid #ffad18 !important;
            color: #ffad18;
            box-shadow: 2px 1px 3px rgba(128, 128, 168, .3);
        }

             .yjsms_product_order_form > .yjsms_product_item > .yjsms_product_attributes > .yjsms_product_attributes_label {
                text-align: center;
                width: 100%;
            }

        .yjsms_product_order_form > .yjsms_product_item > .yjsms_product_attributes_price {
            width: auto;
            text-align: left;
            font-size: 20px;
            color: #f00;
        }

             .yjsms_product_order_form > .yjsms_product_item > .yjsms_product_order_button_ok {
                margin-right: 10px;
                margin-left: calc( 50% - 105px );
                float: left;
            }

             .yjsms_product_order_form > .yjsms_product_item > .yjsms_product_order_button_calcel {
                margin-right: 10px;
                float: left;
            }

    .yjsms_product_order_button {
        margin-left: 10px;
        color: blue;
        cursor: pointer;
        width: 100px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1199px){
    #productWindow {
        width: 60vw;
        height: 60vh;
    }

    .yjsms_product_table {
        width: 100%;
        height: 90%;
        min-height: 260px;
    }

    .yjsms_product_form_mask {
        position: fixed !important;
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0,0,0,0.7);
        position: relative;
        display: none;
    }

        .yjsms_product_form_mask > .yjsms_product_form {
            width: 60vw;
            height: 60vh;
            top: calc( 50vh - 30vh);
            left: calc( 50vw - 30vw);
            position: absolute;
            opacity: 1;
            background-color: #fefefe;
            border-radius: 4px;
            padding: 30px;
        }

        .yjsms_product_form_mask > .yjsms_product_form_btn_close {
            width: 30px;
            height: 30px;
            top: calc( 50vh - 30vh);
            left: calc( 50vw + 30vw - 30px);
            position: absolute;
            opacity: 1;
            background-color: #fefefe;
            border-radius: 4px;
            border: 1px solid #ccc;
            cursor: pointer;
            z-index: 99999;
            font-size: 16px;
            padding-left: 10px;
        }

        .yjsms_product_form_mask > .yjsms_product_form > .yjsms_product_form_icon {
            width: 100px;
            height: 100px;
            background-image: url('/images/loading.gif');
            background-position: center;
            background-repeat: no-repeat;
            margin: calc( 30vh - 120px) auto 0 auto;
        }

        .yjsms_product_form_mask > .yjsms_product_form > .yjsms_product_form_message {
            width: 200px;
            height: 100px;
            margin: 5px auto 0 auto;
            text-align: center;
            font-size: 20px;
        }

    .yjsms_product_order_mask {
        position: absolute !important;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.7);
        position: relative;
    }

         .yjsms_product_order_form {
            width: 60%;
            height: 60%;
            top: calc( 50% - 30%);
            left: calc( 50% - 30%);
            position: absolute;
            opacity: 1;
            background-color: #fefefe;
            border-radius: 4px;
            padding: 30px;
        }

             .yjsms_product_order_form > .yjsms_product_name {
                font-size: 20px;
                text-align: left;
            }

             .yjsms_product_order_form > .yjsms_product_item {
                clear: both;
                margin: 30px 10px;
            }

                 .yjsms_product_order_form > .yjsms_product_item > .yjsms_product_item_name {
                    float: left;
                }

             .yjsms_product_order_form > .yjsms_product_order_form_message {
                font-size: 20px;
                text-align: center;
                margin-top: 20%;
            }

            .yjsms_product_order_form > .yjsms_product_item > .yjsms_product_attributes {
                float: left;
                width: 100px;
                height: 50px;
                border: 1px solid #ccc;
                margin-right: 10px;
                margin-top: 10px;
                cursor: pointer;
                padding: 0 8px;
                line-height: 50px;
            }

            .yjsms_product_order_form > .yjsms_product_item > .active {
                border: 1px solid #ffad18 !important;
                color: #ffad18;
                box-shadow: 2px 1px 3px rgba(128, 128, 168, .3);
            }

             .yjsms_product_order_form > .yjsms_product_item > .yjsms_product_attributes > .yjsms_product_attributes_label {
                text-align: center;
                width: 100%;
            }

            .yjsms_product_order_form > .yjsms_product_item > .yjsms_product_attributes_price {
                width: auto;
                text-align: left;
                font-size: 20px;
                color: #f00;
            }

             .yjsms_product_order_form > .yjsms_product_item > .yjsms_product_order_button_ok {
                margin-right: 10px;
                margin-left: calc( 50% - 105px );
                float: left;
            }

             .yjsms_product_order_form > .yjsms_product_item > .yjsms_product_order_button_calcel {
                margin-right: 10px;
                float: left;
            }

    .yjsms_product_order_button {
        margin-left: 10px;
        color: blue;
        cursor: pointer;
        width: 100px;
    }
}

@media only screen and (max-width: 767px){
    #productWindow {
        width: 60vw;
        height: 60vh;
    }

    .yjsms_product_table {
        width: 100%;
        height: 80%;
        min-height: 260px;
    }

    .yjsms_product_form_mask {
        position: fixed !important;
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0,0,0,0.7);
        position: relative;
        display: none;
    }

        .yjsms_product_form_mask > .yjsms_product_form {
            width: calc(100vw - 4px);
            height: 60vh;
            top: calc( 50vh - 30vh);
            left: 2px;
            position: absolute;
            opacity: 1;
            background-color: #fefefe;
            border-radius: 4px;
            padding: 10px;
            box-shadow: 2px 1px 3px rgba(128, 128, 168, .3);
        }

        .yjsms_product_form_mask > .yjsms_product_form_btn_close {
            width: 30px;
            height: 30px;
            top: calc( 50vh - 30vh);
            right: 5px;
            position: absolute;
            opacity: 1;
            background-color: #fefefe;
            border-radius: 4px;
            border: 1px solid #ccc;
            cursor: pointer;
            z-index: 99999;
            font-size: 16px;
            padding-left: 10px;
            box-shadow: 2px 1px 3px rgba(128, 128, 168, .3);
        }

        .yjsms_product_form_mask > .yjsms_product_form > .yjsms_product_form_icon {
            width: 100px;
            height: 100px;
            background-image: url('/images/loading.gif');
            background-position: center;
            background-repeat: no-repeat;
            margin: calc( 30vh - 100px) auto 0 auto;
        }

        .yjsms_product_form_mask > .yjsms_product_form > .yjsms_product_form_message {
            width: 200px;
            height: 100px;
            margin: 5px auto 0 auto;
            text-align: center;
            font-size: 20px;
        }

    .yjsms_product_order_mask {
        position: absolute !important;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.7);
        position: relative;
    }

         .yjsms_product_order_form {
            width: calc(100vw - 4px);
            height: 100%;
            top: 0;
            left: 0;
            position: absolute;
            opacity: 1;
            background-color: #fefefe;
            border-radius: 4px;
            padding: 30px;
        }

             .yjsms_product_order_form > .yjsms_product_name {
                font-size: 20px;
                text-align: left;
            }

             .yjsms_product_order_form > .yjsms_product_item {
                clear: both;
                margin: 30px 10px;
            }

                .yjsms_product_order_form > .yjsms_product_item > .yjsms_product_item_name {
                    width: auto;
                }

             .yjsms_product_order_form > .yjsms_product_order_form_message {
                font-size: 20px;
                text-align: center;
                margin-top: 20%;
            }

            .yjsms_product_order_form > .yjsms_product_item > .yjsms_product_attributes {
                float: left;
                height: 50px;
                border: 1px solid #ccc;
                margin-right: 5px;
                margin-top: 10px;
                cursor: pointer;
                padding: 0 8px;
                line-height: 50px;
            }

            .yjsms_product_order_form > .yjsms_product_item > .active {
                border: 1px solid #ffad18 !important;
                color: #ffad18;
                box-shadow: 2px 1px 3px rgba(128, 128, 168, .3);
            }

            .yjsms_product_order_form > .yjsms_product_item > .yjsms_product_attributes > .yjsms_product_attributes_label {
                text-align: center;
                width: 100%;
                float: left;
            }

            .yjsms_product_order_form > .yjsms_product_item > .yjsms_product_attributes_price {
                width: auto;
                text-align: left;
                font-size: 20px;
                color: #f00;
            }

             .yjsms_product_order_form > .yjsms_product_item > .yjsms_product_order_button_ok {
                margin-right: 10px;
                float: left;
            }

             .yjsms_product_order_form > .yjsms_product_item > .yjsms_product_order_button_calcel {
                margin-right: 10px;
                float: left;
            }

    .yjsms_product_order_button {
        margin-left: 10px;
        color: blue;
        cursor: pointer;
        width: 100px;
    }
}