/* ANRO WG Shopfix 0.1 (20.11.2026) — wirkt nur mit html.anro-wgsf (gesetzt vom Inline-Skript im <head>) */

/* ---------- P1: nur das passende Preis-Paar zeigen (überstimmt die Inline-Styles des Plugins) ---------- */
html.anro-wgsf-incl .product-tax-on { display: inline !important; }
html.anro-wgsf-incl .product-tax-off { display: none !important; }
html.anro-wgsf-excl .product-tax-on { display: none !important; }
html.anro-wgsf-excl .product-tax-off { display: inline !important; }

/* ---------- P2: Umschalter als Leiste über der Kopfzeile ---------- */
html.anro-wgsf #wcvat-toggle.wcvat-toggle-product {
	position: relative;
	top: auto;
	left: auto;
	z-index: auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 0;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 4px 15px;
	background: #f5f5f5;
	border-bottom: 1px solid #e3e3e3;
	color: #4a4a4a;
	opacity: 1;
	font-family: Montserrat, sans-serif;
	font-size: 12px;
	font-weight: 500;
	font-style: normal;
	line-height: 1.2;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}
html.anro-wgsf #wcvat-toggle.wcvat-toggle-product::before {
	content: "Preise anzeigen:";
	margin-right: 8px;
	color: #4a4a4a;
}
html.anro-wgsf #wcvat-toggle.wcvat-toggle-product span.wcvat-toggle-button-incl,
html.anro-wgsf #wcvat-toggle.wcvat-toggle-product span.wcvat-toggle-button-excl {
	display: inline-block !important;
	padding: 4px 10px;
	border: 1px solid #c8c8c8;
	background: #ebebeb;
	color: #555;
	font-weight: 500;
	white-space: nowrap;
}
html.anro-wgsf #wcvat-toggle.wcvat-toggle-product span.wcvat-toggle-button-incl { border-radius: 999px 0 0 999px; }
html.anro-wgsf #wcvat-toggle.wcvat-toggle-product span.wcvat-toggle-button-excl { border-radius: 0 999px 999px 0; margin-left: -1px; }
html.anro-wgsf-incl #wcvat-toggle.wcvat-toggle-product span.wcvat-toggle-button-incl,
html.anro-wgsf-excl #wcvat-toggle.wcvat-toggle-product span.wcvat-toggle-button-excl {
	position: relative;
	z-index: 1;
	background: #fff;
	border-color: #039217;
	color: #1d1d1d;
	font-weight: 700;
	box-shadow: inset 0 -2px 0 #039217;
	cursor: default;
}
html.anro-wgsf #wcvat-toggle.wcvat-toggle-product:hover span { border-color: #039217; }
html.anro-wgsf #wcvat-toggle.wcvat-toggle-product:focus-visible { outline: 2px solid #039217; outline-offset: -2px; }
@media (max-width: 549px) {
	html.anro-wgsf #wcvat-toggle.wcvat-toggle-product { justify-content: center; padding: 3px 15px; }
}

/* ---------- P3: Produktseite auf dem Telefon kompakter ---------- */
@media (max-width: 549px) {
	html.anro-wgsf body.single-product .product-page-title .page-title-inner { padding-top: 6px; }
	html.anro-wgsf body.single-product .product-page-title .page-title-inner > .flex-col { padding-top: 0; padding-bottom: 2px; }
	html.anro-wgsf body.single-product .product-page-title .page-title-inner > .flex-col:has(.next-prev-thumbs),
	html.anro-wgsf body.single-product .product-page-title .next-prev-thumbs { display: none !important; }
	html.anro-wgsf body.single-product .product-page-title .breadcrumbs { font-size: 11px; line-height: 1.35; margin: 0; }
	html.anro-wgsf body.single-product .category-filtering { display: none !important; }
	html.anro-wgsf body.single-product .product-main { padding-top: 6px; }

	html.anro-wgsf body.single-product .product-gallery .woocommerce-product-gallery__image img,
	html.anro-wgsf body.single-product .product-gallery .woocommerce-product-gallery__image > a > img {
		width: 100%;
		height: 280px;
		max-height: 280px;
		object-fit: contain;
	}
	html.anro-wgsf body.single-product .product-gallery .product-images { margin-bottom: 4px; }

	html.anro-wgsf body.single-product .product-info { padding-top: 4px; }
	html.anro-wgsf body.single-product .product-info .product-title { font-size: 19px; line-height: 1.3; margin-bottom: 4px; }
	html.anro-wgsf body.single-product .product-info > .is-divider { display: none; }
	html.anro-wgsf body.single-product .product-info .product-page-price { margin: 4px 0; }
	html.anro-wgsf body.single-product .product-info .product-short-description p { margin-bottom: 8px; }
	html.anro-wgsf body.single-product .product-info .stock { margin-bottom: 8px; }
	/* Reihenfolge: Kaufbereich vor die Kurzbeschreibung (alles vor dem Formular bleibt in Originalreihenfolge) */
	html.anro-wgsf body.single-product .product-info { display: flex; flex-direction: column; }
	html.anro-wgsf body.single-product .product-info > * { order: 1; }
	html.anro-wgsf body.single-product .product-info > .product-short-description { order: 2; }
	html.anro-wgsf body.single-product .product-info > form.cart ~ * { order: 3; }
}
