.woocommerce div.product {
    div.images {
        margin-bottom: 0;
    }
}

.woocommerce-account,
.woocommerce-checkout,
.woocommerce-cart {

    .wp-block-post-title {
        max-width: 100%;
    }
}

.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
    padding-inline: 0;
}

.wc-block-components-error {
    width: 100%;
}


.wc-block-components-radio-control .wc-block-components-radio-control__input,
.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox] {
    min-width: 10px;
    min-height: 10px;
    width: 10px;
    padding: 8px;
    height: 10px;
    margin-right: 7px;
}

.wc-block-attribute-filter .wc-block-attribute-filter-list li label:hover {
    color: var(--wp--preset--color--link-color);
}

.wp-block-button.wc-block-components-product-button {
    .wc-block-components-product-button__button {
        word-wrap: break-word;
        font-family: inherit;
        font-size: var(--wp--preset--font-size--small);
        font-style: normal;
        line-height: 1.5;
        border-style: solid;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        max-width: 100%;
        display: inline-block;

        &:hover,
        &:focus {
            border-style: solid;
        }
    }
}

.woocommerce .woocommerce-Reviews .comment-reply-title {
    font-size: var(--wp--preset--font-size--body-default);
    font-weight: 500;
    display: block;
    margin-bottom: 14px;
    text-transform: inherit;
}

.woocommerce.wc-block-catalog-sorting,
.wc-block-sort-select {

    select.orderby,
    .wc-block-components-sort-select__select {
        min-height: 45px;
        border: none;
        padding: 14px;
        background-color: var(--wp--preset--color--secondary);
        color: var(--wp--preset--color--title);
    }
}

