/*
 * Booking module "Extra" (class/class.getModuleExt.php) in the look of the module in steps
 * (class/class.getModuleWizard.php): one card with a head, the same calendar, fields, extras,
 * buttons and price panel. The wizard's own stylesheet is the model; keep the two alike.
 *
 * Only for <html class="mx">, the module without a partner style (iframeStyle). It is laid
 * over css/general/widget.css and css/<site>/widgetExt.css. The width of the module (the
 * width parameter of the iframe code) and the order of the parts stay the same, so the module
 * still fits the iframes customers have on their websites.
 *
 * The page keeps its old markup (tables with inline widths), hence the !important on widths
 * and margins. The colours come from src/custom/ModuleExtTheme.php as --mx-* properties;
 * js/moduleExt.js adds the calendar head, the extras' period under the price and the classes
 * mx-* that this sheet uses.
 */

html.mx body {
	background: transparent;
	color: var(--mx-ink);
	font-size: 14px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
html.mx body,
html.mx body * {
	font-family: var(--mx-font);
}
html.mx .fa {
	font-family: FontAwesome;
}

/* ---- The card ---- */
html.mx #container {
	background: var(--mx-page);
	color: var(--mx-ink);
	border: var(--mx-frame-size) solid var(--mx-frame);
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(44, 62, 80, .07);
	box-sizing: content-box;
	text-align: left;
	overflow: hidden;
}
html.mx #container a {
	color: var(--mx-primary);
	text-decoration: none;
}
html.mx #container a:hover {
	color: var(--mx-primary-hover);
}
html.mx #container small {
	color: var(--mx-ink-subtle);
	font-size: 12px;
}

/* ---- Head: title and languages, edge to edge as in the module in steps ---- */
html.mx .top-container-module {
	margin: -20px -20px 0;
	padding: 20px 28px;
	border-bottom: 1px solid var(--mx-line);
	gap: 16px;
}
html.mx .top-container-module .titleHouse {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -.01em;
	line-height: 1.3;
	color: var(--mx-ink);
	padding: 0;
	width: auto;
	height: auto;
	min-width: 0;
	overflow-wrap: break-word;
}
html.mx .countryContainer {
	align-self: center;
	margin: 0;
}
html.mx #country {
	position: relative;
	top: auto;
	right: auto;
	width: auto;
	height: auto;
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 3px;
	border: 1px solid var(--mx-line);
	border-radius: 999px;
	background: var(--mx-soft);
	overflow: visible;
	box-shadow: none;
}
html.mx #country:hover {
	background: var(--mx-soft);
	box-shadow: none;
	padding: 3px;
	border-radius: 999px;
}
html.mx #country a {
	visibility: visible;
	padding: 2px;
	border-radius: 50%;
	line-height: 0;
}
html.mx #country a:hover {
	background: var(--mx-primary-soft);
}
html.mx #country a.active img {
	box-shadow: 0 0 0 2px var(--mx-page), 0 0 0 4px var(--mx-primary);
}
html.mx #country img {
	width: 26px;
	height: 26px;
	object-fit: cover;
}
/* All languages in one row, as the module in steps shows them (the old page opened a list on hover). */
html.mx .containerOtherLanguages {
	display: flex !important;
	position: static;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 4px;
	background: transparent;
	box-shadow: none;
}

/* ---- Links under the head (arrangements, other accommodations, floor plan) ---- */
html.mx span.elkePlek,
html.mx #container > span.lightbox {
	display: inline-block;
	margin: 16px 0 0 8px;
}
html.mx span.elkePlek a,
html.mx #container > span.lightbox a {
	display: inline-block;
	padding: 7px 16px;
	border: 1px solid var(--mx-line-strong);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: var(--mx-ink);
	background: var(--mx-page);
}
html.mx span.elkePlek a:hover,
html.mx #container > span.lightbox a:hover {
	border-color: var(--mx-primary);
	color: var(--mx-primary);
}

