.chq-buy-row,
.single-product form.cart,
.chq-loop-cart,
.chq-loop-cart .chq-buy-row {
  display: flex !important;
  align-items: stretch !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
}

.chq-buy-row .quantity,
.single-product form.cart .quantity,
.chq-loop-cart .quantity,
.woocommerce ul.products li.product form.cart .quantity {
  display: grid !important;
  grid-template-columns: var(--chq-qty-width) var(--chq-stepper-width) !important;
  align-items: stretch !important;
  height: var(--chq-qty-height) !important;
  min-width: calc(var(--chq-qty-width) + var(--chq-stepper-width)) !important;
  border: 2px solid var(--chq-border-color) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #fff !important;
  margin: 0 !important;
  float: none !important;
  position: relative !important;
}

.chq-buy-row .quantity input.qty,
.single-product form.cart .quantity input.qty,
.chq-loop-cart .quantity input.qty,
.woocommerce ul.products li.product form.cart .quantity input.qty {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100% !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  text-align: center !important;
  font-size: var(--chq-qty-font-size) !important;
  font-weight: 700 !important;
  color: var(--chq-qty-text-color) !important;
  padding: 0 !important;
  margin: 0 !important;
  appearance: textfield !important;
  -moz-appearance: textfield !important;
  background: #fff !important;
}

.chq-buy-row .quantity input.qty::-webkit-outer-spin-button,
.chq-buy-row .quantity input.qty::-webkit-inner-spin-button,
.single-product form.cart .quantity input.qty::-webkit-outer-spin-button,
.single-product form.cart .quantity input.qty::-webkit-inner-spin-button,
.chq-loop-cart .quantity input.qty::-webkit-outer-spin-button,
.chq-loop-cart .quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

.chq-stepper {
  display: grid !important;
  grid-template-rows: 1fr 1fr !important;
  border-left: 2px solid rgba(185, 140, 130, 0.55) !important;
  background: #fbf8f6 !important;
  width: var(--chq-stepper-width) !important;
}

.chq-step-btn {
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: var(--chq-stepper-text-color) !important;
  font-size: var(--chq-stepper-font-size) !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 20px !important;
  width: 100% !important;
  line-height: 1 !important;
  touch-action: manipulation !important;
}

.chq-step-btn:first-child {
  border-bottom: 1px solid rgba(185, 140, 130, 0.5) !important;
}

.chq-step-btn:active {
  background: rgba(0,0,0,.05) !important;
}

.chq-add-to-cart-button,
.chq-buy-row a.add_to_cart_button,
.chq-buy-row button.add_to_cart_button,
.chq-loop-cart a.add_to_cart_button,
.chq-loop-cart button.add_to_cart_button,
.single-product form.cart button.single_add_to_cart_button,
.woocommerce ul.products li.product form.cart .button,
.woocommerce a.add_to_cart_button,
.woocommerce button.add_to_cart_button {
  min-height: var(--chq-button-min-height) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  border-radius: var(--chq-button-radius) !important;
  padding-left: var(--chq-button-padding-x) !important;
  padding-right: var(--chq-button-padding-x) !important;
  font-size: var(--chq-button-font-size) !important;
  background: var(--chq-button-bg) !important;
  color: var(--chq-button-text-color) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: 1 1 0 !important;
}

.chq-add-to-cart-button:hover,
.chq-buy-row a.add_to_cart_button:hover,
.chq-buy-row button.add_to_cart_button:hover,
.chq-loop-cart a.add_to_cart_button:hover,
.chq-loop-cart button.add_to_cart_button:hover,
.single-product form.cart button.single_add_to_cart_button:hover,
.woocommerce ul.products li.product form.cart .button:hover,
.woocommerce a.add_to_cart_button:hover,
.woocommerce button.add_to_cart_button:hover {
  background: var(--chq-button-hover-bg) !important;
}

.chq-check {
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background: var(--chq-check-bg) !important;
  color: var(--chq-check-text-color) !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  flex: 0 0 20px !important;
}

.chq-label-default,
.chq-label-added {
  display: inline !important;
}

.chq-add-to-cart-button .chq-label-added,
.single-product form.cart button.single_add_to_cart_button .chq-label-added,
.woocommerce .add_to_cart_button .chq-label-added {
  display: none !important;
}

.chq-add-to-cart-button.chq-added .chq-check,
.single-product form.cart button.single_add_to_cart_button.chq-added .chq-check,
.woocommerce .add_to_cart_button.chq-added .chq-check {
  display: inline-flex !important;
}

