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

/* Flexbox container for inline quantity + button layout */
.add-to-cart-wrapper {
	float: left;
	width: 100%;
}

/* When variants exist, allow full width */
.variantsProductWrapper:has(.product-variants-item) ~ .add-to-cart-wrapper,
.variantsProductWrapper:has(select) ~ .add-to-cart-wrapper {
	float: left;
	width: 100%;
}

/* Quantity input field styling */
.addToCartFormWrapper span.input-group-btn {
    width: 45px !important;
    padding: 0;
    height: 50px;
    background: #fcfcfc;
    font-size: 17px;
    font-weight: 400;
    color: #000;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0px 5px 5px 0px;
    position: relative;
    border-top: 1px solid #c7c7c7;
    border-bottom: 1px solid #c7c7c7;
	float: left;
	margin: 0px;
}
.addToCartFormWrapper span.input-group-btn:first-child {
	border-right: 0px;
	border-left: 1px solid #c7c7c7;
	border-radius: 6px 0px 0px 6px;
}
.addToCartFormWrapper span.input-group-btn:last-child {
	border-left: 0px;
	border-right: 1px solid #c7c7c7;
	border-radius: 0px 6px 6px 0px;
}

.addToCartFormWrapper span.input-group-btn>.btn {
    width: 100%;
    padding: 0;
    height: 100%;
    font-size: 17px;
    font-weight: 400;
    color: #000;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.addToCartButtonNumber {
	padding: 9px 10px;
	height: 2.75rem;
	text-align: center;
	flex-shrink: 0;
}

.addToCartFormWrapper input[type="number"], 
.addToCartFormWrapper .qty {
	width: calc(100% - 90px);
    text-align: center;
    padding: 0.375rem 0px 0.5rem 10px;
    float: left;
    border: 1px solid #c7c7c7;
    height: 50px;
    background: #ffffff !important;
}

/* Button takes remaining space */
.add-to-cart-wrapper .btn.add-to-cart {
	height: 50px;
    padding: 0 8px;
    font-size: 1.2rem !important;
    line-height: 1.2;
    width: 100%;
    margin-top: 10px;
    font-weight: bold;
    border-radius: 6px;
	min-width: unset;
}
.addToCartFormWrapper .bootstrap-touchspin {
    width: 100%;
    display: block;
    position: relative;
    margin: 0;
}
.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;
	font-size: 1rem !important;
}
.addToCartFormWrapper .form-control-select {
	margin-bottom: 10px;
	text-align: center;	
	-ms-text-align-last: center;
	-moz-text-align-last: center;
	text-align-last: center;
	height: 50px;
}
.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;
}

/* Grey out disabled add-to-cart button when out of stock */
.addToCartFormWrapper button.add-to-cart:disabled,
.addToCartFormWrapper button.add-to-cart[disabled],
.add-to-cart-wrapper button.add-to-cart:disabled,
.add-to-cart-wrapper button.add-to-cart[disabled] {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.85 !important;
}

.addToCartFormWrapper button.add-to-cart:disabled:hover,
.addToCartFormWrapper button.add-to-cart[disabled]:hover,
.add-to-cart-wrapper button.add-to-cart:disabled:hover,
.add-to-cart-wrapper button.add-to-cart[disabled]:hover {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    transform: none !important;
    box-shadow: none !important;
}