/* ---- Section titles ---- */
html.mx .mx-intro {
	padding: 22px 8px 4px;
}
html.mx .mx-section-title,
html.mx #container h1:not(.titleHouse),
html.mx #container h2.title-no-margin {
	font-size: 19px !important;
	font-weight: 700;
	letter-spacing: -.01em;
	line-height: 1.3;
	text-align: left;
	color: var(--mx-ink);
	width: auto;
	margin: 0;
	padding: 0;
	border: 0;
}
html.mx #container h1:not(.titleHouse),
html.mx #container h2.title-no-margin {
	margin: 26px 8px 4px;
	padding-top: 22px;
	border-top: 1px solid var(--mx-line);
}
html.mx .mx-section-help {
	margin: 4px 0 0;
	color: var(--mx-ink-muted);
	font-size: 14px;
}

/* ---- Fields ---- */
html.mx #moduleForm > table.table:not(.optionZ):not(.optionX) {
	width: 100% !important;
	margin: 6px 0 0 !important;
	border-collapse: separate;
	border-spacing: 0;
}
html.mx .table td,
html.mx .table td.first {
	color: var(--mx-ink-muted);
	font-size: 13px;
	font-weight: 500;
	padding: 8px;
	box-sizing: border-box;
}
html.mx input[type="text"],
html.mx input[type="email"],
html.mx input[type="tel"],
html.mx input[type="time"],
html.mx input[type="date"],
html.mx textarea,
html.mx select.input,
html.mx select,
html.mx .date-input-field,
html.mx .custom-option input[type="text"] {
	border: 1px solid var(--mx-line-strong);
	border-radius: 6px;
	background-color: var(--mx-field);
	color: var(--mx-field-ink);
	font-size: 14px;
	font-weight: 400;
	box-shadow: 0 1px 2px rgba(44, 62, 80, .05);
	transition: border-color 160ms ease, box-shadow 160ms ease;
	outline: none;
}
html.mx input.input,
html.mx select.input,
html.mx .date-input-field,
html.mx input[type="time"] {
	min-height: 44px;
	padding: 10px 14px;
	margin-top: 6px;
	box-sizing: border-box;
}
html.mx input[type="text"]:hover:not(:focus),
html.mx input[type="email"]:hover:not(:focus),
html.mx input[type="tel"]:hover:not(:focus),
html.mx textarea:hover:not(:focus),
html.mx select:hover:not(:focus) {
	border-color: var(--mx-ink-subtle);
}
html.mx input:focus,
html.mx textarea:focus,
html.mx select:focus {
	border-color: var(--mx-primary);
	box-shadow: 0 0 0 3px var(--mx-primary-soft);
}
html.mx select.input {
	background: var(--mx-field) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%23475569' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/></svg>") no-repeat right 14px center;
	padding-right: 38px;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
html.mx textarea.input {
	padding: 11px 14px;
	margin-top: 6px;
	min-height: 96px;
	box-sizing: border-box;
}
html.mx .option-select-custom {
	border-radius: 6px;
	min-height: 32px;
	padding: 4px 26px 4px 10px;
	font-weight: 600;
	background-position: center right 8px;
}

/* Number of persons and children: the number between a minus and a plus button. */
html.mx .mx-stepper {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
}
html.mx .mx-stepper input.input {
	margin: 0;
	width: 48px;
	min-height: 36px;
	padding: 0;
	text-align: center;
	font-size: 17px;
	font-weight: 600;
	color: var(--mx-ink);
	border-color: transparent;
	background: transparent;
	box-shadow: none;
}
html.mx .mx-stepper input.input:hover:not(:focus) {
	border-color: var(--mx-line);
}
html.mx .mx-step {
	width: 36px;
	height: 36px;
	flex: 0 0 36px;
	border-radius: 50%;
	border: 1px solid var(--mx-line-strong);
	background: var(--mx-page);
	color: var(--mx-ink);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	box-shadow: 0 1px 2px rgba(44, 62, 80, .05);
	transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
html.mx .mx-step:hover {
	background: var(--mx-primary);
	border-color: var(--mx-primary);
	color: var(--mx-primary-contrast);
}

/* ---- Calendar ---- */
html.mx .container_cal {
	display: block;
	position: relative;
	padding: 52px 0 0;
}
/* The head above the months: buttons left and right, the months in the middle (js/moduleExt.js). */
html.mx .mx-cal-title {
	position: absolute;
	top: 0;
	left: 48px;
	right: 48px;
	height: 36px;
	line-height: 36px;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	color: var(--mx-ink);
	text-transform: capitalize;
	pointer-events: none;
}
html.mx .container_cal .prev,
html.mx .container_cal .next {
	position: absolute;
	top: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid var(--mx-line-strong);
	background: var(--mx-page);
	color: var(--mx-ink-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0;
	z-index: 2;
	box-shadow: 0 1px 2px rgba(44, 62, 80, .05);
	transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
html.mx .container_cal .prev {
	left: 0;
}
html.mx .container_cal .next {
	right: 0;
}
html.mx .container_cal .prev:before,
html.mx .container_cal .next:before {
	content: "";
	width: 8px;
	height: 8px;
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	font-family: inherit;
}
html.mx .container_cal .prev:before {
	transform: translateX(2px) rotate(135deg);
}
html.mx .container_cal .next:before {
	transform: translateX(-2px) rotate(-45deg);
}
html.mx .container_cal .prev:hover,
html.mx .container_cal .next:hover {
	background: var(--mx-primary);
	border-color: var(--mx-primary);
	color: var(--mx-primary-contrast);
}
html.mx .calendars {
	display: grid;
	gap: 20px;
}
html.mx .calendars .cal {
	background: var(--mx-soft);
	border: 1px solid var(--mx-line);
	border-radius: 6px;
	padding: 12px 12px 8px;
	box-sizing: border-box;
	width: 100%;
	display: block;
	float: none;
}
html.mx .calendars .cal > span {
	display: block;
	float: none;
	font-size: 14px;
	font-weight: 600;
	color: var(--mx-ink);
	padding: 0 0 6px;
	text-align: center;
	text-transform: capitalize;
	text-shadow: none;
}
html.mx table.calendar {
	border-collapse: separate;
	border-spacing: 3px;
	table-layout: fixed;
	background: transparent;
}
html.mx table.calendar td,
html.mx table.calendar tr td.calendar-day-head,
html.mx td.calendar-day-np {
	border: 0 !important;
	background: transparent;
	padding: 0;
	line-height: normal;
}
html.mx table.calendar tr td.calendar-day-head {
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--mx-ink-subtle);
	padding: 4px 0 6px;
}
html.mx td.calendar-day p {
	display: none;
}
html.mx td.calendar-day-np {
	height: 0;
}
html.mx div.day-number {
	height: 32px;
	line-height: 32px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
	text-align: center;
	text-shadow: none;
	text-decoration: none !important;
	color: var(--mx-ink-subtle);
	background: transparent;
	opacity: 1;
	cursor: default !important;
	transition: background-color 140ms ease, color 140ms ease, opacity 140ms ease, box-shadow 140ms ease;
}
html.mx div.day-number.current {
	box-shadow: inset 0 0 0 1.5px var(--mx-ink-subtle);
}
/* Free: soft; a day the guest can arrive on: solid, as the module in steps shows them. */
html.mx div.day-number.a,
html.mx div.day-number.a[data-background="dark-green"] {
	background: var(--mx-ok-soft);
	color: var(--mx-ok-soft-contrast);
}
html.mx div.day-number.g {
	background: var(--mx-warn);
	color: var(--mx-warn-contrast);
}
html.mx div.day-number.b,
html.mx div.day-number.db,
html.mx div.day-number.be {
	background: var(--mx-bad);
	color: var(--mx-bad-contrast);
}
html.mx div.day-number.o,
html.mx div.day-number.ob {
	background: var(--mx-option);
	color: var(--mx-option-contrast);
}
/* Changeover days: c = someone leaves (morning booked), d = someone arrives (evening booked). */
html.mx div.day-number.c,
html.mx div.day-number.ce,
html.mx div.day-number.c[data-background="dark-green"],
html.mx div.day-number.ce[data-background="dark-green"] {
	background: linear-gradient(to right, var(--mx-bad) 0 50%, var(--mx-ok) 50% 100%);
	color: var(--mx-ok-bad-contrast);
}
html.mx div.day-number.d,
html.mx div.day-number.d[data-background="dark-green"] {
	background: linear-gradient(to right, var(--mx-ok) 0 50%, var(--mx-bad) 50% 100%);
	color: var(--mx-ok-bad-contrast);
}
html.mx div.day-number.co {
	background: linear-gradient(to right, var(--mx-option) 0 50%, var(--mx-ok) 50% 100%);
	color: var(--mx-ok-option-contrast);
}
html.mx div.day-number.do {
	background: linear-gradient(to right, var(--mx-ok) 0 50%, var(--mx-option) 50% 100%);
	color: var(--mx-ok-option-contrast);
}
html.mx div.day-number.mx-arrive,
html.mx div.day-number.mx-depart {
	font-weight: 700;
	cursor: pointer !important;
}
html.mx div.day-number.a.mx-arrive,
html.mx div.day-number.a.mx-depart {
	background: var(--mx-ok);
	color: var(--mx-ok-contrast);
}
html.mx div.day-number.g.mx-arrive {
	background: linear-gradient(to right, var(--mx-ok) 0 50%, var(--mx-warn) 50% 100%);
	color: var(--mx-ok-warn-contrast);
}
html.mx div.day-number.a.mx-arrive:hover,
html.mx div.day-number.a.mx-depart:hover {
	background: var(--mx-ok-hover);
}
html.mx div.day-number.mx-arrive:hover,
html.mx div.day-number.mx-depart:hover {
	filter: brightness(1.06);
}
/* Choosing the departure: the days that cannot be one step back. */
html.mx .calendars.mx-picking-departure div.day-number:not(.mx-depart):not(.activeDate):not(.betweenDate):not(.mx-preview) {
	opacity: .38;
}
html.mx div.day-number.mx-preview,
html.mx div.day-number.betweenDate {
	background: var(--mx-range) !important;
	color: var(--mx-range-contrast) !important;
	font-weight: 500;
}
html.mx div.day-number.activeDate,
html.mx div.day-number.endDate {
	background: var(--mx-selected) !important;
	color: var(--mx-selected-contrast) !important;
	font-weight: 700;
	box-shadow: inset 0 0 0 2px var(--mx-page), inset 0 0 0 4px var(--mx-selected);
	cursor: pointer !important;
}

/* Loading: a small spinner in the middle of the months. */
html.mx .container_cal .loading {
	top: 52px;
	left: 0;
	right: 0;
	bottom: 0;
	background: transparent;
	border: 0;
	padding: 0;
	font-size: 0;
	line-height: 0;
	opacity: 1;
	text-shadow: none;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}
html.mx .container_cal .loading[style*="display: none"] {
	display: none !important;
}
html.mx .container_cal .loading img {
	display: none;
}
html.mx .container_cal .loading:before {
	content: "";
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 3px solid var(--mx-primary-soft);
	border-top-color: var(--mx-primary);
	animation: mx-spin .8s linear infinite;
	background: var(--mx-page);
	box-shadow: 0 0 0 10px var(--mx-page);
}
@keyframes mx-spin {
	to { transform: rotate(360deg); }
}

/* Legend: one quiet row under the months. */
html.mx .legendaContainer {
	display: block;
	margin: 14px 0 0;
	text-align: center;
}
html.mx .legendaContainer .legenda {
	float: none;
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 4px;
	width: auto;
	margin: 0;
	padding: 8px 16px;
	font-size: 12px;
	font-weight: 400;
	color: var(--mx-ink-muted);
	background: var(--mx-soft);
	border: 1px solid var(--mx-line);
	border-radius: 4px;
}
html.mx .legenda span[class^="available"] {
	width: 10px;
	height: 10px;
	border-radius: 3px;
	vertical-align: middle;
	margin-left: 12px;
}
html.mx .legenda span[class^="available"]:first-child {
	margin-left: 0;
}
html.mx .legenda .availableGreen { background: var(--mx-ok); }
html.mx .legenda .availableYellow { background: var(--mx-warn); }
html.mx .legenda .availableBlue { background: var(--mx-option); }
html.mx .legenda .availableRed { background: var(--mx-bad); }

/* ---- Switches and check boxes ---- */
html.mx .switch {
	width: 38px;
	height: 22px;
	flex: 0 0 38px;
}
html.mx .slider {
	background-color: var(--mx-line-strong);
	border-radius: 999px;
	transition: background-color 160ms ease;
}
html.mx .slider:before {
	width: 18px;
	height: 18px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
	transition: transform 160ms ease;
}
html.mx input[type="checkbox"]:checked + .slider {
	background-color: var(--mx-primary);
}
html.mx input[type="checkbox"]:checked + .slider:before {
	transform: translateX(16px);
}
html.mx input[type="checkbox"]:disabled + .slider {
	opacity: .55;
}
html.mx input:focus-visible + .slider {
	box-shadow: 0 0 0 3px var(--mx-primary-soft);
}
html.mx input[type="checkbox"] + label:before {
	width: 18px;
	height: 18px;
	line-height: 16px;
	border: 1.5px solid var(--mx-line-strong);
	border-radius: 4px;
	background: var(--mx-field);
	box-sizing: border-box;
}
html.mx input[type="checkbox"]:checked + label:before,
html.mx input[type="checkbox"]:disabled + label:before {
	background: var(--mx-primary);
	border-color: var(--mx-primary);
	color: var(--mx-primary-contrast);
}

/* ---- Extras and discounts: cards in two columns, as the extras of the module in steps ----
   The rows stay table rows for the page's own script (it shows and hides them by date), but
   are laid out as a grid of cards. */
html.mx table.optionZ,
html.mx table.optionX {
	display: block;
	width: auto !important;
	margin: 12px 8px 0 !important;
	padding: 0;
}
html.mx table.optionZ > tbody,
html.mx table.optionX > tbody {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}
html.mx table.optionZ tr,
html.mx table.optionX tr {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	padding: 10px 14px;
	background: var(--mx-page);
	border: 1px solid var(--mx-line);
	border-radius: 6px;
	transition: background-color 160ms ease, border-color 160ms ease;
}
html.mx table.optionZ td,
html.mx table.optionX td {
	display: block;
	width: auto !important;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--mx-ink);
	font-size: 13px;
	line-height: 18px;
}
html.mx table.optionZ td:first-child,
html.mx table.optionX td:first-child {
	flex: 0 0 auto;
	line-height: 0;
}
/* The title: the second cell. */
html.mx table.optionZ td:nth-child(2),
html.mx table.optionX td:nth-child(2) {
	flex: 1 1 auto;
	min-width: 0;
	font-weight: 600;
}
html.mx table.optionZ td:nth-child(3),
html.mx table.optionX td:nth-child(3) {
	flex: 0 0 auto;
}
html.mx table.optionZ td:nth-child(3):empty,
html.mx table.optionX td:nth-child(3):empty {
	display: none;
}
html.mx tr.mx-option-row {
	cursor: pointer;
}
html.mx tr.mx-option-row:hover {
	border-color: var(--mx-primary);
	background: var(--mx-soft);
}
html.mx tr.mx-option-on,
html.mx tr.mx-option-row.mx-option-on {
	border-color: var(--mx-primary);
	background: var(--mx-primary-soft);
}
html.mx tr.mx-option-on:not(.mx-option-required) td,
html.mx tr.mx-option-on:not(.mx-option-required) .mx-option-period,
html.mx tr.mx-option-on:not(.mx-option-required) .mx-option-note {
	color: var(--mx-on-primary-soft);
}
html.mx tr.mx-option-required,
html.mx tr.mx-option-required.mx-option-on {
	border-color: var(--mx-line);
	background: var(--mx-soft);
}
/* The period (per night, per booking) under the price instead of in its own column. */
html.mx table.optionZ td.greyIt.mx-moved,
html.mx table.optionX td.greyIt.mx-moved {
	display: none;
}
html.mx .greyIt {
	color: var(--mx-ink-muted);
	font-size: 13px;
}
html.mx .boldText,
html.mx table.optionZ td:last-child,
html.mx table.optionX td:last-child {
	flex: 0 0 auto;
	margin-left: auto;
	font-weight: 600;
	text-align: right;
	white-space: nowrap;
}
/* A sentence instead of a price (the cancellation insurance: "Prijs wordt getoond tijdens
   berekening") goes under the title (js/moduleExt.js); its own cell, if left, may wrap. */
html.mx table.optionZ td[colspan],
html.mx table.optionX td[colspan] {
	flex: 0 1 auto;
	max-width: 40%;
	white-space: normal;
	font-weight: 400;
	font-size: 12px;
	color: var(--mx-ink-muted);
}
html.mx table.optionZ td.mx-moved,
html.mx table.optionX td.mx-moved {
	display: none;
}
html.mx .mx-option-note {
	display: block;
	font-weight: 400;
	font-size: 12px;
	line-height: 16px;
	color: var(--mx-ink-muted);
}
html.mx .mx-option-period {
	display: block;
	font-weight: 400;
	font-size: 11px;
	line-height: 15px;
	color: var(--mx-ink-muted);
}
html.mx .circle-i {
	background-color: var(--mx-primary);
}

/* ---- Places (loaded into #price) ---- */
html.mx .select-places-container {
	width: auto;
	margin: 10px 8px;
	background: transparent;
}
html.mx .rooms.rooms-module-ext td.avail,
html.mx .rooms.rooms-module-ext td.unavail,
html.mx .rooms.rooms-module-ext td.taken {
	border-radius: 6px;
	border: 1px solid var(--mx-line-strong) !important;
}
html.mx .rooms.rooms-module-ext td.avail {
	background: var(--mx-ok-soft);
	color: var(--mx-ok-soft-contrast);
	cursor: pointer;
}
html.mx .rooms.rooms-module-ext td.avail:hover,
html.mx .rooms.rooms-module-ext td.avail.active,
html.mx .rooms.rooms-module-ext td.unavail.active {
	background: var(--mx-selected);
	color: var(--mx-selected-contrast);
	border-color: var(--mx-selected) !important;
}
html.mx .rooms.rooms-module-ext td.unavail {
	background: var(--mx-soft);
	color: var(--mx-ink-subtle);
}
html.mx .rooms td.rooms-title h2 {
	color: var(--mx-ink);
	font-size: 16px;
	font-weight: 700;
	text-align: left;
}

/* ---- Price: a panel like "Jouw reservering" of the module in steps ---- */
html.mx input.grey[name="bereken"] {
	display: none;
}
html.mx #calcPriceResult {
	padding: 0;
	width: auto;
	margin: 18px 8px 0;
	position: relative;
	transition: opacity 160ms ease;
}
html.mx #calcPriceResult.mx-busy {
	opacity: .55;
}
html.mx #calcPriceResult .mx-price-hint {
	padding: 14px 18px;
	border: 1px dashed var(--mx-line-strong);
	border-radius: 8px;
	background: var(--mx-soft);
	color: var(--mx-ink-muted);
	font-size: 13px;
	font-style: italic;
	text-align: center;
}
html.mx #calcPriceResult .priceCalculation {
	width: auto;
	margin: 0;
	padding: 0;
	background: var(--mx-page);
	border: 1px solid var(--mx-line);
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(44, 62, 80, .07);
	overflow: hidden;
}
html.mx #container #calcPriceResult .priceCalculation h1 {
	font-size: 14px !important;
	font-weight: 600;
	margin: 0;
	padding: 14px 18px;
	border: 0;
	border-bottom: 1px solid var(--mx-line);
	background: var(--mx-soft);
}
html.mx #calcPriceResult .priceCalculation > table {
	width: 100% !important;
	margin: 0;
	padding: 12px 18px 14px;
	border-collapse: separate;
	border-spacing: 0;
	box-sizing: border-box;
}
html.mx #calcPriceResult .priceCalculation td {
	font-size: 13px;
	line-height: 20px;
	color: var(--mx-ink);
	padding: 2px 0;
	background: transparent;
}
html.mx #calcPriceResult .priceCalculation td:first-child {
	color: var(--mx-ink-muted);
}
html.mx #calcPriceResult .priceCalculation td:last-child {
	text-align: right;
}
html.mx #calcPriceResult .priceCalculation tr.mx-total td {
	padding-top: 12px;
	border-top: 1px solid var(--mx-line);
	color: var(--mx-ink);
	font-size: 14px;
	font-weight: 500;
}
html.mx #calcPriceResult .priceCalculation h3 {
	color: var(--mx-total);
	font-size: 20px;
	font-weight: 700;
	margin: 0;
}
html.mx #calcPriceResult fieldset {
	width: auto;
	margin: 0;
}

