/*
 * EU Right of Withdrawal — structural layout only.
 * Colors, typography, buttons and inputs are inherited from the active
 * theme (buttons carry the theme's own wp-element-button / button classes).
 */
.erw-wrap {
	max-width: 720px;
}

.erw-step {
	margin: 2em 0;
}

.erw-field {
	margin: 0 0 1em;
}

.erw-field label {
	display: block;
	margin-bottom: 0.25em;
}

.erw-field input[type="text"] {
	max-width: 420px;
	width: 100%;
}

.erw-field textarea {
	width: 100%;
}

.erw-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em;
	margin: 1.25em 0 0;
}

.erw-button:disabled {
	opacity: 0.6;
	cursor: default;
}

/* CAPTCHA */
.erw-captcha-challenge {
	display: flex;
	align-items: center;
	gap: 0.5em;
	margin-bottom: 0.5em;
}

.erw-captcha-img {
	display: block;
	max-height: 68px;
	width: auto;
}

.erw-captcha-refresh {
	background: none;
	border: 1px solid currentColor;
	border-radius: 4px;
	color: inherit;
	cursor: pointer;
	font-size: 1.1em;
	line-height: 1;
	padding: 0.25em 0.5em;
}

/* Honeypot — hidden from humans, present for bots. */
.erw-hp {
	position: absolute !important;
	left: -9999px !important;
	height: 1px;
	overflow: hidden;
}

/* Messages */
.erw-message:empty {
	display: none;
}

.erw-message {
	margin-top: 0.75em;
	padding: 0.6em 0.9em;
	border-left: 3px solid currentColor;
}

.erw-message.erw-error {
	color: #b32d2e;
}

/* Item list */
.erw-order-summary {
	font-weight: 600;
}

.erw-items {
	list-style: none;
	margin: 0 0 1em;
	padding: 0;
}

.erw-item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75em;
	padding: 0.6em 0;
	border-bottom: 1px solid color-mix(in srgb, currentColor 20%, transparent);
}

.erw-item label {
	display: flex;
	align-items: center;
	gap: 0.5em;
	margin: 0;
	flex: 1 1 auto;
}

.erw-item-qty-input {
	width: 5em;
}

.erw-item-ineligible {
	opacity: 0.55;
}

.erw-item-note {
	font-size: 0.85em;
	font-style: italic;
}
