/*
 * Huisstijl klantkant hiblom.be (02-10-2026, Sonnet). Wordt alleen geladen als optie hb_huisstijl_aan = 1,
 * nooit in wp-admin en nooit in het beheer (dashboard-beheer). Alle regels staan onder body.hb-huisstijl,
 * zodat ze het thema en de plugins overrulen zonder overal !important te hoeven gebruiken.
 *
 * Kleuren: oranje = var(--button) van het thema (#d3591c). Donker = #333333. Lichte achtergrond = #f6f4f2.
 * Inhoud: 1 winkelmand, 2 productpagina, 3 banner, 4 knopstijl, 5 contact/cadeaubontabel,
 *         6 tikdoelen + accountmenu, 7 lettertype Verdana weg.
 */

body.hb-huisstijl {
	--hb-oranje: var(--button, #d3591c);
	--hb-oranje-donker: #b84a14;
	--hb-grijs: #333333;
	--hb-licht: #f6f4f2;
	--hb-rand: #e1dfdd;
}

/* ---------- 4. Eén knopstijl: oranje pil (hoofd) en omlijnde pil (tweede) ---------- */

/* Omlijnde pil: tweede knop. */
body.hb-huisstijl .hb-knop-tweede,
body.hb-huisstijl.woocommerce-cart button[name="update_cart"],
body.hb-huisstijl #wpmc-prev,
body.hb-huisstijl .wpmc-nav-button.button-inactive {
	background: transparent;
	color: var(--hb-oranje);
	border: 2px solid var(--hb-oranje);
	border-radius: 50px;
	opacity: 1;
}
body.hb-huisstijl.woocommerce-cart button[name="update_cart"]:hover,
body.hb-huisstijl #wpmc-prev:hover {
	background: var(--hb-oranje);
	color: #fff;
	border-color: var(--hb-oranje);
}

/* Cadeaubon-tegels (abonnement-tabel en vrij bedrag): pillen i.p.v. vierkante tegels. */
body.hb-huisstijl .custom-amount-button,
body.hb-huisstijl .ywgc-predefined-amount-button,
body.hb-huisstijl .ywgc-manual-amount-container,
body.hb-huisstijl .gift-cards-list .ywgc-amount-buttons {
	border-radius: 50px !important;
}
body.hb-huisstijl .custom-amount-button,
body.hb-huisstijl .ywgc-predefined-amount-button {
	background: transparent;
	color: var(--hb-grijs);
	border: 2px solid var(--hb-oranje);
	padding: 8px 18px;
	min-height: 40px;
	line-height: 1.2;
	font-size: 14px;
	cursor: pointer;
}
body.hb-huisstijl .custom-amount-button:hover,
body.hb-huisstijl .ywgc-predefined-amount-button:hover {
	background: var(--hb-licht);
	color: var(--hb-grijs);
	border-color: var(--hb-oranje);
}
body.hb-huisstijl .custom-amount-button.selected,
body.hb-huisstijl .ywgc-predefined-amount-button.ywgc-selected-amount,
body.hb-huisstijl .ywgc-predefined-amount-button.selected_button {
	background: var(--hb-oranje);
	color: #fff;
	border-color: var(--hb-oranje);
}
body.hb-huisstijl #ywgc-manual-amount {
	border-radius: 50px !important;
	text-align: center;
}

/* Nieuwsbrief MailerLite "Inschrijven": zelfde pil als de andere hoofdknoppen. */
html body #mlb2-13897147.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button.primary {
	background-color: var(--button, #d3591c) !important;
	border: 2px solid var(--button, #d3591c) !important;
	border-radius: 50px !important;
	font-family: inherit !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	min-height: 44px;
	padding: 10px 24px !important;
}
html body #mlb2-13897147.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button.primary:hover {
	background-color: #333333 !important;
	border-color: #333333 !important;
}

