/**
 * WP4U Herroepingsknop, frontend styling.
 * Webplace4u standaard: rem + clamp() voor typografie, overflow-wrap +
 * hyphens op headings, mobile-first responsive.
 */

.wp4u-hrk-wrap {
	max-width: 40rem;
	margin: 0 auto;
}

.wp4u-hrk-wrap h2 {
	font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.125rem);
	line-height: 1.2;
	margin-bottom: 0.75rem;
	overflow-wrap: break-word;
	hyphens: auto;
}

.wp4u-hrk-wrap h3 {
	font-size: clamp(1.25rem, 1.05rem + 1vw, 1.625rem);
	line-height: 1.25;
	overflow-wrap: break-word;
	hyphens: auto;
}

.wp4u-hrk-wrap p,
.wp4u-hrk-wrap label,
.wp4u-hrk-wrap td,
.wp4u-hrk-wrap th {
	font-size: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
	line-height: 1.6;
}

.wp4u-hrk-form p {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	margin-bottom: 1.25rem;
}

.wp4u-hrk-form label {
	font-weight: 600;
}

.wp4u-hrk-req {
	color: #c0392b;
}

.wp4u-hrk-form input[type="text"],
.wp4u-hrk-form input[type="email"],
.wp4u-hrk-form textarea {
	width: 100%;
	padding: 0.625rem 0.75rem;
	font-size: 1rem;
	border: 1px solid #b9b9b9;
	border-radius: 0.375rem;
	box-sizing: border-box;
}

.wp4u-hrk-form input:focus,
.wp4u-hrk-form textarea:focus {
	outline: 2px solid #004973;
	outline-offset: 1px;
	border-color: #004973;
}

.wp4u-hrk-hint {
	font-size: 0.875rem;
	color: #666;
}

.wp4u-hrk-knop {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	font-size: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
	font-weight: 600;
	cursor: pointer;
	border: none;
	border-radius: 0.375rem;
}

.wp4u-hrk-acties {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
}

.wp4u-hrk-terug {
	font-size: 0.9375rem;
}

.wp4u-hrk-overzicht {
	width: 100%;
	border-collapse: collapse;
	margin: 1rem 0 1.5rem;
}

.wp4u-hrk-overzicht th,
.wp4u-hrk-overzicht td {
	text-align: left;
	padding: 0.5rem 0.75rem;
	border-bottom: 1px solid #e3e3e3;
	vertical-align: top;
}

.wp4u-hrk-overzicht th {
	width: 35%;
	font-weight: 600;
}

.wp4u-hrk-melding {
	padding: 1rem 1.25rem;
	border-radius: 0.5rem;
	margin-bottom: 1.5rem;
}

.wp4u-hrk-melding ul {
	margin: 0;
	padding-left: 1.25rem;
}

.wp4u-hrk-succes {
	background: #eaf6ec;
	border: 1px solid #3a9d5d;
}

.wp4u-hrk-fout {
	background: #fdecea;
	border: 1px solid #c0392b;
}

.wp4u-hrk-footer-link {
	text-align: center;
	padding: 1rem 0;
	font-size: 0.875rem;
}

@media (min-width: 48rem) {
	.wp4u-hrk-overzicht th {
		width: 30%;
	}
}

/* Productselectie bij herroeping van een specifieke order. */
.wp4u-hrk-items {
	border: 1px solid #d9e2e8;
	border-radius: 0.5rem;
	padding: 1rem 1.25rem;
	margin-bottom: 1.25rem;
}

.wp4u-hrk-items legend {
	font-weight: 600;
	padding: 0 0.5rem;
}

.wp4u-hrk-item {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin-top: 0.5rem;
	font-weight: 400;
}

.wp4u-hrk-item input {
	margin-top: 0.25rem;
}
