/* Gutschein-System – frontend wizard.
   Inherits the active theme's font (Twenty Twenty-Five: Manrope) and stays
   quiet and typographic so it blends into the theme. */

.gs-shop {
	--gs-ink: #111;
	--gs-muted: #6b6b6b;
	--gs-line: #e2e0da;
	--gs-bg: #faf9f7;
	--gs-radius: 10px;
	max-width: 680px;
	margin: 0 auto;
	font-family: inherit;
	color: var(--gs-ink);
}

/* Step indicator */
.gs-steps {
	display: flex;
	gap: 4px;
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
	counter-reset: gs-step;
}
.gs-steps li {
	flex: 1;
	text-align: center;
	padding: 0.65rem 0.25rem;
	font-size: 0.8rem;
	letter-spacing: 0.02em;
	color: var(--gs-muted);
	border-bottom: 2px solid var(--gs-line);
	transition: color 0.2s, border-color 0.2s;
}
.gs-steps li.is-active {
	color: var(--gs-ink);
	border-color: var(--gs-ink);
	font-weight: 600;
}
.gs-steps li.is-done {
	color: var(--gs-ink);
	border-color: var(--gs-ink);
}

.gs-step h2 {
	font-size: 1.35rem;
	margin: 0 0 1.25rem;
}

/* Amount buttons */
.gs-amounts {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin-bottom: 1.25rem;
}
.gs-amount {
	appearance: none;
	background: #fff;
	border: 1.5px solid var(--gs-line);
	border-radius: var(--gs-radius);
	padding: 1.1rem 0.5rem;
	font: inherit;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--gs-ink);
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.gs-amount:hover { border-color: var(--gs-ink); }
.gs-amount.is-selected {
	border-color: var(--gs-ink);
	background: var(--gs-ink);
	color: #fff;
}
.gs-amount:focus-visible,
.gs-btn:focus-visible,
.gs-payment input:focus-visible + .gs-payment-body {
	outline: 2px solid var(--gs-ink);
	outline-offset: 2px;
}

/* Fields */
.gs-field { margin-bottom: 1.1rem; }
.gs-field label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 0.35rem;
}
.gs-field input[type="text"],
.gs-field input[type="email"],
.gs-field input[type="tel"],
.gs-field input[type="number"],
.gs-field textarea {
	width: 100%;
	padding: 0.7rem 0.85rem;
	border: 1.5px solid var(--gs-line);
	border-radius: var(--gs-radius);
	background: #fff;
	font: inherit;
	font-size: 0.95rem;
	color: var(--gs-ink);
	transition: border-color 0.15s;
	box-sizing: border-box;
}
.gs-field input:focus,
.gs-field textarea:focus {
	border-color: var(--gs-ink);
	outline: none;
}
.gs-field input.gs-invalid,
.gs-field textarea.gs-invalid { border-color: #b3261e; }
.gs-field .gs-field-error {
	color: #b3261e;
	font-size: 0.8rem;
	margin: 0.3rem 0 0;
}
.gs-hint {
	font-size: 0.8rem;
	color: var(--gs-muted);
	margin: 0.35rem 0 0;
}
.gs-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 14px;
}

/* Consent checkboxes */
.gs-check label {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-weight: 400;
	font-size: 0.9rem;
	cursor: pointer;
}
.gs-check input { margin-top: 3px; }
.gs-check a { color: inherit; text-decoration: underline; }

/* Payment options */
.gs-payments { display: grid; gap: 10px; }
.gs-payment { display: block; cursor: pointer; }
.gs-payment input {
	position: absolute;
	opacity: 0;
}
.gs-payment-body {
	display: block;
	border: 1.5px solid var(--gs-line);
	border-radius: var(--gs-radius);
	padding: 1rem 1.1rem;
	background: #fff;
	transition: border-color 0.15s, background 0.15s;
}
.gs-payment input:checked + .gs-payment-body {
	border-color: var(--gs-ink);
	background: var(--gs-bg);
	box-shadow: inset 0 0 0 1px var(--gs-ink);
}
.gs-payment-body strong { display: block; margin-bottom: 0.2rem; }
.gs-payment-body small { color: var(--gs-muted); line-height: 1.45; display: block; }

/* Summary */
.gs-summary {
	margin-top: 1.5rem;
	border: 1px solid var(--gs-line);
	border-radius: var(--gs-radius);
	background: var(--gs-bg);
	padding: 1rem 1.2rem;
	font-size: 0.9rem;
}
.gs-summary dl { margin: 0; }
.gs-summary div { display: flex; justify-content: space-between; padding: 0.3rem 0; }
.gs-summary dt { color: var(--gs-muted); }
.gs-summary dd { margin: 0; font-weight: 600; }

/* Navigation */
.gs-nav {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-top: 1.75rem;
}
.gs-btn {
	appearance: none;
	border: 1.5px solid var(--gs-ink);
	background: var(--gs-ink);
	color: #fff;
	border-radius: 999px;
	padding: 0.75rem 1.75rem;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	margin-left: auto;
	transition: opacity 0.15s, transform 0.1s;
}
.gs-btn:hover { opacity: 0.85; }
.gs-btn[disabled] { opacity: 0.5; cursor: default; }
.gs-btn-ghost {
	background: transparent;
	color: var(--gs-ink);
	margin-left: 0;
	margin-right: auto;
}

/* Errors */
.gs-error {
	color: #b3261e;
	font-size: 0.85rem;
	margin: 0.75rem 0 0;
}

/* Success */
.gs-success {
	text-align: center;
	padding: 3rem 1rem;
	border: 1px solid var(--gs-line);
	border-radius: var(--gs-radius);
	background: var(--gs-bg);
}
.gs-success-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 1rem;
	border-radius: 50%;
	background: var(--gs-ink);
	color: #fff;
	font-size: 1.6rem;
	line-height: 56px;
}
.gs-success h2 { margin: 0 0 0.75rem; }
.gs-success p { color: var(--gs-muted); max-width: 46ch; margin: 0 auto; }

@media (max-width: 600px) {
	.gs-amounts { grid-template-columns: repeat(2, 1fr); }
	.gs-grid { grid-template-columns: 1fr; }
	.gs-steps li span { display: none; }
	.gs-steps li { padding-bottom: 0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
	.gs-shop * { transition: none !important; }
}
