/*
Theme Name:  Hello Elementor Child
Theme URL:   https://elementor.com
Description: Write here theme description.
Author:      Oded Talmon
Author URL:  https://odedta.com
Template:    hello-elementor
Version:     1.0.0
*/

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url("https://shop.hamachon.co.il/wp-content/uploads/2024/02/main-background.jpg");
    background-size: 317px;
    background-position: center left;
    background-repeat: no-repeat;
    opacity: 0.1;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    -webkit-transform: scale(-1, 1);
    transform: scale(-1, 1);
    background-image: url("https://shop.hamachon.co.il/wp-content/uploads/2024/02/main-background.jpg");
    background-size: 317px;
    background-position: center left;
    background-repeat: no-repeat;
    opacity: 0.1;
}

pre {
    /* bootstrap pre */
    display: block;
    padding: 9.5px;
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.42857143;
    color: #333333;
    word-break: break-all;
    word-wrap: break-word;
    background-color: #f5f5f5;
    border: 1px solid #cccccc;
    border-radius: 4px;
    direction: ltr;
    text-align: left;
}

.dir-rtl,
.dir-rtl * {
    direction: rtl;
}

.wp-block-button__link {
    background-color: #436d39;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
}

.wc-block-components-panel__button[aria-expanded=true] {
    height: 40px;
    margin: 0 !important;
    margin-bottom: 35px !important;
    padding: 0 !important;
    line-height: 1;
}

.wc-block-components-order-summary .wc-block-components-panel__button,
.wc-block-components-order-summary .wc-block-components-panel__button:hover {
    height: 40px;
    padding: 10px !important;
    line-height: 1;
}

.wc-block-components-panel__button > .wc-block-components-panel__button-icon {
    margin-left: 8px;
}

.wp-block-woocommerce-checkout {
    margin: 50px auto 30px auto !important;
}

.showlogin {
    margin-right: 5px;
    color: #436d39;
}

body .button.loading.single_add_to_cart_button::after,
body .button.loading.add_to_cart_button::after {
    position: relative;
    top: 0;
    right: 5px;
    left: 0;
    display: inline-block;
}

.elementor-widget-woocommerce-cart .woocommerce .input-text.qty {
    text-align: center;
}

.elementor-widget-woocommerce-checkout-page .woocommerce h3 {
    padding-right: 0;
    margin-bottom: 30px;
}

.woocommerce form.cart .bundled_product .cart .variations tr {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.bundled_product_summary .bundled_item_wrap span.price,
.single-product .bundled_product_summary .bundled_item_wrap span.price {
    color: #765b51;
    font-size: 16px;
}

.cart.bundle_data .bundle_button {
    display: flex;
}

.cart_item td.product-name {
    font-weight: bold !important;
}

.added_to_cart.wc-forward {
    margin-right: 10px;
}

td.product-quantity input[readonly="readonly"] {
    border: 0 !important;
}

.woocommerce-product-gallery {
    display: grid;
    gap: 10px
}

.woocommerce-shipping-fields__field-wrapper {
    display: inline-block;
}

@media only screen and (max-width: 35.999em) {
    .woocommerce-product-gallery {
        gap: 6px;
    }
}

.woocommerce-product-gallery .flex-control-thumbs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 60px;
    gap: 10px;
    overflow-x: auto !important;
    overscroll-behavior-inline: contain;
    padding: 0;
}

.woocommerce-product-gallery .flex-control-thumbs li {
    float: none !important;
    width: 100% !important;
    display: grid;
}

.woocommerce-product-gallery .flex-control-thumbs li img {
    inline-size: 100%;
    aspect-ratio: 1/1;
    -o-object-fit: cover;
    object-fit: cover;
    border-radius: 50%;
}

.woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
    border: 5px solid #765b51;
}

.woocommerce-product-gallery .flex-control-nav {
    -ms-scroll-snap-type: inline mandatory;
    scroll-snap-type: inline mandatory;
    scroll-padding-inline: 10px;
}

.woocommerce-product-gallery .flex-control-nav > * {
    scroll-snap-align: start;
}

.elementor-widget-loop-grid .e-loop-item .e-con-inner {
    position: relative;
}

.loop-item-product-short-desc {
    display: none;
}

.loop-item-product-short-desc.active {
    position: absolute;
    top: 0;
    right: -15px;
    left: 0;
    z-index: 30;
    display: block;
    width: calc(100% + 35px);
    height: 100%;
    padding: 0 10px;
    overflow: auto;
    background-color: white;
}

