/**
 * Styling für das Widerrufsformular.
 *
 * Hintergrund: Im Shop ist 'woocommerce-general' (woocommerce.css) dequeued
 * (Oxygen stylt WooCommerce selbst). Dem Widerrufsformular fehlen dadurch die
 * Basisklassen (form-row, input-text, woocommerce-button, shop_table ...).
 * Wir liefern sie hier nach – bewusst ALLE Regeln unter
 * .german-market-withdrawal-form gescopt, damit nichts anderes auf der Seite
 * beeinflusst wird.
 */

.german-market-withdrawal-form .form-row {
	display: block;
	margin: 0 0 1.25em;
	padding: 0;
}

.german-market-withdrawal-form .form-row label {
	display: block;
	margin-bottom: .35em;
	font-weight: 600;
	line-height: 1.4;
}

.german-market-withdrawal-form .form-row .required {
	color: #b22222;
	border: 0;
	text-decoration: none;
}

.german-market-withdrawal-form .input-text,
.german-market-withdrawal-form textarea.input-text {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: .7em .8em;
	border: 1px solid #ccc;
	border-radius: 4px;
	background-color: #fff;
	font: inherit;
	line-height: 1.4;
}

.german-market-withdrawal-form .input-text:focus {
	border-color: #666;
	outline: 2px solid transparent;
	outline-offset: 2px;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, .12);
}

/* Zweispaltiges Layout ab Tablet – entspricht dem WooCommerce-Verhalten. */
@media (min-width: 768px) {
	.german-market-withdrawal-form .form-row-first,
	.german-market-withdrawal-form .form-row-last {
		float: left;
		width: 48%;
		overflow: visible;
	}

	.german-market-withdrawal-form .form-row-last {
		float: right;
	}
}

.german-market-withdrawal-form .form-row-full {
	clear: both;
	width: 100%;
}

.german-market-withdrawal-form .clear {
	clear: both;
}

/* Checkboxen (Teilwiderruf + Positionen) */
.german-market-withdrawal-form .woocommerce-form__label-for-checkbox {
	display: flex;
	align-items: flex-start;
	gap: .5em;
	font-weight: 400;
	cursor: pointer;
}

.german-market-withdrawal-form .woocommerce-form__input-checkbox {
	width: auto;
	margin: .2em 0 0;
	flex: 0 0 auto;
}

/* Positions-Tabelle (form-order-items.php) */
.german-market-withdrawal-form .shop_table {
	width: 100%;
	margin: 1em 0;
	border-collapse: collapse;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
}

.german-market-withdrawal-form .shop_table th,
.german-market-withdrawal-form .shop_table td {
	padding: .75em;
	text-align: left;
	border-bottom: 1px solid #ececec;
	vertical-align: middle;
}

.german-market-withdrawal-form .shop_table thead th {
	background: #f7f7f7;
	font-weight: 600;
}

.german-market-withdrawal-form .shop_table tr:last-child td {
	border-bottom: 0;
}

.german-market-withdrawal-form .shop_table .product-select {
	width: 3em;
}

.german-market-withdrawal-form .shop_table .product-quantity {
	width: 8em;
}

.german-market-withdrawal-form .quantity input {
	box-sizing: border-box;
	width: 5em;
	padding: .4em;
	border: 1px solid #ccc;
	border-radius: 4px;
	font: inherit;
}

.german-market-withdrawal-form .withdrawal-form-sku {
	display: block;
	color: #767676;
	font-size: .85em;
}

.german-market-withdrawal-form .withdrawal-form-no-withdraw-item {
	display: block;
	color: #b22222;
	font-size: .85em;
}

/* Meldungen */
.german-market-withdrawal-form .woocommerce-message,
.german-market-withdrawal-form .woocommerce-error {
	margin: 0 0 1.5em;
	padding: 1em 1.25em;
	border-top: 3px solid #7f54b3;
	border-radius: 3px;
	background-color: #f7f6f7;
	list-style: none;
}

.german-market-withdrawal-form .woocommerce-error {
	border-top-color: #b81c23;
}

/* Verifikationszeile (Weg B): Hinweis steht ueber dem Button. */
.german-market-withdrawal-form .skwg-verify-row {
	display: block;
}

.german-market-withdrawal-form .skwg-verify-hint {
	display: block;
	margin-bottom: .6em;
	color: #767676;
	font-size: .9em;
}

.german-market-withdrawal-form .skwg-verify-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75em;
}

.german-market-withdrawal-form .skwg-verify-message {
	font-size: .9em;
}

.german-market-withdrawal-form .skwg-verify-message.skwg-error {
	color: #b81c23;
}

/* Honeypot: sicherheitshalber immer unsichtbar, auch wenn die
   German-Market-Styles einmal nicht laden. */
.german-market-withdrawal-form .withdrawal-form-cc-site-url-wrapper {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
}

.german-market-withdrawal-form .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Blockierte Bestellungen im Dropdown (angemeldete Kunden): sichtbar, aber
   nicht waehlbar – damit Kunden ihre Bestellung wiederfinden. */
.german-market-withdrawal-form option.skwg-option-blocked,
.german-market-withdrawal-form option:disabled {
	color: #999;
}
