.rm-equipment-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
	margin: 20px 0;
}

.rm-equipment-item {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.rm-equipment-image img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	display: block;
}

.rm-equipment-body {
	padding: 14px;
}

.rm-equipment-name {
	margin: 0 0 4px;
	font-size: 16px;
}

.rm-equipment-code {
	margin: 0 0 8px;
	font-size: 12px;
	color: #777;
}

.rm-equipment-description {
	margin: 0;
	font-size: 14px;
	color: #444;
}

.rm-add-to-cart {
	display: inline-block;
	margin-top: 10px;
	padding: 8px 16px;
	border-radius: 4px;
	background: #1d4ed8;
	color: #fff !important;
	text-decoration: none;
	font-weight: 600;
}

.rm-add-to-cart:hover {
	background: #1e40af;
	color: #fff !important;
}

.rm-error {
	color: #b32d2e;
}

.rm-add-to-request {
	margin-top: 8px;
}

/*
 * Productlijst (categorie-/shoppagina's): prijs + "Aanvragen"-knop onderaan
 * elke kaart, zodat ze per rij op één lijn staan — ongeacht of de
 * producttitel één, twee of drie regels beslaat. De kaarten in een rij zijn
 * al even hoog (CSS grid); margin-top:auto duwt prijs en knop naar onderen.
 */
ul li.wc-block-product:has(> .rm-add-to-request),
ul li.product:has(> .rm-add-to-request) {
	display: flex;
	flex-direction: column;
}

ul li.wc-block-product:has(> .rm-add-to-request) > .wp-block-woocommerce-product-price,
ul li.product:has(> .rm-add-to-request) > .price {
	margin-top: auto !important;
}

ul li.wc-block-product > .rm-add-to-request,
ul li.product > .rm-add-to-request {
	margin-top: 0.75em;
	width: 100%;
}

/*
 * Productpagina met "Aanvragen" in plaats van de "Huren"-knop: de gewone
 * winkelwagen-knop en offerte-knoppen van andere plugins (YITH Request a
 * Quote) in hetzelfde formulier verbergen. De body-klasse wordt alleen bij
 * Rentman-producten gezet (RM_WooCommerce::filter_body_class()).
 */
body.rm-request-replaces-cart form.cart .single_add_to_cart_button,
body.rm-request-replaces-cart form.cart .yith-ywraq-add-to-quote {
	display: none !important;
}

body.rm-request-replaces-cart form.cart .rm-request-in-form {
	margin-top: 0;
}

.rm-view-request {
	display: inline-block;
	margin-top: 0.5em;
	font-size: 0.9em;
	text-decoration: underline;
}

.rm-request-count:empty {
	display: none;
}

.rm-request-items {
	margin-bottom: 20px;
}

.rm-request-items h4 {
	margin: 0 0 8px;
}

.rm-request-items-empty {
	color: #666;
	font-size: 14px;
}

.rm-request-items-wrap[hidden] {
	display: none;
}

.rm-request-table {
	width: 100%;
	max-width: 760px;
	border-collapse: collapse;
	margin: 0 0 10px;
	font-size: 15px;
}

.rm-request-table th,
.rm-request-table td {
	padding: 8px 10px;
	border-bottom: 1px solid #e0e0e0;
	text-align: left;
	vertical-align: middle;
}

.rm-request-table thead th {
	font-size: 13px;
	color: #666;
	font-weight: 600;
}

.rm-request-table .rm-col-price,
.rm-request-table .rm-col-total {
	text-align: right;
	white-space: nowrap;
}

.rm-request-table .rm-col-price del {
	color: #999;
	font-size: 13px;
}

.rm-request-table .rm-col-qty {
	width: 1%;
}

.rm-request-table .rm-col-remove {
	width: 1%;
	text-align: center;
}

.rm-request-grand-total th,
.rm-request-grand-total td {
	font-weight: 700;
	border-bottom: none;
	text-align: right;
}

/* Btw-uitsplitsing boven het totaal */
.rm-request-subtotal th,
.rm-request-subtotal td,
.rm-request-vat th,
.rm-request-vat td {
	font-weight: 400;
	border-bottom: none;
	text-align: right;
	padding-top: 4px;
	padding-bottom: 4px;
}

