/**
 * CSM Core — withdrawal function, minimal front styles.
 *
 * Just enough for the form to be usable on any theme: the look and feel
 * belongs to the child theme (stable classes: .csm-withdrawal*,
 * .csm-withdrawal-order*, .csm-withdrawal-button, .csm-withdrawal-link).
 */

/* Honeypot: off screen, still in the DOM (display:none is skipped by some bots). */
.csm-withdrawal__hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.csm-withdrawal__section {
	margin: 0 0 1.5em;
	padding: 0;
	border: 0;
	min-width: 0;
}

.csm-withdrawal__legend {
	margin: 0 0 0.5em;
	padding: 0;
	font-weight: 600;
}

.csm-withdrawal__field label,
.csm-withdrawal__field input,
.csm-withdrawal__field textarea {
	display: block;
	max-width: 100%;
}

.csm-withdrawal__field input[type="text"],
.csm-withdrawal__field input[type="email"],
.csm-withdrawal__field textarea {
	width: 100%;
	max-width: 32em;
	box-sizing: border-box;
}

.csm-withdrawal__help {
	display: block;
	font-size: 0.875em;
}

.csm-withdrawal__items {
	margin: 0.5em 0 1em;
	padding: 0;
	list-style: none;
}

.csm-withdrawal__item {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25em 1em;
	align-items: center;
	margin: 0 0 0.5em;
}

.csm-withdrawal__qty input {
	width: 5em;
	display: inline-block;
}

.csm-withdrawal__error {
	color: #b32d2e;
	margin-top: -0.5em;
}

.csm-withdrawal__field input[aria-invalid="true"],
.csm-withdrawal__field textarea[aria-invalid="true"] {
	border-color: #b32d2e;
}

.csm-withdrawal__notice {
	margin: 0 0 1.5em;
	padding: 0.75em 1em;
	border-left: 4px solid currentColor;
}

.csm-withdrawal__notice--error,
.csm-withdrawal__notice--warning {
	color: #8a2424;
}

.csm-withdrawal__notice p {
	margin: 0;
}

.csm-withdrawal__order-list {
	margin: 0 0 1.5em;
	padding: 0;
	list-style: none;
}

.csm-withdrawal__order-item {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em 1em;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 0.75em;
}

.csm-withdrawal__declaration {
	width: 100%;
	margin: 0 0 1.5em;
	border-collapse: collapse;
}

.csm-withdrawal__declaration th,
.csm-withdrawal__declaration td {
	padding: 0.5em;
	text-align: left;
	vertical-align: top;
}

@media print {
	.csm-withdrawal__actions {
		display: none;
	}
}