.wc-block-sort-select__label {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.wc-block-product-template.is-flex-container {
    gap: 3rem 1.25em;
}

@media screen and (min-width: 640px) {
    .wc-block-components-product-sort-select {
        text-align: right;
    }
}


table.variations {
    tr:not(:last-child) {
        margin-bottom: 10px;
    }

    th {
        width: 60px;
    }
}

.wc-block-components-price-slider__range-input-progress {
    background-color: var(--wp--preset--color--link-color);
}

.wc-block-rating-filter .wc-block-components-product-rating {
    margin-top: -2px;
}

.wc-block-grid__product-price {
    del {
        opacity: 0.4;
    }

    ins {
        text-decoration: none;
    }
}

/* Woo Sales Badge */
.woocommerce {
    .wp-block-woocommerce-product-image-gallery {
        span.onsale {
            padding: .25em .75em;
            left: 5px;
            top: 5px;
            min-width: auto;
            min-height: auto;
            line-height: 1.5;
            text-transform: uppercase;
            font-weight: 600;
        }
    }
}

.wc-block-grid .wc-block-grid__product-onsale,
.wc-block-grid__product-image .wc-block-grid__product-onsale,
.woocommerce .wp-block-woocommerce-product-image-gallery span.onsale,
.wc-block-components-product-sale-badge {
    background: var(--wp--preset--color--link-color);
    color: var(--wp--preset--color--light);
    border: 0;
    border-radius: 0;
    font-size: var(--wp--preset--font-size--tiny);
}

/* Woocommerce Breadcrumb */
.woocommerce.wc-block-breadcrumbs {}

.search .woocommerce.wc-block-breadcrumbs {
    text-align: center;

}

.woocommerce-breadcrumb {
    margin-bottom: 0 !important;
}

.woocommerce-checkout {
    .entry-content {
        margin-top: 0 !important;

        .wp-block-woocommerce-checkout {
            padding-top: 0 !important;
        }
    }
}

.wc-block-components-checkout-step__title {
    font-size: var(--wp--preset--font-size--entry-title) !important;
}

.entry-content {
    .breadcrumb-area {
        display: none;
    }
}

/* Input Field Number */
input[type="number"] {
    -moz-appearance: textfield;
}

.wc-block-add-to-cart-form {
    .quantity {
        .qty {
            width: 4.5em;
            padding: 0.92rem 0.5rem;
            margin-top: 0;
            box-sizing: border-box;
            font-size: var(--wp--preset--font-size--body-default);
        }
    }
}

/* Product Category Lits */
.wc-block-product-categories.wp-block-woocommerce-product-categories {
    .wc-block-product-categories-list {
        margin-left: 0;
        padding-left: 0;

        .wc-block-product-categories-list-item {
            margin-bottom: 0.5rem;
            text-align: right;
            list-style: none;
            overflow: hidden;

            a {
                float: left;
                text-decoration: none;

                &:hover {
                    text-decoration: underline;
                }
            }

            &:last-child {
                margin-bottom: 0;
            }
        }
    }
}

.wc-block-grid {
    .wc-block-grid__products {
        .wc-block-grid__product {
            .wc-block-components-product-title {
                font-weight: 400;
                font-size: var(--wp--preset--font-size--18);

                a {
                    color: var(--wp--preset--color--title);
                    text-decoration: none;

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

            .wc-block-components-product-image {
                margin-bottom: var(--wp--preset--spacing--24);
            }

            >* {
                margin-bottom: .75rem;
                margin-top: 0;
            }
        }
    }

    .wc-block-pagination {
        .wc-block-pagination-page {
            color: var(--wp--preset--color--link-color);

            &:hover {
                color: var(--wp--preset--color--body-text);
            }
        }
    }
}

.woocommerce a.added_to_cart,
.added_to_cart.wc_forward {
    margin: 0;
    background-color: transparent;
    border: none;
    color: var(--wp--preset--color--title);
    font-family: inherit;
    text-transform: uppercase;
    font-size: var(--wp--preset--font-size--small);
    font-style: normal;
    font-weight: 500;
    line-height: 1.5;
    padding: 10px 25px;
    text-decoration: underline;
    letter-spacing: 2px;

    &:hover {
        text-decoration: none
    }
}

.wp-block-button__link.add_to_cart_button {
    margin-bottom: 0 !important;
}

html body .wp-block-woocommerce-product-details.is-style-minimal ul.tabs.wc-tabs li a {
    font-family: var(--wp--preset--font-family--gelasio);
    font-size: var(--wp--preset--font-size--body-default);
}

.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel {
    max-width: var(--wp--style--global--content-size);

}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    border-bottom: 1px solid var(--wp--preset--color--border-color) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    color: var(--wp--preset--color--title);
    opacity: 1;
}

html body .wp-block-woocommerce-product-details.is-style-minimal ul.tabs.wc-tabs li.active,
html body .wp-block-woocommerce-product-details.is-style-minimal ul.tabs.wc-tabs li:focus-within,
html body .wp-block-woocommerce-product-details.is-style-minimal ul.tabs.wc-tabs li:hover {
    border-color: var(--wp--preset--color--title);
}

.wp-block-woocommerce-related-products .wp-block-query .wp-block-post-template li:nth-last-child(1):nth-child(odd) {
    grid-column: auto;
}

:where(.wc-block-product-template .wc-block-product)>:not(:last-child) {
    margin-bottom: 16px !important;
}

.wc-block-product-template .wp-block-post-title {
    margin-top: 21px !important;
}

/** featured products css **/
.wp-block-featured-products {

    .wc-block-featured-product__description,
    .wc-block-featured-product__link,
    .wc-block-featured-product__price,
    .wc-block-featured-product__title,
    .wc-block-featured-product__variation {
        padding-inline: 0;
    }

    .wc-block-featured-product {
        align-content: flex-start;
        color: var(--wp--preset--color--title);
        min-height: auto !important;


        .wc-block-featured-product__description:empty {
            display: none;
        }

        .wc-block-featured-product__title {
            margin-top: 21px;
            font-size: var(--wp--preset--font-size--entry-title);
        }

        .background-dim__overlay {
            display: none;
        }

        .wc-block-featured-product__background-image {
            position: relative;
        }

        .wc-block-featured-product__link>.wp-block-buttons {
            margin: 7px 0 0
        }
    }

}

/** featured category css **/
.wp-block-featured-category {
    .wc-block-featured-category {
        align-content: flex-end;
        padding-bottom: 30px;

        .wc-block-featured-category__background-image {
            transition: all 0.4s;
        }

        &:hover,
        &:focus {
            .wc-block-featured-category__background-image {
                transform: scale(1.05);
            }
        }

        .wc-block-featured-category__wrapper>*:not(.background-dim__overlay, .wc-block-featured-category__background-image) {
            max-width: 70%;
            margin-inline: auto;
            padding: 0 25px 16px;
        }

        &.has-left-content {
            .wc-block-featured-category__wrapper>*:not(.background-dim__overlay, .wc-block-featured-category__background-image) {
                margin-right: auto;
                margin-left: 0;
            }
        }

        &.has-right-content {
            .wc-block-featured-category__wrapper>*:not(.background-dim__overlay, .wc-block-featured-category__background-image) {
                margin-left: auto;
                margin-right: 0;
            }
        }

        .wc-block-featured-category__background-image {}

        .wc-block-featured-category__title {
            font-size: var(--wp--preset--font-size--post-title);
        }

        .wc-block-featured-category__description p {
            line-height: 1.5;
            font-family: (--wp--preset--font-family--gelasio);
            font-size: var(--wp--preset--font-size--body-default);
        }



        .wp-block-buttons {
            margin-top: 7px;

            .is-style-soundscape-button .wp-block-button__link {
                color: inherit;

            }

            .is-style-fill .wp-block-button__link,
            .is-style-fill .wp-element-button {

                &:hover,
                &:focus {
                    background-color: var(--wp--preset--color--light);
                    border-color: var(--wp--preset--color--light);
                }

            }

            .is-style-outline .wp-block-button__link,
            .is-style-outline .wp-element-button {
                border-color: var(--wp--preset--color--light);
                color: var(--wp--preset--color--light);

                &:hover,
                &:focus {
                    color: var(--wp--preset--color--dark);
                    background-color: var(--wp--preset--color--light);
                    border-color: var(--wp--preset--color--light);
                }

            }

            .is-style-soundscape-button .wp-block-button__link {}
        }

    }
}

/** featured category slider css **/
.wp-featured-category-slider {
    .wp-block-woocommerce-featured-category {
        display: flex;
    }

    .wp-featured-category-col {
        display: flex;
    }

    .wc-block-featured-category {
        color: var(--wp--preset--color--title);
        display: block;
        min-height: auto !important;


        .wc-block-featured-category__wrapper {
            padding-top: var(--wp--preset--spacing--42);
            padding-bottom: var(--wp--preset--spacing--42);

            .background-dim__overlay {
                display: none;
            }

            .wc-block-featured-category__background-image {
                position: relative;
                display: none;
            }

            .wc-block-featured-category__description p {
                line-height: 1.5;
                font-size: var(--wp--preset--font-size--body-default);
            }

            .wc-block-featured-category__title {
                font-size: var(--wp--preset--font-size--post-title-large);
            }

            .wp-block-buttons {
                margin-top: 14px
            }



        }
    }
}

.wc-block-cart__empty-cart__title {
    font-size: var(--wp--preset--font-size--section-title);
}

.editor-styles-wrapper .wc-block-cart__empty-cart__title,

.theme-twentytwenty .wc-block-grid.has-3-columns:not(.alignwide):not(.alignfull),
.wc-block-grid.has-3-columns:not(.alignwide):not(.alignfull) {
    font-size: var(--wp--preset--font-size--body-default);
}

.wc-block-grid__product-add-to-cart.wp-block-button .wp-block-button__link {
    font-size: var(--wp--preset--font-size--small);
}


.wc-block-grid__product-title {
    font-size: var(--wp--preset--font-size--entry-title) !important;
    font-family: var(--wp--preset--font-family--gelasio);
    text-decoration: none;
}


/* After Wordpress 6.6.1 */

.wc-block-components-form .wc-block-components-text-input input[type="email"],
.wc-block-components-form .wc-block-components-text-input input[type="number"],
.wc-block-components-form .wc-block-components-text-input input[type="tel"],
.wc-block-components-form .wc-block-components-text-input input[type="text"],
.wc-block-components-form .wc-block-components-text-input input[type="url"],
.wc-block-components-text-input input[type="email"],
.wc-block-components-text-input input[type="number"],
.wc-block-components-text-input input[type="tel"],
.wc-block-components-text-input input[type="text"],
.wc-block-components-text-input input[type="url"] {
    background-color: transparent;
    border-radius: 0;
    border: 1px solid var(--wp--preset--color--border-color);
    color: var(--wp--preset--color--body-text);
    font-size: var(--wp--preset--font-size--small);
    line-height: var(--wp--custom--typography--line-height--heading-six);
    width: 100%;
    box-sizing: border-box;
    height: auto;
    max-height: inherit;

}

.wc-block-components-form .wc-block-components-text-input input[type="email"]:focus,
.wc-block-components-form .wc-block-components-text-input input[type="number"]:focus,
.wc-block-components-form .wc-block-components-text-input input[type="tel"]:focus,
.wc-block-components-form .wc-block-components-text-input input[type="text"]:focus,
.wc-block-components-form .wc-block-components-text-input input[type="url"]:focus,
.wc-block-components-text-input input[type="email"]:focus,
.wc-block-components-text-input input[type="number"]:focus,
.wc-block-components-text-input input[type="tel"]:focus,
.wc-block-components-text-input input[type="text"]:focus,
.wc-block-components-text-input input[type="url"]:focus {
    box-shadow: none;
    border-color: var(--wp--preset--color--text-link);
    color: var(--wp--preset--color--foreground);
    outline: none;
}

.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.wc-block-components-form .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
    background-color: transparent;
    border-radius: 0;
    border: 1px solid var(--wp--preset--color--border-color);
    color: var(--wp--preset--color--body-text);
    line-height: var(--wp--custom--typography--line-height--heading-six);
    font-family: var(--wp--preset--font-family--roboto);
}

.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input:focus,
.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input[aria-expanded="true"],
.wc-block-components-form .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input:focus,
.wc-block-components-form .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input[aria-expanded="true"] {
    box-shadow: none;
    border-color: var(--wp--preset--color--text-link);
    color: var(--wp--preset--color--foreground);
    outline: none;
}

.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.wc-block-components-form .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
    height: auto;
    max-height: inherit;
    padding: 1.5em .8em .5em;
    font-size: 18px;
}