.loop-item-product-short-desc-toggle {
    cursor: pointer;
}

.loop-item-product-title {
    min-height: 48px;
}

.switch-plan-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

#switch-plan {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

#billing_phone,
#billing_email {
    text-align: right;
}

#clear-cart {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 10;
    text-decoration: underline;
    cursor: pointer;
}

.woocommerce form .form-row .required {
    position: relative;
    top: 5px;
    vertical-align: super;
    line-height: 1;
}

.woocommerce-invalid-required-field input[type="checkbox"] {
    outline: 2px solid red;
    outline-offset: 2px;
}

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

.woocommerce-terms-and-conditions-wrapper p.form-row {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.woocommerce-terms-and-conditions-wrapper p.form-row > label {
    line-height: 1.7;
}

.woocommerce-terms-and-conditions-wrapper p.form-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 3px 0 0 5px !important;
    cursor: pointer;
}

.woocommerce span.onsale {
    position: relative;
    top: 0;
    right: 0;
    min-width: initial;
    min-height: initial;
    padding: 5px 10px;
    border: 2px solid #765b51;
    border-radius: 5px;
    background-color: white;
    color: #765b51;
    font-size: 14px;
    line-height: 1;
}

.e-loop-item .elementor-widget-woocommerce-product-stock p.stock {
    display: inline;
    margin: 0;
    padding: 5px 10px;
    border: 2px solid #765b51;
    border-radius: 5px;
    background-color: white;
    color: #765b51 !important;
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
}

.dashicons.spin {
    animation: dashicons-spin 1s infinite;
    animation-timing-function: linear;
}

@keyframes dashicons-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

body:not(.woocommerce-checkout):not(.woocommerce-cart):not(.woocommerce-myaccount) .woocommerce-form-login-toggle {
    margin-bottom: 20px;
    text-align: center;
}

body:not(.woocommerce-checkout):not(.woocommerce-cart):not(.woocommerce-myaccount) .woocommerce-form-login-toggle .woocommerce-info {
    margin: 0;
    text-align: center;
    border: none;
}

body:not(.woocommerce-checkout):not(.woocommerce-cart):not(.woocommerce-myaccount) .woocommerce-form-login-toggle .woocommerce-info::before {
    position: relative;
    top: 2px;
    right: -5px;
    color: #765b51;
}

body:not(.woocommerce-checkout):not(.woocommerce-cart):not(.woocommerce-myaccount) .woocommerce-form-login {
    max-width: 380px;
    width: 100%;
    margin: 20px auto;
    padding: 20px;
    border: 5px double #765b51;
    border-radius: 10px;
}

.woocommerce-checkout #billing_pob_field,
.woocommerce-checkout #billing_postcode_field {
    width: 24%;
}

.woocommerce .woocommerce-form-login .woocommerce-form-login__submit,
.woocommerce .woocommerce-form-login .woocommerce-form-login__submit:hover,
.woocommerce .woocommerce-form-login .woocommerce-form-login__submit:focus,
.woocommerce .woocommerce-form-login .woocommerce-form-login__submit:active,
.woocommerce-ResetPassword button.woocommerce-Button:hover,
.woocommerce-ResetPassword button.woocommerce-Button:focus,
.woocommerce-ResetPassword button.woocommerce-Button:active,
.woocommerce-ResetPassword button.woocommerce-Button {
    display: inline-block;
    background-color: #765b51;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    margin: 0;
    padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 5px 0;
    color: black;
    text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    color: #765b51;
}

.woocommerce #payment #place_order,
.woocommerce-page #payment #place_order,
.woocommerce-account .woocommerce-MyAccount-content button[name="save_account_details"],
.woocommerce-account .woocommerce-MyAccount-content a.button,
.woocommerce-account .woocommerce-MyAccount-content a.button:hover,
.woocommerce-account .woocommerce-MyAccount-content a.button:focus,
.woocommerce-account .woocommerce-MyAccount-content a.button:active,
.woocommerce table.my_account_orders .button {
    background-color: #765b51;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-content button[name="save_account_details"] {
    margin-top: 20px;
}

.contracts-content {
    display: none;
    overflow: auto;
    max-height: 300px;
    margin: 10px 0;
    padding: 10px;
}

.contracts-content h2 {
    color: black !important;
    font-family: "Heebo", Sans-serif, serif !important;
    font-size: 22px !important;
}

.contracts-content h3 {
    color: black !important;
    font-family: "Heebo", Sans-serif, serif !important;
    font-size: 20px !important;
}

