.woocommerce-ordering select {
  padding: 0.6rem;
}

.woocommerce a {
  text-decoration: none;
}

.woocommerce-products-header__title.page-title {
  margin-top: 0px;
}

.single-product.woocommerce {
  span.onsale {
    @include border(6px);
    background-color: var(--wp--preset--color--hover-color);
    right: auto;
    font-weight: 600;
    line-height: 1;
    min-width: auto;
    min-height: auto;
    padding: 4px 11px;
    top: 0.5rem;
    z-index: 3;
    left: 0;
  }
}

.woocommerce form .form-row select,
.woocommerce-page form .form-row select {
  @include border(8px);
  font-family: var(--wp--preset--font-family--roboto);
  font-size: var(--wp--preset--font-size--small);
  padding: 0.9rem 1.1rem;

  option {
    width: 100%;
    font-family: var(--wp--preset--font-family--roboto);
    font-size: var(--wp--preset--font-size--small);
  }
}

.wc-block-components-product-sale-badge {
  border: 0;
  font-size: var(--wp--preset--font-size--extra-small);
  left: 0;
  line-height: 1;
  min-width: auto;
  min-height: auto;
  padding: 4px 11px;
  top: 0.5rem;
  right: auto;
  z-index: 1;
}

.wc-block-components-notice-banner>.wc-block-components-notice-banner__content .wc-forward {
  &:is(:hover, :focus) {
    background-color: transparent;
    letter-spacing: 2px;
  }
}

.wc-block-grid__product-add-to-cart.wp-block-button .wp-block-button__link,
.wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__button,
ul.products li.product .button,
.wp-block-woocommerce-mini-cart-contents a.components-button.wc-block-components-button.wp-element-button,
.wc-block-cart__submit-container .wp-element-button,
.wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button,
.woocommerce .woocommerce-cart-form .actions .button,
.woocommerce.restore-item,
.woocommerce.wc-block-grid .wc-block-grid__products .wc-block-components-product-button button,
.woocommerce#review_form #respond .form-submit input,
.woocommercea.button,
.woocommercebutton.single_add_to_cart_button,
.woocommercebutton[name=add-to-cart],
.woocommercebutton[type=submit]:not(.wp-block-search__button),
.woocommerceinput[name=submit],
.woocommercebutton.button,
.woocommerce.wc-proceed-to-checkout a.checkout-button.alt,
.woocommercebutton.button:disabled,
.woocommerce button.button:disabled[disabled] {
  background: var(--wp--preset--color--button-bg-color);
  @include border(45px);
  border: 3px solid transparent;
  color: var(--wp--preset--color--color-light);
  font-size: var(--wp--preset--font-size--upper-heading);
  font-family: var(--wp--preset--font-family--notosansjp);
  font-weight: var(--wp--custom--typography--font-weight--bold);
  height: auto;
  line-height: var(--wp--custom--typography--line-height--paragraph);
  margin-top: 0.5rem;
  padding-top: clamp(0.5rem, 5vw, 0.65rem);
  padding-bottom: clamp(0.5rem, 5vw, 0.65rem);
  padding-left: clamp(1rem, 5vw, 2rem);
  padding-right: clamp(1rem, 5vw, 2rem);
  text-transform: capitalize;
  width: auto;
  margin-left: 0;
}

.woocommerce-cart .wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__button,
.woocommerce-checkout .wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__button {
  border: 0;

  &:is(:hover, :focus) {
    box-shadow: none;
  }
}

.wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__button {
  margin: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

del {
  opacity: 0.5;
  margin-right: 0.5em;
}

address {
  word-break: break-all;
}

.wp-block-button.wc-block-grid__product-add-to-cart {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  clear: both;

  a.added_to_cart.wc-forward {
    font-size: 1rem;
    text-decoration: underline;
  }
}

.wc-block-grid__product {
  position: relative;

  .wc-block-grid__product-onsale {
    animation: zoomTag 1s ease-in-out infinite;
    @include transition(width 0.5s ease-in-out);
    background-color: var(--wp--preset--color--hover-color);
    border: 0;
    right: 1.5rem;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 1.5rem;
    @include border(6px);
    font-size: var(--wp--preset--font-size--extra-small);
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    min-width: auto;
    min-height: auto;
    line-height: 1;
    text-align: center;
    z-index: 2;

  }
}

.woocommerce {

  span.onsale {
    animation: zoomTag 1s ease-in-out infinite;
    @include transition(0.5s ease-in-out);
    background-color: var(--wp--preset--color--button-bg-color);
    border: 0;
    border-radius: 0;
    @include border(6px);
    font-size: var(--wp--preset--font-size--tiny);
    line-height: 1;
    left: 0;
    min-width: auto;
    min-height: auto;
    padding: 0.25rem 0.5rem;
    text-transform: uppercase;
    top: 1rem;
    z-index: 1;
  }

  .added_to_cart.wc-forward {
    margin: 0;
  }

  nav.woocommerce-pagination ul {
    border: 0;

    li {
      border: 0;

      span,
      a {
        border-radius: 0.4rem;
        padding: 0.75rem;
      }

      &:not(:last-child) {
        margin-right: 0.5rem;
      }
    }
  }

  table.variations select {
    margin-bottom: 0.25rem;
    padding: 0.75rem
  }

  .single_variation_wrap input[type="number"],
  table.cart td.actions .coupon .input-text {
    border-radius: 0;
    padding: 0.6rem;
  }

  div.product span.price {
    font-size: var(--wp--preset--font-size--extra-large);
  }

  #respond input#submit,
  .woocommerce-message a {
    font-size: var(--wp--preset--font-size--medium);
    margin-top: 0;
  }

  div.product .woocommerce-tabs ul.tabs {
    @include flex;
    gap: 1rem;
    padding: 0;

    li {
      background-color: transparent;
      border-radius: 0;
      border: 0;
      margin: 0;
      padding: 0;
      text-transform: capitalize;

      &.active {
        background: transparent;

        a {
          border-bottom: 4px solid;
          background-color: transparent;
        }
      }

      a {
        font-weight: var(--wp--custom--typography--font-weight--normal);
        font-size: var(--wp--preset--font-size--body-default);
        border-bottom: 4px solid transparent;
      }

      &:before,
      &:after {
        display: none;
      }
    }
  }

  table.shop_table th,
  table.shop_table td {
    padding: 15px;
  }

  .woocommerce-input-wrapper textarea {
    border-radius: 0;
  }

  .comment-form-comment textarea {
    min-height: 12.5rem;
  }
}

.woocommerce ul.products li.product .price {
  font-size: inherit;
}

.woocommerce a.remove {
  color: var(--wp--preset--color--danger-color);

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

.woocommerce .woocommerce-form-login .woocommerce-form-login__rememberme {
  display: block;
}

.stock.out-of-stock,
.woocommerce-error::before {
  color: var(--wp--preset--color--danger-color);
}

.woocommerce-error {
  border-color: var(--wp--preset--color--danger-color);

}

.woocommerce-checkout main .woocommerce {
  max-width: 1400px;
}

.woocommerce-page .woocommerce-cart-form #coupon_code {
  height: 69.88px;
}

.woocommerce-cart .amount {
  font-size: var(--wp--preset--font-size--body-default);
}

.amount,
.price,
.woocommerce div.product p.price {
  font-weight: var(--wp--custom--typography--font-weight--bold);
  font-size: var(--wp--preset--font-size--content-heading);
}

.wc-block-grid__product .wc-block-grid__product-image,
.wc-block-grid__product .wc-block-grid__product-link {
  width: 100%;
}

span.woocommerce-Price-currencySymbol {
  color: var(--wp--preset--color--secondary-dark-color);
  font-weight: var(--wp--custom--typography--font-weight--normal);
}

.woocommerce-variation-description,
.woocommerce-product-details__short-description {
  font-size: var(--wp--preset--font-size--body-default);
}

.woocommerce ul.products li.product .button {
  box-sizing: border-box;
}

.woocommerce ul.products li.product .price del {
  font-weight: var(--wp--custom--typography--font-weight--bold);
  /* font-size: var(--wp--preset--font-size--site-title); */
}

.woocommerce-cart table.cart {

  td.product-subtotal,
  tr.cart-subtotal {
    font-weight: 700;
  }

  .qty {
    height: 2.5rem;
  }
}

.woocommerce table.shop_table th {
  text-transform: uppercase;
}


.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  font-size: var(--wp--preset--font-size--medium);
}

.woocommerce-page .woocommerce-cart-form {
  .coupon {
    @include flex;
  }

  .product-thumbnail {
    width: 2.5rem;
  }
}

.woocommerce ul.products li.product a.added_to_cart,
.wp-block-button.wc-block-grid__product-add-to-cart a.added_to_cart.wc-forward {
  display: block;
  text-decoration-line: underline;
  text-underline-position: under;
}

.woocommerce {

  .woocommerce-cart-form .actions button[type=submit],
  button.single_add_to_cart_button,
  button[name=add-to-cart],
  .woocommerce-cart-form #coupon_code,
  .woocommerce-cart-form .actions .button,
  button[type=submit]:not(.wp-block-search__button) {
    background-color: var(--wp--preset--color--button-bg-color);
    margin-top: 0;
    border: 3px solid transparent;
    min-height: auto;
    @include border(45px);
    color: var(--wp--preset--color--color-light);
    font-size: var(--wp--preset--font-size--upper-heading);
    font-family: var(--wp--preset--font-family--notosansjp);
    font-weight: var(--wp--custom--typography--font-weight--bold);
    height: auto;
    line-height: var(--wp--custom--typography--line-height--paragraph);
    margin-top: 0.5rem;
    padding-top: clamp(0.5rem, 5vw, 0.95rem);
    padding-bottom: clamp(0.5rem, 5vw, 0.95rem);
    padding-left: clamp(1rem, 5vw, 2.55rem);
    padding-right: clamp(1rem, 5vw, 2.55rem);
    text-transform: capitalize;
    width: auto;
    text-shadow: 2px 3px 7px rgba(0, 0, 0, 0.26);
  }

  .quantity .qty {
    height: 100%;
    min-width: 5.5rem;
  }
}