.rm-request-subtotal th,
.rm-request-subtotal td {
	padding-top: 14px;
}

.rm-request-vat th,
.rm-request-vat td {
	opacity: 0.75;
}

.rm-request-subtotal + .rm-request-vat + .rm-request-grand-total th,
.rm-request-subtotal + .rm-request-vat + .rm-request-grand-total td {
	border-top: 1px solid currentColor;
	border-top-color: rgba(0, 0, 0, .15);
	padding-top: 10px;
}

.rm-request-item-unavailable {
	color: #b32d2e;
}

.rm-qty {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid #ccc;
	border-radius: 4px;
	overflow: hidden;
}

.rm-qty-btn {
	background: #f3f3f3;
	border: none;
	width: 30px;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	color: #333;
}

.rm-qty-btn:hover {
	background: #e5e5e5;
}

.rm-qty-input {
	width: 48px;
	border: none !important;
	text-align: center;
	padding: 6px 2px !important;
	-moz-appearance: textfield;
}

.rm-qty-input::-webkit-outer-spin-button,
.rm-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.rm-request-item-remove {
	background: none;
	border: none;
	color: #b32d2e;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
}

.rm-request-items-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 6px;
}

.rm-request-refresh {
	padding: 6px 14px;
	border: 1px solid #1d4ed8;
	border-radius: 4px;
	background: #fff;
	color: #1d4ed8;
	cursor: pointer;
}

.rm-request-refresh:disabled {
	opacity: 0.6;
	cursor: default;
}

.rm-request-items-status {
	font-size: 14px;
	color: #0a7a2f;
}

.rm-request-price-note {
	font-size: 13px;
	color: #666;
	margin: 0;
}

/* Smal scherm: tabel als gestapelde kaarten. */
@media (max-width: 600px) {
	.rm-request-table thead {
		display: none;
	}
	.rm-request-table tbody tr {
		display: grid;
		grid-template-columns: 1fr auto auto;
		grid-template-areas:
			"name name remove"
			"price qty total";
		gap: 6px 10px;
		align-items: center;
		padding: 10px 0;
		border-bottom: 1px solid #e0e0e0;
	}
	.rm-request-table tbody td {
		border: none;
		padding: 0;
	}
	.rm-request-table tbody .rm-col-name { grid-area: name; font-weight: 600; }
	.rm-request-table tbody .rm-col-price { grid-area: price; text-align: left; }
	.rm-request-table tbody .rm-col-qty { grid-area: qty; width: auto; }
	.rm-request-table tbody .rm-col-total { grid-area: total; }
	.rm-request-table tbody .rm-col-remove { grid-area: remove; width: auto; }
}

.rm-field-error {
	display: block;
	color: #b32d2e;
	font-size: 13px;
	margin-top: 4px;
}

.rm-field-error:empty {
	display: none;
}

.rm-request-form .rm-has-error input {
	border-color: #b32d2e;
	background: #fff8f8;
}

.rm-request-form p {
	margin-bottom: 14px;
}

.rm-request-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.rm-request-form input[type="text"],
.rm-request-form input[type="email"],
.rm-request-form input[type="tel"],
.rm-request-form input[type="date"],
.rm-request-form input[type="time"],
.rm-request-form textarea {
	width: 100%;
	max-width: 480px;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.rm-dates {
	display: flex;
	gap: 16px;
}

.rm-dates span {
	flex: 1;
}

.rm-submit {
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	background: #1d4ed8;
	color: #fff;
	cursor: pointer;
}

.rm-submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.rm-form-response {
	margin-top: 10px;
	font-weight: 600;
}

.rm-form-response.rm-success {
	color: #0a7a2f;
}

.rm-form-response.rm-error {
	color: #b32d2e;
}

/* Lever-/afhaal- en ophaal-/retourmoment: datum + tijd naast elkaar. */
.rm-moment {
	border: none;
	margin: 0 0 14px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	max-width: 480px;
}

.rm-moment legend {
	font-weight: 700;
	margin-bottom: 6px;
	padding: 0;
}

.rm-moment .rm-field {
	flex: 1 1 140px;
}

.rm-moment .rm-field-starttime,
.rm-moment .rm-field-endtime {
	flex: 0 1 130px;
}

.rm-moment label {
	font-weight: 400;
	font-size: 13px;
	color: #555;
}

.rm-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.rm-request-form input,
.rm-request-form textarea {
	box-sizing: border-box;
}

@media (max-width: 600px) {
	.rm-request-table tfoot tr {
		display: flex;
		justify-content: space-between;
	}
	.rm-request-table tfoot th,
	.rm-request-table tfoot td {
		padding: 10px 0 0;
	}
	.rm-request-table tfoot td:empty {
		display: none;
	}
}

/* ---------------- Offerte-icoon in de header ---------------- */

.rm-request-mini {
	position: relative;
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
}

.rm-request-mini__toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.3rem;
	border-radius: 6px;
	color: inherit;
	text-decoration: none;
	line-height: 1;
}

