/**
 * BEWISE Herroepingsknop - frontend styles.
 *
 * Vanilla CSS, no framework dependencies. Designed to be unobtrusive and
 * inheritable from theme typography.
 */

.bwhk-button {
	display: inline-block;
	padding: 0.625em 1.25em;
	background: #2271b1;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 500;
	line-height: 1.4;
	transition: background-color 0.15s ease;
}

.bwhk-button:hover,
.bwhk-button:focus {
	background: #135e96;
	color: #fff;
}

.bwhk-footer-button-wrapper {
	text-align: center;
	padding: 1.5em 1em;
}

/* View-order endpoint: show our button next to WC's "Order again". */
.woocommerce p.order-again,
.woocommerce p.bwhk-order-action {
	display: inline-block;
	margin-right: 0.5em;
	margin-bottom: 0;
}

.bwhk-lookup-form,
.bwhk-herroeping-form-wrapper,
.bwhk-confirm-step,
.bwhk-success {
	max-width: 640px;
	margin: 2em auto;
	padding: 2em;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
}

.bwhk-lookup-form h2,
.bwhk-herroeping-form-wrapper h2,
.bwhk-confirm-step h2,
.bwhk-success h2 {
	margin-top: 0;
}

.bwhk-form label {
	display: block;
	font-weight: 500;
	margin-bottom: 0.25em;
}

.bwhk-form input[type="text"],
.bwhk-form input[type="number"],
.bwhk-form input[type="email"],
.bwhk-form select,
.bwhk-form textarea {
	width: 100%;
	padding: 0.625em;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	font-size: 16px;
	box-sizing: border-box;
}

.bwhk-form input:focus,
.bwhk-form select:focus,
.bwhk-form textarea:focus {
	outline: 2px solid #2271b1;
	outline-offset: 1px;
}

.bwhk-form button,
.bwhk-button-primary {
	background: #2271b1;
	color: #fff;
	border: none;
	padding: 0.75em 1.5em;
	border-radius: 4px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 500;
	transition: background-color 0.15s ease;
}

.bwhk-form button:hover,
.bwhk-form button:focus,
.bwhk-button-primary:hover,
.bwhk-button-primary:focus {
	background: #135e96;
}

.bwhk-link-secondary {
	margin-left: 1em;
	color: #2271b1;
	text-decoration: underline;
}

.bwhk-error {
	padding: 1em 1.25em;
	background: #fcf0f1;
	border-left: 4px solid #d63638;
	margin-bottom: 1.25em;
	border-radius: 4px;
}

.bwhk-uitsluitingen {
	padding: 0.85em 1em;
	background: #fffbe5;
	border-left: 4px solid #dba617;
	margin: 1em 0 1.5em;
	border-radius: 4px;
	font-size: 0.95em;
}

.bwhk-items-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.5em;
}

.bwhk-items-table th,
.bwhk-items-table td {
	padding: 0.75em;
	text-align: left;
	border-bottom: 1px solid #eee;
}

.bwhk-items-table th {
	background: #f7f7f7;
	font-weight: 600;
}

.bwhk-items-table td label {
	font-weight: 400;
	cursor: pointer;
	margin: 0;
}

.bwhk-items-table .bwhk-col-num,
.bwhk-items-table .bwhk-col-qty {
	text-align: right;
}

.bwhk-qty-input {
	width: 80px;
	padding: 0.4em 0.5em;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	font-size: 15px;
	text-align: right;
	box-sizing: border-box;
}

.bwhk-qty-input:focus {
	outline: 2px solid #2271b1;
	outline-offset: 1px;
}

.bwhk-reason-row td {
	background: #f7f7f7;
	border-top: none;
	padding-top: 0.75em;
	padding-bottom: 1em;
}

.bwhk-reason-row label {
	display: block;
	font-weight: 500;
	margin-bottom: 0.4em;
	font-size: 0.9em;
	color: #555;
}

.bwhk-reason-row select {
	width: 100%;
	max-width: 360px;
	padding: 0.5em;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	font-size: 15px;
	box-sizing: border-box;
}

.bwhk-confirm-items {
	margin: 1em 0;
	padding-left: 1.25em;
}

.bwhk-confirm-items li {
	margin-bottom: 0.25em;
}

.bwhk-confirm-statement {
	padding: 1em;
	background: #fffbe5;
	border-left: 4px solid #dba617;
	border-radius: 4px;
}

.bwhk-confirm-actions {
	display: flex;
	align-items: center;
	gap: 1em;
	margin-top: 1.5em;
}

@media (max-width: 600px) {
	.bwhk-lookup-form,
	.bwhk-herroeping-form-wrapper,
	.bwhk-confirm-step,
	.bwhk-success {
		padding: 1.25em;
	}

	.bwhk-confirm-actions {
		flex-direction: column;
		align-items: flex-start;
	}

	.bwhk-link-secondary {
		margin-left: 0;
	}
}
