.checkout_box .main_left .order_box {
    height: unset;
}

.pay_buttons {
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
}
.pay_buttons > * {
    width: 250px;
    display: inline-block;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    -ms-align-items: center;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}
.pay_buttons > * p {
    display: inline-block;
    margin-bottom: 0;
    margin-top: 0;
}
.pay_buttons > * + * {
    margin-top: 15px;
}
.pay_buttons #AmazonPayButton,
.pay_buttons .AmazonPayButton {
    border: solid 1px #fadba7;
    color: #333;
    font-size: 12pt;
    font-weight: 500;
    background: #fff;
    /*margin-left: 5px;*/
    padding: 10px 36px;
    position: relative;

    vertical-align: top;
}
.pay_buttons #AmazonPayButton:hover,
.pay_buttons .AmazonPayButton:hover {
    background: #f7f7f7;
}
.pay_buttons #AmazonPayButton em,
.pay_buttons .AmazonPayButton em {
    display: inline;
    color: #ea9100;

    margin-bottom: unset;
}
.pay_buttons #AmazonPayButton img,
.pay_buttons .AmazonPayButton img {
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
}
.pay_buttons #AmazonPayButton img.icon,
.pay_buttons .AmazonPayButton img.icon {
    position: static;
    width: unset;
    max-height: 34px;
    vertical-align: middle;
    opacity: unset;
    padding-right: 5px;
}

.pay_buttons .paypal-button {
    border: solid 1px #abe0f9;
    padding: 7.5px 0;
}
.pay_buttons .paypal-button * {
    cursor: pointer;
}

/*----------------------------------------------------------------*/

.pay_buttons .paypal-button div.paypal-buttons {
    /*opacity: 0;*/
    position: absolute !important;
    right: 0;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100% !important;
}
.pay_buttons .paypal-button img.icon {
    vertical-align: middle;
    max-height: 100%;
    padding-right: 5px
}

.pay_buttons .paypal-button em {
    display: inline;
    font-size: unset;
    color: #029be1
}
/*----------------------------------------------------------------*/


.pay_amazon,
.pay_amazon #walletWidgetDiv,
.pay_amazon #place-order,
.pay_amazon #ajax-loader {
    display: none;
}
.pay_amazon #place-order {
    width: 100%;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -khtml-border-radius: 3px;
    border-radius: 3px;
    color: #fff;
    font-weight: bold;
    font-size: 25px;
    border: 1px solid #6b6b6b;
    display: block;
    margin: 15px 0;
    padding: 10px 0;
    cursor: pointer;
}
.pay_amazon #ajax-loader {
    margin-top: 10px;
    height: 35px;
    width: 100%;
}

.pay_amazon #addressBookWidgetDiv h1,
.pay_amazon #walletWidgetDiv h1 {
    font-size: 100%;
    margin-top: 0;
}

@keyframes loader {
    to {
        transform: rotate(360deg);
    }
}
.loader {
    position: relative;
}
.loader,
.loader body {
    overflow: hidden;
    height: 100%;
}
.loader::before {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    background: rgba(159, 156, 156, 0.42);
    z-index: 1003;
    left: 0;
    top: 0;
}
.loader:after {
    content: "";
    position: absolute;
    box-sizing: border-box;
    top: 50%;
    right: 50%;
    width: 32px;
    height: 32px;
    z-index: 1004;
    margin-top: -16px;
    margin-left: -16px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #07d;
    border-bottom-color: #07d;
    animation: loader .8s ease infinite;
}
html.loader,
html.loader::before,
html.loader:after,
body.loader,
body.loader::before,
body.loader:after {
    position: fixed;
}

@media screen and (min-width:1061px) and (max-width:1094px) {
    .mid_panel .pay_amazon {
        margin-right: 20px;
    }
    .left_panel {}
}
@media screen and (max-width:1060px) {
    .mid_panel,
    .right_panel {
        margin-top: 30px;
    }
    .mid_panel .btn {
        max-width: 100%;
    }
}
@media screen and (min-width:706px) and (max-width:1060px) {
    .mid_panel,
    .right_panel {
        order: unset;
    }
    .left_panel {
        margin-left: 50%;
        margin-right: 50%;
    }
    .mid_panel {
        margin-left: 0;
    }
    .right_panel {
        margin-left: 20px;
    }
}
@media screen and (max-width:705px) {
    .mid_panel:not(.pay_amazon_shown),
    .right_panel:not(.pay_amazon_shown) {
        order: unset;
    }
    .mid_panel.pay_amazon_shown {
        margin-top: 0;
        margin-left: 50%;
        margin-right: 50%;
    }
    .right_panel.pay_amazon_shown {
        margin-top: 10px;
    }
    .right_panel.pay_amazon_shown > img {
        display: none;
    }
}