/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* Make the quantity container behave like a flex item and take half the row */
.single-product .summary form.cart .quantity{
  /* override Woo/Woodmart inline-block/content-width behavior */
  display: flex !important;
  align-items: stretch;
  gap: 6px;

  flex: 1 1 0 !important;  /* let it grow to half */
  min-width: 0 !important; /* allow shrinking if space is tight */
  width: auto !important;
}

/* Keep the minus/plus buttons a fixed size */
.single-product .summary form.cart .quantity .minus,
.single-product .summary form.cart .quantity .plus{
  flex: 0 0 42px;      /* same height as theme buttons; adjust if needed */
}

/* Let the numeric input expand to fill the remaining space */
.single-product .summary form.cart .quantity input[type="number"]{
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  text-align: center;
}

/* Ensure Add to Cart also takes half and doesn’t push away */
.single-product .summary form.cart .single_add_to_cart_button{
  flex: 1 1 0 !important;
  margin-left: 0 !important;
}

/* Make sure YITH button inherits button look */ 
.single-product .summary .add-request-quote-button.button { 
	display: flex; 
	justify-content: center; 
	align-items: center; 
	text-align: center; 
	white-space: nowrap; 
} 