.chq-add-to-cart-button.chq-added .chq-label-default,
.single-product form.cart button.single_add_to_cart_button.chq-added .chq-label-default,
.woocommerce .add_to_cart_button.chq-added .chq-label-default {
  display: none !important;
}

.chq-add-to-cart-button.chq-added .chq-label-added,
.single-product form.cart button.single_add_to_cart_button.chq-added .chq-label-added,
.woocommerce .add_to_cart_button.chq-added .chq-label-added {
  display: inline !important;
}

@media (max-width: 767px) {
  .chq-buy-row,
  .single-product form.cart,
  .chq-loop-cart {
    transform: scale(calc(var(--chq-mobile-scale) / 100));
    transform-origin: left center;
  }
}



.chq-add-to-cart-button,
.chq-buy-row a.add_to_cart_button,
.chq-buy-row button.add_to_cart_button,
.chq-loop-cart a.add_to_cart_button,
.chq-loop-cart button.add_to_cart_button,
.single-product form.cart button.single_add_to_cart_button,
.woocommerce ul.products li.product form.cart .button,
.woocommerce a.add_to_cart_button,
.woocommerce button.add_to_cart_button {
  width: var(--chq-button-width) !important;
}

.chq-add-to-cart-button.chq-added.chq-hide-added-label .chq-label-default,
.single-product form.cart button.single_add_to_cart_button.chq-added.chq-hide-added-label .chq-label-default,
.woocommerce .add_to_cart_button.chq-added.chq-hide-added-label .chq-label-default {
  display: inline !important;
}

.chq-add-to-cart-button.chq-added.chq-hide-added-label .chq-label-added,
.single-product form.cart button.single_add_to_cart_button.chq-added.chq-hide-added-label .chq-label-added,
.woocommerce .add_to_cart_button.chq-added.chq-hide-added-label .chq-label-added {
  display: none !important;
}

.chq-add-to-cart-button.chq-added.chq-hide-added-label .chq-check,
.single-product form.cart button.single_add_to_cart_button.chq-added.chq-hide-added-label .chq-check,
.woocommerce .add_to_cart_button.chq-added.chq-hide-added-label .chq-check {
  display: inline-flex !important;
}


/* v1.2.1 ajustes de estado adicionado */
.chq-add-to-cart-button.added::after,
.chq-add-to-cart-button.chq-added::after,
.single-product form.cart button.single_add_to_cart_button.added::after,
.single-product form.cart button.single_add_to_cart_button.chq-added::after,
.woocommerce a.add_to_cart_button.added::after,
.woocommerce a.add_to_cart_button.chq-added::after,
.woocommerce button.add_to_cart_button.added::after,
.woocommerce button.add_to_cart_button.chq-added::after {
  content: none !important;
  display: none !important;
}

.chq-add-to-cart-button.chq-icon-only,
.single-product form.cart button.single_add_to_cart_button.chq-icon-only,
.woocommerce .add_to_cart_button.chq-icon-only,
.woocommerce button.add_to_cart_button.chq-icon-only {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 44px !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
  gap: 0 !important;
}

.chq-add-to-cart-button.chq-icon-only .chq-label-default,
.chq-add-to-cart-button.chq-icon-only .chq-label-added,
.single-product form.cart button.single_add_to_cart_button.chq-icon-only .chq-label-default,
.single-product form.cart button.single_add_to_cart_button.chq-icon-only .chq-label-added,
.woocommerce .add_to_cart_button.chq-icon-only .chq-label-default,
.woocommerce .add_to_cart_button.chq-icon-only .chq-label-added {
  display: none !important;
}

.chq-add-to-cart-button.chq-icon-only .chq-check,
.single-product form.cart button.single_add_to_cart_button.chq-icon-only .chq-check,
.woocommerce .add_to_cart_button.chq-icon-only .chq-check {
  display: inline-flex !important;
  margin: 0 !important;
}


