.wp-block-woocommerce-product-collection {
    .wc-block-product-template {
        .wc-block-product {
            .wp-block-button {
                .wp-block-button__link {
                    &:hover {
                        border-color: var(--wp--preset--color--border-default-color) !important;
                        background: transparent;
                        color: var(--wp--preset--color--foreground);
                    }
                }
            }
        }
    }
}

.single_add_to_cart_button,
.wc-block-cart__submit-container .wc-block-components-button,
.wc-block-components-checkout-place-order-button,
.woocommerce a.added_to_cart {
    background-color: var(--wp--preset--color--foreground);
    border-radius: 0px;
    color: var(--wp--preset--color--background);
    font-family: var(--wp--preset--font-family--source-sans-pro);
    font-size: var(--wp--preset--font-size--small);
    font-weight: var(--wp--custom--typography--font-weight--bold);
    line-height: var(--wp--custom--typography--line-height--paragraph);
    margin-top: 14px;
    padding: max(0.7rem, 0.75vw) max(1.5rem, 1.85vw);
    transition: all 0.3s ease-in-out;
    border: 1px solid var(--wp--preset--color--foreground) !important;
    text-transform: uppercase;
    text-decoration: none;

    &:hover {
        border-color: var(--wp--preset--color--border-default-color) !important;
        background: transparent;
        color: var(--wp--preset--color--foreground);
    }
}

.woocommerce.wc-block-catalog-sorting .woocommerce-ordering {
    background-color: var(--wp--preset--color--secondary);
    padding-right: 14px;
}

.woocommerce.wc-block-catalog-sorting select.orderby {
    background-color: var(--wp--preset--color--secondary);
    border: 0;
    padding: 14px 21px;
}

.comment-form {
    input[type="date"],
    input[type="time"],
    input[type="datetime-local"],
    input[type="week"],
    input[type="month"],
    input[type="text"],
    input[type="email"],
    input[type="url"],
    input[type="password"],
    input[type="search"],
    input[type="tel"],
    input[type="number"],
    textarea {
        border: 1px solid var(--wp--preset--color--border-default-color);
    }
}

.wp-block-woocommerce-order-confirmation-status {
    h1 {
        font-size: var(--wp--custom--typography--font-size--heading-two);
        line-height: var(--wp--custom--typography--line-height--heading-two);
        margin-top: 0;
        margin-bottom: 7px;
    }
}

/* New Update : Single Product */

.wp-block-fse-pro-accordion-item:not(:last-child) {
    margin-bottom: 0;
}

.wp-block-woocommerce-product-collection {
    .wp-block-query-pagination {
        margin-top: var(--wp--preset--spacing--60);
    }
}

.wc-block-components-product-price,
.woocommerce-grouped-product-list-item__price {
    del {
        opacity: 0.5;
    }
}

.block-editor-block-list__block.wp-block-woocommerce-product-image-gallery {
    .wc-block-editor-product-gallery {
        img {
            max-width: 100%;
        }
    }
}

.wp-block-accordion-heading__toggle {
    transition: all 0.3s ease-in-out;

    &:hover {
        color: var(--wp--preset--color--alternate-bg-color);
    }
}

.wc-block-components-product-price {
    del {
        opacity: 0.5;
    }
}

.block-editor-block-list__block.comment-respond.wp-block-woocommerce-product-review-form {
    background-color: transparent;
    padding: 0;
}

.comment-respond.wp-block-woocommerce-product-review-form {
    #reply-title {
        display: block;
    }

    .comment-form-rating {
        margin-bottom: 14px;
    }

    .comment-form-cookies-consent {
        align-items: center;
        margin-bottom: 21px !important;
        margin-top: 21px !important;

        label {
            margin-bottom: 0;
        }

    }
}

.has-position-sticky,
.woocommerce .wp-block-woocommerce-product-image-gallery {
    max-width: 100%;
    position: sticky;
    top: 40px;
}

.woocommerce .wp-block-woocommerce-product-image-gallery span.onsale {
    left: auto;
    right: 4.5rem;
    top: 9px;
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
    z-index: 1;
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
    width: 100%;
}

.wp-block-table td,
.wp-block-table th {
    padding: .7em 1em;
    line-height: 1.5;
    border-color: var(--wp--preset--color--border-default-color);

    p {
        margin: 0;
    }
}

.woocommerce div.product form.cart .variations {
    tbody {
        tr:last-child {

            th,
            td {
                padding-bottom: 0;
            }
        }
    }
}

.woocommerce div.product form.cart div.quantity .qty {
    padding: .7rem 1.7rem;
    box-sizing: border-box;
    height: 100%;
    border: 1px solid var(--wp--preset--color--border-default-color);
}


.woocommerce div.product form.cart .variations select {
    border: 1px solid var(--wp--preset--color--border-default-color);
}

.wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__input {
    flex: 0 1 auto;
}



@media only screen and (max-width: 1024px) and (min-width: 782px) {
    .wp-block-group.wp-faq-main {
        flex-direction: column;
    }
}

@media screen and (max-width: 781px) {
    .wp-block-woocommerce-add-to-cart-form form.cart.grouped_form {
        display: inline;
    }
}

@media screen and (max-width: 600px) {
    .wp-block-group.wp-faq-main {
        flex-direction: column;
    }
}

.woocommerce .cart div.quantity {
    display: flex;
    align-items: center;
    position: relative;
    width: 140px;
    min-height: 52px;
}

.woocommerce .cart div.quantity input[type="number"] {
    width: 100%;
    margin: 0 !important;
    font-size: 18px;
    -moz-appearance: textfield;
}

.woocommerce .cart div.quantity .quantity-up,
.woocommerce .cart div.quantity .quantity-down {
    align-items: center;
    background-color: transparent;
    border: none;
    box-sizing: border-box;
    color: var(--wp--preset--color--body-text);
    cursor: pointer;
    left: auto;
    right: 1px;
    height: 97%;
    position: absolute;
    top: 1px;
    display: flex;
    padding: 5px 14px;
    font-size: var(--wp--custom--typography--font-size--heading-five);
    transition: 0.3s;

    &:hover {
        background-color: var(--wp--preset--color--border-default-color);
    }
}

.woocommerce .cart div.quantity .quantity-down {
    right: auto;
    left: 1px;
}

.woocommerce div.product form.cart div.quantity {
    margin-right: 10px;
}

.cart.grouped_form .single_add_to_cart_button {
    margin-top: 21px !important;
}

.wp-block-woocommerce-add-to-cart-form .variations_button,
.wp-block-woocommerce-add-to-cart-form form.cart {
    display: flex;
    flex-wrap: wrap;
    row-gap: 1rem;
}

.woocommerce-product-gallery__image {
    a {
        padding-top: 0 !important;
    }
}

/* Ends New Update : Single Product */
