/* Scope theme compatibility rules to the dropdown quantity selector. */
.waqty-dropdown .plus,
.waqty-dropdown .minus,
.waqty-dropdown .quantity-plus,
.waqty-dropdown .quantity-minus {
	display: none !important;
}

.waqty-dropdown .quantity {
	display: inline-block;
	width: auto;
	max-width: 100%;
	padding: 0;
	border: 0;
}

.waqty-dropdown select.qty {
	box-sizing: border-box;
	display: block;
	width: auto;
	min-width: 6rem;
	max-width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 0.625rem 2rem 0.625rem 0.875rem;
	border: 1px solid #767676;
	border-radius: 8px;
	background-color: #fff;
	color: #222;
	font: inherit;
	line-height: 1.5;
	text-align: start;
	appearance: auto;
	-webkit-appearance: menulist;
	cursor: pointer;
}

.waqty-dropdown select.qty:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.waqty-dropdown select.qty:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Open Shop inserts its buttons as siblings of the plugin wrapper. */
.open-shop-quantity:has(> .waqty-dropdown) > button.plus,
.open-shop-quantity:has(> .waqty-dropdown) > button.minus,
.open-shop-quantity.waqty-dropdown-container > button.plus,
.open-shop-quantity.waqty-dropdown-container > button.minus {
	display: none !important;
}

.open-shop-quantity:has(> .waqty-dropdown),
.open-shop-quantity.waqty-dropdown-container {
	display: inline-flex !important;
	width: auto !important;
	max-width: 100%;
	min-width: 0 !important;
	height: auto !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.open-shop-quantity > .waqty-dropdown,
.waqty-dropdown .quantity.margin-top-drop-down {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	width: auto !important;
	height: auto !important;
	float: none !important;
}

.open-shop-quantity .waqty-dropdown select.qty {
	width: auto !important;
	min-width: 7rem;
	height: auto !important;
	min-height: 48px;
	padding: 0.625rem 2.25rem 0.625rem 1rem !important;
	border: 1px solid #767676 !important;
	border-radius: 8px !important;
	font-size: 1rem;
}
