/* Woocommerce Styles */

/* 
A couple things to note...
1. This code was written very specifically for my base child theme so it might not work out of the box with every theme.
   I have it here mostly to share with anyone who might be looking to do the same thing I was.
2. I generally add my WooCommerce CSS overrides to a custom-woo.css file then use wp_enqueue_style() to call it 
   so that it enqueues after the default WooCommerce Stylesheets
*/
.button {
    border-radius: 0.25rem !important;
}
.woocommerce-message {
    display: none;
}
.woocommerce-cart.full-width-content .content,
.woocommerce-checkout.full-width-content .content {
    max-width: 100%;
}

.woocommerce-cart .woocommerce table.shop_table td.actions {
    border-top: 1px solid #d3ced2;
    background: #f7f7f7;
    border-bottom: 0px solid #d3ced2;
}
.woocommerce-cart .entry-content form {
    width: 60%;
    float: left;
}
.woocommerce-cart .woocommerce .cart-collaterals {
    width: 33%;
    float: right;
}
.woocommerce-cart .woocommerce .cart-collaterals h2 {
    display: none;
}
.woocommerce-cart .woocommerce .cart-collaterals .cart_totals {
    width: 100%;
}

#add_payment_method .cart-collaterals .cart_totals tr th,
.woocommerce-cart .cart-collaterals .cart_totals tr th,
.woocommerce-checkout .cart-collaterals .cart_totals tr th,
#add_payment_method table.cart th,
.woocommerce-cart table.cart th,
.woocommerce-checkout table.cart th,
.woocommerce-checkout table.shop_table th {
    color: #cf8c23;
    font-size: 16px;
}

#add_payment_method .cart-collaterals .cart_totals tr td,
.woocommerce-cart .cart-collaterals .cart_totals tr td,
.woocommerce-checkout .cart-collaterals .cart_totals tr td,
#add_payment_method table.cart td,
.woocommerce-cart table.cart td,
.woocommerce-checkout table.cart td,
.woocommerce-checkout table.shop_table td {
    color: #000;
    font-size: 15px;
}

.woocommerce-cart .woocommerce table.shop_table th {
    border-bottom: 2px solid #cf8c23;
}

.woocommerce-cart .woocommerce table.shop_table,
.woocommerce-checkout .woocommerce table.shop_table {
    border: 0px solid #000;
    margin: 0;
    width: 100%;
    border-collapse: separate;
    margin-bottom: 15px;
    border-spacing: 0;
    border-radius: 0.25rem;
    box-shadow: 0 2px 7px -3px #000;
}

body #add_payment_method #payment ul.payment_methods li input,
body.woocommerce-cart #payment ul.payment_methods li input,
body.woocommerce-checkout #payment ul.payment_methods li input {
    width: auto;
    margin: -2px 0.5em 0 0;
}

body .woocommerce form .form-row .input-checkbox {
    width: auto;
    margin: -2px 5px 0 0;
}

#add_payment_method .cart-collaterals .cart_totals tr td,
#add_payment_method .cart-collaterals .cart_totals tr th,
body.woocommerce-cart .cart-collaterals .cart_totals tr td,
body.woocommerce-cart .cart-collaterals .cart_totals tr th,
body.woocommerce-checkout .cart-collaterals .cart_totals tr td,
body.woocommerce-checkout .cart-collaterals .cart_totals tr th,
body .woocommerce table.shop_table th {
    border-top: none;
    border-bottom: 1px solid #d3ced2;
    border-right: 1px solid #d3ced2;
    text-align: right;
    padding: 10px;
}

body #add_payment_method table.cart td,
body #add_payment_method table.cart th,
body.woocommerce-cart table.cart td,
body.woocommerce-cart table.cart th,
body.woocommerce-checkout table.cart td,
body.woocommerce-checkout table.cart th {
    border-right: 1px solid #d3ced2;
}

#add_payment_method .cart-collaterals .cart_totals tr th,
body.woocommerce-cart .cart-collaterals .cart_totals tr th,
body.woocommerce-checkout .cart-collaterals .cart_totals tr th {
}

.woocommerce-cart .cart-collaterals .cart_totals table th {
    border-bottom: 1px solid #d3ced2;
}

body .woocommerce #respond input#submit.alt,
body .woocommerce a.button.alt,
body .woocommerce button.button.alt,
body .woocommerce input.button.alt {
    background: #cf8c23 !important;
    font-weight: 500;
}