/* ---- Notices ---- */
html.mx .result.error {
	width: auto;
	box-sizing: border-box;
	margin: 10px 8px;
	background: var(--mx-bad-soft);
	border: 1px solid var(--mx-bad);
	border-radius: 6px;
	color: var(--mx-ink);
	font-size: 14px;
	font-weight: 600;
	padding: 12px 16px;
}

/* ---- Terms and the button ---- */
html.mx .rentalConditionsContainer,
html.mx #conditionsRow td {
	padding-top: 12px !important;
}
html.mx a.rentalConditions {
	font-weight: 600;
}
html.mx button.green,
html.mx .grey,
html.mx .grey-floorplan {
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	transition: background-color 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
html.mx button.green {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: calc(100% - 16px);
	margin: 20px 8px 4px;
	padding: 14px 32px;
	background: var(--mx-primary);
	color: var(--mx-primary-contrast);
	border: 1px solid var(--mx-primary);
	box-shadow: 0 2px 6px rgba(44, 62, 80, .12);
}
html.mx button.green:hover {
	background: var(--mx-primary-hover);
	border-color: var(--mx-primary-hover);
}
html.mx button.green:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px var(--mx-primary-soft);
}
html.mx .grey,
html.mx .grey-floorplan {
	background: var(--mx-page);
	color: var(--mx-ink);
	border: 1px solid var(--mx-line-strong);
	padding: 10px 24px;
}
html.mx .grey:hover,
html.mx .grey-floorplan:hover {
	border-color: var(--mx-primary);
	color: var(--mx-primary);
	background: var(--mx-page);
}

/* ---- Footer ---- */
/* Outside the card, on the website's own background: a neutral grey, not the account's text colour. */
html.mx #copy {
	color: #6B7785;
	font-size: 12px;
	align-items: center;
	gap: 4px;
	margin-top: 14px;
}
html.mx #copy a {
	color: var(--mx-primary);
}
html.mx #copy img {
	width: 14px;
	height: 14px;
}

/* ---- An iframe lower than the module ----
   Many websites have the module in an iframe of a fixed height with scrolling="no" and no
   script that resizes it. When the module is taller than that frame, the guest scrolls inside
   it instead of missing the bottom (js/moduleExt.js sets the class). */
html.mx.mx-scroll {
	height: 100%;
	overflow: hidden;
}
html.mx.mx-scroll body {
	height: 100%;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