/* Afrekenen: stappenbalk oranje i.p.v. blauw en "Volgende" als gewone oranje hoofdknop. */
body.hb-huisstijl .wpmc-tabs-wrapper .wpmc-tab-item.current::before,
body.hb-huisstijl .wpmc-tabs-wrapper .wpmc-tab-item.visited::before {
	border-bottom-color: var(--hb-oranje);
}
body.hb-huisstijl .wpmc-tabs-wrapper .wpmc-tab-item.current .wpmc-tab-number,
body.hb-huisstijl .wpmc-tabs-wrapper .wpmc-tab-item.visited .wpmc-tab-number {
	border-color: var(--hb-oranje);
	color: var(--hb-oranje);
}
body.hb-huisstijl .wpmc-tabs-wrapper .wpmc-tab-item.current,
body.hb-huisstijl .wpmc-tabs-wrapper .wpmc-tab-item.current .wpmc-tab-text {
	color: var(--hb-oranje);
}
body.hb-huisstijl #wpmc-next,
body.hb-huisstijl #wpmc-next.button-active,
body.hb-huisstijl .wpmc-nav-button.button-active {
	background: var(--hb-oranje);
	color: #fff;
	border: 2px solid var(--hb-oranje);
	border-radius: 50px;
}
body.hb-huisstijl #wpmc-next:hover,
body.hb-huisstijl .wpmc-nav-button.button-active:hover {
	background: var(--hb-grijs);
	border-color: var(--hb-grijs);
	color: #fff;
}

/* ---------- 7. Lettertype: Verdana (jQuery UI datumkiezer) weg ---------- */
body.hb-huisstijl .ui-widget,
body.hb-huisstijl .ui-widget input,
body.hb-huisstijl .ui-widget select,
body.hb-huisstijl .ui-widget textarea,
body.hb-huisstijl .ui-widget button,
body.hb-huisstijl .ui-datepicker {
	font-family: inherit;
}
body.hb-huisstijl .ui-datepicker .ui-state-active,
body.hb-huisstijl .ui-datepicker .ui-state-highlight.ui-state-active {
	background: var(--hb-oranje);
	border-color: var(--hb-oranje);
	color: #fff;
}

/* ---------- 6. Tikdoelen minimaal 40 px ---------- */
body.hb-huisstijl .reset_variations,
body.hb-huisstijl .add-recipient,
body.hb-huisstijl .woocommerce-Address-title a.edit {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 6px 4px;
}
body.hb-huisstijl .reset_variations {
	min-width: 40px;
	justify-content: center;
}
body.hb-huisstijl .add-recipient {
	padding: 6px 14px;
	border: 2px solid var(--hb-oranje);
	border-radius: 50px;
	text-decoration: none;
	color: var(--hb-oranje);
}
body.hb-huisstijl .add-recipient:hover {
	background: var(--hb-oranje);
	color: #fff;
}
/* Wachtwoord tonen/verbergen: knop zelf blijft klein, het tikvlak wordt groter. */
body.hb-huisstijl .show-password-input {
	position: absolute;
}
body.hb-huisstijl .show-password-input::after {
	content: "";
	position: absolute;
	inset: -14px -10px;
}
body.hb-huisstijl .woocommerce-cart-form .product-remove a.remove {
	min-width: 40px;
	min-height: 40px;
}
body.hb-huisstijl .woocommerce-shipping-methods input[type="radio"],
body.hb-huisstijl .woocommerce-checkout input[type="radio"],
body.hb-huisstijl .woocommerce-cart input[type="radio"],
body.hb-huisstijl .woocommerce-cart input[type="checkbox"],
body.hb-huisstijl .woocommerce-checkout input[type="checkbox"] {
	accent-color: #d3591c;
}

/* ---------- 1. Winkelmand (alle breedtes: radio's en updateknop) ---------- */
body.hb-huisstijl .woocommerce-shipping-methods {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: left;
}
body.hb-huisstijl .woocommerce-shipping-methods li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 8px;
	text-align: left;
}
body.hb-huisstijl .woocommerce-shipping-methods li input[type="radio"] {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	margin: 2px 0 0;
}
body.hb-huisstijl .woocommerce-shipping-methods li label {
	margin: 0;
	flex: 1 1 auto;
	text-align: left;
	line-height: 1.4;
	min-height: 28px;
	cursor: pointer;
}
body.hb-huisstijl.woocommerce-cart button[name="update_cart"][disabled],
body.hb-huisstijl.woocommerce-cart button[name="update_cart"][aria-disabled="true"] {
	background: transparent;
	color: var(--hb-oranje);
	border: 2px solid var(--hb-oranje);
	opacity: .55;
}
body.hb-huisstijl.woocommerce-cart button[name="update_cart"] {
	background: transparent;
}

