/*
 * BITERO Menu Order widget — scoped, minimal CSS.
 *
 * Everything else (tabs, two-column product layout, card image/title/price)
 * deliberately reuses the existing Foodis theme's own .food-menu-section /
 * .nav / .food-menu-wrapper / .food-menu-items classes (see
 * wp-content/themes/foodis/assets/css/master.css), so it is already styled
 * identically to the rest of the site. This file only covers the one
 * element those classes don't already style: the defensive empty-state
 * message for a category with zero published products.
 */
.bitero-menu-order .bitero-menu-empty {
	text-align: center;
	padding: 40px 0;
	font-size: 15px;
	color: var(--header);
}

/*
 * Task 6 — quantity controls + Add to Cart.
 *
 * Reuses the theme's existing color variables (--theme, --theme2,
 * --theme3, --header) and the existing `.theme-btn` / `.small-btn` button
 * classes (see wp-content/themes/foodis/assets/css/master.css, around
 * line 232) rather than inventing a new visual style. `.food-menu-items
 * .content` is already `position: relative` with `.price` pinned
 * `position: absolute; top: 0; right: 0;`, so these new elements are
 * placed in normal flow below the title/price without needing to account
 * for the price's absolute box.
 */
.bitero-menu-order .bitero-qty-controls {
	margin-top: 16px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}

.bitero-menu-order .bitero-qty {
	display: inline-flex;
	align-items: center;
	border: 1.5px dashed rgba(30, 29, 35, 0.2);
	border-radius: 8px;
	overflow: hidden;
	flex: 0 0 auto;
}

.bitero-menu-order .bitero-qty-btn {
	width: 34px;
	height: 34px;
	line-height: 34px;
	padding: 0;
	border: none;
	background-color: transparent;
	color: var(--header);
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	transition: var(--cube-2);
}

.bitero-menu-order .bitero-qty-btn:hover:not(:disabled) {
	background-color: var(--theme);
}

.bitero-menu-order .bitero-qty-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.bitero-menu-order .bitero-qty-input {
	width: 42px;
	height: 34px;
	padding: 0;
	border: none;
	border-left: 1.5px dashed rgba(30, 29, 35, 0.2);
	border-right: 1.5px dashed rgba(30, 29, 35, 0.2);
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	color: var(--header);
	background-color: transparent;
	-moz-appearance: textfield;
}

.bitero-menu-order .bitero-qty-input::-webkit-outer-spin-button,
.bitero-menu-order .bitero-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.bitero-menu-order .bitero-add-to-cart {
	flex: 0 0 auto;
}

.bitero-menu-order .bitero-add-to-cart:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	pointer-events: none;
}

/*
 * Task 7 — Order Now button. Same `.theme-btn.small-btn` base as Add to
 * Cart; `--theme2` background distinguishes it as the "go order" action
 * without inventing a new visual language.
 */
.bitero-menu-order .bitero-order-now {
	flex: 0 0 auto;
	background-color: var(--theme2);
	border-color: var(--theme2);
}

.bitero-menu-order .bitero-order-now:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	pointer-events: none;
}

.bitero-menu-order .bitero-cart-message {
	flex: 1 1 100%;
	font-size: 13px;
	font-weight: 600;
	min-height: 18px;
}

.bitero-menu-order .bitero-cart-message.is-success {
	color: var(--theme2);
}

.bitero-menu-order .bitero-cart-message.is-error {
	color: var(--theme3);
}

@media (max-width: 575px) {
	.bitero-menu-order .bitero-qty-controls {
		gap: 10px;
	}
}

/* Final UX correction: card buttons read exactly "In den Warenkorb" / "Jetzt bestellen" (the theme capitalises every word). */
.bitero-menu-order .bitero-add-to-cart,
.bitero-menu-order .bitero-order-now {
	text-transform: none;
}

/* Final UX correction: quantity + both buttons fit on one row of a card column (desktop / tablet); wrapping stays as the fallback. */
@media (min-width: 576px) {
	.bitero-menu-order .bitero-qty-controls .bitero-add-to-cart,
	.bitero-menu-order .bitero-qty-controls .bitero-order-now {
		padding-left: 18px;
		padding-right: 18px;
	}
	.bitero-menu-order .bitero-qty-controls { gap: 10px; }
}
/* Homepage: centred "Alle Gerichte ansehen" button under the menu section. */
.bitero-home-menu-cta { text-align: center; }
.bitero-home-menu-cta .theme-btn { text-transform: none; }
