table th, 
table td{
    border: none !important;
}

form.checkout .woocommerce-error,
.woocommerce-message{
    position: absolute;
    z-index: -99;
    visibility: hidden !important;
}

#checkout-left{
    display: table;
    width: 50%;
    float: left;
    padding-right: 10px;
}
#checkout-right{
    display: table;
    width: 50%;
    float: right;
    padding-left: 10px;
}

.woocommerce-checkout-review-order{
    display: table;
    width: 100%;
    padding: 20px;
    background-color: #f1f1f1;
}

.woocommerce-billing-fields,
.woocommerce-additional-fields{
    display: table;
    width: 100%;
    padding: 20px;
    background-color: #f1f1f1;
}

.woocommerce-billing-fields input[type="text"],
.woocommerce-billing-fields input[type="email"],
.woocommerce-billing-fields input[type="textarea"],
.woocommerce-billing-fields input[type="tel"],
.woocommerce-additional-fields textarea{
    border-radius: 0;
    outline: none;
    border: none;
    border-bottom: 1px #A6B0A5 solid;
    background-color: #f1f1f1;
    padding: 10px 0px 2px 0px;
}

.woocommerce-billing-fields input:focus,
.woocommerce-additional-fields textarea:focus{
    border-bottom: 1px #A6B0A5 solid;
}

.woocommerce-invalid input {
    border-bottom: 1px red solid !important;
}
.woocommerce-invalid input[type="checkbox"] {
    border: .125rem solid !important;
    border-color: red !important;
}

p.form-row label{
    margin-top: 15px;
}

.error-message,
.checkout-inline-error-message {
    color: red;
    font-size: 10px;
    font-weight: 500;
    margin-top: 3px;
    display: table;
    width: 100%;
    position: relative;
}

span.woocommerce-input-wrapper .error-message,
span.error-message.terms{
    display: none;
}

ul#shipping_method,
ul.payment_methods{
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: table;
    width: 100%;
}

ul#shipping_method li,
ul.payment_methods li{
    display: block;
    width: 100%;
    padding: 10px;
    text-align: right;
    background-color: #dedede;
    margin: 10px 0px;
    border-radius: 6px;
}

ul#shipping_method li input,
ul.payment_methods li input{
    margin-bottom: -6px;
    float: left;
}
ul#shipping_method li label,
ul.payment_methods li label{
    position: relative;
    display: block;
    width: 100%;
    padding: 5px 0px 5px 0px;
    cursor: pointer;
}

ul#shipping_method li input:checked + label,
ul.payment_methods li input:checked + label{
    font-weight: 600;
}

td.custom-total-price strong{
    display: block;
    width: 100%;
    margin-bottom: 5px;
}
td.custom-total-price .includes_tax{
    display: block;
    width: 100%;
    margin-bottom: 5px;
}


input#terms{
    margin-bottom: -20px;
}

.flex-table {
    display: flex !important;
    flex-direction: column;
    border-collapse: collapse;
    width: 100%;
    border: 1px solid #ccc;
}

.flex-row {
    display: flex;
    width: 100%;
}

.flex-cell {
    flex: 1; /* Each cell takes equal space */
    padding: 10px;
    text-align: center;
    border: 1px solid #ccc;
}

.flex-cell-30 {
    flex: 3; /* 30% of total (3 out of 10) */
    text-align: left;
}
.flex-cell-40 {
    flex: 4; /* 40% of total (4 out of 10) */
    text-align: left;
}

.flex-cell-60 {
    flex: 6; /* 60% of total (6 out of 10) */
    text-align: right;
}

.flex-cell-70 {
    flex: 7; /* 70% of total (7 out of 10) */
    text-align: right;
}

.flex-cell-100 {
    flex: 1; /* 100% of total (10 out of 10) */
}

.flex-cell-30-product {
    flex: 3; /* 30% of total (3 out of 10) */
    text-align: right;
}

.flex-cell-70-product {
    flex: 7; /* 70% of total (7 out of 10) */
    text-align: left;
}

.flex-cell-30-coupon {
    flex: 3; /* 30% of total (3 out of 10) */
    text-align: right;
    padding: 5px 15px;
    margin-top: 5px;
}

.flex-cell-70-coupon {
    flex: 7; /* 70% of total (7 out of 10) */
    text-align: left;
    padding: 5px 15px;
}


tr.order-total{
    border-top: 1px #000 solid !important;
}

div#payment{
    padding: 15px;
}

b.custom-payment-heading{
    font-size: 15px;
    font-weight: 700;
}

.payment_box{
    display: table;
    width: 100%;
    font-size: 12px;
    padding: 10px;
    background-color: #f0efef;
    margin: 10px 0px;
    border-radius: 6px;
    text-align: left;
}

.woocommerce-terms-and-conditions-wrapper{
    margin: 20px 0px;
}