.rm-request-mini__toggle:hover,
.rm-request-mini:focus-within .rm-request-mini__toggle {
	background: color-mix(in srgb, currentColor 10%, transparent);
	color: var(--be-accent, #1d4ed8);
}

.rm-request-mini__toggle svg {
	width: 20px;
	height: 20px;
	display: block;
}

.rm-request-mini__badge {
	position: absolute;
	top: -4px;
	right: -6px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--be-accent, #1d4ed8);
	color: var(--wp--preset--color--on-accent, #fff);
	font-size: 11px;
	font-weight: 700;
	line-height: 17px;
	text-align: center;
	box-sizing: border-box;
}

.rm-request-mini__badge[hidden] {
	display: none;
}

.rm-request-mini__panel {
	position: absolute;
	top: 100%;
	right: -8px;
	z-index: 1000;
	width: 280px;
	max-width: calc(100vw - 24px);
	margin-top: 10px;
	padding: 12px;
	background: #fff;
	color: #1f2937;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
	font-size: 14px;
	line-height: 1.35;
	text-align: left;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
}

/* Onzichtbare brug, zodat het paneel niet sluit onderweg van icoon naar paneel. */
.rm-request-mini__panel::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -12px;
	height: 12px;
}

/* Pijltje naar het icoon. */
.rm-request-mini__panel::after {
	content: "";
	position: absolute;
	top: -6px;
	right: 16px;
	width: 12px;
	height: 12px;
	background: #fff;
	transform: rotate(45deg);
	border-radius: 2px;
}

@media (hover: hover) {
	.rm-request-mini:hover .rm-request-mini__panel {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition-delay: 0s;
	}
}

.rm-request-mini:focus-within .rm-request-mini__panel {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

.rm-request-mini__head {
	font-weight: 700;
	margin-bottom: 8px;
}

.rm-request-mini__count {
	font-weight: 400;
	color: #6b7280;
}

.rm-request-mini__empty {
	margin: 0 0 4px;
	color: #6b7280;
}

.rm-request-mini__list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 240px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.rm-request-mini__list li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 0;
	border-bottom: 1px solid #eef0f3;
	margin: 0;
}

.rm-request-mini__list li:last-child {
	border-bottom: none;
}

.rm-request-mini__qty {
	flex: 0 0 auto;
	min-width: 28px;
	font-weight: 700;
	color: var(--be-accent, #1d4ed8);
}

.rm-request-mini__name {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rm-request-mini__remove {
	flex: 0 0 auto;
	background: none;
	border: none;
	padding: 0 4px;
	color: #9ca3af;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.rm-request-mini__remove:hover {
	color: #b32d2e;
}

.rm-request-mini__cta {
	display: block;
	margin-top: 10px;
	padding: 8px 12px;
	border-radius: 6px;
	background: var(--be-accent, #1d4ed8);
	color: var(--wp--preset--color--on-accent, #fff) !important;
	text-align: center;
	font-weight: 600;
	text-decoration: none;
}

.rm-request-mini__cta:hover {
	filter: brightness(1.08);
}

/* Keuze bezorgen/zelf afhalen en ophalen/zelf retourneren. */
.rm-moment .rm-field-choice {
	flex: 1 1 100%;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.rm-choice {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	margin: 0 !important;
	padding: 7px 12px;
	border: 1px solid #ccc;
	border-radius: 999px;
	font-weight: 500 !important;
	font-size: 14px !important;
	color: inherit !important;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}

.rm-choice input {
	margin: 0;
	accent-color: var(--be-accent, #1d4ed8);
}

.rm-choice:has(input:checked) {
	border-color: var(--be-accent, #1d4ed8);
	background: color-mix(in srgb, var(--be-accent, #1d4ed8) 10%, transparent);
}

.rm-choice:has(input:focus-visible) {
	outline: 2px solid var(--be-accent, #1d4ed8);
	outline-offset: 2px;
}

.rm-field-choice .rm-field-error {
	flex: 1 1 100%;
	margin-top: 0;
}

.rm-request-form .rm-field-choice.rm-has-error .rm-choice {
	border-color: #b32d2e;
}

/* Aflevergegevens (bij bezorgen/ophalen). */
.rm-delivery {
	margin: 4px 0 18px;
	padding: 14px 16px 4px;
	max-width: 480px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	background: #fafafa;
	box-sizing: border-box;
}

.rm-delivery[hidden] {
	display: none;
}

.rm-delivery legend {
	font-weight: 700;
	padding: 0 6px;
	margin-left: -6px;
}

.rm-delivery-intro {
	margin: 0 0 10px !important;
	font-size: 14px;
	color: #555;
}

.rm-request-form .rm-delivery-same {
	display: flex !important;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px !important;
	font-weight: 600;
	cursor: pointer;
}

.rm-delivery-same input {
	margin: 0;
	width: 18px;
	height: 18px;
	accent-color: var(--be-accent, #1d4ed8);
}

.rm-delivery input[readonly] {
	background: #f0f0f0;
	color: #555;
}

.rm-optional {
	font-weight: 400;
	color: #777;
	font-size: 0.9em;
}

/*
 * Winkelwagen uitgeschakeld (body.rm-no-cart, sinds 1.44.0): alle
 * winkelwagen-/afrekenknoppen en het winkelwagen-icoon verbergen, net als
 * offerte-knoppen van andere plugins. Alleen de "Huren"-aanvraag blijft.
 */
body.rm-no-cart .wc-block-mini-cart,
body.rm-no-cart .wp-block-woocommerce-mini-cart,
body.rm-no-cart .single_add_to_cart_button,
body.rm-no-cart a.add_to_cart_button,
body.rm-no-cart .wp-block-woocommerce-product-button,
body.rm-no-cart .yith-ywraq-add-to-quote,
body.rm-no-cart .added_to_cart {
	display: none !important;
}

/* Spamval in het aanvraagformulier: buiten beeld, niet met display:none
   (sommige bots slaan verborgen velden over). Sinds 1.48.0. */
.rm-request-form .rm-hp {
	position: absolute !important;
	left: -10000px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* ---------------- Staffelkorting ---------------- */

.rm-staffel-notice {
	margin: 0 0 14px;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 15px;
	line-height: 1.45;
}

.rm-staffel-notice.is-discount {
	background: rgba(22, 163, 74, .1);
	border: 1px solid rgba(22, 163, 74, .35);
	color: #14532d;
}

.rm-staffel-notice.is-discount::before {
	content: "✓ ";
	font-weight: 700;
}

.rm-staffel-notice.is-info {
	background: rgba(0, 0, 0, .04);
	border: 1px solid rgba(0, 0, 0, .1);
}

.rm-staffel-line {
	display: block;
	margin-top: 3px;
	font-size: 13px;
	opacity: .75;
}

.rm-staffel-line.is-discount {
	color: #15803d;
	opacity: 1;
}

.rm-staffel-line[hidden] {
	display: none;
}

.rm-request-staffel-linear th,
.rm-request-staffel-linear td,
.rm-request-staffel-saving th,
.rm-request-staffel-saving td {
	font-weight: 400;
	border-bottom: none;
	text-align: right;
	padding-top: 4px;
	padding-bottom: 4px;
}

.rm-request-staffel-linear th,
.rm-request-staffel-linear td {
	padding-top: 14px;
	opacity: .75;
}

.rm-request-staffel-linear td {
	text-decoration: line-through;
}

.rm-request-staffel-saving th,
.rm-request-staffel-saving td {
	color: #15803d;
	font-weight: 600;
}

.rm-request-table tfoot tr[hidden] {
	display: none;
}