/* ---------- 1/2/3/5/6 : gsm en kleine tablet ---------- */
@media (max-width: 768px) {

	/* 1. Winkelmand als kaartjes */
	body.hb-huisstijl.woocommerce-cart table.shop_table.cart {
		border: 0;
		background: transparent;
	}
	body.hb-huisstijl.woocommerce-cart table.shop_table.cart tbody {
		display: block;
	}
	body.hb-huisstijl.woocommerce-cart table.shop_table.cart tr.cart_item {
		display: grid;
		grid-template-columns: 76px minmax(0, 1fr) 44px;
		grid-template-areas:
			"thumb name remove"
			"thumb price price"
			"thumb qty subtotal";
		column-gap: 12px;
		row-gap: 4px;
		align-items: center;
		background: #fff;
		border: 1px solid var(--hb-rand);
		border-radius: 12px;
		padding: 12px;
		margin: 0 0 12px;
	}
	body.hb-huisstijl.woocommerce-cart table.shop_table.cart tr.cart_item td {
		display: block;
		border: 0;
		padding: 0;
		background: transparent !important;
		text-align: left !important;
		min-width: 0;
	}
	body.hb-huisstijl.woocommerce-cart table.shop_table.cart tr.cart_item td::before {
		display: none;
	}
	body.hb-huisstijl.woocommerce-cart table.shop_table.cart tr.cart_item td.product-thumbnail {
		display: block;
		grid-area: thumb;
		align-self: start;
	}
	body.hb-huisstijl.woocommerce-cart table.shop_table.cart tr.cart_item td.product-thumbnail img {
		width: 76px;
		height: 76px;
		object-fit: cover;
		border-radius: 8px;
		display: block;
	}
	body.hb-huisstijl.woocommerce-cart table.shop_table.cart tr.cart_item td.product-name {
		grid-area: name;
		font-weight: 600;
		line-height: 1.3;
		overflow-wrap: anywhere;
	}
	body.hb-huisstijl.woocommerce-cart table.shop_table.cart tr.cart_item td.product-remove {
		grid-area: remove;
		justify-self: end;
		align-self: start;
	}
	body.hb-huisstijl.woocommerce-cart table.shop_table.cart tr.cart_item td.product-price {
		grid-area: price;
		color: var(--text-light, #837b79);
		font-size: 14px;
	}
	body.hb-huisstijl.woocommerce-cart table.shop_table.cart tr.cart_item td.product-price .subscription-details {
		font-size: 13px;
	}
	body.hb-huisstijl.woocommerce-cart table.shop_table.cart tr.cart_item td.product-quantity {
		grid-area: qty;
		justify-self: start;
	}
	body.hb-huisstijl.woocommerce-cart table.shop_table.cart tr.cart_item td.product-quantity input.qty {
		width: 72px;
		min-height: 40px;
		text-align: center;
	}
	/* Abonnement: geen aantalveld, dus ook geen leeg "Aantal:". */
	body.hb-huisstijl.woocommerce-cart table.shop_table.cart tr.cart_item td.product-quantity:has(input[type="hidden"]) {
		display: none;
	}
	body.hb-huisstijl.woocommerce-cart table.shop_table.cart tr.cart_item td.product-subtotal {
		grid-area: subtotal;
		justify-self: end;
		text-align: right !important;
		font-weight: 600;
		white-space: normal;
	}
	/* Bij een abonnement (geen aantal) staat het subtotaal over de volle breedte onder de prijs: de prijs is dan al het totaal. */
	body.hb-huisstijl.woocommerce-cart table.shop_table.cart tr.cart_item:has(td.product-quantity input[type="hidden"]) {
		grid-template-areas:
			"thumb name remove"
			"thumb price price"
			"thumb subtotal subtotal";
	}
	body.hb-huisstijl.woocommerce-cart table.shop_table.cart tr.cart_item:has(td.product-quantity input[type="hidden"]) td.product-subtotal {
		justify-self: start;
		text-align: left !important;
	}
	body.hb-huisstijl.woocommerce-cart table.shop_table.cart tr.cart_item td.product-subtotal .subscription-details {
		display: block;
		font-weight: 400;
		font-size: 13px;
	}

	/* Actierij: cadeaubon- en couponveld netjes onder elkaar, knoppen over de volle breedte. */
	body.hb-huisstijl.woocommerce-cart table.shop_table.cart tr:not(.cart_item) {
		display: block;
		background: transparent;
	}
	body.hb-huisstijl.woocommerce-cart table.shop_table.cart td.actions {
		display: block;
		padding: 0;
		border: 0;
		background: transparent !important;
		text-align: left !important;
	}
	body.hb-huisstijl.woocommerce-cart table.shop_table.cart td.actions .coupon {
		display: flex;
		flex-direction: column;
		gap: 10px;
		float: none;
		padding: 0 0 12px;
		width: 100%;
	}
	body.hb-huisstijl.woocommerce-cart table.shop_table.cart td.actions .coupon .input-text,
	body.hb-huisstijl.woocommerce-cart table.shop_table.cart td.actions .coupon input,
	body.hb-huisstijl.woocommerce-cart table.shop_table.cart td.actions .coupon .button,
	body.hb-huisstijl.woocommerce-cart table.shop_table.cart td.actions .button {
		width: 100%;
		float: none;
		margin: 0;
		box-sizing: border-box;
		min-height: 46px;
		white-space: normal;
	}
	body.hb-huisstijl.woocommerce-cart table.shop_table.cart td.actions .coupon .input-text {
		text-overflow: ellipsis;
	}
	body.hb-huisstijl.woocommerce-cart table.shop_table.cart td.actions > button[name="update_cart"] {
		margin: 0;
	}

	/* Totalen en verzendkeuze: label links, waarde eronder of rechts, niets rechts uitgelijnd. */
	body.hb-huisstijl.woocommerce-cart .cart_totals table.shop_table_responsive tr td {
		text-align: right !important;
	}
	body.hb-huisstijl.woocommerce-cart .cart_totals tr.shipping td,
	body.hb-huisstijl.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals td {
		text-align: left !important;
		float: none;
		width: 100%;
	}
	body.hb-huisstijl.woocommerce-cart .cart_totals tr.shipping td::before,
	body.hb-huisstijl.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals td::before {
		float: none;
		display: block;
		margin-bottom: 8px;
	}
	body.hb-huisstijl.woocommerce-cart .woocommerce-shipping-methods li label {
		font-size: 15px;
	}

	/* 2. Productpagina: label boven de keuzelijst, placeholder niet afgekapt, geen "Totaal € 0,00" zonder keuze. */
	body.hb-huisstijl.single-product table.variations,
	body.hb-huisstijl.single-product table.variations tbody,
	body.hb-huisstijl.single-product table.variations tr,
	body.hb-huisstijl.single-product table.variations th,
	body.hb-huisstijl.single-product table.variations td {
		display: block;
		width: 100%;
		padding-left: 0;
		padding-right: 0;
	}
	body.hb-huisstijl.single-product table.variations th.label {
		padding-bottom: 4px;
		text-align: left;
	}
	body.hb-huisstijl.single-product table.variations th.label label {
		display: block;
		margin: 0;
		line-height: 1.3;
	}
	body.hb-huisstijl.single-product table.variations td.value select {
		width: 100%;
		max-width: 100%;
		min-height: 46px;
		text-overflow: ellipsis;
	}
	body.hb-huisstijl.single-product table.variations td.value {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 8px;
	}
	body.hb-huisstijl.single-product .zaddon_option input[type="text"],
	body.hb-huisstijl.single-product .zaddon_option textarea {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		text-overflow: ellipsis;
	}
	body.hb-huisstijl.single-product .zaddon_option input::placeholder,
	body.hb-huisstijl.single-product .zaddon_option textarea::placeholder {
		font-size: 14px;
		overflow: visible;
		text-overflow: clip;
	}
	body.hb-huisstijl.single-product .woocommerce-variation-add-to-cart-disabled .zaddon_data {
		display: none;
	}
	body.hb-huisstijl.single-product .zaddon_data {
		margin: 0 0 12px;
	}
	body.hb-huisstijl.single-product .woocommerce-variation-add-to-cart,
	body.hb-huisstijl.single-product form.cart:not(.variations_form) {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 10px;
	}
	body.hb-huisstijl.single-product .woocommerce-variation-add-to-cart > .zaddon-type-container,
	body.hb-huisstijl.single-product .woocommerce-variation-add-to-cart > .zaddon_data {
		flex: 0 0 100%;
	}
	body.hb-huisstijl.single-product .woocommerce-variation-add-to-cart .quantity input.qty,
	body.hb-huisstijl.single-product form.cart .quantity input.qty {
		min-height: 46px;
		width: 72px;
	}
	body.hb-huisstijl.single-product .woocommerce-variation-add-to-cart .single_add_to_cart_button,
	body.hb-huisstijl.single-product form.cart .single_add_to_cart_button {
		flex: 1 1 0;
		min-width: 0;
		margin: 0;
	}
	body.hb-huisstijl.single-product .zaddon-open {
		min-width: 40px;
		min-height: 40px;
	}

	/* 3. Banner bovenaan: kleiner en compact, groter sluitkruisje. */
	body.hb-huisstijl .popup-info {
		padding: 4px 0;
		font-size: 12px;
		line-height: 1.25;
	}
	body.hb-huisstijl .popup-info .inner {
		padding-right: 52px;
		min-height: 44px;
		align-items: center;
	}
	body.hb-huisstijl .popup-info .inner .text,
	body.hb-huisstijl .popup-info .inner .text p {
		font-size: 12px;
		line-height: 1.25;
		letter-spacing: 0;
		margin: 0;
		padding-right: 0;
		text-align: left !important;
	}
	body.hb-huisstijl .popup-info .close {
		position: absolute;
		top: 50%;
		right: 4px;
		transform: translateY(-50%);
		width: 44px;
		height: 44px;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 0;
	}
	body.hb-huisstijl .popup-info .close svg {
		width: 22px;
		height: 22px;
	}

	/* 6. Mijn account: alle onderdelen zichtbaar in twee kolommen, geen verborgen horizontale strook. */
	body.hb-huisstijl.woocommerce-account .woocommerce-MyAccount-navigation ul {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
		overflow: visible !important;
		flex-wrap: wrap;
		padding: 12px !important;
		border-bottom: 0;
	}
	body.hb-huisstijl.woocommerce-account .woocommerce-MyAccount-navigation ul li {
		margin: 0;
		white-space: normal;
		min-width: 0;
	}
	body.hb-huisstijl.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
		display: flex !important;
		align-items: center;
		justify-content: center;
		text-align: center;
		min-height: 44px;
		padding: 8px 10px !important;
		white-space: normal !important;
		background: #fff;
		border: 1px solid var(--hb-rand);
		border-radius: 50px;
		line-height: 1.2;
		font-size: 15px;
	}
	body.hb-huisstijl.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
		background: var(--hb-oranje);
		border-color: var(--hb-oranje);
		color: #fff !important;
	}
}