table.variations th {
  text-align: left;
  width: 3rem;
}

.woocommerce div.product form.cart .variations label {
  font-size: var(--wp--preset--font-size--medium);
  font-weight: var(--wp--custom--typography--font-weight--normal);
  text-transform: uppercase;
}

.product_meta {
  font-size: var(--wp--preset--font-size--medium);
}

.woocommerce.single-product div.product form.cart {
  &:before {
    display: none;
  }

  .quantity {
    float: none;
    width: 5.5rem;

  }
}

.woocommerce table.variations tr td,
.woocommerce table.variations tr th {
  padding-bottom: 10px;
}

form.cart,
.variations_form.cart .woocommerce-variation-add-to-cart {
  @include flex;
}

.variations_form.cart,
form.cart.grouped_form {
  display: block;
}

form.cart.grouped_form input[type="number"] {
  height: 2.5rem;
}

.select2-container--default .select2-selection--single {
  height: 2.75rem;
}

.woocommerce-page .select2-container .select2-search__field,
.woocommerce-page .select2-container .select2-selection {
  height: auto;
  padding: 0.625rem 1.1rem;
}

.woocommerce form .form-row.woocommerce-validated .select2-container,
.woocommerce form .form-row.woocommerce-validated input.input-text,
.woocommerce form .form-row.woocommerce-validated select {
  border-color: var(--wp--preset--color--hover-color);
}


.wc-block-components-button:not(.is-link) {
  @include transition(0.5s ease-in-out)
}

.woocommerce-checkout {

  .wc-block-mini-cart,
  .wp-block-group .cart-row .cart-text {
    display: none;
  }
}

.wc-block-mini-cart__footer-actions .wc-block-components-button:not(.is-link) {
  min-height: auto;
  @include border(45px);
  color: var(--wp--preset--color--color-light);
  border: 3px solid transparent;
  background: var(--wp--preset--color--button-bg-color);

  &:is(:hover, :focus) {
    border-color: var(--wp--preset--color--hover-color);
    box-shadow: inset 0px 0px 0px 2px var(--wp--preset--color--color-light);
  }
}

.wc-block-mini-cart__title.wp-block-woocommerce-mini-cart-title-block {
  font-size: var(--wp--preset--font-size--medium);
}

.woocommerce-page .select2-container .select2-selection .select2-selection__arrow {
  top: 50%;
  @include transform(translateY(-50%));
}

.wc-block-mini-cart__button:hover:not([disabled]) {
  opacity: 1;
}

.cart-empty {
  width: 100%;
}

.wc-block-mini-cart__button {
  opacity: 1;
  @include flex;
  flex-direction: row-reverse;
  padding: 7.76px;

  &:has(.wc-block-mini-cart__badge) {
    .wc-block-mini-cart__amount {
      margin-left: 15px;
    }
  }

  .wc-block-mini-cart__amount {
    font-size: var(--wp--preset--font-size--medium);
    margin: 0;
    color: var(--wp--preset--color--dark-color);
    font-weight: var(--wp--custom--typography--font-weight--bold);
  }

  span.wc-block-mini-cart__badge {
    background-color: var(--wp--preset--color--hover-color);
    border: 0;
    color: var(--wp--preset--color--color-light);
    font-size: var(--wp--preset--font-size--medium);
    font-weight: var(--wp--custom--typography--font-weight--normal);
    height: 1.2em;
    min-width: 1.2em;
    margin-left: -6px;
    line-height: 1;
  }
}

.wc-block-mini-cart {
  font-size: 15px;
  border: 2px solid transparent;
  @include border(6px);
  cursor: pointer;
  display: block;
  color: var(--wp--preset--color--dark-color);

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

}

.wc-block-mini-cart__icon {
  fill: inherit;
}

.woocommerce-cart .wc-block-mini-cart.wp-block-woocommerce-mini-cart {
  display: none;
}

.woocommerce ul.products li.product a img,
.woocommerce div.product div.images img {
  background-color: var(--wp--preset--color--fade-red-color);
}


.recent-product-section .wc-block-grid ul.wc-block-grid__products {
  display: grid;
}


.single-product strong.rating {
  display: none;
}

.woocommerce ul.products li.product .star-rating {
  font-size: inherit;
}

// FOR RATING NUMBER

.products .star-rating,
.wc-block-grid__products .star-rating {

  span,
  &:before {
    display: none;
  }
}

.products .star-rating strong,
.wc-block-grid__products strong.rating {
  color: var(--wp--preset--color--title-color);
  font-family: var(--wp--preset--font-family--roboto);
  font-weight: var(--wp--custom--typography--font-weight--bold);
  position: relative;
  font-size: 20px;
  padding-left: 25px;
  display: inline;

  &:before {
    content: "\e020";
    color: var(--wp--preset--color--yellow-color);
    font-weight: var(--wp--custom--typography--font-weight--bold);
    opacity: 1;
    font-family: WooCommerce;
    left: 0;
    position: absolute;
  }
}

