/* Vereinsshop – erbt Schrift vom Theme, gleiche Optik wie die anderen Vereins-Plugins. */
.vereinsshop {
	--vs-akzent: #1a6fb0;
	--vs-rand: rgba(0, 0, 0, 0.15);
	--vs-flaeche: rgba(0, 0, 0, 0.03);
	--vs-fehler: #b3261e;
	margin: 1.5em 0;
	font-size: 16px;
	line-height: 1.45;
}
.vereinsshop *,
.vereinsshop *::before,
.vereinsshop *::after { box-sizing: border-box; }

.vs-einleitung { margin: 0 0 1.5em; }
.vs-hinweis-box {
	padding: 12px 16px;
	border: 1px solid var(--vs-rand);
	border-radius: 8px;
	background: var(--vs-flaeche);
}

.vs-katalog { display: flex; flex-direction: column; gap: 20px; }
.vs-produkt {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: 24px;
	align-items: start;
	border: 1px solid var(--vs-rand);
	border-radius: 10px;
	padding: 16px;
}
.vs-produkt:not(:has(.vs-bild)) { grid-template-columns: 1fr; }
.vs-bild img { width: 100%; height: auto; display: block; border-radius: 6px; }
.vs-info h3 { margin: 0 0 4px; font-size: 1.5em; }
.vs-preis { margin: 0 0 10px; font-weight: 700; font-size: 1.15em; }
.vs-beschreibung { margin: 0 0 10px; white-space: pre-line; }

.vs-feld { margin: 0 0 12px; }
.vs-label { display: block; font-size: 0.85em; margin-bottom: 4px; opacity: 0.85; }
.vereinsshop select,
.vereinsshop input[type="text"],
.vereinsshop input[type="number"],
.vereinsshop textarea {
	width: 100%;
	padding: 8px 10px;
	font: inherit;
	border: 1px solid var(--vs-rand);
	border-radius: 6px;
	background: #fff;
	color: #1d2327;
	min-height: 42px;
}
.vs-menge { display: grid; grid-template-columns: 90px 1fr; gap: 8px; align-items: end; }
.vs-menge .vs-label { grid-column: 1 / -1; margin-bottom: 0; }

.vs-farben { display: flex; flex-wrap: wrap; gap: 8px; }
.vs-farbe input,
.vs-logo input { position: absolute; opacity: 0; pointer-events: none; }
.vs-farbe { position: relative; cursor: pointer; }
.vs-swatch {
	display: block;
	width: 38px;
	height: 38px;
	border-radius: 6px;
	border: 1px solid var(--vs-rand);
	box-shadow: inset 0 0 0 3px #fff;
}
.vs-farbe:has(input:checked) .vs-swatch { outline: 3px solid var(--vs-akzent); outline-offset: 1px; }
.vs-farbe:has(input:focus-visible) .vs-swatch { outline: 3px dashed var(--vs-akzent); }
.vs-farbname { font-weight: 600; }
.vs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.vs-logos { display: flex; flex-wrap: wrap; gap: 8px; }
.vs-logo {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	width: 96px;
	padding: 6px;
	border: 2px solid var(--vs-rand);
	border-radius: 8px;
	cursor: pointer;
	font-size: 0.8em;
	text-align: center;
}
.vs-logo img { width: 72px; height: 72px; object-fit: contain; }
.vs-logo:has(input:checked) { border-color: var(--vs-akzent); background: var(--vs-flaeche); }
.vs-logo:has(input:focus-visible) { outline: 2px dashed var(--vs-akzent); }

.vereinsshop .vs-knopf {
	padding: 10px 16px;
	font: inherit;
	font-weight: 700;
	border: none;
	border-radius: 8px;
	background: var(--vs-akzent);
	color: #fff;
	cursor: pointer;
	min-height: 42px;
}
.vereinsshop .vs-knopf:disabled { opacity: 0.5; cursor: not-allowed; }
.vs-fehler { color: var(--vs-fehler); min-height: 1.2em; margin: 4px 0 0; font-size: 0.9em; }

.vs-kasse {
	margin-top: 28px;
	padding: 16px 20px;
	border: 2px solid var(--vs-akzent);
	border-radius: 10px;
	background: var(--vs-flaeche);
}
.vs-kasse h2 { margin: 0 0 10px; }
.vs-zeile {
	display: grid;
	grid-template-columns: 1fr auto 36px;
	gap: 10px;
	align-items: center;
	padding: 6px 0;
	border-bottom: 1px solid var(--vs-rand);
}
.vs-zeilenpreis { font-variant-numeric: tabular-nums; white-space: nowrap; }
.vereinsshop .vs-weg {
	width: 36px;
	height: 36px;
	border: 1px solid var(--vs-rand);
	border-radius: 6px;
	background: transparent;
	color: inherit;
	font-size: 1.3em;
	cursor: pointer;
	padding: 0;
}
.vs-leer { opacity: 0.75; }
.vs-summe { font-size: 1.3em; font-weight: 800; text-align: right; margin: 10px 0 14px; }
.vs-kunde { font-size: 0.9em; opacity: 0.85; }
.vs-check { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 14px; cursor: pointer; }
.vs-check input { margin-top: 4px; width: 18px; height: 18px; }
.vs-kasse > .vs-knopf { width: 100%; padding: 14px; font-size: 1.1em; }
.vs-status { min-height: 1.3em; margin: 8px 0 0; }
.vs-erfolg { color: #1e7e34; font-weight: 700; font-size: 1.1em; }

@media (max-width: 700px) {
	.vs-produkt { grid-template-columns: 1fr; }
}

.vs-anleitung {
	margin: 0 0 1.5em;
	padding: 10px 14px;
	border-left: 4px solid var(--vs-akzent);
	background: var(--vs-flaeche);
}

/* Meine Bestellungen */
.vs-meine { margin-top: 32px; }
.vs-meine h2 { margin: 0 0 12px; }
.vs-bestellung {
	border: 1px solid var(--vs-rand);
	border-radius: 10px;
	padding: 12px 16px;
	margin: 0 0 12px;
}
.vs-bestellung header { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin-bottom: 6px; }
.vs-bestellung ul { list-style: none; margin: 0; padding: 0; }
.vs-bestellung li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px dashed var(--vs-rand); }
.vs-bestellsumme { text-align: right; margin: 8px 0 4px; }
.vs-badge {
	font-size: 0.8em;
	padding: 2px 8px;
	border-radius: 999px;
	background: #e8f1f8;
	color: #1a4f7a;
}
.vs-badge.vs-bezahlt { background: #e6f4ea; color: #1e7e34; }
.vs-badge.vs-offen { background: #fdf2e0; color: #8a5a00; }
.vs-status-storniert { opacity: 0.6; }
.vs-status-storniert .vs-badge:first-of-type { background: #f3e0e0; color: #8a1f1f; }
.vereinsshop .vs-storno {
	padding: 8px 14px;
	font: inherit;
	border: 1px solid var(--vs-fehler);
	color: var(--vs-fehler);
	background: transparent;
	border-radius: 6px;
	cursor: pointer;
}