/* ---------- 5. Contact en cadeaubontabel ---------- */
body.hb-huisstijl .wpcf7-form-control-wrap {
	display: block;
	max-width: 100%;
}
body.hb-huisstijl .wpcf7-form input.wpcf7-form-control,
body.hb-huisstijl .wpcf7-form select.wpcf7-form-control,
body.hb-huisstijl .wpcf7-form textarea.wpcf7-form-control {
	max-width: 100%;
	box-sizing: border-box;
}
body.hb-huisstijl input.wpcf7-tel {
	width: 100%;
}
@media (max-width: 1024px) {
	body.hb-huisstijl table.custom-gift-card-table {
		width: 100% !important;
		max-width: 100%;
		table-layout: fixed;
	}
	body.hb-huisstijl table.custom-gift-card-table th,
	body.hb-huisstijl table.custom-gift-card-table td {
		padding: 6px 4px;
	}
	body.hb-huisstijl table.custom-gift-card-table .custom-amount-button {
		padding: 8px 6px;
		width: calc(100% - 8px);
		max-width: 100%;
		box-sizing: border-box;
		font-size: 14px;
		white-space: nowrap;
	}
}
/* Menu-link "Cadeaubon verzilveren" (kop en mobiel menu, ook in winkelmand/afrekenen): tikdoel minstens 40 px hoog, goed zichtbaar. */
body.hb-huisstijl header a[href*="cadeaubon-verzilveren"],
body.hb-huisstijl #mobile-menu a[href*="cadeaubon-verzilveren"] {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding-top: 8px;
	padding-bottom: 8px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}
@media (max-width: 600px) {
	/* De bestaande kaartweergave (thema-kind) blijft; alleen de knop zelf netjes breed. */
	body.hb-huisstijl table.custom-gift-card-table .custom-amount-button {
		width: auto;
		min-width: 120px;
	}
}
