/* SAA Store catalog and cart-drawer quantity controls. */

.saa-loop-purchase-controls {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	min-width: 0;
}

.saa-catalog-card-footer {
	flex-wrap: wrap;
}

.saa-catalog-card-footer .saa-loop-purchase-controls {
	flex: 1 1 auto;
}

.saa-quantity-stepper {
	display: inline-flex;
	align-items: stretch;
	flex: 0 0 auto;
	height: 34px;
	border: 1px solid #cfd8d3;
	border-radius: 0;
	background: #fff;
	overflow: hidden;
}

.saa-quantity-stepper .quantity {
	display: block !important;
	float: none !important;
	width: 38px !important;
	height: 32px !important;
	margin: 0 !important;
}

.saa-quantity-stepper .qty {
	display: block;
	width: 38px !important;
	min-width: 38px !important;
	height: 32px !important;
	min-height: 32px !important;
	margin: 0 !important;
	padding: 0 3px !important;
	border: 0 !important;
	border-right: 1px solid #e3e8e5 !important;
	border-left: 1px solid #e3e8e5 !important;
	border-radius: 0 !important;
	background: #fff !important;
	box-shadow: none !important;
	color: #334145 !important;
	font-family: 'Montserrat', sans-serif;
	font-size: 13px !important;
	font-weight: 600;
	line-height: 32px !important;
	text-align: center;
	-moz-appearance: textfield;
}

.saa-quantity-stepper .qty::-webkit-outer-spin-button,
.saa-quantity-stepper .qty::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.saa-quantity-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	min-width: 30px;
	height: 32px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #f3f8f5 !important;
	box-shadow: none !important;
	color: #006838 !important;
	font-family: Arial, sans-serif;
	font-size: 18px !important;
	font-weight: 600;
	line-height: 1 !important;
	cursor: pointer;
}

.saa-quantity-button:hover:not(:disabled),
.saa-quantity-button:focus-visible:not(:disabled) {
	background: #e5f2ea !important;
	color: #004d28 !important;
}

.saa-quantity-button:focus-visible {
	position: relative;
	z-index: 2;
	outline: 2px solid #006838;
	outline-offset: -2px;
}

.saa-quantity-button:disabled {
	color: #9aa7a0 !important;
	cursor: not-allowed;
	opacity: .6;
}

.saa-loop-purchase-controls > .button,
.saa-loop-purchase-controls > a.add_to_cart_button {
	margin: 0 !important;
}

/* One-copy notice for e-books, MP3s and other digital products. */
.saa-one-per-order {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: max-content;
	max-width: 100%;
	padding: 4px 9px;
	border: 1px solid #cfe4d8;
	border-radius: 999px;
	background: #effaf4;
	color: #006838;
	font-family: 'Montserrat', sans-serif;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .01em;
	white-space: nowrap;
}

.saa-loop-digital-purchase-controls {
	flex-wrap: wrap;
}

.single-product form.cart .saa-single-one-per-order {
	margin: 0 10px 10px 0;
	vertical-align: middle;
}

/* WooCommerce/Astra/Elementor mini-cart item controls. */
.saa-mini-cart-item-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	margin-top: 7px;
}

.saa-mini-cart-quantity {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	min-width: 102px;
}

.saa-mini-cart-quantity.is-updating {
	opacity: .65;
	pointer-events: none;
}

.saa-mini-cart-quantity-stepper {
	height: 32px;
}

.saa-mini-cart-quantity-stepper .quantity,
.saa-mini-cart-quantity-stepper .qty,
.saa-mini-cart-quantity-stepper .saa-quantity-button {
	height: 30px !important;
}

.saa-mini-cart-quantity-stepper .qty {
	line-height: 30px !important;
}

.saa-mini-cart-unit-price {
	color: #334145;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.saa-mini-cart-update-status {
	max-width: 190px;
	color: #6a7471;
	font-size: 11px;
	line-height: 1.3;
}

@media (max-width: 480px) {
	.saa-loop-purchase-controls {
		width: 100%;
		flex-wrap: wrap;
		justify-content: space-between;
	}

	.saa-mini-cart-item-meta {
		align-items: flex-start;
		flex-direction: column;
	}
}
