/* Nur die von diesem Modul erzeugten Buttons gestalten. */
body.single-product form.cart .cd-qty-button {
    display: none;
}

/* Flexbox: Aktionen nebeneinander, bei Platzmangel linksbündig umbrechen. */
body.single-product form.cart:not(.grouped_form):not(.variations_form),
body.single-product form.cart .woocommerce-variation-add-to-cart,
body.single-product form.cart .e-atc-qty-button-holder {
	display: flex !important;
	flex-flow: row wrap !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 12px !important;
}

body.single-product form.cart .e-atc-qty-button-holder {
	flex: 0 1 100% !important;
	width: 100% !important;
	min-width: 0 !important;
}

/* Geerbte Theme-Floats und Elementors Button-Abstände zurücksetzen. */
body.single-product form.cart div.quantity.cd-qty,
body.single-product form.cart button.single_add_to_cart_button {
	float: none !important;
	clear: none !important;
	margin: 0 !important;
	align-self: center !important;
}

body.single-product form.cart button.single_add_to_cart_button {
	flex: 0 0 auto !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: 100% !important;
	box-sizing: border-box;
	white-space: normal !important;
}

/* flex-basis und Button-Abstände des Elementor-Widgets überschreiben. */
body.single-product form.cart div.quantity.cd-qty {
	display: inline-grid !important;
	grid-template-columns: 44px 48px 44px;
	align-items: center;
	gap: 0 !important;
	flex: 0 0 138px !important;
	width: 138px !important;
	min-width: 138px !important;
	max-width: 138px !important;
	height: 47px !important;
	box-sizing: border-box;
	padding: 0 !important;
	border: 2px solid #333;
	border-radius: 5px;
	background: #fff;
	overflow: hidden;
}

body.single-product form.cart div.quantity.cd-qty.hidden {
	display: none !important;
}

body.single-product form.cart div.quantity.cd-qty button.cd-qty-button,
body.single-product form.cart div.quantity.cd-qty input.qty {
	grid-row: 1;
	height: 44px !important;
	min-width: 0 !important;
	box-sizing: border-box;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #fff !important;
	color: #111 !important;
	box-shadow: none !important;
}

body.single-product form.cart div.quantity.cd-qty button.cd-qty-button {
	display: grid !important;
	place-items: center;
	position: static;
	transform: none;
	width: 44px !important;
	max-width: 44px !important;
	min-height: 0 !important;
	font-size: 24px !important;
	line-height: 1 !important;
	cursor: pointer;
	touch-action: manipulation;
}

body.single-product form.cart div.quantity.cd-qty button.cd-qty-minus {
	grid-column: 1;
	border-right: 1px solid #ddd !important;
}

body.single-product form.cart div.quantity.cd-qty button.cd-qty-plus {
	grid-column: 3;
	border-left: 1px solid #ddd !important;
}

body.single-product form.cart div.quantity.cd-qty button.cd-qty-button:disabled {
	color: #aaa !important;
	cursor: default;
}

body.single-product form.cart div.quantity.cd-qty input.qty {
	grid-column: 2;
	width: 48px !important;
	max-width: 48px !important;
	font-size: 16px !important;
	text-align: center;
	appearance: textfield;
	-moz-appearance: textfield;
}

body.single-product form.cart div.quantity.cd-qty input.qty::-webkit-inner-spin-button,
body.single-product form.cart div.quantity.cd-qty input.qty::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

body.single-product form.cart div.quantity.cd-qty button.cd-qty-button:focus-visible,
body.single-product form.cart div.quantity.cd-qty input.qty:focus-visible {
	outline: 2px solid #111;
	outline-offset: -3px;
}
