/* Monster Hire for clients. Colours, fonts and corners come from Monster Theme's variables when it is active. */

.mh-hire,
.mh-catalogue,
.mh-list,
.mh-quote {
	--mh-accent: var(--mt-accent, #ff0099);
	--mh-accent-text: var(--mt-accent-text, #fff);
	--mh-text: var(--mt-text, #333);
	--mh-strong: var(--mt-heading, var(--mt-text, #222));
	--mh-bg: var(--mt-page-bg, #fff);
	--mh-surface: var(--mt-surface, #f4f4f4);
	--mh-line: var(--mt-border, rgba(0, 0, 0, 0.14));
	/* Field edges a little firmer than the site's dividers, so boxes read as boxes. */
	--mh-field-line: color-mix(in srgb, var(--mh-text) 32%, var(--mh-bg));
	--mh-ring: 0 0 0 3px color-mix(in srgb, var(--mh-accent) 25%, transparent);
	--mh-tint: color-mix(in srgb, var(--mh-accent) 13%, transparent);
	--mh-muted: var(--mt-muted, #666);
	/* Boxes, cards and fields take Monster Theme's field rounding; its --mt-radius is the
	   buttons' (a pill on Neon Monster, which made every box an oval). */
	--mh-radius: var(--mt-input-radius, 6px);
	--mh-h: 46px;
	--mh-gap: 16px;
	--mh-ok: #1e7b34;
	--mh-warn: #a15c00;
}

[data-mh-when][hidden],
.mh-hp,
.mh-cal[hidden] {
	display: none !important;
}

.mh-muted {
	color: var(--mh-muted);
	font-size: 0.9em;
}

.mh-ok {
	color: var(--mh-ok);
}

.mh-warn {
	padding: 6px 10px;
	border-left: 4px solid var(--mh-warn);
	background: rgba(161, 92, 0, 0.08);
}

.mh-num {
	text-align: right;
	white-space: nowrap;
}

.mh-field {
	margin: 0 0 12px;
}

.mh-field label {
	margin-right: 14px;
}

/* Fields ------------------------------------------------------------------ */

:is(.mh-hire, .mh-catalogue, .mh-list, .mh-quote) :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], input[type="date"], select, textarea) {
	box-sizing: border-box;
	min-height: var(--mh-h);
	padding: 0.6em 0.85em;
	border: 1px solid var(--mh-field-line);
	border-radius: var(--mh-radius);
	background-color: var(--mh-bg);
	color: var(--mh-strong);
	font: inherit;
	line-height: 1.3;
	box-shadow: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}

:is(.mh-hire, .mh-catalogue, .mh-list, .mh-quote) :is(input, select, textarea):hover {
	border-color: color-mix(in srgb, var(--mh-text) 60%, var(--mh-bg));
}

:is(.mh-hire, .mh-catalogue, .mh-list, .mh-quote) :is(input, select, textarea):focus {
	border-color: var(--mh-accent);
	outline: none;
	box-shadow: var(--mh-ring);
}

:is(.mh-hire, .mh-catalogue, .mh-list, .mh-quote) select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 2.6em;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23888' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
	background-position: right 0.95em center;
	background-repeat: no-repeat;
	background-size: 12px 8px;
	cursor: pointer;
}

:is(.mh-hire, .mh-catalogue, .mh-list, .mh-quote) input[type="search"] {
	padding-left: 2.5em;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L21 21'/%3E%3C/g%3E%3C/svg%3E");
	background-position: 0.85em center;
	background-repeat: no-repeat;
	background-size: 16px 16px;
}

:is(.mh-hire, .mh-catalogue, .mh-list, .mh-quote) input[type="checkbox"] {
	width: 1.15em;
	height: 1.15em;
	margin: 0 0.5em 0 0;
	accent-color: var(--mh-accent);
	vertical-align: -0.17em;
	cursor: pointer;
}

/* Round choices (delivery or collection). The dates/estimate switch hides its own below. */
:is(.mh-hire, .mh-catalogue, .mh-list, .mh-quote) input[type="radio"] {
	width: 1.15em;
	height: 1.15em;
	margin: 0 0.45em 0 0;
	accent-color: var(--mh-accent);
	vertical-align: -0.17em;
	cursor: pointer;
}

:is(.mh-hire, .mh-catalogue, .mh-list, .mh-quote) label:has(> input[type="checkbox"]),
:is(.mh-hire, .mh-catalogue, .mh-list, .mh-quote) label:has(> input[type="radio"]) {
	cursor: pointer;
}

/* Number boxes: wide enough to read, the value in the middle. */
:is(.mh-hire, .mh-catalogue, .mh-list, .mh-quote) input[type="number"].mh-small {
	width: 6em;
	font-weight: 600;
	text-align: center;
}

/* − and + either side of a "How many" box (added by the script). */
.mh-stepper {
	display: inline-flex;
	align-items: stretch;
	overflow: hidden;
	border: 1px solid var(--mh-field-line);
	border-radius: var(--mh-radius);
	background: var(--mh-bg);
	vertical-align: middle;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.mh-stepper:focus-within {
	border-color: var(--mh-accent);
	box-shadow: var(--mh-ring);
}

.mh-stepper__btn {
	-webkit-appearance: none;
	appearance: none;
	width: 2.75em;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--mh-surface);
	color: var(--mh-strong);
	font: inherit;
	font-size: 1.2em;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}

.mh-stepper__btn:hover:not(:disabled) {
	background: var(--mh-tint);
	color: var(--mh-accent);
}

.mh-stepper__btn:disabled {
	opacity: 0.35;
	cursor: default;
}

:is(.mh-hire, .mh-catalogue, .mh-list, .mh-quote) .mh-stepper input[type="number"].mh-small {
	width: 3.6em;
	min-width: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	-moz-appearance: textfield;
	appearance: textfield;
}

.mh-stepper input::-webkit-outer-spin-button,
.mh-stepper input::-webkit-inner-spin-button,
.mh-days-quick__input::-webkit-outer-spin-button,
.mh-days-quick__input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

/* Buttons ----------------------------------------------------------------- */

.mh-button,
a.mh-button,
button.mh-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-height: var(--mh-h, 46px);
	padding: var(--mt-button-py, 12px) var(--mt-button-px, 22px);
	border: 0;
	border-radius: var(--mt-radius, var(--mh-radius, 6px));
	background: var(--mt-accent, #ff0099);
	color: var(--mt-accent-text, #fff);
	font-family: var(--mt-font-button, inherit);
	font-size: 1em;
	font-weight: var(--mt-button-weight, 600);
	line-height: 1.2;
	text-decoration: none;
	text-transform: var(--mt-button-transform, none);
	cursor: pointer;
	transition: background-color 0.15s;
}

.mh-button:hover,
a.mh-button:hover,
button.mh-button:hover {
	background: var(--mt-accent-hover, var(--mt-accent, #ff0099));
	color: var(--mt-accent-text, #fff);
}

:is(.mh-hire, .mh-catalogue, .mh-list, .mh-quote) .mh-button.mh-button--quiet {
	background: transparent;
	color: var(--mh-accent);
	box-shadow: inset 0 0 0 1.5px currentColor;
}

:is(.mh-hire, .mh-catalogue, .mh-list, .mh-quote) .mh-button.mh-button--quiet:hover {
	background: var(--mh-tint);
	color: var(--mh-accent);
}

:is(.mh-hire, .mh-catalogue, .mh-list, .mh-quote) .mh-button.mh-button--small {
	min-height: 38px;
	padding: 8px 16px;
	font-size: 0.9em;
}

.mh-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.06);
	font-size: 0.8em;
	font-weight: 600;
	vertical-align: middle;
}

.mh-badge--free {
	background: rgba(30, 123, 52, 0.12);
	color: var(--mh-ok);
}

.mh-badge--booked {
	background: rgba(161, 92, 0, 0.12);
	color: var(--mh-warn);
}

/* Dates or estimate: two buttons side by side. ---------------------------- */

.mh-kind,
.mh-datebar__kind {
	display: inline-flex;
	gap: 4px;
	padding: 4px;
	border: 1px solid var(--mh-field-line);
	border-radius: var(--mh-radius);
	background: var(--mh-bg);
}

.mh-hire .mh-kind {
	display: flex;
}

.mh-kind label,
.mh-datebar__kind label {
	position: relative;
	display: flex;
	flex: 1 1 0;
	align-items: center;
	justify-content: center;
	min-height: calc(var(--mh-h) - 10px);
	margin: 0;
	padding: 0.45em 1em;
	border-radius: var(--mh-radius);
	color: var(--mh-muted);
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}

.mh-kind label:hover,
.mh-datebar__kind label:hover {
	color: var(--mh-strong);
	background: var(--mh-tint);
}

.mh-kind label.is-on,
.mh-kind label:has(input:checked),
.mh-datebar__kind label.is-on,
.mh-datebar__kind label:has(input:checked) {
	background: var(--mh-accent);
	color: var(--mh-accent-text);
}

.mh-kind label:has(input:focus-visible),
.mh-datebar__kind label:has(input:focus-visible) {
	outline: 2px solid var(--mh-accent);
	outline-offset: 2px;
}

/* Where the switch has room (the hire list, the catalogue bar), each choice stays on one line. */
@media (min-width: 601px) {
	.mh-list .mh-kind label,
	.mh-datebar__kind label {
		white-space: nowrap;
	}
}

.mh-kind input[type="radio"],
.mh-datebar__kind input[type="radio"] {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

/* The date range: one button that opens a calendar. ------------------------ */

.mh-range {
	position: relative;
	display: inline-block;
	max-width: 100%;
	vertical-align: middle;
}

.mh-range__native {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.mh-range__btn {
	-webkit-appearance: none;
	appearance: none;
	display: flex;
	gap: 0.65em;
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	min-width: 17em;
	min-height: var(--mh-h);
	margin: 0;
	padding: 0.55em 0.9em;
	border: 1px solid var(--mh-field-line);
	border-radius: var(--mh-radius);
	background: var(--mh-bg);
	color: var(--mh-strong);
	font: inherit;
	line-height: 1.3;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.mh-range__btn:hover {
	border-color: color-mix(in srgb, var(--mh-text) 60%, var(--mh-bg));
}

.mh-range__btn:focus-visible,
.mh-range.is-open .mh-range__btn {
	border-color: var(--mh-accent);
	outline: none;
	box-shadow: var(--mh-ring);
}

.mh-range__btn svg {
	flex: none;
	width: 1.25em;
	height: 1.25em;
	color: var(--mh-accent);
}

.mh-range__text {
	flex: 1 1 auto;
	font-weight: 600;
}

.mh-range__btn.is-empty .mh-range__text {
	color: var(--mh-muted);
	font-weight: 400;
}

.mh-range__days {
	flex: none;
	padding: 0.15em 0.65em;
	border-radius: 999px;
	background: var(--mh-tint);
	color: var(--mh-accent);
	font-size: 0.85em;
	font-weight: 700;
	white-space: nowrap;
}

.mh-hire .mh-range,
.mh-datebar .mh-range,
.mh-quote .mh-range {
	display: block;
}

.mh-cal {
	position: absolute;
	z-index: 1000;
	top: calc(100% + 6px);
	left: 0;
	box-sizing: border-box;
	width: max-content;
	max-width: calc(100vw - 24px);
	padding: 14px 16px 12px;
	border: 1px solid var(--mh-line);
	border-radius: var(--mh-radius);
	background: var(--mh-bg);
	color: var(--mh-text);
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
	font-size: 15px;
	line-height: 1.3;
	text-align: left;
}

.mh-cal button {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	font: inherit;
	text-transform: none;
}

.mh-cal__head {
	position: relative;
	height: 0;
}

.mh-cal__nav {
	position: absolute;
	z-index: 1;
	top: -2px;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: var(--mh-radius);
	background: transparent;
	color: var(--mh-strong);
	font-size: 22px !important;
	line-height: 1;
	cursor: pointer;
}

.mh-cal__nav:hover:not(:disabled) {
	background: var(--mh-tint);
	color: var(--mh-accent);
}

.mh-cal__nav:disabled {
	opacity: 0.25;
	cursor: default;
}

.mh-cal__nav[data-step="-1"] {
	left: 0;
}

.mh-cal__nav[data-step="1"] {
	right: 0;
}

.mh-cal__months {
	display: flex;
	gap: 28px;
}

.mh-cal__title {
	margin: 0 0 8px;
	color: var(--mh-strong);
	font-weight: 700;
	line-height: 30px;
	text-align: center;
}

.mh-cal__grid {
	display: grid;
	grid-template-columns: repeat(7, 40px);
	row-gap: 2px;
}

.mh-cal__wd {
	color: var(--mh-muted);
	font-size: 0.75em;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 28px;
	text-align: center;
	text-transform: uppercase;
}

.mh-cal__day {
	position: relative;
	width: 100%;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: var(--mh-radius);
	background: transparent;
	color: var(--mh-strong);
	font-size: 0.95em !important;
	cursor: pointer;
}

.mh-cal__day:hover:not(:disabled) {
	background: var(--mh-tint);
}

.mh-cal__day:disabled {
	color: color-mix(in srgb, var(--mh-text) 30%, transparent);
	cursor: default;
}

.mh-cal__day.is-today {
	font-weight: 700;
	box-shadow: inset 0 0 0 1px var(--mh-field-line);
}

.mh-cal__day.is-in {
	border-radius: 0;
	background: var(--mh-tint);
}

.mh-cal__day.is-in.is-preview {
	background: color-mix(in srgb, var(--mh-accent) 7%, transparent);
}

.mh-cal__day.is-start,
.mh-cal__day.is-end {
	background: var(--mh-accent);
	color: var(--mh-accent-text);
	font-weight: 700;
	box-shadow: none;
}

.mh-cal__day:focus-visible {
	z-index: 1;
	outline: 2px solid var(--mh-accent);
	outline-offset: 1px;
}

.mh-cal__foot {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 12px;
	align-items: center;
	justify-content: space-between;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--mh-line);
}

.mh-cal__hint {
	color: var(--mh-muted);
	font-size: 0.9em;
}

.mh-cal__buttons {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-left: auto;
}

.mh-cal__clear {
	padding: 0.5em 0.6em;
	border: 0;
	background: none;
	color: var(--mh-muted);
	text-decoration: underline;
	cursor: pointer;
}

.mh-cal__clear:hover {
	color: var(--mh-accent);
}

:is(.mh-hire, .mh-catalogue, .mh-list, .mh-quote) .mh-cal .mh-button.mh-cal__done {
	min-height: 38px;
	padding: 8px 20px;
	font-size: 0.95em;
}

@media (max-width: 600px) {
	.mh-range__btn {
		min-width: 0;
	}

	.mh-cal {
		width: min(340px, calc(100vw - 24px));
		padding: 12px;
	}

	.mh-cal__grid {
		grid-template-columns: repeat(7, minmax(0, 1fr));
	}
}

/* Days for an estimate: 1, 3, 7 or any number (added by the script). ------- */

.mh-days-box--js {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.mh-days-quick {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
	vertical-align: middle;
}

.mh-days-quick__btn,
.mh-days-quick__custom {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	gap: 0.4em;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 5em;
	min-height: var(--mh-h);
	margin: 0 !important;
	padding: 0 1em;
	border: 1px solid var(--mh-field-line);
	border-radius: var(--mh-radius);
	background: var(--mh-bg);
	color: var(--mh-strong);
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.mh-days-quick__btn:hover,
.mh-days-quick__custom:hover {
	border-color: var(--mh-accent);
}

.mh-days-quick__btn.is-on {
	border-color: var(--mh-accent);
	background: var(--mh-accent);
	color: var(--mh-accent-text);
}

.mh-days-quick__btn:focus-visible {
	outline: none;
	box-shadow: var(--mh-ring);
}

.mh-days-quick__custom {
	padding: 0 0.85em 0 0.9em;
	font-weight: 400;
	cursor: text;
}

.mh-days-quick__custom.is-on {
	border-color: var(--mh-accent);
	box-shadow: inset 0 0 0 1px var(--mh-accent);
}

.mh-days-quick__custom:focus-within {
	border-color: var(--mh-accent);
	box-shadow: var(--mh-ring);
}

.mh-days-quick__lead,
.mh-days-quick__unit {
	color: var(--mh-muted);
	font-size: 0.92em;
}

:is(.mh-hire, .mh-catalogue, .mh-list, .mh-quote) .mh-days-quick__custom input.mh-days-quick__input {
	width: 3.4em;
	min-height: 0;
	height: calc(var(--mh-h) - 12px);
	padding: 0 0.3em;
	border: 0;
	border-radius: var(--mh-radius);
	background: var(--mh-surface);
	box-shadow: none;
	color: var(--mh-strong);
	font-weight: 700;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

/* In the hire panel the buttons share the width; "Other" drops to its own row when tight. */
.mh-hire .mh-days-quick {
	display: flex;
}

.mh-hire .mh-days-quick__btn {
	flex: 1 1 4.5em;
}

.mh-hire .mh-days-quick__custom {
	flex: 1.6 1 10em;
}

/* The hire panel on a prop page. ------------------------------------------- */

.mh-hire {
	clear: both;
	margin: 24px 0;
	padding: 24px;
	border: 1px solid var(--mh-line);
	border-radius: var(--mh-radius);
	background: var(--mh-bg);
}

.mh-hire__title {
	margin: 0 0 18px;
}

.mh-hire__form {
	display: flex;
	flex-direction: column;
	gap: var(--mh-gap);
}

.mh-hire__form > .mh-field,
.mh-hire__form > p,
.mh-hire__form > .mh-hire__price {
	margin: 0;
}

.mh-hire__form > .mh-option + .mh-option {
	margin-top: calc(10px - var(--mh-gap));
}

.mh-qty label {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	align-items: center;
	margin: 0;
	font-weight: 600;
}

/* Options (add-ons, crew, delivery choices, the waiver): big buttons to tick, so none is
   overlooked. A real checkbox or radio sits underneath; the box or dot shows its state. */
.mh-options {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
	gap: 10px;
}

.mh-options--pair {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.mh-option {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	box-sizing: border-box;
	min-height: 66px;
	border: 2px solid var(--mh-field-line);
	border-radius: var(--mh-radius);
	background: var(--mh-bg);
	transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.mh-option:hover {
	border-color: var(--mh-accent);
}

.mh-option.is-on,
.mh-option:has(.mh-option__input:checked) {
	border-color: var(--mh-accent);
	background: color-mix(in srgb, var(--mh-accent) 7%, var(--mh-bg));
}

.mh-option:has(.mh-option__input:focus-visible) {
	box-shadow: var(--mh-ring);
}

.mh-option__main {
	display: flex;
	flex: 1 1 13em;
	gap: 14px;
	align-items: center;
	margin: 0 !important;
	padding: 14px 16px;
	cursor: pointer;
}

:is(.mh-hire, .mh-catalogue, .mh-list, .mh-quote) input.mh-option__input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.mh-option__box {
	position: relative;
	flex: none;
	box-sizing: border-box;
	width: 26px;
	height: 26px;
	border: 2px solid var(--mh-field-line);
	border-radius: min(var(--mh-radius), 6px);
	background: var(--mh-bg);
	transition: background-color 0.15s, border-color 0.15s;
}

.mh-option__box--radio {
	border-radius: 50%;
}

.mh-option__box::after {
	position: absolute;
	opacity: 0;
	content: "";
	transition: opacity 0.15s;
}

.mh-option__box--tick::after {
	top: 2px;
	left: 7px;
	width: 7px;
	height: 13px;
	border: solid var(--mh-accent-text);
	border-width: 0 3px 3px 0;
	transform: rotate(45deg);
}

.mh-option__box--radio::after {
	inset: 5px;
	border-radius: 50%;
	background: var(--mh-accent-text);
}

.mh-option.is-on .mh-option__box,
.mh-option:has(.mh-option__input:checked) .mh-option__box {
	border-color: var(--mh-accent);
	background: var(--mh-accent);
}

.mh-option.is-on .mh-option__box::after,
.mh-option:has(.mh-option__input:checked) .mh-option__box::after {
	opacity: 1;
}

.mh-option__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.mh-option__name {
	color: var(--mh-strong);
	font-weight: 700;
	line-height: 1.25;
}

.mh-option__desc {
	color: var(--mh-muted);
	font-size: 0.9em;
	line-height: 1.3;
}

.mh-option__count {
	display: flex;
	align-items: center;
	margin: 0 14px 0 auto;
	padding: 8px 0;
	transition: opacity 0.15s;
}

.mh-option:not(.is-on) .mh-option__count {
	opacity: 0.55;
}

.mh-hire__bands {
	color: var(--mh-strong);
	font-weight: 600;
}

.mh-hire__price {
	padding: 14px 16px;
	border-left: 3px solid var(--mh-accent);
	border-radius: var(--mh-radius);
	background: var(--mh-surface);
	transition: opacity 0.15s;
}

.mh-hire__price.mh-busy {
	opacity: 0.5;
}

.mh-hire__total {
	color: var(--mh-strong);
	font-size: 1.25em;
}

.mh-hire__how summary {
	margin-top: 6px;
	color: var(--mh-muted);
	font-size: 0.9em;
	cursor: pointer;
}

.mh-hire__how ul,
.mh-line__how ul {
	margin: 6px 0 0 1.2em;
	font-size: 0.9em;
}

.mh-hire__how li span {
	float: right;
}

.mh-hire__form > .mh-hire__recalc-row {
	display: flex;
	justify-content: flex-end;
	margin-top: calc(8px - var(--mh-gap));
}

.mh-hire__recalc {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	gap: 0.45em;
	align-items: center;
	margin: 0;
	padding: 0.45em 0.95em;
	border: 1px solid var(--mh-field-line);
	border-radius: var(--mt-radius, var(--mh-radius));
	background: var(--mh-bg);
	color: var(--mh-strong);
	font: inherit;
	font-size: 0.9em;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s;
}

.mh-hire__recalc:hover {
	border-color: var(--mh-accent);
	color: var(--mh-accent);
}

.mh-hire__recalc:focus-visible {
	outline: none;
	box-shadow: var(--mh-ring);
}

.mh-hire__recalc span {
	display: inline-block;
	font-size: 1.15em;
	line-height: 1;
}

@media (prefers-reduced-motion: no-preference) {
	.mh-hire__price.mh-busy + .mh-hire__recalc-row .mh-hire__recalc span {
		animation: mh-spin 0.8s linear infinite;
	}
}

@keyframes mh-spin {
	to {
		transform: rotate(360deg);
	}
}

.mh-hire__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	align-items: center;
}

.mh-hire__facts {
	margin-top: 22px;
	padding-top: 16px;
	border-top: 1px solid var(--mh-line);
	font-size: 0.95em;
}

.mh-hire__facts details {
	margin: 8px 0;
}

.mh-table {
	width: 100%;
	border-collapse: collapse;
}

.mh-table td {
	padding: 4px 0;
	border-bottom: 1px solid var(--mh-line);
}

@media (max-width: 600px) {
	.mh-hire {
		padding: 18px 16px;
	}
}

/* Catalogue. --------------------------------------------------------------- */

.mh-datebar {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 16px;
	align-items: center;
	margin: 0 0 24px;
	padding: 18px 20px;
	border: 1px solid var(--mh-line);
	border-radius: var(--mh-radius);
	background: var(--mh-surface);
}

.mh-datebar__kind {
	flex: 0 1 auto;
}

.mh-datebar__dates,
.mh-datebar__days {
	flex: 1 1 320px;
}

.mh-datebar__filters {
	display: flex;
	flex: 1 1 100%;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	padding-top: 14px;
	border-top: 1px solid var(--mh-line);
}

.mh-datebar__filters select {
	flex: 1 1 170px;
	width: auto;
}

.mh-datebar__filters input[type="search"] {
	flex: 2 1 220px;
	width: auto;
}

.mh-datebar__filters > label {
	display: inline-flex;
	align-items: center;
	margin: 0 6px;
	white-space: nowrap;
}

.mh-datebar__filters .mh-button {
	flex: 0 0 auto;
	margin-left: auto;
}

@media (max-width: 600px) {
	.mh-datebar {
		padding: 14px;
	}

	.mh-datebar__kind {
		display: flex;
		flex: 1 1 100%;
	}

	.mh-datebar__filters .mh-button {
		flex: 1 1 100%;
	}
}

.mh-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mh-grid--1 { grid-template-columns: 1fr; }
.mh-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mh-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mh-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mh-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

@media (max-width: 900px) {
	.mh-grid,
	.mh-grid--4,
	.mh-grid--5,
	.mh-grid--6 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.mh-grid,
	.mh-grid--2,
	.mh-grid--4,
	.mh-grid--5,
	.mh-grid--6 {
		grid-template-columns: 1fr;
	}
}

.mh-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mh-card__link {
	color: inherit;
	text-decoration: none;
}

.mh-card__img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--mh-radius);
}

.mh-card__name {
	display: block;
	margin-top: 8px;
	font-weight: 700;
}

.mh-card__price {
	color: var(--mh-accent);
	font-weight: 600;
}

.mh-pages {
	margin: 20px 0;
}

.mh-pages__current {
	font-weight: 700;
}

/* Hire list. --------------------------------------------------------------- */

.mh-step {
	margin: 0 0 28px;
}

.mh-apply {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 12px;
	align-items: center;
}

.mh-apply > [data-mh-when] {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.mh-apply .mh-range__btn {
	min-width: 18em;
}

.mh-line {
	position: relative;
	margin: 0 0 14px;
	padding: 16px 18px;
	border: 1px solid var(--mh-line);
	border-radius: var(--mh-radius);
	transition: border-color 0.15s;
}

.mh-line.is-changed,
.mh-line.is-removing {
	border-color: var(--mh-accent);
}

/* Room on the right for Remove, which sits in the top corner. */
.mh-line__head {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
	padding-right: 7.5em;
	font-weight: 700;
}

.mh-line__price {
	transition: opacity 0.15s;
}

/* Changed and not updated yet: the old price fades until Update is pressed. */
.mh-line.is-changed .mh-line__price {
	opacity: 0.35;
}

:is(.mh-hire, .mh-catalogue, .mh-list, .mh-quote) .mh-line__remove {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 1;
	display: inline-flex;
	gap: 0.35em;
	align-items: center;
	margin: 0;
	padding: 0.4em 0.9em;
	border: 0;
	border-radius: var(--mt-radius, 999px);
	background: color-mix(in srgb, var(--mh-accent) 12%, var(--mh-bg));
	color: var(--mh-accent);
	font: inherit;
	font-size: 0.85em;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s;
}

:is(.mh-hire, .mh-catalogue, .mh-list, .mh-quote) .mh-line__remove:hover,
:is(.mh-hire, .mh-catalogue, .mh-list, .mh-quote) .mh-line__remove:focus-visible {
	background: color-mix(in srgb, var(--mh-accent) 22%, var(--mh-bg));
	outline: none;
}

.mh-line__remove span {
	font-size: 1.3em;
	line-height: 1;
}

.mh-line__confirm {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
	align-items: center;
	justify-content: space-between;
	margin: 12px 0 0;
	padding: 12px 14px;
	border-radius: var(--mh-radius);
	background: color-mix(in srgb, var(--mh-accent) 10%, var(--mh-bg));
}

.mh-line__ask {
	margin: 0;
	color: var(--mh-strong);
	font-weight: 600;
}

.mh-line__answers {
	display: flex;
	gap: 8px;
}

.mh-line__yes,
.mh-line__no {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	padding: 0.6em 1.15em;
	border: 0;
	border-radius: var(--mt-radius, var(--mh-radius));
	font: inherit;
	font-size: 0.9em;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
}

.mh-line__yes {
	background: var(--mh-accent);
	color: var(--mh-accent-text);
}

.mh-line__no {
	background: var(--mh-bg);
	color: var(--mh-strong);
	box-shadow: inset 0 0 0 1.5px var(--mh-field-line);
}

.mh-line__yes:focus-visible,
.mh-line__no:focus-visible {
	outline: none;
	box-shadow: var(--mh-ring);
}

.mh-line__update {
	margin: 14px 0 0;
}

.mh-line__update:not([hidden]) {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	align-items: center;
}

.mh-line__update[hidden] {
	display: none !important;
}

.mh-line__name {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	color: inherit;
}

.mh-line__img {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 4px;
}

.mh-line__fields {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	align-items: center;
	margin-top: 10px;
}

.mh-line__fields label {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	margin: 0;
}

.mh-line__extras {
	margin-top: 12px;
}

.mh-link-button {
	padding: 0;
	border: 0;
	background: none;
	color: var(--mh-warn);
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.mh-two {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 18px;
	margin-bottom: 12px;
}

@media (max-width: 600px) {
	.mh-two {
		grid-template-columns: 1fr;
	}

	.mh-apply .mh-range,
	.mh-apply .mh-range__btn,
	.mh-line__fields .mh-range,
	.mh-line__fields .mh-range__btn {
		width: 100%;
		min-width: 0;
	}
}

.mh-two input,
.mh-two select,
.mh-list textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.mh-notes {
	margin: 12px 0;
	padding: 12px 14px;
	border-radius: var(--mh-radius);
	background: var(--mh-surface);
}

.mh-delivery-result {
	font-size: 1.05em;
}

/* Quote table. ------------------------------------------------------------- */

.mh-quote-table {
	width: 100%;
	margin: 12px 0;
	border-collapse: collapse;
}

.mh-quote-table th,
.mh-quote-table td {
	padding: 8px 6px;
	border-bottom: 1px solid var(--mh-line);
	text-align: left;
	vertical-align: top;
}

.mh-quote-table .mh-num {
	text-align: right;
}

.mh-quote-table__total td {
	border-top: 2px solid currentColor;
	font-size: 1.1em;
}

.mh-quote__status {
	font-size: 1.1em;
}

.mh-quote form {
	margin: 18px 0;
}

.mh-quote .mh-quote__range {
	max-width: 26em;
	margin-top: 6px;
}

.mh-quote textarea {
	width: 100%;
	box-sizing: border-box;
}

.mh-list-link--empty .mh-list-count {
	opacity: 0.5;
}

.mh-list-count {
	display: inline-block;
	min-width: 1.6em;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--mt-accent, #ff0099);
	color: #fff;
	font-size: 0.8em;
	text-align: center;
}

/* Each prop's own delivery calculator (hire panel) and delivery itemised per prop (hire list). */
.mh-hire__delivery-box {
	margin: 14px 0;
	padding: 12px 14px;
	border: 1px solid var(--mh-line);
	border-radius: var(--mh-radius);
}

.mh-hire__delivery-title {
	margin: 0 0 8px;
}

.mh-hire__postcode {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.mh-hire__postcode .mh-postcode {
	width: 9em;
	text-transform: uppercase;
}

.mh-hire__delivery {
	margin-top: 8px;
	transition: opacity 0.15s;
}

.mh-hire__delivery.mh-busy {
	opacity: 0.5;
}

.mh-hire__delivery-price {
	font-size: 1.1em;
}

.mh-hire__delivery p {
	margin: 0 0 6px;
}

.mh-delivery-items {
	margin-top: 4px;
}

.mh-delivery-note {
	padding: 10px 12px;
	border-left: 4px solid var(--mh-accent);
	border-radius: 0 var(--mh-radius) var(--mh-radius) 0;
	background: rgba(0, 0, 0, 0.04);
}
