/* Herroeping for WooCommerce — form styles. Prefixed + low specificity to survive theme CSS. */

.m2mhr-wrap {
	max-width: 640px;
	margin: 0 auto;
}

.m2mhr-intro,
.m2mhr-statement {
	margin: 0 0 1.25em;
}

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

.m2mhr-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35em;
}

.m2mhr-field input[type="text"],
.m2mhr-field input[type="email"],
.m2mhr-field select,
.m2mhr-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.6em 0.7em;
	border: 1px solid #c7c7c7;
	border-radius: 4px;
	font-size: 1rem;
}

/* Honeypot: visually + a11y hidden, but not display:none (bots skip those). */
.m2mhr-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.m2mhr-actions {
	display: flex;
	gap: 0.75em;
	margin-top: 1.25em;
}

.m2mhr-btn {
	display: inline-block;
	padding: 0.7em 1.4em;
	border: 1px solid #888;
	border-radius: 4px;
	background: #f3f3f3;
	color: #222;
	font-size: 1rem;
	cursor: pointer;
}

.m2mhr-btn-primary {
	background: #2b6cb0;
	border-color: #2b6cb0;
	color: #fff;
}

.m2mhr-btn[disabled] {
	opacity: 0.6;
	cursor: default;
}

.m2mhr-message {
	margin-top: 1em;
}

.m2mhr-message-error {
	color: #b00020;
}

.m2mhr-message-ok {
	color: #1a7f37;
}

.m2mhr-summary-list {
	list-style: none;
	margin: 0 0 1em;
	padding: 0;
}

.m2mhr-summary-list li {
	margin: 0 0 0.4em;
}

.m2mhr-note {
	background: #fff8e1;
	border: 1px solid #f0d98c;
	border-radius: 4px;
	padding: 0.75em 1em;
	margin: 0 0 1em;
}

.m2mhr-success {
	border: 1px solid #b7e1c0;
	background: #f0fbf3;
	border-radius: 6px;
	padding: 1.25em 1.5em;
}

/* Product selection table */
.m2mhr-lines {
	margin: 0 0 1em;
}

.m2mhr-lines-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.m2mhr-lines-table th,
.m2mhr-lines-table td {
	padding: 0.6em 0.75em;
	text-align: left;
	border-bottom: 1px solid #e2e2e2;
	vertical-align: middle;
}

.m2mhr-lines-table thead th {
	font-weight: 600;
	border-bottom: 2px solid #cfcfcf;
	white-space: nowrap;
}

.m2mhr-lines-table .m2mhr-line-ordered,
.m2mhr-lines-table th:nth-child(2),
.m2mhr-lines-table .m2mhr-line-qty,
.m2mhr-lines-table th:nth-child(3) {
	width: 1%;
	white-space: nowrap;
	text-align: center;
}

.m2mhr-lines-table .m2mhr-line-name {
	width: 100%;
}

.m2mhr-lines-table .m2mhr-qty {
	width: 4.5em;
	max-width: 100%;
	text-align: center;
	padding: 0.3em 0.4em;
}

.m2mhr-lines-table tbody tr:last-child td {
	border-bottom: none;
}

/* Visually-hidden label, kept for screen readers. */
.m2mhr-wrap .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
	word-wrap: normal !important;
}
