/* Sarang single product add-to-cart — forced Gutenberg/WooCommerce layout */
body.single-product form.cart,
body.single-product .woocommerce div.product form.cart,
body.single-product .wp-block-add-to-cart-form form.cart,
body.single-product .wp-block-woocommerce-add-to-cart-form form.cart,
body.single-product .wp-block-woocommerce-product-add-to-cart form.cart,
body.single-product .wp-block-woocommerce-product-add-to-cart-form form.cart,
body.single-product .wc-block-components-product-add-to-cart form.cart,
body.single-product .wp-block-woocommerce-add-to-cart-with-options form.cart {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  width: 100%;
}

body.single-product form.cart .quantity,
body.single-product .woocommerce div.product form.cart .quantity,
body.single-product .wp-block-add-to-cart-form form.cart .quantity,
body.single-product .wp-block-woocommerce-add-to-cart-form form.cart .quantity,
body.single-product .wp-block-woocommerce-product-add-to-cart form.cart .quantity,
body.single-product .wp-block-woocommerce-product-add-to-cart-form form.cart .quantity,
body.single-product .wc-block-components-product-add-to-cart form.cart .quantity,
body.single-product form.cart .sarang-quantity-control,
body.single-product .sarang-quantity-control {
  box-sizing: border-box;
  flex: 0 0 216px;
  width: 216px;
  min-width: 216px;
  max-width: 216px;
  height: 50px;
  min-height: 50px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid #111111;
  border-radius: 999px;
  background: #f7f7f7;
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  align-items: center;
  justify-items: center;
  overflow: hidden;
}

body.single-product .sarang-quantity-control__button,
body.single-product form.cart .quantity .sarang-quantity-control__button,
body.single-product form.cart button.sarang-quantity-control__button {
  box-sizing: border-box;
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #111111;
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  cursor: pointer;
}

body.single-product .sarang-quantity-control__button--minus {
  justify-self: start;
}

body.single-product .sarang-quantity-control__button--plus {
  justify-self: end;
}

body.single-product form.cart .quantity input.qty,
body.single-product .woocommerce div.product form.cart .quantity input.qty,
body.single-product .wp-block-add-to-cart-form form.cart .quantity input.qty,
body.single-product .wp-block-woocommerce-add-to-cart-form form.cart .quantity input.qty,
body.single-product .wp-block-woocommerce-product-add-to-cart form.cart .quantity input.qty,
body.single-product .wp-block-woocommerce-product-add-to-cart-form form.cart .quantity input.qty,
body.single-product .sarang-quantity-control input.qty,
body.single-product .quantity.sarang-quantity-control input[type='number'] {
  box-sizing: border-box;
  justify-self: center;
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  height: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #111111;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 48px;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}

body.single-product form.cart .quantity input.qty::-webkit-outer-spin-button,
body.single-product form.cart .quantity input.qty::-webkit-inner-spin-button,
body.single-product .sarang-quantity-control input.qty::-webkit-outer-spin-button,
body.single-product .sarang-quantity-control input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

body.single-product form.cart .single_add_to_cart_button,
body.single-product .woocommerce div.product form.cart .single_add_to_cart_button,
body.single-product .wp-block-add-to-cart-form form.cart .single_add_to_cart_button,
body.single-product .wp-block-woocommerce-add-to-cart-form form.cart .single_add_to_cart_button,
body.single-product .wp-block-woocommerce-product-add-to-cart form.cart .single_add_to_cart_button,
body.single-product .wp-block-woocommerce-product-add-to-cart-form form.cart .single_add_to_cart_button,
body.single-product .wc-block-components-product-add-to-cart form.cart .single_add_to_cart_button,
body.single-product form.cart button[type='submit'] {
  box-sizing: border-box;
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  max-width: none;
  height: 50px;
  min-height: 50px;
  margin: 0;
  padding: 0 28px;
  border: 1px solid #111111;
  border-radius: 999px;
  background: #f9f7f1;
  color: #111111;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
  white-space: nowrap;
}

body.single-product form.cart .single_add_to_cart_button:hover,
body.single-product form.cart button[type='submit']:hover,
body.single-product .woocommerce div.product form.cart .single_add_to_cart_button:hover,
body.single-product .wp-block-add-to-cart-form form.cart .single_add_to_cart_button:hover,
body.single-product .wp-block-woocommerce-add-to-cart-form form.cart .single_add_to_cart_button:hover {
  background: #111111;
  color: #ffffff;
}

@media (max-width: 767px) {
  body.single-product form.cart,
  body.single-product .woocommerce div.product form.cart,
  body.single-product .wp-block-add-to-cart-form form.cart,
  body.single-product .wp-block-woocommerce-add-to-cart-form form.cart,
  body.single-product .wp-block-woocommerce-product-add-to-cart form.cart,
  body.single-product .wp-block-woocommerce-product-add-to-cart-form form.cart {
    flex-direction: column;
    align-items: stretch;
  }

  body.single-product form.cart .quantity,
  body.single-product .woocommerce div.product form.cart .quantity,
  body.single-product .wp-block-add-to-cart-form form.cart .quantity,
  body.single-product .wp-block-woocommerce-add-to-cart-form form.cart .quantity,
  body.single-product .wp-block-woocommerce-product-add-to-cart form.cart .quantity,
  body.single-product .wp-block-woocommerce-product-add-to-cart-form form.cart .quantity,
  body.single-product .sarang-quantity-control,
  body.single-product form.cart .single_add_to_cart_button,
  body.single-product form.cart button[type='submit'] {
    width: 100%;
    max-width: 100%;
    flex-basis: auto;
  }
}
