.red-border {
    border: 1px solid red !important;
}

.green-border {
    border-color: #a0916d !important;
}

/*.popummessage {*/
/*        width: 100%;*/
/*        height: 300px;*/
/*        position: relative;*/
/*        border: 2px solid black;*/
/*}*/
/*.popummessage:before {*/
/*    content: "";*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    width: 100%;*/
/*    height: 10%;*/
/*    background-color: red;*/
/*}.popummessage span {*/
/*     position: absolute;*/
/*     top: 50%;*/
/*     left: 50%;*/
/*     transform: translate(-50%, -50%);*/
/*     font-size: 24px;*/
/*     color: black;*/
/*     white-space: nowrap;*/
/* }*/


#buyoneclick_form_order {
    font-size: 16px;
}
#buyoneclick_form_order .form-message-result {
    font-size: 13px;
    color: grey;
}
#buyoneclick_form_order form {
    margin-bottom: 0;
}
#buyoneclick_form_order .table-wrap {
    text-align: center;
    display: inline-block;
    background-color: #fff;
    color: #000;
    width: 100%;
}

#buyoneclick_form_order .table-wrap table {
    border: 1px solid #ccc;
    width: 100%;
    margin:0;
    padding:0;
    border-collapse: collapse;
    border-spacing: 0;
}

#buyoneclick_form_order .table-wrap table tr {
    border: 1px solid #ddd;
    padding: 5px;
}

#buyoneclick_form_order .table-wrap table td:last-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#buyoneclick_form_order .table-wrap table th, #buyoneclick_form_order .table-wrap table td {
    font-size: 14px;
    padding: 5px;
    text-align: center;
    border-right: 1px solid #ddd;
}

#buyoneclick_form_order .table-wrap table th {
    color: #fff;
    background-color: #444;
    text-transform: uppercase;
    font-family: Droid Serif, serif;

}

#formOrderOneClick>.overlay {
    background-color: rgba(0, 0, 0, 0.7);
    bottom: 0;
    cursor: default;
    left: 0;
    opacity: 0;
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    height: auto;
    visibility: hidden;
    z-index: 9999989;
    -webkit-transition: opacity .5s;
    -moz-transition: opacity .5s;
    -ms-transition: opacity .5s;
    -o-transition: opacity .5s;
    transition: opacity .5s;
}
#formOrderOneClick>.popup {
    background-color: #f0eee9;
    /*border: 3px solid #000000;*/
    display: block;
    left: 50%;
    opacity: 0;
    padding: 0.7em;
    width: 100%;
    max-width: 500px;
    min-width: 320px;
    height: auto;
    position: fixed;
    text-align: justify;
    top: 40%;
    visibility: hidden;
    z-index: 999999997;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-transition: opacity .5s, top .5s;
    -moz-transition: opacity .5s, top .5s;
    -ms-transition: opacity .5s, top .5s;
    -o-transition: opacity .5s, top .5s;
    transition: opacity .5s, top .5s;
    border-radius: 4px;
}

#formOrderOneClick .popup .close_order {
    display: block;
    width: 30px;
    height: 30px;
    position: absolute;
    padding:2px;
    top: 0px;
    right: 0px;
    cursor: pointer;
    color: #fff;
    /*-webkit-border-radius: 20%;*/
    /*-moz-border-radius: 20%;*/
    /*-o-border-radius: 20%;*/
    /*-ms-border-radius: 20%;*/
    border-radius: 0px 10% 0px 0px;
    text-align: center;
    background-color: #f1ce7e;
    /*background-size: 100%;*/
    /*background-position: center;*/
    /*background-repeat: no-repeat;*/
    /*background-image: url("data:image/svg+xml,%3Csvg fill=\'%23000000\' height=\'200px\' width=\'200px\' version=\'1.1\' id=\'Layer_1\' xmlns=\'http://www.w3.org/2000/svg\' xmlns:xlink=\'http://www.w3.org/1999/xlink\' viewBox=\'0 0 500 500\' enable-background=\'new 0 0 500 500\' xml:space=\'preserve\'%3E%3Cg id=\'SVGRepo_bgCarrier\' stroke-width=\'0\'%3E%3C/g%3E%3Cg id=\'SVGRepo_tracerCarrier\' stroke-linecap=\'round\' stroke-linejoin=\'round\'%3E%3C/g%3E%3Cg id=\'SVGRepo_iconCarrier\'%3E%3Cpath d=\'M283.9,154.7L250,188.7l-33.9-33.9c-3.1-3.1-8.2-3.1-11.3,0c-3.1,3.1-3.1,8.2,0,11.3l33.9,33.9l-33.9,33.9 c-3.1,3.1-3.1,8.2,0,11.3c3.1,3.1,8.2,3.1,11.3,0l33.9-33.9l33.9,33.9c3.1,3.1,8.2,3.1,11.3,0c3.1-3.1,3.1-8.2,0-11.3L261.3,200 l33.9-33.9c3.1-3.1,3.1-8.2,0-11.3C292.1,151.6,287.1,151.6,283.9,154.7z\'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");*/
    /*width: 16px;*/
    /*height: 16px;*/
    font-size: 0px;
}