body .woocommerce #respond input#submit.alt:hover,
body .woocommerce a.button.alt:hover,
body .woocommerce button.button.alt:hover,
body .woocommerce input.button.alt:hover {
    background: #cf8c23 !important;
}

body .woocommerce .cart .button,
body .woocommerce .cart input.button,
body .woocommerce #respond input#submit,
body .woocommerce a.button,
body .woocommerce button.button,
body .woocommerce input.button {
    background: #cf8c23 !important;
    color: #fff;
    font-weight: 500;
    border-radius: 40px;
}

body .woocommerce #payment #place_order,
.woocommerce-page #payment #place_order {
    width: auto;
    display: block;
    text-align: center;
    font-size: 20px;
    padding: 1rem;
    border: 1px solid #cf8c23;
    cursor: pointer;
    font-weight: 800;
    margin: 15px 0 0;
}

body .woocommerce form .form-row-first,
body .woocommerce form .form-row-last,
body .woocommerce-page form .form-row-first,
body .woocommerce-page form .form-row-last {
    width: 49%;
    display: inline-block;
}
p {
    margin: 0 0 10px;
}
body .woocommerce #respond input#submit.disabled,
body .woocommerce #respond input#submit:disabled,
body .woocommerce #respond input#submit:disabled[disabled],
body .woocommerce a.button.disabled,
body .woocommerce a.button:disabled,
body .woocommerce a.button:disabled[disabled],
body .woocommerce button.button.disabled,
body .woocommerce button.button:disabled,
body .woocommerce button.button:disabled[disabled],
body .woocommerce input.button.disabled,
body .woocommerce input.button:disabled,
body .woocommerce input.button:disabled[disabled] {
    background: #ccc;
}

body .woocommerce a.checkout-button.button.alt {
    border-radius: 40px;
}

body .woocommerce #content table.cart td.actions .coupon,
body .woocommerce table.cart td.actions .coupon {
    display: inline-block;
}
.actions p {
    display: inline-block;
}
body #add_payment_method table.cart td.actions .coupon .input-text,
body.woocommerce-cart table.cart td.actions .coupon .input-text,
body.woocommerce-checkout table.cart td.actions .coupon .input-text {
    padding: 8px 6px 7px;
    width: 65%;
}

body .woocommerce table.shop_table td {
    padding: 15px;
}

body .woocommerce-checkout table.shop_table td,
body .woocommerce-checkout table.shop_table th {
    text-align: right;
    border-right: 1px solid #d3ced2;
    border-top: 0;
    border-bottom: 1px solid #d3ced2 !important;
}
body .woocommerce-checkout table.shop_table tfoot tr:last-child td,
body .woocommerce-checkout table.shop_table tfoot tr:last-child th {
    border-bottom: 0px solid #d3ced2 !important;
}

.woocommerce a.remove {
    margin: 0 auto;
}
.woocommerce-cart .woocommerce table.shop_table th.product-remove,
.woocommerce-cart .woocommerce table.shop_table th.product-name {
    text-align: center;
}
.woocommerce-cart .woocommerce table.shop_table th.product-price,
.woocommerce-cart .woocommerce table.shop_table th.product-quantity,
.woocommerce-cart .woocommerce table.shop_table th.product-subtotal {
    text-align: right;
}

.woocommerce-cart .woocommerce table.shop_table .cart_item td.product-price,
.woocommerce-cart .woocommerce table.shop_table .cart_item td.product-quantity,
.woocommerce-cart .woocommerce table.shop_table .cart_item td.product-subtotal {
    text-align: right;
}

.woocommerce-checkout #add_payment_method #payment ul.payment_methods li,
.woocommerce-checkout #payment ul.payment_methods li {
    list-style: none;
}

.woocommerce-checkout .woocommerce .col2-set {
    width: 47.8260869565%;
    float: left;
    margin-right: 4.347826087%;
}
.woocommerce-checkout .woocommerce .col2-set .col-1,
.woocommerce-checkout .woocommerce .col2-set .col-2 {
    margin-bottom: 2em;
    width: 100%;
    float: none;
}