.custom-terms-and-conditions input{
    margin-bottom: -6px;

}
.custom-terms-and-conditions label{
    font-size: 14px;
}
.custom-form-row-first {
    float: left;
    width: 48%;
    margin-right: 4%;
    clear: none;
}

.custom-form-row-last {
    float: right;
    width: 48%;
    clear: none;
}

div#custom-billing-form p.form-row{
    margin-bottom: 25px;
}

p#billing_country_field{
    margin-bottom: 20px;
}

.custom-register-customer label,
.custom-signup-newsletter label{
    cursor: pointer;
}

.custom-register-customer input[type="checkbox"],
.custom-signup-newsletter input[type="checkbox"]{
    margin-bottom: -5px;
}


/* hide optional label*/
span.optional{
    content: "" !important;
    display: none !important;
}

#place_order{
    display: inline-block;
    width: 48%;
    float: right;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 15px;
    text-align: center;
    background-color: #212227;
    color: #fff;
    transition: all 0.5s ease;
    cursor: pointer;
    border: 0 !important;
    border-radius: 0 !important;
}
#place_order:hover{
    background-color: #c94626;
    color: #fff;
}

.custom-cart-return-btn{
    display: table;
    width: 100%;
}
.cart-return-btn{
    display: inline-block;
    width: 48%;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 15px;
    text-align: center;
    background-color: #212227;
    color: #fff;
    transition: all 0.5s ease;
    cursor: pointer;
    border: 0 !important;
    border-radius: 0 !important;
}
.cart-return-btn:hover{
    background-color: #c94626;
    color: #fff;
}
.shop-return-btn{
    display: block;
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 15px;
    text-align: center;
    background-color: #212227;
    color: #fff;
    transition: all 0.5s ease;
    cursor: pointer;
    border: 0 !important;
    border-radius: 0 !important;
}
.shop-return-btn:hover{
    background-color: #c94626;
    color: #fff;
}

.woocommerce-terms-and-conditions-checkbox-text{
    font-size: 12px;
    float: right;
    margin-bottom: 20px;
}

/* THANK YOU BACS PAYMENT*/
.woocommerce-order-details{
    display: table;
    width: 50%;
    float: left;
    padding-right: 10px;
}
.woocommerce-customer-details{
    display: table;
    width: 50%;
    float: right;
    padding-left: 10px;
}

.woocommerce-order-details__title,
.woocommerce-column__title{
    font-size: 26px;
}

.woocommerce-table.woocommerce-table--order-details.shop_table.order_details{
    display: flex !important;
    flex-direction: column;
    border-collapse: collapse;
    width: 100%;
    border: 1px solid #ccc;
}
.woocommerce-table__line-item.order_item{
    background-color: #f1f1f1 !important;
    border-bottom: 1px #dedede solid;
}

.wc-item-meta{
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 12px;
}
.wc-item-meta li p{
    margin: 0;
    padding: 0;
}
.wc-item-meta li {
    margin-bottom: 10px;
}

.woocommerce-table.woocommerce-table--order-details.shop_table.order_details tr{
    display: flex;
    width: 100%;
}

.woocommerce-table.woocommerce-table--order-details.shop_table.order_details th{
    flex: 3; /* 30% of total (3 out of 10) */
    text-align: left;
    padding: 5px 15px;
    margin-top: 5px;
}
.woocommerce-table.woocommerce-table--order-details.shop_table.order_details td{
    flex: 7; /* 70% of total (7 out of 10) */
    text-align: right;
    padding: 5px 15px;
    margin-top: 5px;
}

.woocommerce-table.woocommerce-table--order-details.shop_table.order_details td.product-name{
    text-align: left;
}
.woocommerce-table.woocommerce-table--order-details.shop_table.order_details th.product-total,
.woocommerce-table.woocommerce-table--order-details.shop_table.order_details td.product-total{
    flex: 3; /* 30% of total (3 out of 10) */
    text-align: right;
    padding: 5px 15px;
    margin-top: 5px;
}

.woocommerce-customer-details address{
    display: flex !important;
    flex-direction: column;
    border-collapse: collapse;
    width: 100%;
    border: 1px solid #ccc;
    padding: 15px;
    line-height: 30px;
}

.order-actions--heading,
.order-actions-button{
    display: none !important;
}
small.shipped_via{
    float: left;
}
small.includes_tax{
    display: block;
}

/* TABLET */
@media (max-width: 1024px){
    #checkout-left,
    #checkout-right{
        width: 100%;
        padding: 0;
    }

    #checkout-right{
        margin-top: 20px;
    }

    .custom-form-row-first,
    .custom-form-row-last{
        width: 100%;
    }

    .woocommerce-terms-and-conditions-checkbox-text{
        font-size: 12px;
    }

    #place_order,
    .cart-return-btn{
        display: block;
        width: 100%;
        margin-bottom: 20px;
    }

    .woocommerce-order-details,
    .woocommerce-customer-details{
        width: 100%;
    }

}