@CHARSET "UTF-8";
.addToCartForm {
	margin-top: 5px;
	margin-bottom: 0;
}

/* Flexbox container for inline quantity + button layout */
.add-to-cart-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 8px;
	margin-bottom: 0;
	max-width: 400px;
	margin-left: auto;
	margin-right: auto;
}

/* When variants exist, allow full width */
.variantsProductWrapper:has(.product-variants-item) ~ .add-to-cart-wrapper,
.variantsProductWrapper:has(select) ~ .add-to-cart-wrapper {
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

/* Quantity input field styling */
.addToCartButtonNumber {
	padding: 9px 10px;
	width: 80px;
	min-width: 80px;
	height: 2.75rem;
	text-align: center;
	flex-shrink: 0;
}

.addToCartFormWrapper input[type="number"],
.addToCartFormWrapper .qty {
	min-width: 80px;
	width: 80px !important;
	text-align: center;
	padding: 0.375rem 0.5rem;
}

/* Button takes remaining space */
.add-to-cart-wrapper .btn.add-to-cart {
	flex: 1;
	height: 2.75rem;
	padding: 0 8px;
	min-width: 0;
	font-size: 0.875rem !important;
	line-height: 1.2;
}

.addToCartFormWrapper .bootstrap-touchspin {
	width: auto !important;
	display: inline-block;
	margin-right: 10px;
}
.addToCartButtonBox {
	margin: 0 auto 30px !important;
	height: 2.75rem;
	display: block;
	font-weight: 600 !important;
	font-size: 1rem !important;
	-moz-osx-font-smoothing: grayscale !important;
	font-family: "Open Sans",sans-serif !important;
	box-shadow: 2px 2px 11px 0px rgba(0, 0, 0, 0.1) !important;
	border: none;
}
.preLoading {
	display:none;
	position : absolute;
	top : 0;
	bottom : 0;
	left : 0px;
	right : 0px;
	background : rgba(0,0,0,0.6) !important;
	background-image : url(../../img/spinner.gif) !important;
	z-index : 999;
	border : none !important;
	background-size: 40px !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
}
.addToCartFormWrapper {
	padding: 8px 10px;
	margin-bottom: 0 !important;
	background-color:white;
	-webkit-box-shadow: 3px 10px 8px -2px rgba(0,0,0,.2);	
	-moz-box-shadow: 3px 10px 8px -2px rgba(0,0,0,.2);
	-o-box-shadow: 3px 10px 8px -2px rgba(0,0,0,.2);
	box-shadow: none;
}

/* Override theme spacing that may be adding extra space */
.product-miniature .addToCartFormWrapper,
.js-product-miniature .addToCartFormWrapper {
	margin-bottom: 0 !important;
}

.addToCartFormWrapper + * {
	margin-top: 0 !important;
}
#productCombinations{
	font-size: 0.75rem;
	text-align: center;	
	-ms-text-align-last: center;
	-moz-text-align-last: center;
	text-align-last: center;
}
.addToCartFormWrapper .product-variants-item {
	margin-top: 7px;
}
.addToCartFormWrapper .control-label {
	bottom: 5px; position: relative;
}
.addToCartFormWrapper .form-control-select {
	margin-bottom: 10px;
	text-align: center;	
	-ms-text-align-last: center;
	-moz-text-align-last: center;
	text-align-last: center;
}
.addToCartFormWrapper .groupUl {
	margin: 0 auto;display:table;
}
.addToCartFormWrapper .groupUl li{
	float: left !important;
}
.addToCartFormWrapper .groupLi {
	margin-right: .625rem;
}

/* Out of Stock Styling - Following outofstockvariant pattern */
.variants-product select option.out-of-stock-option,
select[name="productCombinations"] option.out-of-stock-option {
    color: #dc3545 !important;
    font-weight: 600 !important;
    font-style: normal;
}

.variants-product select option.backordered-option,
select[name="productCombinations"] option.backordered-option {
    color: #ff9447 !important;
    font-weight: 600 !important;
    font-style: normal;
}