#formOrderOneClick input[type="email"], #buyoneclick_form_order input[type="tel"], #buyoneclick_form_order input[type="text"] {
    padding: 0px 7px;
    margin: 0;
    border: 3px solid #a0916d;
    /*border-radius: 2px;*/
    /*-moz-border-radius: 2px;*/
    /*-webkit-border-radius: 2px;*/
    height: 3em;
    text-align: left;
    margin-top: 5px;
    margin-bottom: 5px;
    width: 100%;
    color: #000;
    font-family: 'Droid Serif';
}

#buyoneclick_form_order input[type="tel"]:hover, #buyoneclick_form_order input[type="text"]:hover{
    border: 3px solid #f1ce7e;
}

#formOrderOneClick textarea{
    resize: none;
    font-family: 'arial', sans-serif;
    padding: 6px;
    width: 100%;
    height: 80px;
    color: #000;
    border: 1px solid #ccc;
    border-radius: 2px;
    background-color: #fff;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    text-align: left;
    margin-top: 5px;
    margin-bottom: 5px;
}

#formOrderOneClick input[type="checkbox"] {
    float: left;
}
#formOrderOneClick .popup #buyoneclick_form_order {
    position: relative;
    border-radius: 12px;
    background: none;
    color: #000;
}

#formOrderOneClick .button:hover {
    background-color: #a0916d;
    text-decoration: none;
    color: #ffffff;
}
#formOrderOneClick .button:active, #buyoneclick_form_order input[type="submit"].button:disabled {
    opacity: 0.7;
    cursor: default;

}
#formOrderOneClick .phoneFormat {
    line-height: 12px;
    font-size: 12px;
    color: #000000;
    position: relative;
    z-index: 20;
    padding: 0;
    margin: 2px;
}

#formOrderOneClick th,td {
    font-weight: normal;
}
#formOrderOneClick .button{
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    -o-border-radius: 2px;
    -ms-border-radius: 2px;
    display: block;
    text-align: center;
    margin: 10px auto;
    text-decoration: none;
    cursor: pointer;
    background-color:#f1ce7e;
    color: #000;

}
#formOrderOneClick [name="quantity_product"] {
    position: relative;
    height: 50%;
    width: 75px;
}

#formOrderOneClick .popup .close_order:before {
    content: '';
    display: block;
    background-image: url('data:image/svg+xml,%3Csvg fill=\'%23000000\' height=\'200px\' width=\'200px\' version=\'1.1\' id=\'Layer_1\' xmlns=\'http://www.w3.org/2000/svg\' xmlns:xlink=\'http://www.w3.org/1999/xlink\' viewBox=\'0 0 500 500\' enable-background=\'new 0 0 500 500\' xml:space=\'preserve\'%3E%3Cg id=\'SVGRepo_bgCarrier\' stroke-width=\'0\'%3E%3C/g%3E%3Cg id=\'SVGRepo_tracerCarrier\' stroke-linecap=\'round\' stroke-linejoin=\'round\'%3E%3C/g%3E%3Cg id=\'SVGRepo_iconCarrier\'%3E%3Cpath d=\'M283.9,154.7L250,188.7l-33.9-33.9c-3.1-3.1-8.2-3.1-11.3,0c-3.1,3.1-3.1,8.2,0,11.3l33.9,33.9l-33.9,33.9 c-3.1,3.1-3.1,8.2,0,11.3c3.1,3.1,8.2,3.1,11.3,0l33.9-33.9l33.9,33.9c3.1,3.1,8.2,3.1,11.3,0c3.1-3.1,3.1-8.2,0-11.3L261.3,200 l33.9-33.9c3.1-3.1,3.1-8.2,0-11.3C292.1,151.6,287.1,151.6,283.9,154.7z\'%3E%3C/path%3E%3C/g%3E%3C/svg%3E');
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    width: 32px;
    height: 40px;
}

#buyoneclick_form_order .table-wrap table td {
    vertical-align: middle;
}

@media screen and (max-width: 600px) {
    #formOrderOneClick > .popup {
        min-width: 90%;
        width: 93%;
    }

    #buyoneclick_form_order .table-wrap table {
        border: 0;
    }
    #buyoneclick_form_order .table-wrap table thead {
        display: none;
    }
    #buyoneclick_form_order .table-wrap table tr {
        margin-bottom: 10px;
        display: block;
        border-bottom: 2px solid #ddd;
    }
    #buyoneclick_form_order .table-wrap table td {
        display: block;
        text-align: right;
        font-size: 13px;
        border-bottom: 1px solid #a0916d;
        border-right: 1px solid transparent;
    }
    #buyoneclick_form_order .table-wrap table td:last-child {
        border-bottom: 0;
    }
    #buyoneclick_form_order .table-wrap  table td:before {
        content: attr(data-label);
        float: left;
        text-transform: uppercase;
        font-weight: bold;
    }
}