ul.wc-block-grid__products {
  margin: 0;
  display: grid;
  gap: 2rem;

  a,
  ins {
    text-decoration: none;
  }

  .wc-block-grid__product {
    border: 0;

    text-align: left;
    flex: auto;

    .wc-block-grid__product-image img {
      background-color: var(--wp--preset--color--fade-red-color);
      @include transition(0.5s ease-in-out);
      position: relative;
      width: 100%;
      z-index: 1;
    }
  }
}

.wc-block-grid.has-3-columns .wc-block-grid__product {
  flex: auto;
}

.wc-block-sort-select__select {
  margin-bottom: 1rem;
  padding: 0.6rem 1.25rem;
}

.wc-block-sort-select {
  display: flex;
  justify-content: flex-end;
}

a.wc-block-components-product-name {
  text-decoration: none;
}

.woocommerce-form-login__submit.wp-element-button {
  width: 100%;
}

button.wc-block-pagination-page {
  border-radius: 8px;
  cursor: pointer;
  padding: 0.75rem 1rem;
}

.wc-block-components-button:not(.is-link):focus {
  outline: none;
}

.woocommerce ul.products li.product .onsale,
.wc-block-components-product-sale-badge span,
.wc-block-components-product-image .wc-block-components-product-sale-badge--align-right {
  top: 1rem;
  right: auto;
  left: 0;
}

.wc-block-product-search {
  .wc-block-product-search__button {
    margin: 0;
    border-radius: 0 2.25rem 2.25rem 0;
    padding: 0.75rem;
  }

  .wc-block-product-search__field {
    border-radius: 2.25rem 0 0 2.25rem;
    padding: 0.5rem;
  }
}

.wc-block-product-search .wc-block-product-search__field input {
  border-radius: 2.25rem 0 0 2.25rem;
}

.components-base-control.wc-block-product-search__field.input-control {
  padding: 0;
}

.wc-block-components-pagination {
  margin-top: 2.25rem;
}

.wc-block-components-pagination__page:not(:last-child) {
  margin-right: 1rem;
}

.wc-block-grid .wc-block-grid__products,
.wc-block-featured-product {

  .wc-block-grid__product,
  .wc-block-featured-product__wrapper {

    .wc-block-grid__product-title,
    .wc-block-featured-product__title {
      font-size: var(--wp--preset--font-size--content-heading);
      font-family: var(--wp--preset--font-family--notosansjp);
      margin-top: 1rem;
      font-weight: var(--wp--custom--typography--font-weight--normal);
    }
  }

  .wc-block-components-product-button {
    @include flex;
    flex-direction: column;

  }
}

.woocommerce button.button[type="submit"] {

  &:hover,
  &:focus {
    transform: none;
  }
}

.wc-block-components-product-price span {
  /* font-size: var(--wp--preset--font-size--upper-heading); */
}

.wc-block-grid .wc-block-grid__products {
  li.wc-block-grid__product {
    max-width: 100%;
    margin: 0;
    position: relative;
    text-align: left;
    background-color: var(--wp--preset--color--secondary-bg-color);
    padding: 1rem;
  }

}

.wc-block-featured-product,
.wc-block-featured-product__wrapper {
  overflow: visible;
}

.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: 0;
  text-align: left;
}

.wc-block-grid__product-title,
.wc-block-featured-product__title {
  text-transform: capitalize;
}

.wc-block-featured-product {
  min-height: auto !important;
}