.contracts-content h4 {
    color: black !important;
    font-family: "Heebo", Sans-serif, serif !important;
    font-size: 18px !important;
}

.contracts-content p,
.contracts-content li {
    margin: 0;
    padding: 0;
    color: black;
    font-family: "Heebo", Sans-serif, serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
}

.view-contract {
    top: 0 !important;
    color: #436d39 !important;
    cursor: pointer;
}

.elementor-menu-cart__toggle .elementor-button,
.elementor-menu-cart__toggle .elementor-button:hover {
    background-color: transparent !important;
    transition: initial !important;
}

.page-subscriptions .added_to_cart.wc-forward {
    display: none;
}

.bundled_table_item .bundled_table_item_indent {
    padding-right: 10px;
}

.remove-from-cart {
    display: block;
    margin: 20px auto;
    text-decoration: underline;
}

.woocommerce-MyAccount-content .kala-order {
    margin-bottom: 40px;
    border-bottom: 4px solid #765b51;
}

.woocommerce-MyAccount-content .kala-order caption {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
}

.woocommerce-billing-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
}

.woocommerce-billing-fields__field-wrapper .form-row {
    width: 100% !important;
    margin: 0;
}

.woocommerce-billing-fields__field-wrapper .form-row[data-priority="1"] {
    grid-row: 1;
    grid-column: 1 / 3;
}

.woocommerce-billing-fields__field-wrapper .form-row[data-priority="2"] {
    grid-row: 1;
    grid-column: 3 / 7;
}

.woocommerce-billing-fields__field-wrapper .form-row[data-priority="7"] {
    grid-row: 2;
    grid-column: 1 / 3;
}

.woocommerce-billing-fields__field-wrapper .form-row[data-priority="3"] {
    grid-row: 2;
    grid-column: 3 / 7;
}

.woocommerce-billing-fields__field-wrapper .form-row[data-priority="5"] {
    grid-row: 3;
    grid-column: 1 / 2;
}

.woocommerce-billing-fields__field-wrapper .form-row[data-priority="4"] {
    grid-row: 3;
    grid-column: 3 / 7;
}

.woocommerce-billing-fields__field-wrapper .form-row[data-priority="9"] {
    grid-row: 5;
    grid-column: 1 / 3;
}

.woocommerce-billing-fields__field-wrapper .form-row[data-priority="8"] {
    grid-row: 5;
    grid-column: 3 / 7;
}

@media (max-width: 768px) {
    body::before {
        left: -25px;
        opacity: 0.05;
        background-size: 200px;
    }

    body::after {
        right: -25px;
        opacity: 0.05;
        background-size: 200px;
    }

    .woocommerce-product-gallery .flex-control-thumbs {
        grid-auto-columns: 50px;
        gap: 5px;
    }

    .woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
        border: 2px solid #765b51;
    }

    .home .elementor-swiper-button.elementor-swiper-button-prev,
    .home .elementor-swiper-button.elementor-swiper-button-next {
        display: none;
    }

    .woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals td {
        padding: 0 !important;
    }

    .woocommerce-billing-fields__field-wrapper {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .woocommerce-billing-fields__field-wrapper .form-row {
        width: 100% !important;
        margin: 0;
    }

    .woocommerce-billing-fields__field-wrapper .form-row[data-priority="1"],
    .woocommerce-billing-fields__field-wrapper .form-row[data-priority="2"],
    .woocommerce-billing-fields__field-wrapper .form-row[data-priority="3"],
    .woocommerce-billing-fields__field-wrapper .form-row[data-priority="4"],
    .woocommerce-billing-fields__field-wrapper .form-row[data-priority="5"],
    .woocommerce-billing-fields__field-wrapper .form-row[data-priority="6"],
    .woocommerce-billing-fields__field-wrapper .form-row[data-priority="7"],
    .woocommerce-billing-fields__field-wrapper .form-row[data-priority="8"],
    .woocommerce-billing-fields__field-wrapper .form-row[data-priority="9"],
    .woocommerce-billing-fields__field-wrapper .form-row[data-priority="10"] {
        grid-row: auto;
        grid-column: auto;
    }

    .contracts-content p {
        margin-bottom: 10px;
    }

    .contracts-content p,
    .contracts-content li {
        font-size: 16px;
    }

    .contracts-content h2 {
        font-size: 20px !important;
    }

    .contracts-content h3 {
        font-size: 18px !important;
    }
}