.woocommerce-checkout #ship-to-different-address-checkbox {
    width: auto;
    float: right;
    margin-left: 15px;
    margin-top: 10px;
    opacity: 1;
    position: static;
}
.woocommerce-checkout #ship-to-different-address label {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    margin-bottom: 1em;
    padding: 0;
    text-transform: uppercase;
    color: #000;
}
.woocommerce-checkout .woocommerce form .form-row.create-account label {
    padding-top: 2px;
    font-weight: bold;
}

.woocommerce-checkout .payment-fixed {
    position: fixed;
    z-index: 9;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 6px 2em;
    left: 52%;
    margin-left: 0;
    padding: 20px;
    top: 0;
    width: 45.5% !important;
    -webkit-transition: padding 0.1s ease-in;
    -moz-transition: padding 0.1s ease-in;
    -o-transition: padding 0.1s ease-in;
    -ms-transition: padding 0.1s ease-in;
    transition: padding 0.1s ease-in;
}

.product-shipping-message {
    font-size: 16px;
    text-align: center;
    text-transform: uppercase;
    padding: 10px 0px;
    border-top: 1px solid #139248;
    border-bottom: 1px solid #139248;
}

body .woocommerce table.shop_table tbody th,
body .woocommerce table.shop_table tfoot td,
body .woocommerce table.shop_table tfoot th {
    border-bottom: none;
}

body .woocommerce form .form-row input.input-text,
body .woocommerce form .form-row textarea {
    max-width: 100%;
    width: 95%;
    font-size: 16px;
    padding: 5px 10px;
    font-family: Assistant, sans-serif;
}

body .woocommerce .product-name a {
    color: #000;
    pointer-events: none;
    cursor: default;
}

@media only screen and (max-width: 1139px) {
    .woocommerce-cart .entry-content form {
        width: 64%;
    }
}

@media only screen and (max-width: 980px) {
    .woocommerce-cart .entry-content form {
        width: 80%;
        float: none;
        margin: 0 auto;
    }
    .woocommerce-cart .woocommerce .cart-collaterals {
        width: 80%;
        float: None;
        margin: auto;
    }
    body .woocommerce #content table.cart td.actions .coupon,
    body .woocommerce table.cart td.actions .coupon {
        width: 100%;
    }
    body #add_payment_method table.cart td.actions .coupon .input-text,
    body.woocommerce-cart table.cart td.actions .coupon .input-text,
    body.woocommerce-checkout table.cart td.actions .coupon .input-text {
        width: 48%;
    }
}

@media only screen and (max-width: 650px) {
    .woocommerce-cart .entry-content form {
        width: 100%;
    }
    .woocommerce-cart .woocommerce .cart-collaterals {
        width: 100%;
    }
}
.woocommerce-checkout .woocommerce .col2-set {
    width: 100%;
    float: none;
    margin-right: 0;
}
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
    width: 100%;
    float: none;
}
span.woocommerce-input-wrapper {
    display: block;
}
ul#shipping_method {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul#shipping_method li {
    margin: 0 0 5px;
    font-size: 13px;
    align-items: center;
    display: flex;
}

ul.wc_payment_methods.payment_methods.methods {
    margin: 0 0 5px;
    padding: 0;
}
tr.woocommerce-shipping-totals.shipping th:after {
    content: "איסוף עצמי - הודעה על תיאום האיסוף תשלח למייל כשההזמנה מוכנה.";
    font-size: 10px;
    display: block;
    color: #000;
}

th.product-total {
    width: 60%;
}

.woocommerce-privacy-policy-text {
    display: none;
}
li.wc_payment_method {
    display: none;
}
.button br {
    display: none;
}
td.product-thumbnail img {
    width: 65px;
    max-width: 100%;
}
/* UPS */
.ups-pickups.ups-pickups-48 {
    width: 75px !important;
    height: 55px !important;
    background-size: cover !important;
}
tr.pickups_location th:before {
    content: "חובה!";
    color: red;
    display: block;
    animation: pulser 3s ease-in-out infinite alternate;
}
.div.ups-pickups-info {
    margin-right: 0 !important;
}

/* OWEB */
.oweb-checkout-container {
    display: grid;
    grid-template-columns: 48% 48%;
    grid-column-gap: 20px;
}

#billing_country_field,
#billing_state_field {
    display: none !important;
}

@media (max-width: 768px) {
    .oweb-checkout-container {
        grid-template-columns: 100%;
        grid-column-gap: 0px;
    }
}