.wp-block-full-width .wc-block-grid .wc-block-grid__products {
  display: grid !important;
  grid-template-columns: 1fr;
  grid-gap: 2rem;

  li.wc-block-grid__product {
    border: 1px solid transparent;

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

.wp-block-columns:not(.wp-block-sidebar) .wc-block-grid__products {
  display: grid;
  flex-wrap: wrap;
  grid-template-columns: 1fr;
  grid-gap: 2rem;

  li.wc-block-grid__product,
  .wc-block-featured-product__wrapper {

    img {
      @include transition(0.5s ease-in-out);
    }

    .wc-block-grid__product-add-to-cart.wp-block-button .wp-block-button__link,
    .wp-block-button .wp-block-button__link {
      &:is(:hover, :focus) {
        background: var(--wp--preset--color--hover-color);
      }
    }

    .wc-block-featured-product__title {
      font-size: var(--wp--preset--font-size--content-heading);
    }

    &:is(:hover, :focus) {

      img {
        @include transform(scale(1.1) translateY(-30px));
      }

      .wc-block-grid__product-title,
      .wc-block-featured-product__title,
      .wc-block-grid__product-title a,
      .price,
      .wc-block-featured-product__price,
      .price span,
      .wc-block-featured-product__description,
      .added_to_cart,
      .wc-block-components-product-rating__link,
      .amount {
        color: var(--wp--preset--color--color-light);
      }

      &:after {
        height: 100%;
        opacity: 1;
      }
    }
  }
}

.wc-block-featured-product .wc-block-featured-product__wrapper:after {
  z-index: 0;
}

.woocommerce .products ul,
.woocommerce ul.products {
  display: grid;
  flex-wrap: wrap;
  grid-template-columns: 1fr;
  grid-gap: 30px;

  &:before {
    display: none;
  }
}

table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link {
  cursor: pointer;

  &:is(:hover, :focus) {
    color: var(--wp--preset--color--hover-color);
  }
}

.wp-block-sidebar .wc-block-grid .wc-block-grid__products li.wc-block-grid__product:after {
  content: none;
}

.wp-block-sidebar .wc-block-grid .wc-block-grid__products {
  display: grid;
  grid-gap: 2rem;

  li.wc-block-grid__product {
    margin: 0;
    box-sizing: border-box;

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

.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product {
  margin: 0;
  padding: 8px;
  border: 1px solid transparent;
  box-sizing: border-box;
  width: 100%;

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

@keyframes zoomTag {

  0% {
    @include transform(scale(1));
    @include border(6px);
  }

  50% {
    @include transform(scale(1.1));
    @include border(0);
  }

  100% {
    @include transform(scale(1));
    @include border(6px);
  }

}

.wc-block-components-price-slider--is-input-inline .wc-block-components-price-slider__controls .wc-block-components-price-slider__amount {
  background-color: transparent;
  max-width: 5rem;
  padding: 0.6rem;
}

.wc-block-price-filter {
  @include flex;
  flex-direction: column-reverse;

  .wc-block-components-price-slider__actions {
    order: -1;
    @include flex;
    flex-direction: column-reverse;
    margin-top: var(--wp--custom--spacing--extra-small);

    button.wc-block-filter-submit-button {
      @include border(0);
      width: 100%;

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

.wc-block-rating-filter__actions {
  @include flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wc-block-filter-submit-button {
  @include border(0);
  width: 100%;

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

.wc-block-components-price-slider__range-input-progress {
  --range-color: var(--wp--preset--color--border-color);
  height: 1px;
  top: 3px;
}

.wc-block-components-price-slider__range-input-wrapper:before {
  background-color: var(--wp--preset--color--hover-color);
  opacity: 1;
  top: 3px;
}

input[type="range"]::-webkit-slider-thumb {
  background-color: var(--wp--preset--color--secondary-bg-color);
  border: 1px solid var(--wp--preset--color--button-bg-color);
}

input[type="range"]::-webkit-slider-thumb {
  box-shadow: none;
  border-radius: 50%;
  background-color: var(--wp--preset--color--secondary-bg-color);
  border: 1px solid var(--wp--preset--color--button-bg-color);
  cursor: ew-resize;
  height: 0.8rem;
  position: relative;
  width: 0.8rem;
  z-index: 999;

  &:hover,
  &:focus {
    transform: scale(1.2);
    border: none;
    border-color: 1px solid #000;
    background-color: var(--wp--preset--color--hover-color);
  }
}

//  Input range style for chrome
.home .wp-block-section:nth-child(odd) {
  input[type="range"]::-webkit-slider-thumb {
    background-color: var(--wp--preset--color--foreground);
    border: 1px solid var(--wp--preset--color--border-color);
  }
}

.home .wp-block-section:nth-child(even) {
  input[type="range"]::-webkit-slider-thumb {
    background-color: var(--wp--preset--color--secondary-bg-color);
    border: 1px solid var(--wp--preset--color--border-color);
  }
}


.wc-block-price-filter__range-input-wrapper.wc-block-components-price-slider__range-input-wrapper:hover {
  cursor: ew-resize;
}

//  Input range style for Firefox

input[type="range"]::-moz-range-thumb {
  background-color: var(--wp--preset--color--button-bg-color);
  border: none;
  border: 1px solid transparent;
  border-radius: 50%;
  cursor: ew-resize;
  height: 0.8rem;
  position: relative;
  width: 0.8rem;
  z-index: 999;

  &:hover,
  &:focus {
    transform: scale(1.2);
    border: 1px solid var(--wp--preset--color--border-color);
    background-color: var(--wp--preset--color--button-bg-color);
  }
}

.wp-block-woocommerce-product-categories ul {
  margin: 0;

  li {
    margin-bottom: 0;

    &:not(:last-child) {
      a {
        margin-bottom: clamp(15px, 3vw, 20px);
      }
    }

    a {
      display: inline-block;
    }
  }

  ul {
    padding-left: 25px;
  }
}

.woocommerce-account .wp-block-post-title,
.woocommerce-cart .wp-block-post-title,
.woocommerce-checkout .wp-block-post-title {
  max-width: 100%;
}

.woocommerce-account .addresses .title {
  display: flex;
  align-items: center;

  .edit {
    margin-bottom: 0;
  }
}

.wc-block-attribute-filter-list {
  .wc-block-components-checkbox__label {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    width: 100%;
  }
}

.wc-block-components-checkbox .wc-block-components-checkbox__mark {
  transform: scale(1);
  transform-origin: bottom left;
}

.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:not(:checked)+.wc-block-components-checkbox__mark {
  transform: scale(0);
  display: flex;
}

.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
  transition: 0.3s ease-in-out;

  &:focus {
    outline-color: var(--wp--preset--color--color-light);
  }

  &:checked {
    background: var(--wp--preset--color--button-bg-color);
    border-color: transparent;
    transform: rotate(180deg);
    border-radius: 50%;

    +svg {
      fill: #fff;
    }
  }
}

// APPLY TO ALL SORT OF CHECKBOX EVEN CLASS ARE CHANGED

.woocommerce form.checkout input[type='checkbox'] {
  appearance: none;
  background-color: var(--wp--preset--color--color-light);
  border: 1px solid var(--wp--preset--color--border-color);
  @include border(6px);
  display: inline-block;
  height: 1.5em;
  font-size: 1rem;
  min-height: 1.5em;
  min-width: 1.5em;
  text-align: center;
  @include transition(0.5s ease-in-out);
  -webkit-appearance: none;
  position: relative;
  width: 1.5em;

  &:after {
    border-bottom: 2px solid var(--wp--preset--color--color-light);
    border-right: 2px solid var(--wp--preset--color--color-light);
    content: "";
    position: absolute;
    @include transition(0.5s ease-in-out);
    @include transform(rotate(45deg) scale(0));
    transform-origin: center left;
    height: 15px;
    top: 2px;
    right: 8px;
    width: 5px;
  }

  &:checked {
    background-color: var(--wp--preset--color--button-bg-color);
    @include transform(rotate(360deg));
    border-color: transparent;
    border-radius: 50%;
    color: var(--wp--preset--color--color-light);

    &:after {
      @include transform(rotate(45deg) scale(1));
    }
  }
}

.woocommerce .woocommerce-breadcrumb,
.woocommerce .woocommerce-breadcrumb a,
.woocommerce .woocommerce-breadcrumb span {
  font-size: 14px;
}

ins.wc-block-components-product-price__value.is-discounted {
  background: transparent;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
  border: 1px solid var(--wp--preset--color--border-color);
}

.wc-block-components-quantity-selector:after {
  border-color: var(--wp--preset--color--border-color);
}


.woocommerce #reviews {
  .comment_container {
    @include flex;
    gap: 1rem;

    .star-rating {
      font-size: var(--wp--preset--font-size--body-default);
    }
  }

  .commentlist {
    padding: 0
  }

  #comments ol.commentlist li .comment-text p.meta {
    font-size: var(--wp--preset--font-size--tiny);
  }
}

.woocommerce #reviews #comments ol.commentlist li .comment-text {
  margin: 0;
  width: 100%;
}

.description {
  font-size: var(--wp--preset--font-size--body-default);
}

.woocommerce #reviews #comments ol.commentlist li img.avatar {
  background: transparent;
  border: 0;
  width: 3.5rem;
  position: relative;
  height: 3.5rem;
}

.woocommerce-products-header__title.page-title {
  display: none;
}

.woocommerce h1.product_title.entry-title {
  font-size: var(--wp--preset--font-size--content-heading);
  text-transform: capitalize;
}

.woocommerce div.product .woocommerce-tabs .panel h2+p,
.woocommerce div.product .woocommerce-tabs .panel .description {
  max-width: 750px;
}

.woocommerce-page .cart-collaterals h2 {
  margin-top: 0;
}

.woocommerce-Tabs-panel h2 {
  font-size: var(--wp--preset--font-size--body-default);
  font-weight: var(--wp--custom--typography--font-weight--normal);
}

// My ACCOUNT PAGE

.woocommerce-account .woocommerce-MyAccount-navigation li:first-child {
  padding-top: 0;
}

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

  a {
    background: var(--wp--preset--color--secondary-bg-color);
    border: 1px solid transparent;
    display: block;
    padding: 0.5rem;
  }

  &:not(:last-child) {
    margin-bottom: 5px;
  }

  &:hover,
  &:hover {

    a {

      background-color: transparent;
      border-color: var(--wp--preset--color--border-color);
      text-decoration: none;
    }
  }

  &.is-active {

    a {
      background-color: transparent;
      border-color: var(--wp--preset--color--border-color);
      color: var(--wp--preset--color--hover-color);
      text-decoration: none;

    }
  }
}

.woocommerce div.product .woocommerce-tabs .panel {
  font-size: 0.9rem;
  max-width: 760px;
}

.woocommerce .woocommerce-message {
  box-sizing: border-box;

  a {
    float: right;
  }
}

.woocommerce a.remove {
  color: var(--wp--preset--color--danger-color);

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

.woocommerce .woocommerce-message {
  box-sizing: border-box;

  a {
    float: right;
  }
}

.select2-results__options {
  font-size: var(--wp--preset--font-size--small);
}

.woocommerce-page .select2-container .select2-dropdown {
  padding: 0.9rem 0.7rem;
}

form.woocommerce-form.woocommerce-form-login.login {
  max-width: 630px;
  margin-inline: auto;
}

.woocommerce-account .woocommerce-notices-wrapper+h2 {
  text-align: center;
}

.woocommerce-form-register__submit {
  width: 100%;
}

.woocommerce-error {
  border-color: var(--wp--preset--color--danger-color);

  &:before {
    color: var(--wp--preset--color--danger-color);
  }
}

.woocommerce-account main .woocommerce,
.woocommerce-cart main .woocommerce,
.woocommerce-checkout main .woocommerce {
  max-width: 1400px;
}

header.woocommerce-Address-title h3 {
  font-size: 1rem;
  margin-right: 0.5rem;
}

.woocommerce-page .woocommerce-customer-details address {
  padding: 0;
  width: 100%;
}

.woocommerce-notice--success {
  color: #2eab2e;
}

// OPTIONAL FOR LEGACY PRODUCT TEMPLATE

.product a {

  .wc-block-grid__product-image {
    order: -1;
  }
}

.woocommerce-order-overview__total {
  strong {
    line-height: 1;
    display: inline-block;
  }
}

.woocommerce-page ul.woocommerce-order-overview {
  padding: 1rem;
  background-color: var(--wp--preset--color--secondary-bg-color);
}

.woocommerce-table--order-details {
  th {
    text-align: left;
  }
}

.woocommerce-page table.shop_table td,
.woocommerce-page table.shop_table th {
  border: 1px solid var(--wp--preset--color--border-color);
  padding: 10px 20px;
}


.woocommerce-page table.shop_table {
  width: 100%;

  .order_item a {
    text-decoration: none;
  }

  td,
  th {
    border: 1px solid var(--wp--preset--color--border-color);
    padding: 10px 20px;
  }

}

.woocommerce-page table.shop_table thead th {
  background-color: var(--wp--preset--color--secondary-bg-color);
}

.woocommerce-order-details__title,
.wp-block-woocommerce-legacy-template,
.woocommerce-page h2.woocommerce-column__title {
  font-size: var(--wp--preset--font-size--large);
}

.wc-block-components-sidebar {
  padding: 2.2641509434% !important;
  background: var(--wp--preset--color--fade-red-color);
  @include border(6px);
}

.is-medium.wc-block-cart .wc-block-components-sidebar .wc-block-cart__totals-title {
  display: block;
}

.wc-block-components-order-summary .wc-block-components-order-summary-item__quantity {
  background-color: var(--wp--preset--color--hover-color);
  color: var(--wp--preset--color--color-light);
  box-shadow: none;
  border: none;
  @include border(45px);
  padding: 0;
}

.is-large .wc-block-components-sidebar .wc-block-components-panel {
  padding: 15px;
  background-color: var(--wp--preset--color--secondary-bg-color);
}

// COMMON PADDING FOR ALL INPUT OF WOO

.woocommerce a.added_to_cart {
  margin-top: 0;
}

.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,
.wc-block-components-form .wc-block-components-text-input input:-webkit-autofill,
.wc-block-components-form .wc-block-components-text-input input[type=text],
.wc-block-components-text-input input[type=text],
.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-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.wc-block-components-text-input input:-webkit-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: 1rem;
  max-height: 100%;
  background-color: transparent;
  border: 1px solid var(--wp--preset--color--border-color);
  border-radius: 6px;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  -o-border-radius: 6px;
  box-sizing: border-box;
  font-family: var(--wp--preset--font-family--montserrat);
  color: var(--wp--preset--color--body-text);
  font-size: var(--wp--preset--font-size--upper-heading);
  font-weight: var(--wp--custom--typography--font-weight--normal);
  line-height: var(--wp--custom--typography--line-height--heading-six);
  padding: calc(0.667em + 2px);
  outline: none;
  height: 55px;
  width: 100%;

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

.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 {
  border: 1px solid var(--wp--preset--color--border-color);
  box-shadow: none;
}

.wc-block-components-form .wc-block-components-text-input input:-webkit-autofill+label,
.wc-block-components-combobox.is-active .wc-block-components-combobox-control label.components-base-control__label,
.wc-block-components-combobox:focus-within .wc-block-components-combobox-control label.components-base-control__label,
.wc-block-components-form .wc-block-components-combobox.is-active .wc-block-components-combobox-control label.components-base-control__label,
.wc-block-components-form .wc-block-components-combobox:focus-within .wc-block-components-combobox-control label.components-base-control__label,
.wc-block-components-form .wc-block-components-text-input.is-active label,
.wc-block-components-text-input input:-webkit-autofill+label,
.wc-block-components-text-input.is-active label {
  @include transform(translateY(2px));
  font-size: 12px;
  left: 18px;
}

table.woocommerce-table {
  th {
    text-align: left;
  }
}

.woocommerce-page table.shop_table td,
.woocommerce-page table.shop_table th {
  border: 1px solid var(--wp--preset--color--border-color);
}

.wp-block-woocommerce-legacy-template {
  font-size: var(--wp--preset--font-size--large)
}

.woocommerce-page {
  ul.woocommerce-order-overview {
    padding: 0.5em;
    border: 1px solid var(--wp--preset--color--border-color);
  }
}

.woocommerce-column.woocommerce-column--2.woocommerce-column--shipping-address.col-2,
.woocommerce-column.woocommerce-column--1.woocommerce-column--billing-address.col-1 {
  address {
    border: 1px solid var(--wp--preset--color--border-color);
    width: 100%;
  }
}

.wc-block-components-totals-coupon__form {
  .wc-block-components-text-input input[type=text] {
    height: 100%;
    @include border(3px 0 0 3px);
  }

  label {
    margin-bottom: 0;
  }

  .wc-block-components-totals-coupon__button {
    margin-top: 0;
  }
}

.wc-block-components-form .wc-block-components-text-input label,
.wc-block-components-text-input label {
  line-height: 1;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-size: var(--wp--preset--font-size--body-default);
  font-weight: 400;
}

/* New Update */

.wp-block-woocommerce-product-collection {
  .wc-block-product-template {
    margin-top: 0;

    .wc-block-product {
      .wp-block-button__link.wc-block-components-product-button__button {
        border: 3px solid transparent;
        margin-top: 0;
        padding: clamp(0.5rem, 5vw, 0.65rem) clamp(1rem, 5vw, 2rem);

        &:hover,
        &:focus {
          box-shadow: none;
          background-color: var(--wp--preset--color--hover-color);
          border-color: var(--wp--preset--color--hover-color);
          box-shadow: inset 0px 0px 0px 2px var(--wp--preset--color--color-light);
          color: var(--wp--preset--color--color-light);
        }
      }

      .amount,
      .price,
      .woocommerce div.product p.price {
        font-weight: inherit;
        font-size: inherit;
        display: initial;

        bdi {
          display: initial;
        }
      }

      .product-hover {
        border: 1px solid transparent;

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

    span.woocommerce-Price-currencySymbol {
      padding-right: 5px;
    }

    .wp-block-woocommerce-product-sale-badge {
      .wc-block-components-product-sale-badge {
        animation: zoomTag 1s ease-in-out infinite;
      }
    }
  }
}

.woocommerce.wc-block-catalog-sorting select.orderby {
  border: none;
}

.wp-block-woocommerce-order-confirmation-summary.wc-block-order-confirmation-summary {
  box-sizing: border-box;
}

.wc-block-order-confirmation-summary-list-item {
  .woocommerce-Price-amount.amount {
    font-size: 15px;
  }

  .wc-block-order-confirmation-summary-list-item__key {
    text-transform: uppercase;
    font-weight: 400 !important;
  }

  .wc-block-order-confirmation-summary-list-item__value {
    font-weight: 500 !important;
  }
}

.wc-block-order-confirmation-totals__table {
  thead th {
    background-color: var(--wp--preset--color--secondary-bg-color);
  }

  .wc-block-order-confirmation-totals__total {
    text-align: left !important;
  }
}

.wc-block-order-confirmation-totals table {
  border-collapse: collapse;
}

.wc-block-order-confirmation-totals table td,
.wc-block-order-confirmation-totals table th {
  border: 1px solid var(--wp--preset--color--border-color);
}

.wp-block-woocommerce-order-confirmation-status {
  h1 {
    display: none;
  }
}

.wc-block-grid__product-rating .wc-block-grid__product-rating__stars::before {
  opacity: 1;
}

.wp-block-woocommerce-category-title {
  font-size: var(--wp--preset--font-size--content-heading);
  font-weight: 700;

  &:hover {
    color: var(--wp--preset--color--button-bg-color) !important;
  }

  a {
    text-decoration: none;
  }
}

.woocommerce div.product form.cart button.single_add_to_cart_button {
  padding: clamp(0.5rem, 5vw, 0.65rem) clamp(1rem, 5vw, 2rem);
}

.wp-block-woocommerce-add-to-cart-form .variations_button>.quantity:not(.wc-block-components-quantity-selector) .qty,
.wp-block-woocommerce-add-to-cart-form form.cart>.quantity:not(.wc-block-components-quantity-selector) .qty {
  padding: 14px;
  box-sizing: border-box;
}

.wp-block-woocommerce-product-review-form .comment-form-rating button {
  color: var(--wp--preset--color--button-bg-color);
}

a.added_to_cart.wc_forward {
  background-color: var(--wp--preset--color--button-bg-color);
  border: 0;
  color: var(--wp--preset--color--color-light);
  font-size: 16px;
  font-weight: var(--wp--custom--typography--font-weight--bold);
  height: auto;
  line-height: 1.5;
  margin-top: 7px;
  padding: 12px 24px;
  border-radius: 0;
  box-sizing: border-box;
  text-decoration: none;
  border-radius: 45px;

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

/* 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 {

  .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: 3.5rem;
  top: 27px;
}

.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-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%;
}


.woocommerce div.product form.cart .variations select {
  border: 1px solid var(--wp--preset--color--border-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 only screen and (max-width: 1024px) and (min-width: 782px) {
   .wp-block-group.wp-faq-main {
     flex-direction: column;
   }
 }

@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;
  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-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;
  }
}

.reset_variations {
  display: none;
}

/* Ends New Update : Single Product */
