/* GH Vloeren: calculator en prijsblok op de productpagina. Mobiel eerst. */

.gh-vl {
	--gh-accent: #a17a5b;
	--gh-accent-dark: #86634a;
	--gh-text: #1a171b;
	--gh-muted: #6b6b6b;
	--gh-line: #e5e5e5;
	--gh-soft: #f6f2ee;
	--gh-beige: #ddd4cc;
	--gh-radius: 6px;
	color: var(--gh-text);
	font-family: inherit;
	margin: 1.25rem 0 1.5rem;
	max-width: 640px;
}

.gh-vl *,
.gh-vl *::before,
.gh-vl *::after {
	box-sizing: border-box;
}

/* Eigen display-regels mogen het hidden-attribuut niet overrulen. */
.gh-vl [hidden] {
	display: none !important;
}

/* Prijsregel bij de producttitel en in het blok. */
.gh-vl-price {
	display: block;
}
.gh-vl-price__main {
	font-size: 1.4em;
	font-weight: 600;
	color: var(--gh-text, #1a171b);
}
.gh-vl-price__unit {
	font-size: 0.7em;
	font-weight: 400;
	color: var(--gh-muted, #6b6b6b);
}
.gh-vl-price__sub {
	display: block;
	font-size: 0.9em;
	color: var(--gh-muted, #6b6b6b);
}
.gh-vl-price--request .gh-vl-price__main {
	font-size: 1.2em;
}

.gh-vl__section {
	border: 1px solid var(--gh-line);
	border-radius: var(--gh-radius);
	padding: 1rem;
	margin: 0 0 1rem;
	background: #fff;
}
.gh-vl__section > legend,
.gh-vl__title {
	font-weight: 600;
	font-size: 1.05em;
	padding: 0 0.35rem;
	margin: 0 0 0.25rem;
}
.gh-vl__intro {
	margin: 0 0 0.75rem;
	color: var(--gh-muted);
	font-size: 0.95em;
}

/* Keuze variant (bijvoorbeeld rolbreedte). */
.gh-vl__variant select {
	width: 100%;
}

/* Velden */
.gh-vl label {
	color: var(--gh-text);
}
.gh-vl input[type="text"],
.gh-vl input[type="number"],
.gh-vl select {
	width: 100%;
	min-height: 44px;
	padding: 0.5rem 0.65rem;
	border: 1px solid #cfcfcf;
	border-radius: var(--gh-radius);
	background: #fff;
	color: var(--gh-text);
	font: inherit;
}
.gh-vl input:focus-visible,
.gh-vl select:focus-visible,
.gh-vl button:focus-visible,
.gh-vl a:focus-visible {
	outline: 2px solid var(--gh-accent);
	outline-offset: 2px;
}
.gh-vl input[aria-invalid="true"] {
	border-color: #b3261e;
}

/* Ruimtes */
.gh-vl__room {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem 0.75rem;
	padding: 0.75rem 0;
	border-bottom: 1px dashed var(--gh-line);
}
.gh-vl__room:first-of-type {
	padding-top: 0;
}
.gh-vl__room-head {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	font-weight: 600;
}
.gh-vl__room-area {
	grid-column: 1 / -1;
	font-size: 0.9em;
	color: var(--gh-muted);
}
.gh-vl__field {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	font-size: 0.9em;
}

/* Specifieker dan de knopstijl van het thema en de Elementor-kit (.elementor-kit-15 button). */
.gh-vl button.gh-vl__link-btn {
	appearance: none;
	background: none;
	border: 0;
	border-radius: 0;
	padding: 0.5rem 0;
	min-height: 44px;
	color: var(--gh-accent-dark);
	font: inherit;
	font-weight: 500;
	text-decoration: underline;
	cursor: pointer;
}
.gh-vl button.gh-vl__link-btn:hover,
.gh-vl button.gh-vl__link-btn:focus {
	background: none;
	color: var(--gh-text);
}
.gh-vl__room-remove {
	min-height: 44px;
	min-width: 44px;
	padding: 0 0.25rem;
	font-weight: 400;
	font-size: 0.9em;
}

.gh-vl__waste {
	display: grid;
	grid-template-columns: 1fr 6.5rem;
	align-items: center;
	gap: 0.75rem;
	margin-top: 0.75rem;
}
.gh-vl__waste .gh-vl__suffix {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.gh-vl__need {
	margin: 0.75rem 0 0;
	padding: 0.75rem;
	background: var(--gh-soft);
	border-radius: var(--gh-radius);
	font-size: 0.95em;
	line-height: 1.5;
}
.gh-vl__need strong {
	color: var(--gh-text);
}

/* Opties */
.gh-vl__opt {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: start;
	gap: 0.25rem 0.65rem;
	padding: 0.65rem 0;
	border-bottom: 1px solid var(--gh-line);
}
.gh-vl__opt:last-child {
	border-bottom: 0;
}
.gh-vl__opt input[type="checkbox"] {
	width: 22px;
	height: 22px;
	margin: 0.1rem 0 0;
	accent-color: var(--gh-accent);
}
.gh-vl__opt-label {
	font-weight: 500;
}
.gh-vl__opt-desc {
	display: block;
	font-size: 0.85em;
	color: var(--gh-muted);
	font-weight: 400;
}
.gh-vl__opt-price {
	white-space: nowrap;
	font-size: 0.95em;
	text-align: right;
}
.gh-vl__opt-extra {
	grid-column: 2 / -1;
	display: grid;
	gap: 0.5rem;
}
.gh-vl__opt-extra[hidden] {
	display: none;
}
.gh-vl__opt--fixed .gh-vl__badge {
	display: inline-block;
	margin-left: 0.35rem;
	padding: 0.05rem 0.45rem;
	border-radius: 999px;
	background: var(--gh-beige);
	font-size: 0.75em;
	font-weight: 500;
	vertical-align: middle;
}

/* Overzicht */
.gh-vl__summary table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	font-size: 0.95em;
}
.gh-vl .gh-vl__summary table tr > th,
.gh-vl .gh-vl__summary table tr > td {
	padding: 0.45rem 0;
	border: 0;
	border-bottom: 1px solid var(--gh-line);
	background: none;
	text-align: left;
	vertical-align: top;
	font-weight: 400;
}
.gh-vl .gh-vl__summary table tbody > tr > th {
	font-weight: 500;
}
.gh-vl .gh-vl__summary table tr > td:last-child {
	text-align: right;
	white-space: nowrap;
	padding-left: 0.75rem;
}
.gh-vl__summary .gh-vl__qty {
	display: block;
	color: var(--gh-muted);
	font-size: 0.85em;
}
.gh-vl .gh-vl__summary table tfoot > tr > td,
.gh-vl .gh-vl__summary table tfoot > tr > th {
	border-bottom: 0;
	padding-top: 0.75rem;
	font-size: 1.15em;
	font-weight: 600;
}
.gh-vl__vat {
	margin: 0.35rem 0 0;
	font-size: 0.85em;
	color: var(--gh-muted);
}
.gh-vl__notice {
	margin: 0.75rem 0 0;
	padding: 0.65rem 0.75rem;
	border-left: 3px solid var(--gh-accent);
	background: var(--gh-soft);
	font-size: 0.9em;
}
.gh-vl__notice[hidden] {
	display: none;
}

/* Knoppen */
.gh-vl__cta,
.gh-vl a.gh-vl__cta,
.gh-vl button.gh-vl__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	padding: 0.75rem 1.25rem;
	border: 0;
	border-radius: var(--gh-radius);
	background-color: var(--gh-accent);
	color: #fff;
	font: inherit;
	font-weight: 500;
	font-size: 1.05em;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease;
}
.gh-vl__cta:hover,
.gh-vl a.gh-vl__cta:hover,
.gh-vl button.gh-vl__cta:hover {
	background-color: var(--gh-accent-dark);
	color: #fff;
}
.gh-vl__cta[disabled],
.gh-vl__cta[aria-disabled="true"] {
	opacity: 0.55;
	cursor: not-allowed;
}
.gh-vl__cta-secondary {
	display: block;
	margin-top: 0.5rem;
	text-align: center;
	color: var(--gh-accent-dark);
	min-height: 44px;
	line-height: 44px;
}
.gh-vl__actions {
	margin-top: 1rem;
}

/* Kenmerken (merk alleen als de instelling aan staat) */
.gh-vl__specs {
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
	font-size: 0.9em;
	color: var(--gh-muted);
}

/* Winkelwagen: niet-bewerkbare hoeveelheid en onderregels */
.gh-vl-qty {
	display: inline-block;
	min-width: 3rem;
	text-align: center;
}
.woocommerce-cart-form .gh-vl-child td.product-name {
	padding-left: 1.5rem;
}

@media (min-width: 600px) {
	.gh-vl__room {
		grid-template-columns: 1fr 1fr;
	}
	.gh-vl__section {
		padding: 1.25rem;
	}
	.gh-vl__cta,
	.gh-vl a.gh-vl__cta,
	.gh-vl button.gh-vl__cta {
		width: auto;
		min-width: 260px;
		display: inline-flex;
	}
	.gh-vl__cta-secondary {
		display: inline-block;
		margin: 0 0 0 1rem;
	}
}
