/*
 * Voucher Code Bridge — product page voucher configurator (G10).
 *
 * Structural only: spacing, grouping per voucher, conditional visibility
 * and the counter. Typography, colours and input styling come from the
 * theme and WooCommerce.
 */

.vcb-configurator {
	/* Own row inside flex-based add-to-cart forms (quantity + button stay together). */
	flex: 0 0 100%;
	width: 100%;
	max-width: 100%;
	margin: 0 0 1.5em;
}

.vcb-configurator [hidden] {
	display: none !important;
}

.vcb-configurator__send-to-self {
	margin: 0 0 1em;
}

.vcb-configurator__send-to-self-help {
	display: none;
	margin-top: 0.25em;
	font-size: 0.875em;
}

/* Shown while "Send the gift voucher to myself" is checked (works without JavaScript). */
.vcb-configurator__send-to-self-input:checked ~ .vcb-configurator__send-to-self-help {
	display: block;
}

.vcb-voucher {
	min-width: 0;
	margin: 0 0 1em;
	padding: 0.75em 1em;
	border: 1px solid currentColor;
	border-color: rgba(127, 127, 127, 0.4);
}

.vcb-voucher__legend {
	padding: 0 0.25em;
	font-weight: 600;
}

.vcb-voucher__field {
	margin: 0 0 0.75em;
}

.vcb-voucher__field:last-child {
	margin-bottom: 0;
}

.vcb-voucher__field label {
	display: block;
}

.vcb-voucher__field input[type="text"],
.vcb-voucher__field input[type="email"],
.vcb-voucher__field textarea {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
}

.vcb-voucher__message-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0 1em;
	font-size: 0.875em;
}

.vcb-voucher__counter--over {
	font-weight: 600;
}

.vcb-voucher__error {
	display: block;
	margin-top: 0.25em;
}

.vcb-voucher__message-feedback {
	display: block;
}