body .wc-blocks-components-select .wc-blocks-components-select__select {
    border-radius: 0;
}

.wc-blocks-components-select .wc-blocks-components-select__label,
.wc-block-components-form .wc-block-components-text-input label,
.wc-block-components-text-input label,
.wc-block-components-combobox .wc-block-components-combobox-control label.components-base-control__label,
.wc-block-components-form .wc-block-components-combobox .wc-block-components-combobox-control label.components-base-control__label {
    left: 0.8em;
    font-size: var(--wp--preset--font-size--small);
}

.wc-block-components-combobox .wc-block-components-combobox-control .components-form-token-field__suggestions-list .components-form-token-field__suggestion,
.wc-block-components-form .wc-block-components-combobox .wc-block-components-combobox-control .components-form-token-field__suggestions-list .components-form-token-field__suggestion {
    font-size: 18px;
}

body .wc-blocks-components-select .wc-blocks-components-select__select {
    padding: 1.5em .8em .5em;
    border: 1px solid var(--wp--preset--color--border-color);
}

.wc-blocks-components-select .wc-blocks-components-select__container {
    height: auto;
}

.wc-block-components-form .wc-block-components-text-input input:autofill,
.wc-block-components-form .wc-block-components-text-input.is-active input[type="email"],
.wc-block-components-form .wc-block-components-text-input.is-active input[type="number"],
.wc-block-components-form .wc-block-components-text-input.is-active input[type="tel"],
.wc-block-components-form .wc-block-components-text-input.is-active input[type="text"],
.wc-block-components-form .wc-block-components-text-input.is-active input[type="url"],
.wc-block-components-text-input input:autofill,
.wc-block-components-text-input.is-active input[type="email"],
.wc-block-components-text-input.is-active input[type="number"],
.wc-block-components-text-input.is-active input[type="tel"],
.wc-block-components-text-input.is-active input[type="text"],
.wc-block-components-text-input.is-active input[type="url"] {
    padding: 1.5em .8em .5em;
}

