/* Periodekiezer in de winkelwagen (zie woocommerce/huurperiode-winkelwagen.php) */

/* ---------- Blok ---------- */

.zvs-huurperiode {
	clear: both; /* paginatitel van het thema is gefloat */
	display: flow-root;
	box-sizing: border-box;
	width: 100%;
	margin: 0 0 24px;
	padding: 14px 18px;
	background: #f7f8fb;
	border: 1px solid var(--wc-color-border, #dcdcdc);
	border-left: 4px solid var(--wc-color-secondary, #263068);
	border-radius: var(--wc-radius, 4px);
	font-family: var(--wc-font-body, 'Work Sans', sans-serif);
	font-size: 14px;
	line-height: 1.45;
	color: var(--wc-color-text, #222);
}

.zvs-huurperiode .zvs-hp-kop {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 12px;
	margin: 0 0 10px;
}

.zvs-huurperiode .zvs-hp-titel {
	display: block;
	margin: 0 !important;
	font-weight: 700;
	font-family: var(--wc-font-heading, 'Chivo', sans-serif);
	font-size: 16px;
	line-height: 1.3;
	color: var(--wc-color-secondary, #263068);
}

.zvs-huurperiode .zvs-hp-huidig {
	margin: 0 !important;
	font-weight: 700;
}

.zvs-huurperiode .zvs-hp-waarschuwing {
	font-weight: 400;
	color: var(--wc-color-error, #bd201c);
}

.zvs-huurperiode .zvs-hp-melding {
	margin: 0 0 10px;
	padding: 8px 12px;
	font-size: 13px;
	border-radius: var(--wc-radius, 4px);
}

.zvs-huurperiode .zvs-hp-melding.is-ok {
	background: #eef7ee;
	border: 1px solid var(--wc-color-success, #167518);
	color: var(--wc-color-success, #167518);
}

.zvs-huurperiode .zvs-hp-melding.is-fout {
	background: #fdf0f0;
	border: 1px solid var(--wc-color-error, #bd201c);
	color: var(--wc-color-error, #bd201c);
}

.zvs-huurperiode .zvs-hp-melding ul {
	margin: 4px 0 0 18px !important;
	padding: 0;
}

.zvs-huurperiode .zvs-hp-melding strong {
	display: block;
}

.zvs-huurperiode .zvs-hp-form {
	margin: 0;
}

.zvs-huurperiode .zvs-hp-label {
	display: block;
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 700;
}

.zvs-huurperiode .zvs-hp-rij {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: stretch;
}

.zvs-huurperiode .zvs-hp-velden {
	flex: 0 1 300px;
	min-width: 0;
}

.zvs-huurperiode .zvs-hp-native {
	display: flex;
	align-items: center;
	gap: 6px;
}

.zvs-huurperiode .zvs-hp-native[hidden],
.zvs-huurperiode .zvs-hp-picker[hidden] {
	display: none !important;
}

.zvs-huurperiode input.zvs-hp-picker,
.zvs-huurperiode .zvs-hp-native input {
	box-sizing: border-box;
	width: 100%;
	height: 36px;
	padding: 0 10px 0 34px;
	font-family: inherit;
	font-size: 14px;
	color: inherit;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23263068' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") no-repeat 10px center;
	border: 1px solid var(--wc-color-border, #dcdcdc);
	border-radius: var(--wc-radius, 4px);
	cursor: pointer;
}

.zvs-huurperiode .zvs-hp-native input {
	padding-left: 10px;
	background-image: none;
}

.zvs-huurperiode input.zvs-hp-picker:focus {
	border-color: var(--wc-color-secondary, #263068);
	box-shadow: 0 0 0 2px rgba(38, 48, 104, 0.15);
}

.zvs-huurperiode .zvs-hp-knop {
	flex: 0 0 auto;
	height: 36px;
	padding: 0 16px;
	font-family: var(--wc-font-body, 'Work Sans', sans-serif);
	font-size: 14px;
	font-weight: 700;
	line-height: 36px;
	color: #fff !important;
	background: var(--wc-color-secondary, #263068) !important;
	border: 0;
	border-radius: var(--wc-radius, 4px);
	cursor: pointer;
	transition: var(--wc-transition, all 0.2s ease-in-out);
}

.zvs-huurperiode .zvs-hp-knop:hover {
	background: var(--wc-color-secondary-hover, #1c2450) !important;
}

.zvs-huurperiode .zvs-hp-knop:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.zvs-huurperiode.is-bezig .zvs-hp-knop {
	opacity: 0.6;
	cursor: progress;
}

.zvs-huurperiode .zvs-hp-kalender {
	position: relative;
}

.zvs-huurperiode .zvs-hp-status {
	margin: 6px 0 0 !important;
	font-size: 13px;
	font-weight: 700;
	color: var(--wc-color-error, #bd201c);
}

.zvs-huurperiode .zvs-hp-status:empty {
	display: none;
}

.zvs-huurperiode .zvs-hp-uitleg {
	margin: 6px 0 0 !important;
	font-size: 12px;
	line-height: 1.4;
	color: var(--wc-color-text-muted, #6b6b6b);
}

@media (max-width: 600px) {
	.zvs-huurperiode {
		padding: 12px 14px;
	}

	.zvs-huurperiode .zvs-hp-velden,
	.zvs-huurperiode .zvs-hp-knop {
		flex: 1 1 100%;
	}
}

/* huurdata per product verbergen in het winkelwagenblok (staan al in de periodekiezer) */
.wc-block-cart .zvs-hp-cart-datum {
	display: none !important;
}

/* melding op de productpagina */
.zvs-hp-product {
	margin: 0 0 15px;
	padding: 10px 14px;
	background: #f7f8fb;
	border: 1px solid var(--wc-color-border, #dcdcdc);
	border-left: 4px solid var(--wc-color-secondary, #263068);
	border-radius: var(--wc-radius, 4px);
	font-family: var(--wc-font-body, 'Work Sans', sans-serif);
	font-size: 14px;
	line-height: 1.45;
	color: var(--wc-color-text, #222);
}

.zvs-hp-product.is-niet-beschikbaar {
	border-left-color: var(--wc-color-error, #bd201c);
	background: #fdf5f5;
}

.zvs-hp-product .zvs-hp-product-regel {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 8px;
}

.zvs-hp-product .zvs-hp-product-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--wc-color-secondary, #263068);
	flex-basis: 100%;
}

.zvs-hp-product .zvs-hp-product-datum {
	font-size: 15px;
}

.zvs-hp-product .zvs-hp-product-dagen {
	color: var(--wc-color-text-muted, #6b6b6b);
}

.zvs-hp-product .zvs-hp-product-tekst {
	margin: 4px 0 0 !important;
	font-size: 13px;
	color: var(--wc-color-text-muted, #6b6b6b);
}

.zvs-hp-product.is-niet-beschikbaar .zvs-hp-product-tekst {
	color: var(--wc-color-error, #bd201c);
}

.zvs-hp-product a {
	color: var(--wc-color-primary, #bd201c);
	font-weight: 700;
	text-decoration: underline;
}

/* Kestrels "Reset?"-link is leeg bij invullen vanuit de winkelwagen */
.wcrp-rental-products-availability-checker-auto-population-information a:empty {
	display: none;
}

/* productpagina: periode uit winkelwagen vastgezet */
.wcrp-rental-products-rental-dates-wrap.zvs-hp-vast .wcrp-rental-products-rental-dates-parent {
	pointer-events: none;
}

.wcrp-rental-products-rental-dates-wrap.zvs-hp-vast .wcrp-rental-products-rental-dates-parent input {
	color: var(--wc-color-text-muted, #6b6b6b) !important;
	background-color: #f3f4f8 !important;
	cursor: default;
}

.zvs-hp-verborgen {
	display: none !important;
}

.zvs-hp-vastnotitie {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin: 8px 0 0;
	font-size: 13px;
	font-style: italic;
	line-height: 1.4;
	color: var(--wc-color-text-muted, #6b6b6b);
}

.zvs-hp-vastnotitie.is-vrij {
	font-style: normal;
	color: var(--wc-color-secondary, #263068);
}

.zvs-hp-vastnotitie .zvs-hp-toch {
	padding: 5px 12px;
	font-family: var(--wc-font-body, 'Work Sans', sans-serif);
	font-size: 13px;
	font-style: normal;
	font-weight: 700;
	line-height: 1.2;
	color: var(--wc-color-secondary, #263068) !important;
	background: #fff !important;
	border: 1px solid var(--wc-color-secondary, #263068);
	border-radius: var(--wc-radius, 4px);
	cursor: pointer;
	transition: var(--wc-transition, all 0.2s ease-in-out);
}

.zvs-hp-vastnotitie .zvs-hp-toch:hover,
.zvs-hp-vastnotitie .zvs-hp-toch:focus-visible {
	color: #fff !important;
	background: var(--wc-color-secondary, #263068) !important;
}