.chq-add-to-cart-button,
.chq-buy-row a.add_to_cart_button,
.chq-buy-row button.add_to_cart_button,
.chq-loop-cart a.add_to_cart_button,
.chq-loop-cart button.add_to_cart_button,
.single-product form.cart button.single_add_to_cart_button,
.woocommerce a.add_to_cart_button,
.woocommerce button.add_to_cart_button {
  background-image: none !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

.chq-add-to-cart-button::before,
.chq-add-to-cart-button::after,
.chq-buy-row a.add_to_cart_button::before,
.chq-buy-row a.add_to_cart_button::after,
.chq-buy-row button.add_to_cart_button::before,
.chq-buy-row button.add_to_cart_button::after,
.chq-loop-cart a.add_to_cart_button::before,
.chq-loop-cart a.add_to_cart_button::after,
.chq-loop-cart button.add_to_cart_button::before,
.chq-loop-cart button.add_to_cart_button::after,
.single-product form.cart button.single_add_to_cart_button::before,
.single-product form.cart button.single_add_to_cart_button::after,
.woocommerce a.add_to_cart_button::before,
.woocommerce a.add_to_cart_button::after,
.woocommerce button.add_to_cart_button::before,
.woocommerce button.add_to_cart_button::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

.chq-add-to-cart-button.chq-added,
.chq-buy-row a.add_to_cart_button.chq-added,
.chq-buy-row button.add_to_cart_button.chq-added,
.chq-loop-cart a.add_to_cart_button.chq-added,
.chq-loop-cart button.add_to_cart_button.chq-added,
.single-product form.cart button.single_add_to_cart_button.chq-added,
.woocommerce a.add_to_cart_button.chq-added,
.woocommerce button.add_to_cart_button.chq-added {
  width: var(--chq-button-added-width) !important;
  max-width: 100% !important;
  padding-right: 10px !important;
}

.chq-add-to-cart-button.chq-added .chq-check,
.single-product form.cart button.single_add_to_cart_button.chq-added .chq-check,
.woocommerce a.add_to_cart_button.chq-added .chq-check,
.woocommerce button.add_to_cart_button.chq-added .chq-check {
  display: inline-flex !important;
}

.chq-add-to-cart-button.chq-icon-only .chq-label-added,
.single-product form.cart button.single_add_to_cart_button.chq-icon-only .chq-label-added,
.woocommerce a.add_to_cart_button.chq-icon-only .chq-label-added,
.woocommerce button.add_to_cart_button.chq-icon-only .chq-label-added {
  display: none !important;
}


/* Ajustes apenas para a tabela do carrinho */
.woocommerce-cart-form td.product-quantity,
.woocommerce table.shop_table td.product-quantity {
  text-align: center !important;
}

.woocommerce-cart-form td.product-quantity .quantity,
.woocommerce table.shop_table td.product-quantity .quantity {
  display: grid !important;
  grid-template-columns: var(--chq-qty-width) var(--chq-stepper-width) !important;
  align-items: stretch !important;
  margin: 0 auto !important;
  float: none !important;
  transform: none !important;
  min-width: calc(var(--chq-qty-width) + var(--chq-stepper-width)) !important;
  z-index: 2 !important;
}

.woocommerce-cart-form td.product-quantity .chq-stepper,
.woocommerce table.shop_table td.product-quantity .chq-stepper {
  width: var(--chq-stepper-width) !important;
  min-width: var(--chq-stepper-width) !important;
}

.woocommerce-cart-form td.product-quantity .chq-step-btn,
.woocommerce table.shop_table td.product-quantity .chq-step-btn {
  position: relative !important;
  z-index: 3 !important;
  pointer-events: auto !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.woocommerce-cart-form td.product-quantity input.qty,
.woocommerce table.shop_table td.product-quantity input.qty {
  pointer-events: auto !important;
  padding: 0 !important;
}


/* Refino visual do carrinho: deixar igual ao card de produto */
.woocommerce-cart-form td.product-quantity .quantity,
.woocommerce table.shop_table td.product-quantity .quantity {
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #fff !important;
}

.woocommerce-cart-form td.product-quantity input.qty,
.woocommerce table.shop_table td.product-quantity input.qty {
  border-radius: 0 !important;
  max-width: none !important;
  min-width: 0 !important;
}

.woocommerce-cart-form td.product-quantity .chq-stepper,
.woocommerce table.shop_table td.product-quantity .chq-stepper {
  border-radius: 0 !important;
}

.woocommerce-cart-form td.product-quantity .chq-step-btn,
.woocommerce table.shop_table td.product-quantity .chq-step-btn {
  border-radius: 0 !important;
  min-height: 0 !important;
}


/* Garante que o numero e os botoes +/- fiquem lado a lado em qualquer card. */
.woocommerce ul.products li.product .quantity.chq-has-stepper,
li.product .quantity.chq-has-stepper,
.product .quantity.chq-has-stepper,
.quantity.chq-has-stepper {
  display: grid !important;
  grid-template-columns: var(--chq-qty-width) var(--chq-stepper-width) !important;
  grid-template-rows: 1fr !important;
  align-items: stretch !important;
  width: calc(var(--chq-qty-width) + var(--chq-stepper-width)) !important;
  min-width: calc(var(--chq-qty-width) + var(--chq-stepper-width)) !important;
  max-width: calc(var(--chq-qty-width) + var(--chq-stepper-width)) !important;
  height: var(--chq-qty-height) !important;
  overflow: hidden !important;
}

.quantity.chq-has-stepper > .screen-reader-text,
.quantity.chq-has-stepper > label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.quantity.chq-has-stepper > input.qty {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 100% !important;
  height: 100% !important;
}

.quantity.chq-has-stepper > .chq-stepper {
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: var(--chq-stepper-width) !important;
  height: 100% !important;
  align-self: stretch !important;
}

.chq-js-loop-cart,
.woocommerce ul.products li.product .chq-js-loop-cart,
li.product .chq-js-loop-cart,
.elementor .chq-js-loop-cart,
.elementor .chq-loop-cart {
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 8px !important;
}

.chq-loop-cart > .chq-buy-row,
.chq-js-loop-cart > .chq-buy-row,
.woocommerce ul.products li.product .chq-js-loop-cart .chq-buy-row,
li.product .chq-js-loop-cart .chq-buy-row,
.elementor .woocommerce ul.products li.product .chq-loop-cart .chq-buy-row,
.elementor .woocommerce ul.products li.product .chq-js-loop-cart .chq-buy-row,
.elementor .chq-loop-cart .chq-buy-row,
.elementor .chq-js-loop-cart .chq-buy-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 100% !important;
}

.chq-loop-cart > .chq-buy-row > .quantity,
.chq-js-loop-cart > .chq-buy-row > .quantity,
.woocommerce ul.products li.product .chq-js-loop-cart .quantity,
li.product .chq-js-loop-cart .quantity,
.elementor .chq-loop-cart .quantity,
.elementor .chq-js-loop-cart .quantity {
  flex: 0 0 auto !important;
}

.chq-loop-cart > .chq-buy-row > a.add_to_cart_button,
.chq-loop-cart > .chq-buy-row > button.add_to_cart_button,
.chq-js-loop-cart > .chq-buy-row > a.add_to_cart_button,
.chq-js-loop-cart > .chq-buy-row > button.add_to_cart_button,
.woocommerce ul.products li.product .chq-js-loop-cart a.add_to_cart_button,
.woocommerce ul.products li.product .chq-js-loop-cart button.add_to_cart_button,
li.product .chq-js-loop-cart a.add_to_cart_button,
li.product .chq-js-loop-cart button.add_to_cart_button,
.elementor .woocommerce ul.products li.product .chq-loop-cart a.add_to_cart_button,
.elementor .woocommerce ul.products li.product .chq-loop-cart button.add_to_cart_button,
.elementor .woocommerce ul.products li.product .chq-js-loop-cart a.add_to_cart_button,
.elementor .woocommerce ul.products li.product .chq-js-loop-cart button.add_to_cart_button,
.elementor .chq-loop-cart a.add_to_cart_button,
.elementor .chq-loop-cart button.add_to_cart_button,
.elementor .chq-js-loop-cart a.add_to_cart_button,
.elementor .chq-js-loop-cart button.add_to_cart_button {
  flex: 1 1 auto !important;
  margin: 0 !important;
  width: auto !important;
  min-width: 0 !important;
}

.elementor-widget-jet-woo-builder-archive-add-to-cart form.cart,
.elementor-jet-woo-builder-archive-add-to-cart form.cart,
.jet-woo-builder-archive-add-to-cart form.cart {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
}

.elementor-widget-jet-woo-builder-archive-add-to-cart form.cart > .quantity,
.elementor-jet-woo-builder-archive-add-to-cart form.cart > .quantity,
.jet-woo-builder-archive-add-to-cart form.cart > .quantity {
  flex: 0 0 auto !important;
  margin: 0 !important;
}

.elementor-widget-jet-woo-builder-archive-add-to-cart form.cart > a.add_to_cart_button,
.elementor-widget-jet-woo-builder-archive-add-to-cart form.cart > button.add_to_cart_button,
.elementor-jet-woo-builder-archive-add-to-cart form.cart > a.add_to_cart_button,
.elementor-jet-woo-builder-archive-add-to-cart form.cart > button.add_to_cart_button,
.jet-woo-builder-archive-add-to-cart form.cart > a.add_to_cart_button,
.jet-woo-builder-archive-add-to-cart form.cart > button.add_to_cart_button {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  float: none !important;
}