.wc-block-components-address-card,
.wc-block-components-notice-banner,
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted,
.wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option:first-child:after,
.wc-block-components-radio-control--highlight-checked:after {
    border-radius: 0;
}

.wc-block-components-textarea {
    background-color: transparent;
    border-radius: 0;
    border: 1px solid var(--wp--preset--color--border-color);
    color: var(--wp--preset--color--body-text);
    font-size: 18px;
    line-height: var(--wp--custom--typography--line-height--heading-six);
    width: 100%;
    box-sizing: border-box;

    &:hover,
    &:focus {
        background-color: transparent;
    }
}

.wc-block-checkout__add-note .wc-block-components-textarea:focus {
    background-color: transparent !important;
}

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

/* --- > 768px
-------------------------------------------------------- */
@media screen and (min-width: 769px) {

    .woocommerce .cart-collaterals .cart_totals,
    .woocommerce-page .cart-collaterals .cart_totals {
        width: 48%;
    }
}

.wc-block-components-totals-item__value {
    color: var(--wp--preset--color--foreground);
}

.wc-block-product-template.wc-block-product-template {
    row-gap: 42px;
}


body .wc-block-order-confirmation-summary ul li>.wc-block-order-confirmation-summary-list-item__key,
.wc-block-order-confirmation-totals table th,
.wc-block-order-confirmation-totals table .wc-block-order-confirmation-totals__total,
.wc-block-order-confirmation-status p,
.wc-block-components-totals-coupon .wc-block-components-panel__button,
.wc-block-components-address-card address .wc-block-components-address-card__address-section:first-child,
.wc-block-components-radio-control__label-group,
.wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__option,
.wc-block-checkout__sidebar .wc-block-components-product-name,
body .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title .wc-block-components-checkout-order-summary__title-text,
.wp-block-woocommerce-cart-order-summary-block,
table.wc-block-cart-items .wc-block-cart-items__header th {
    color: var(--wp--preset--color--foreground);
}


.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted {
    box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--foreground);
}

.wc-block-components-totals-shipping .wc-block-components-totals-item strong,
.woocommerce-table__line-item.order_item strong,
.wc-block-order-confirmation-totals table tfoot th,
.wc-block-order-confirmation-totals table thead,
body .wc-block-order-confirmation-totals__table th,
.wp-order-confirmation-block .wp-block-heading,
.wc-block-components-title.wc-block-components-title,
.wc-block-order-confirmation-summary ul li>.wc-block-order-confirmation-summary-list-item__key,
.wc-block-components-address-card address .wc-block-components-address-card__address-section:first-child {
    font-weight: 500;
}

.wp-order-confirmation-block .wp-block-heading,
.wc-block-components-title.wc-block-components-title {
    font-size: var(--wp--preset--font-size--normal);
    margin-bottom: 14px;
}

.wp-order-confirmation-block {
    max-width: 1200px;
    margin: 0 auto;
}

.wc-block-checkout__shipping-option .wc-block-checkout__shipping-option--free {
    text-transform: inherit;
    color: var(--wp--preset--color--body-text);
    font-size: .875em;

    &:hover,
    &:focus {
        text-decoration: underline;
    }
}

/* Custom breakpoint for all wp-block-columns 4 */
@media screen and (max-width: 1199px) and (min-width: 782px) {
    .wp-block-featured-products .wp-block-columns:not(.is-not-stacked-on-mobile):has(.wp-block-column:first-child:nth-last-child(4)) {
        flex-wrap: wrap !important;

        .wp-block-column {
            flex-basis: 47%;
        }
    }


}

@media screen and (max-width: 1199px) and (min-width: 480px) {
    .wp-block-portfolio .wc-block-product-template__responsive.columns-4 {
        grid-template-columns: repeat(auto-fill, minmax(max(150px, calc(50% - .9375em)), 1fr));
    }
}

@media screen and (max-width: 1199px) {
    .wp-featured-category-slider .wp-block-columns:not(.is-not-stacked-on-mobile) {
        flex-wrap: wrap !important;
        flex-direction: column-reverse;
    }

    .wp-featured-category-slider .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column {
        flex-basis: 100% !important;
    }

    body .wp-featured-category-slider .fse-slider-wrapper .navigation-wrap .swiper-button {
        background-color: var(--wp--preset--color--dark);
        color: var(--wp--preset--color--light);
        width: 50px;
        height: 50px;
        transform: none;
        z-index: 11;
    }

    body .wp-featured-category-slider .fse-slider-wrapper .navigation-wrap .swiper-button:after {
        font-size: 14px;
    }

    body .wp-featured-category-slider .fse-slider-wrapper .navigation-wrap .swiper-button.swiper-button-prev {
        right: 50px;
    }
}

@media (max-width: 781px) {
    .wp-block-featured-products .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column {
        flex-basis: 47% !important;
    }
}