/**
 * MDotCar Elementor Widgets — front-end styles.
 *
 * Only defaults live here; everything a control touches is emitted by Elementor
 * with higher specificity, so setting a control always wins over these rules.
 */

/* -----------------------------------------------------------------------------
 * Title widget — Style 1
 * -------------------------------------------------------------------------- */

.mdotcar-title {
	box-sizing: border-box;
	/* Anchors the visually hidden icon label. */
	position: relative;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-content: center;
	justify-content: center;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	background: linear-gradient( 103deg, rgba( 239, 239, 239, 0.60 ) 17.45%, rgba( 255, 255, 255, 0.20 ) 79.67% );
}

.mdotcar-title *,
.mdotcar-title *::before,
.mdotcar-title *::after {
	box-sizing: inherit;
}

/* Width / height modes. Custom values come from the panel. */

.mdotcar-title--width-fit {
	width: -moz-fit-content;
	width: fit-content;
}

.mdotcar-title--width-full {
	width: 100%;
}

.mdotcar-title--height-fit {
	height: auto;
}

/*
 * The Minimum and Fixed modes get their `min-height` / `height` straight from
 * the panel, so nothing is declared for them here. These classes only exist as
 * styling hooks — a value that reached the box through the stylesheet instead
 * would silently do nothing on a widget saved under an older mode name.
 */

/* As a link the box keeps the theme's colours rather than the link palette. */
a.mdotcar-title {
	text-decoration: none;
	color: inherit;
}

.mdotcar-title__text {
	margin: 0;
	min-width: 0;
	/* Long words and URLs break instead of overflowing the box. */
	overflow-wrap: anywhere;
}

/* Icon label: announced by screen readers, invisible on screen. */
.mdotcar-title__sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect( 0 0 0 0 );
	clip-path: inset( 50% );
	white-space: nowrap;
}

/*
 * Icon. There is no wrapper element: a font icon is the `<i>` itself and an
 * uploaded SVG is the `<svg>` itself, because Elementor prints raw SVG markup
 * that no class can be attached to. Both are therefore styled as direct
 * children of the box, and their size flows through custom properties the
 * panel sets on the box.
 */

.mdotcar-title > .mdotcar-title__icon,
.mdotcar-title > i,
.mdotcar-title > svg {
	/* Never shrink or stretch: the icon keeps its size whatever Align Items says. */
	flex: 0 0 auto;
	box-sizing: border-box;
	color: inherit;
}

/* A font icon draws from its font-size, with the glyph centred in the element. */
.mdotcar-title > .mdotcar-title__icon,
.mdotcar-title > i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: var( --mdotcar-title-icon-size, 24px );
	/* Font icons carry leading that would push the glyph off-centre. */
	line-height: 1;
}

.mdotcar-title > .mdotcar-title__icon::before,
.mdotcar-title > i::before {
	display: block;
	line-height: 1;
}

/* An SVG has no font-size, so the same value becomes its width and height. */
.mdotcar-title > svg {
	display: block;
	width: var( --mdotcar-title-icon-size, 24px );
	height: var( --mdotcar-title-icon-size, 24px );
	fill: currentColor;
}

/*
 * Fixed-box mode. The icon element is the box: it takes the box size, and the
 * padding — half the difference between the two sizes — leaves the glyph itself
 * at the icon size. `border-box` keeps the outer size exactly as set, and an
 * explicit cross size means `align-items: stretch` cannot distort it.
 */
.mdotcar-title--icon-box > .mdotcar-title__icon,
.mdotcar-title--icon-box > i,
.mdotcar-title--icon-box > svg {
	width: var( --mdotcar-title-icon-box, 40px );
	height: var( --mdotcar-title-icon-box, 40px );
	overflow: hidden;
}

.mdotcar-title--icon-box > svg {
	padding: calc( ( var( --mdotcar-title-icon-box, 40px ) - var( --mdotcar-title-icon-size, 24px ) ) / 2 );
}

/* -----------------------------------------------------------------------------
 * Vehicle Tariff widget
 *
 * The panel carries the design values as control defaults; these rules are the
 * structure they hang on, plus the same values as a fallback.
 * -------------------------------------------------------------------------- */

.mdotcar-vehicles {
	display: grid;
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	gap: 24px;
}

.mdotcar-vehicle {
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 32px;
	padding-bottom: 16px;
	overflow: hidden;
	border-radius: 16px;
	border-inline-start: 1px solid #0095FF;
	background-color: #FFFFFF;
	box-shadow: 0 2px 10px 0 rgba( 24, 36, 101, 0.10 );
	/* The whole card is the link. */
	color: inherit;
	text-decoration: none;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.mdotcar-vehicle *,
.mdotcar-vehicle *::before,
.mdotcar-vehicle *::after {
	box-sizing: inherit;
}

.mdotcar-vehicle:focus-visible {
	outline: 2px solid #0095FF;
	outline-offset: 2px;
}

/* Layer order: background colour, blue ellipse, backdrop image, content. */

.mdotcar-vehicle__blob {
	position: absolute;
	inset-inline: -10%;
	top: -45px;
	z-index: 0;
	width: 120%;
	height: 154px;
	border-radius: 9999px;
	background-color: #E6F4FF;
}

.mdotcar-vehicle__backdrop {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	pointer-events: none;
}

.mdotcar-vehicle > .mdotcar-vehicle__media,
.mdotcar-vehicle > .mdotcar-vehicle__title,
.mdotcar-vehicle > .mdotcar-vehicle__tariffs,
.mdotcar-vehicle > .mdotcar-vehicle__foot,
.mdotcar-vehicle__badge {
	position: relative;
	z-index: 1;
}

/* Image */

.mdotcar-vehicle__media {
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: center;
}

/*
 * !important on the box-determining properties: many themes and even Elementor
 * itself ship a global reset such as `.elementor-widget-container img {
 * max-width: 100%; height: auto; }`, whose specificity (0,1,1) beats a plain
 * class selector (0,1,0). Losing `height` there falls back to the image's own
 * intrinsic aspect ratio — invisible on WordPress's small built-in placeholder,
 * but a real uploaded photo then renders far taller than intended. These three
 * properties are the ones such resets touch; nothing else here needs it.
 */
.mdotcar-vehicle__image {
	display: block;
	width: auto !important;
	max-width: 85% !important;
	height: 120px !important;
	object-fit: contain;
}

/* Badge: sized by its icon plus padding, floating over the top corner. */

.mdotcar-vehicle__badge {
	position: absolute;
	top: 16px;
	/* Reading side, so the badge sits top-right in RTL as the design shows. */
	inset-inline-start: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px;
	border-radius: 50%;
	background-color: #FCFDFD;
	color: #424242;
	line-height: 0;
}

.mdotcar-vehicle__badge svg,
.mdotcar-vehicle__badge-image {
	display: block;
	width: var( --mdotcar-badge-icon, 34px ) !important;
	height: var( --mdotcar-badge-icon, 34px ) !important;
}

.mdotcar-vehicle__badge i {
	font-size: var( --mdotcar-badge-icon, 34px );
	line-height: 1;
}

/* Title */

.mdotcar-vehicle__title {
	align-self: stretch;
	margin: 0;
	padding: 24px 16px 0;
	text-align: center;
	color: #212121;
	font-family: 'Dana-FaNum', 'Dana', 'IRANSansX', 'IRANSans', sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 32px;
	overflow-wrap: anywhere;
}

/* Tariff columns: three equal columns with the divider centred in the gap. */

.mdotcar-vehicle__tariffs {
	align-self: stretch;
	display: flex;
	align-items: stretch;
	gap: 16px;
	padding: 16px 16px 0;
}

.mdotcar-vehicle__tariff {
	position: relative;
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	text-align: center;
	font-family: 'Dana-FaNum', 'Dana', 'IRANSansX', 'IRANSans', sans-serif;
}

/* The divider is drawn in the middle of the gap, not on a column edge. */
.mdotcar-vehicle__tariff + .mdotcar-vehicle__tariff::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	inset-inline-start: var( --mdotcar-tariff-divider-offset, -8px );
	width: 1px;
	background-color: #E2E8F0;
}

.mdotcar-vehicle__tariff-label {
	color: #424242;
	font-size: 14px;
	font-weight: 500;
	line-height: 22px;
}

.mdotcar-vehicle__tariff--featured .mdotcar-vehicle__tariff-label {
	color: #0088E8;
	font-weight: 700;
}

.mdotcar-vehicle__tariff-amount {
	color: #212121;
	font-size: 18px;
	font-weight: 500;
	line-height: 26px;
}

.mdotcar-vehicle__tariff-currency {
	color: #9E9E9E;
	font-size: 12px;
	font-weight: 400;
	line-height: 18px;
}

/* Foot: a dashed rule, then the action row. */

.mdotcar-vehicle__foot {
	align-self: stretch;
	margin: 16px 16px 0;
	border-top: 1px dashed #DCDFE4;
}

.mdotcar-vehicle__action {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 12px 0 8px;
	color: #3F51B5;
	font-family: 'Dana-FaNum', 'Dana', 'IRANSansX', 'IRANSans', sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.mdotcar-vehicle__action-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.mdotcar-vehicle__action-icon svg {
	display: block;
	width: var( --mdotcar-action-icon, 20px );
	height: var( --mdotcar-action-icon, 20px );
	fill: currentColor;
}

.mdotcar-vehicle__action-icon i {
	font-size: var( --mdotcar-action-icon, 20px );
	line-height: 1;
}

/* -----------------------------------------------------------------------------
 * Header Menu — a bar with a mega menu on wide screens, a drawer on narrow ones
 *
 * The defaults are mdotcar.com's header design; the panel's controls set the
 * custom properties below. The mega menu and the drawer are position: fixed
 * (the script places the panel under the header and moves the drawer to
 * <body>, so no parent's overflow or stacking can cut them).
 * -------------------------------------------------------------------------- */

.mdotcar-hmenu {
	--mdotcar-hmenu-gap: 48px;
	--mdotcar-hmenu-height: 88px;
	--mdotcar-hmenu-color-normal: #424242;
	--mdotcar-hmenu-color-hover: #3F51B5;
	--mdotcar-hmenu-color-active: #3F51B5;
	--mdotcar-hmenu-caret-normal: #BDBDBD;
	--mdotcar-hmenu-caret-hover: #7986CB;
	--mdotcar-hmenu-indicator: #3F51B5;
	--mdotcar-hmenu-divider: #E8EAF6;
	--mdotcar-mega-width: 1170px;
	--mdotcar-mega-bg: #FFFFFF;
	--mdotcar-mega-dim: rgba( 117, 117, 117, 0.5 );
	--mdotcar-card-hover-bg: #F4F5F7;
	--mdotcar-card-title: #424242;
	--mdotcar-card-title-hover: #3F51B5;
	--mdotcar-card-desc: #616161;
	--mdotcar-card-icon: 40px;
	--mdotcar-card-icon-pad: 8px;
	--mdotcar-card-icon-border: #F5F5F5;
	--mdotcar-toggle-size: 24px;
	--mdotcar-toggle-color: #424242;
	position: relative;
	display: flex;
	align-items: center;
}

.mdotcar-hmenu *,
.mdotcar-hmenu-drawer__panel {
	box-sizing: border-box;
}

/* Only the widget's own parts: the drawer's template keeps its widgets' styles. */
.mdotcar-hmenu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mdotcar-hmenu button,
.mdotcar-hmenu-drawer__close {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	line-height: inherit;
	text-align: inherit;
	text-transform: none;
	cursor: pointer;
}

.mdotcar-hmenu button:focus-visible,
.mdotcar-hmenu a:focus-visible,
.mdotcar-hmenu-drawer__close:focus-visible {
	outline: 2px solid #7986CB !important;
	outline-offset: 2px;
	border-radius: 6px;
}

/* The bar --------------------------------------------------------------------- */

.mdotcar-hmenu__nav {
	flex: 1 1 auto;
}

.mdotcar-hmenu__bar {
	/* Holds the sliding line. */
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var( --mdotcar-hmenu-gap );
}

.mdotcar-hmenu__item {
	position: relative;
	display: flex;
	align-items: center;
	height: var( --mdotcar-hmenu-height );
}

.mdotcar-hmenu__link {
	display: inline-flex;
	align-items: center;
	color: var( --mdotcar-hmenu-color-normal );
	font-size: 16px;
	font-weight: 500;
	line-height: 27.2px;
	white-space: nowrap;
	text-decoration: none;
	transition: color 0.25s ease;
}

a.mdotcar-hmenu__link:hover,
.mdotcar-hmenu__item.is-open > .mdotcar-hmenu__link {
	color: var( --mdotcar-hmenu-color-hover );
}

.mdotcar-hmenu__item.is-current > .mdotcar-hmenu__link {
	color: var( --mdotcar-hmenu-color-active );
}

.mdotcar-hmenu__caret {
	display: inline-flex;
	align-items: center;
	margin-inline-start: 8px !important;
	color: var( --mdotcar-hmenu-caret-normal ) !important;
	transition: color 0.25s ease, transform 0.45s cubic-bezier( 0.22, 1, 0.36, 1 );
}

.mdotcar-hmenu__caret svg {
	display: block;
	width: 24px;
	height: 24px;
}

.mdotcar-hmenu__item.is-open > .mdotcar-hmenu__caret {
	color: var( --mdotcar-hmenu-caret-hover ) !important;
	transform: rotate( 180deg );
}

/* The line under the open item, on the header's bottom edge. */
.mdotcar-hmenu__item.has-mega::after {
	content: "";
	position: absolute;
	inset-inline: -18px;
	bottom: 0;
	height: 1px;
	background: var( --mdotcar-hmenu-indicator );
	opacity: 0;
	transition: opacity 0.2s ease;
}

.mdotcar-hmenu__item.is-open::after {
	opacity: 1;
}

/* A thin divider before the last item (the "join as a rescuer" link). */
.mdotcar-hmenu-divider-yes .mdotcar-hmenu__item:last-child {
	margin-inline-start: 16px;
}

.mdotcar-hmenu-divider-yes .mdotcar-hmenu__item:last-child::before {
	content: "";
	position: absolute;
	inset-inline-start: -32px;
	top: 50%;
	width: 1px;
	height: 32px;
	margin-top: -16px;
	background: var( --mdotcar-hmenu-divider );
}

/*
 * The mega menu: the window's full width; its cards in a centred column.
 *
 * Opening, it unfolds down from the header's edge (a clip wipe, with a slight
 * drop) and its cards follow one after another. Closing is the same played
 * back, quicker: the panel rolls up into the header like a blind, its cards
 * riding up with it and fading, opaque until it is almost gone. Moving from one item
 * to another keeps the panel: the script eases its height to the new cards
 * and slides the cards across (is-switching, is-leaving).
 */

.mdotcar-hmenu__mega {
	--mdotcar-mega-ease: cubic-bezier( 0.22, 1, 0.36, 1 );
	position: fixed;
	z-index: 1000;
	top: var( --mdotcar-mega-top, var( --mdotcar-hmenu-height ) );
	right: 0;
	left: 0;
	max-height: calc( 100vh - var( --mdotcar-mega-top, var( --mdotcar-hmenu-height ) ) );
	max-height: calc( 100dvh - var( --mdotcar-mega-top, var( --mdotcar-hmenu-height ) ) );
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 40px 16px 69px;
	border-radius: 0 0 24px 24px;
	background: var( --mdotcar-mega-bg );
	box-shadow: 0 10px 20px rgba( 0, 0, 0, 0.15 );
	visibility: hidden;
	opacity: 0;
	clip-path: inset( 0 0 100% 0 );
	transform: translateY( -8px );
	transition:
		clip-path 0.34s cubic-bezier( 0.5, 0, 0.2, 1 ),
		transform 0.34s cubic-bezier( 0.5, 0, 0.2, 1 ),
		opacity 0.1s ease 0.24s,
		visibility 0s linear 0.34s;
}

.mdotcar-hmenu__item.is-open > .mdotcar-hmenu__mega,
.mdotcar-hmenu.is-editor-mega .mdotcar-hmenu__mega {
	visibility: visible;
	opacity: 1;
	/* Below the bottom edge too, so the shadow shows. */
	clip-path: inset( 0 0 -48px 0 );
	transform: none;
	transition:
		clip-path 0.55s var( --mdotcar-mega-ease ),
		transform 0.55s var( --mdotcar-mega-ease ),
		opacity 0.1s linear;
}

.mdotcar-hmenu.is-switching .mdotcar-hmenu__mega {
	transition: none;
}

/* The panel being left while the next one takes its place: shown, under it. */
.mdotcar-hmenu__item.is-leaving > .mdotcar-hmenu__mega {
	z-index: 999;
	visibility: visible;
	opacity: 1;
	clip-path: inset( 0 0 -48px 0 );
	transform: none;
	transition: none;
}

.mdotcar-hmenu__mega-grid {
	display: grid;
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	gap: 24px;
	max-width: var( --mdotcar-mega-width );
	margin: 0 auto !important;
}

/* The cards, one after another (--i is each card's place). */
.mdotcar-hmenu__mega-grid > li {
	opacity: 0;
	transform: translateY( 12px );
	transition: opacity 0.15s ease, transform 0s linear 0.15s;
}

/* Closing: the cards go up with the panel's edge, fading as they go. */
.mdotcar-hmenu__item.is-closing .mdotcar-hmenu__mega-grid > li {
	opacity: 0;
	transform: translateY( -10px );
	transition: opacity 0.26s ease, transform 0.34s cubic-bezier( 0.5, 0, 0.2, 1 );
}

.mdotcar-hmenu__item.is-leaving .mdotcar-hmenu__mega-grid > li,
.mdotcar-hmenu.is-switching .mdotcar-hmenu__item.is-open .mdotcar-hmenu__mega-grid > li {
	opacity: 1;
	transform: none;
	transition: none;
}

.mdotcar-hmenu__item.is-open .mdotcar-hmenu__mega-grid > li,
.mdotcar-hmenu.is-editor-mega .mdotcar-hmenu__mega-grid > li {
	opacity: 1;
	transform: none;
	transition: opacity 0.4s ease, transform 0.55s var( --mdotcar-mega-ease );
	transition-delay: calc( 90ms + min( var( --i, 0 ), 9 ) * 35ms );
}

.mdotcar-hmenu__dim {
	position: fixed;
	z-index: 999;
	top: var( --mdotcar-mega-top, var( --mdotcar-hmenu-height ) );
	right: 0;
	bottom: 0;
	left: 0;
	background: var( --mdotcar-mega-dim );
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.mdotcar-hmenu.is-mega-open[data-dim="1"] .mdotcar-hmenu__dim {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
	transition: opacity 0.4s ease;
}

/* The line under the open item, one for the bar: it slides from item to item. */
.mdotcar-hmenu__ink {
	--mdotcar-ink-reach: 18px;
	position: absolute;
	z-index: 1;
	top: 0;
	left: 0;
	height: 1px;
	background: var( --mdotcar-hmenu-indicator );
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.mdotcar-hmenu__ink.is-on {
	opacity: 1;
	transition: opacity 0.2s ease;
}

.mdotcar-hmenu__ink.is-sliding {
	transition:
		opacity 0.2s ease,
		transform 0.42s cubic-bezier( 0.22, 1, 0.36, 1 ),
		width 0.42s cubic-bezier( 0.22, 1, 0.36, 1 );
}

.mdotcar-hmenu.has-ink .mdotcar-hmenu__item.has-mega::after {
	display: none;
}

@media ( prefers-reduced-motion: reduce ) {
	.mdotcar-hmenu__mega,
	.mdotcar-hmenu__item.is-open > .mdotcar-hmenu__mega,
	.mdotcar-hmenu__mega-grid > li,
	.mdotcar-hmenu__item.is-open .mdotcar-hmenu__mega-grid > li,
	.mdotcar-hmenu__item.is-closing .mdotcar-hmenu__mega-grid > li {
		clip-path: none;
		transform: none;
		transition-property: opacity, visibility;
		transition-delay: 0s;
	}
}

.mdotcar-hmenu__card {
	display: flex;
	gap: 12px;
	height: 100%;
	padding: 16px;
	border-radius: 16px;
	color: inherit;
	text-decoration: none;
	transition: background-color 0.3s ease;
}

a.mdotcar-hmenu__card:hover,
a.mdotcar-hmenu__card:focus-visible {
	background-color: var( --mdotcar-card-hover-bg );
}

/*
 * With the script: one highlight glides between the cards instead of each
 * card lighting up on its own. The cards sit above it.
 */
.mdotcar-hmenu__mega-grid {
	position: relative;
}

.mdotcar-hmenu__mega-grid > li {
	position: relative;
	z-index: 1;
}

.mdotcar-hmenu.has-glow a.mdotcar-hmenu__card:hover,
.mdotcar-hmenu.has-glow a.mdotcar-hmenu__card:focus-visible {
	background-color: transparent;
}

.mdotcar-hmenu__glow {
	position: absolute;
	z-index: 0;
	top: 0;
	left: 0;
	border-radius: 16px;
	background-color: var( --mdotcar-card-hover-bg );
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.mdotcar-hmenu__glow.is-on {
	opacity: 1;
	transition: opacity 0.18s ease;
}

.mdotcar-hmenu__glow.is-sliding {
	transition:
		opacity 0.18s ease,
		transform 0.42s cubic-bezier( 0.22, 1, 0.36, 1 ),
		width 0.42s cubic-bezier( 0.22, 1, 0.36, 1 ),
		height 0.42s cubic-bezier( 0.22, 1, 0.36, 1 );
}

/* The card under the highlight: its icon lifts a little. */
.mdotcar-hmenu__card-icon {
	transition: transform 0.4s cubic-bezier( 0.22, 1, 0.36, 1 ), border-color 0.3s ease;
}

a.mdotcar-hmenu__card:hover .mdotcar-hmenu__card-icon,
a.mdotcar-hmenu__card.is-lit .mdotcar-hmenu__card-icon {
	transform: translateY( -2px );
}

@media ( prefers-reduced-motion: reduce ) {
	.mdotcar-hmenu__glow.is-sliding {
		transition: opacity 0.18s ease;
	}

	a.mdotcar-hmenu__card:hover .mdotcar-hmenu__card-icon,
	a.mdotcar-hmenu__card.is-lit .mdotcar-hmenu__card-icon {
		transform: none;
	}
}

.mdotcar-hmenu__card.is-soon {
	opacity: 0.3;
	cursor: default;
}

.mdotcar-hmenu__card-icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var( --mdotcar-card-icon );
	height: var( --mdotcar-card-icon );
	padding: var( --mdotcar-card-icon-pad );
	border: 1px solid var( --mdotcar-card-icon-border );
	border-radius: 50%;
	background: #FFFFFF;
}

.mdotcar-hmenu__card-icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: filter 0.4s ease;
}

.mdotcar-hmenu-gray-yes .mdotcar-hmenu__card-icon img {
	filter: grayscale( 1 );
}

.mdotcar-hmenu-gray-yes a.mdotcar-hmenu__card:hover .mdotcar-hmenu__card-icon img,
.mdotcar-hmenu-gray-yes a.mdotcar-hmenu__card:focus-visible .mdotcar-hmenu__card-icon img {
	filter: none;
}

.mdotcar-hmenu__card-text {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 6px;
	min-width: 0;
}

.mdotcar-hmenu__card-title {
	color: var( --mdotcar-card-title );
	font-size: 20px;
	font-weight: 500;
	line-height: 28.6px;
	transition: color 0.4s ease;
}

a.mdotcar-hmenu__card:hover .mdotcar-hmenu__card-title,
a.mdotcar-hmenu__card:focus-visible .mdotcar-hmenu__card-title,
.mdotcar-hmenu__card.is-current .mdotcar-hmenu__card-title {
	color: var( --mdotcar-card-title-hover );
}

.mdotcar-hmenu__card-desc {
	color: var( --mdotcar-card-desc );
	font-size: 14px;
	font-weight: 400;
	line-height: 20.02px;
}

.mdotcar-hmenu__soon {
	margin-inline-start: 4px;
	color: #F44336;
	font-size: 0.8em;
	font-weight: 400;
}

/* The toggle ------------------------------------------------------------------ */

.mdotcar-hmenu__toggle {
	display: none !important;
	align-items: center;
	justify-content: center;
	width: var( --mdotcar-toggle-size );
	height: var( --mdotcar-toggle-size );
	color: var( --mdotcar-toggle-color ) !important;
}

.mdotcar-hmenu__toggle svg,
.mdotcar-hmenu__toggle img {
	display: block;
	width: 100%;
	height: 100%;
}

/* Which one shows: the bar, or the toggle (the drawer goes with the toggle). */
.mdotcar-hmenu--bp-always .mdotcar-hmenu__nav {
	display: none;
}

.mdotcar-hmenu--bp-always .mdotcar-hmenu__toggle {
	display: inline-flex !important;
}

@media ( max-width: 1024px ) {
	.mdotcar-hmenu--bp-tablet .mdotcar-hmenu__nav,
	.mdotcar-hmenu--bp-tablet .mdotcar-hmenu__dim {
		display: none;
	}

	.mdotcar-hmenu--bp-tablet .mdotcar-hmenu__toggle {
		display: inline-flex !important;
	}
}

@media ( max-width: 767px ) {
	.mdotcar-hmenu--bp-mobile .mdotcar-hmenu__nav,
	.mdotcar-hmenu--bp-mobile .mdotcar-hmenu__dim {
		display: none;
	}

	.mdotcar-hmenu--bp-mobile .mdotcar-hmenu__toggle {
		display: inline-flex !important;
	}
}

/* The drawer ------------------------------------------------------------------ */

.mdotcar-hmenu-drawer {
	--mdotcar-drawer-width: 292px;
	--mdotcar-drawer-bg: #FFFFFF;
	--mdotcar-drawer-scrim: rgba( 0, 0, 0, 0.4 );
	--mdotcar-drawer-blur: 8px;
	--mdotcar-scroll-w: 5px;
	--mdotcar-scroll-track: #F1F1F1;
	--mdotcar-scroll-thumb: #AAAAAA;
	--mdotcar-scroll-r: 10px;
	position: fixed;
	z-index: 99999;
	inset: 0;
}

.mdotcar-hmenu-drawer[hidden] {
	display: none;
}

.mdotcar-hmenu-drawer__scrim {
	position: absolute;
	inset: 0;
	background: var( --mdotcar-drawer-scrim );
	-webkit-backdrop-filter: blur( var( --mdotcar-drawer-blur ) );
	backdrop-filter: blur( var( --mdotcar-drawer-blur ) );
	opacity: 0;
	transition: opacity 0.2s ease;
}

.mdotcar-hmenu-drawer__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: min( var( --mdotcar-drawer-width ), 88vw );
	padding: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var( --mdotcar-drawer-bg );
	outline: none;
	transition: transform 0.3s cubic-bezier( 0.2, 0.7, 0.2, 1 );
}

.mdotcar-hmenu-drawer--right .mdotcar-hmenu-drawer__panel {
	right: 0;
	transform: translateX( 100% );
}

.mdotcar-hmenu-drawer--left .mdotcar-hmenu-drawer__panel {
	left: 0;
	transform: translateX( -100% );
}

.mdotcar-hmenu-drawer.is-open .mdotcar-hmenu-drawer__scrim {
	opacity: 1;
}

.mdotcar-hmenu-drawer.is-open .mdotcar-hmenu-drawer__panel {
	transform: none;
}

/* The site's scrollbar: thin, rounded, a short way in from the ends. */
.mdotcar-hmenu-drawer__panel::-webkit-scrollbar {
	width: var( --mdotcar-scroll-w );
}

.mdotcar-hmenu-drawer__panel::-webkit-scrollbar-track {
	margin-block: 12px;
	border-radius: var( --mdotcar-scroll-r );
	background: var( --mdotcar-scroll-track );
}

.mdotcar-hmenu-drawer__panel::-webkit-scrollbar-thumb {
	min-height: 48px;
	border-radius: var( --mdotcar-scroll-r );
	background: var( --mdotcar-scroll-thumb );
}

.mdotcar-hmenu-drawer__panel::-webkit-scrollbar-thumb:hover {
	background: color-mix( in srgb, var( --mdotcar-scroll-thumb ) 80%, #000000 );
}

/* Browsers without the -webkit- scrollbar (Firefox): the standard properties.
   Not for the others, which would then ignore the rules above. */
@supports not selector( ::-webkit-scrollbar ) {
	.mdotcar-hmenu-drawer__panel {
		scrollbar-width: thin;
		scrollbar-color: var( --mdotcar-scroll-thumb ) var( --mdotcar-scroll-track );
	}
}

/* While editing, it can be shown open, without hiding the page from clicks. */
.mdotcar-hmenu-drawer.is-preview .mdotcar-hmenu-drawer__scrim {
	pointer-events: none;
}

.mdotcar-hmenu-drawer__close {
	align-self: flex-end;
	display: inline-flex;
	color: #616161 !important;
}

.mdotcar-hmenu-drawer__close svg {
	display: block;
	width: 24px;
	height: 24px;
}

/* The page behind does not scroll while it is open. */
html.mdotcar-hmenu-locked,
html.mdotcar-hmenu-locked body {
	overflow: hidden !important;
}

/* The template fills the drawer; Elementor's own wrapper takes its width. */
.mdotcar-hmenu-drawer__content {
	flex: 1 0 auto;
}

/* -----------------------------------------------------------------------------
 * Mobile Menu — the drawer's menu: rows with an icon and an arrow, sub items in
 * an accordion along a guide line with a dot each, buttons below. The defaults
 * are mdotcar.com's drawer.
 * -------------------------------------------------------------------------- */

.mdotcar-mmenu {
	--mdotcar-mm-row: 44px;
	--mdotcar-mm-color: #424242;
	--mdotcar-mm-active: #3949AB;
	--mdotcar-mm-open-bg: #E8EAF6;
	--mdotcar-mm-icon: 16px;
	--mdotcar-mm-arrow: #616161;
	--mdotcar-mm-arrow-open: #9E9E9E;
	--mdotcar-mm-sep: #FAFAFA;
	--mdotcar-mm-sub-row: 42px;
	--mdotcar-mm-sub-color: #616161;
	--mdotcar-mm-line: #EEEFF8;
	--mdotcar-mm-dot: #D9DCF0;
	--mdotcar-mm-btn-h: 48px;
	--mdotcar-mm-btn-r: 8px;
	--mdotcar-mm-btn-solid: #3F51B5;
	--mdotcar-mm-btn-solid-text: #FFFFFF;
	--mdotcar-mm-btn-line: #C5CAE9;
	--mdotcar-mm-btn-line-text: #3F51B5;
	--mdotcar-mm-flip: -1;
	/* Where the icon column's middle is: the guide line and its dots sit under it. */
	--mdotcar-mm-axis: calc( 12px + var( --mdotcar-mm-icon ) / 2 );
	--mdotcar-mm-text: calc( 20px + var( --mdotcar-mm-icon ) );
}

.mdotcar-mmenu *,
.mdotcar-mmenu *::before,
.mdotcar-mmenu *::after {
	box-sizing: border-box;
}

.mdotcar-mmenu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* No bullets, whatever a theme gives lists and links. */
.mdotcar-mmenu li {
	list-style: none !important;
}

.mdotcar-mmenu li::marker {
	content: none !important;
	font-size: 0;
}

.mdotcar-mmenu a::before,
.mdotcar-mmenu a::after,
.mdotcar-mmenu button::before,
.mdotcar-mmenu button::after,
.mdotcar-mmenu__row:first-child::before,
.mdotcar-mmenu__row::after {
	content: none !important;
}

.mdotcar-mmenu__row {
	position: relative;
}

/* A hairline between rows, from the text's start (none around the open one). */
.mdotcar-mmenu__row + .mdotcar-mmenu__row::before {
	content: "";
	position: absolute;
	top: 0;
	inset-inline-start: var( --mdotcar-mm-text );
	inset-inline-end: 0;
	height: 1px;
	background: var( --mdotcar-mm-sep );
}

.mdotcar-mmenu__row.is-open::before,
.mdotcar-mmenu__row.is-open + .mdotcar-mmenu__row::before {
	display: none;
}

/* Through the root, so it outranks the theme's button and link styles. */
.mdotcar-mmenu .mdotcar-mmenu__link {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	min-height: var( --mdotcar-mm-row );
	margin: 0;
	padding: 0 12px 0 16px;
	padding-inline: 12px 16px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	box-shadow: none;
	color: var( --mdotcar-mm-color );
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	text-align: start;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.mdotcar-mmenu .mdotcar-mmenu__link:hover,
.mdotcar-mmenu .mdotcar-mmenu__link:focus {
	background: transparent;
	color: var( --mdotcar-mm-color );
}

.mdotcar-mmenu .mdotcar-mmenu__row.is-current > .mdotcar-mmenu__link,
.mdotcar-mmenu .mdotcar-mmenu__row.is-open > .mdotcar-mmenu__link {
	color: var( --mdotcar-mm-active );
}

.mdotcar-mmenu .mdotcar-mmenu__row.is-open > .mdotcar-mmenu__link {
	background: var( --mdotcar-mm-open-bg );
}

.mdotcar-mmenu .mdotcar-mmenu__link:focus-visible,
.mdotcar-mmenu .mdotcar-mmenu__sublink:focus-visible,
.mdotcar-mmenu .mdotcar-mmenu__btn:focus-visible {
	outline: 2px solid #7986CB;
	outline-offset: 1px;
}

.mdotcar-mmenu__link.is-soon,
.mdotcar-mmenu__sublink.is-soon {
	opacity: 0.3;
	cursor: default;
}

.mdotcar-mmenu__icon {
	position: relative;
	flex: 0 0 auto;
	width: var( --mdotcar-mm-icon );
	height: var( --mdotcar-mm-icon );
}

.mdotcar-mmenu__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* A coloured icon, when there is one, while open or current. */
.mdotcar-mmenu__img--active,
.mdotcar-mmenu__row.has-active-icon.is-open .mdotcar-mmenu__img:not( .mdotcar-mmenu__img--active ),
.mdotcar-mmenu__row.has-active-icon.is-current .mdotcar-mmenu__img:not( .mdotcar-mmenu__img--active ) {
	visibility: hidden;
}

.mdotcar-mmenu__row.is-open .mdotcar-mmenu__img--active,
.mdotcar-mmenu__row.is-current .mdotcar-mmenu__img--active {
	visibility: visible;
}

.mdotcar-mmenu__label {
	flex: 1 1 auto;
	min-width: 0;
}

.mdotcar-mmenu__arrow {
	flex: 0 0 auto;
	color: var( --mdotcar-mm-arrow );
	transform: scaleX( var( --mdotcar-mm-flip ) );
	transition: transform 0.3s ease, color 0.3s ease;
}

.mdotcar-mmenu__row.is-open .mdotcar-mmenu__arrow {
	color: var( --mdotcar-mm-arrow-open );
	transform: scaleX( var( --mdotcar-mm-flip ) ) rotate( -90deg );
}

.mdotcar-mmenu__soon {
	margin-inline-start: 5px;
	color: #F44336;
	font-size: 12px;
	line-height: 19.2px;
}

/* The accordion: its height animates from nothing to its content's. */
.mdotcar-mmenu__sub {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.3s cubic-bezier( 0.2, 0.7, 0.2, 1 );
}

.mdotcar-mmenu__row.is-open > .mdotcar-mmenu__sub {
	grid-template-rows: 1fr;
}

.mdotcar-mmenu__sublist {
	position: relative;
	min-height: 0;
	overflow: hidden;
	visibility: hidden;
	transition: visibility 0s linear 0.3s;
}

.mdotcar-mmenu__row.is-open .mdotcar-mmenu__sublist {
	padding-bottom: 10px !important;
	visibility: visible;
	transition: none;
}

/* The guide line, from the first dot to the last. */
.mdotcar-mmenu__sublist::before {
	content: "";
	position: absolute;
	top: calc( var( --mdotcar-mm-sub-row ) / 2 );
	bottom: calc( var( --mdotcar-mm-sub-row ) / 2 + 10px );
	inset-inline-start: calc( var( --mdotcar-mm-axis ) - 0.5px );
	width: 1px;
	background: var( --mdotcar-mm-line );
}

.mdotcar-mmenu__sublist > li {
	position: relative;
}

/* A dot on the line beside each sub item. */
.mdotcar-mmenu__sublist > li::before {
	content: "";
	position: absolute;
	top: 50%;
	inset-inline-start: calc( var( --mdotcar-mm-axis ) - 2.5px );
	width: 5px;
	height: 5px;
	margin-top: -2.5px;
	border-radius: 50%;
	background: var( --mdotcar-mm-dot );
}

.mdotcar-mmenu .mdotcar-mmenu__sublink {
	display: flex;
	align-items: center;
	min-height: var( --mdotcar-mm-sub-row );
	padding-inline-start: var( --mdotcar-mm-text );
	color: var( --mdotcar-mm-sub-color );
	font-size: 12px;
	font-weight: 400;
	line-height: 19.2px;
	text-decoration: none;
	transition: color 0.2s ease;
}

.mdotcar-mmenu a.mdotcar-mmenu__sublink:hover,
.mdotcar-mmenu .mdotcar-mmenu__sublink.is-current {
	color: var( --mdotcar-mm-active );
}

/* The buttons. */
.mdotcar-mmenu__buttons {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var( --mdotcar-mm-sep );
}

.mdotcar-mmenu .mdotcar-mmenu__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: var( --mdotcar-mm-btn-h );
	border-radius: var( --mdotcar-mm-btn-r );
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	text-decoration: none;
	transition: filter 0.2s ease;
}

.mdotcar-mmenu .mdotcar-mmenu__btn--solid {
	border: 1px solid var( --mdotcar-mm-btn-solid );
	background: var( --mdotcar-mm-btn-solid );
	color: var( --mdotcar-mm-btn-solid-text );
}

.mdotcar-mmenu .mdotcar-mmenu__btn--outline {
	border: 1px solid var( --mdotcar-mm-btn-line );
	background: #FFFFFF;
	color: var( --mdotcar-mm-btn-line-text );
}

.mdotcar-mmenu a.mdotcar-mmenu__btn:hover {
	filter: brightness( 0.96 );
}

.mdotcar-mmenu__btn img {
	display: block;
	width: 20px;
	height: 20px;
	object-fit: contain;
}

@media ( prefers-reduced-motion: reduce ) {
	.mdotcar-hmenu *,
	.mdotcar-hmenu-drawer__scrim,
	.mdotcar-hmenu-drawer__panel,
	.mdotcar-mmenu * {
		transition-duration: 0.01ms !important;
	}
}

/* -----------------------------------------------------------------------------
 * Header Buttons — the header's call and sign-in buttons (and any others)
 *
 * The looks are mdotcar.com's: Accent is the yellow call button (filled on
 * wide screens; white with a yellow edge and glow on phones), Outline the grey
 * sign-in one. A button's own Style tab is emitted with a higher specificity,
 * so any value set there wins over these.
 * -------------------------------------------------------------------------- */

/* Stretched: every button as tall as the tallest, as the site's header has them. */
.mdotcar-hbtns {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 8px;
}

.mdotcar-hbtns .mdotcar-hbtn {
	--mdotcar-hbtn-icon: 20px;
	box-sizing: border-box;
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 8px 16px;
	border: 1px solid transparent;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 400;
	line-height: 26px;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.mdotcar-hbtn__icon {
	display: block;
	flex: 0 0 auto;
	width: var( --mdotcar-hbtn-icon );
	height: var( --mdotcar-hbtn-icon );
	object-fit: contain;
}

.mdotcar-hbtns .mdotcar-hbtn:focus-visible {
	outline: 2px solid #7986CB;
	outline-offset: 2px;
}

/* Accent: the call button. */
.mdotcar-hbtns .mdotcar-hbtn--accent {
	padding: 4px 12px;
	border-width: 0;
	background-color: #FFB300;
	color: #FFFFFF;
}

.mdotcar-hbtns .mdotcar-hbtn--accent:hover {
	color: #FFFFFF;
	filter: brightness( 1.05 );
}

.mdotcar-hbtn--accent .mdotcar-hbtn__icon {
	filter: brightness( 0 ) invert( 1 );
}

/* Outline: the sign-in button. */
.mdotcar-hbtns .mdotcar-hbtn--outline {
	border-color: #E0E0E0;
	background-color: transparent;
	color: #424242;
}

.mdotcar-hbtns .mdotcar-hbtn--outline:hover {
	border-color: #BDBDBD;
	color: #424242;
}

/* Filled: the site's indigo. */
.mdotcar-hbtns .mdotcar-hbtn--solid {
	border-color: #3F51B5;
	background-color: #3F51B5;
	color: #FFFFFF;
}

.mdotcar-hbtns .mdotcar-hbtn--solid:hover {
	border-color: #3949AB;
	background-color: #3949AB;
	color: #FFFFFF;
}

.mdotcar-hbtn--solid .mdotcar-hbtn__icon {
	filter: brightness( 0 ) invert( 1 );
}

/* None: a bare link with the layout, for styling from scratch. */
.mdotcar-hbtns .mdotcar-hbtn--plain {
	padding: 0;
	border-width: 0;
	background: none;
	color: inherit;
}

@media ( max-width: 767px ) {
	.mdotcar-hbtns .mdotcar-hbtn {
		--mdotcar-hbtn-icon: 16px;
		font-size: 14px;
		line-height: 22px;
	}

	.mdotcar-hbtns .mdotcar-hbtn--accent {
		border: 1px solid #FFB300;
		background-color: #FFFFFF;
		color: #FFB300;
		box-shadow: 0 0 12px -8px #FFB300;
	}

	.mdotcar-hbtns .mdotcar-hbtn--accent:hover {
		color: #FFB300;
	}

	.mdotcar-hbtn--accent .mdotcar-hbtn__icon {
		filter: none;
	}

	.mdotcar-hbtns .mdotcar-hbtn--outline {
		padding: 10px;
		box-shadow: 1px 0 10px 0 rgba( 16, 24, 70, 0.08 );
	}
}

/* Hidden on a device, or only the icon there (the text stays for screen readers). */
@media ( min-width: 1025px ) {
	.mdotcar-hbtns .mdotcar-hbtn--hide-desktop {
		display: none;
	}

	.mdotcar-hbtn--icon-only-desktop .mdotcar-hbtn__text {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset( 50% );
		white-space: nowrap;
	}
}

@media ( min-width: 768px ) and ( max-width: 1024px ) {
	.mdotcar-hbtns .mdotcar-hbtn--hide-tablet {
		display: none;
	}

	.mdotcar-hbtn--icon-only-tablet .mdotcar-hbtn__text {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset( 50% );
		white-space: nowrap;
	}
}

@media ( max-width: 767px ) {
	.mdotcar-hbtns .mdotcar-hbtn--hide-mobile {
		display: none;
	}

	.mdotcar-hbtn--icon-only-mobile .mdotcar-hbtn__text {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset( 50% );
		white-space: nowrap;
	}
}

/* In the editor: a button this page's conditions hide is still there to edit, faded. */
.mdotcar-hbtns .mdotcar-hbtn.is-elsewhere {
	opacity: 0.35;
	outline: 1px dashed #9E9E9E;
}

/* -----------------------------------------------------------------------------
 * Price List — parts and prices: a header row, then the rows, white and grey
 *
 * A table laid out as a grid (every row shares the column template, so the
 * columns line up). The values here are the style controls' defaults; the
 * panel sets them again with a higher specificity.
 * -------------------------------------------------------------------------- */

.mdotcar-plist {
	--mdotcar-plist-cols: 1fr 1fr 1fr;
	box-sizing: border-box;
	display: block;
	width: 100%;
	margin: 0;
	padding: 12px;
	border: 1px solid #FFD24A;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 24px;
	background-color: #FFFFFF;
	color: #212121;
}

.mdotcar-plist *,
.mdotcar-plist *::before,
.mdotcar-plist *::after {
	box-sizing: border-box;
}

.mdotcar-plist__head,
.mdotcar-plist__body {
	display: grid;
	grid-template-columns: minmax( 0, 1fr );
}

/*
 * Many rows: past --mdotcar-plist-max they scroll inside the list, the header
 * staying above them. The header keeps the same gutter as the scrollbar, so
 * the columns stay in line; while there is more below, the last rows fade
 * (has-more, set by the script).
 */
.mdotcar-plist__body {
	max-height: var( --mdotcar-plist-max, none );
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: var( --mdotcar-plist-thumb, #AAAAAA ) var( --mdotcar-plist-track, #F1F1F1 );
	-webkit-mask-image: linear-gradient( #000000, #000000 );
	mask-image: linear-gradient( #000000, #000000 );
	transition: -webkit-mask-image 0.2s ease, mask-image 0.2s ease;
}

.mdotcar-plist__body.is-scrolling,
.mdotcar-plist__head.is-scrolling {
	scrollbar-gutter: stable;
}

.mdotcar-plist__head.is-scrolling {
	overflow: hidden;
	/* The same scrollbar as the rows', so the same gutter. */
	scrollbar-width: thin;
}

/*
 * In RTL the scrollbar goes on the right too: the scroll box reads left to
 * right (which puts its bar on the right), its rows still right to left. The
 * header does the same, so its gutter is on the same side.
 */
.mdotcar-plist:dir( rtl ) .mdotcar-plist__body.is-scrolling,
.mdotcar-plist:dir( rtl ) .mdotcar-plist__head.is-scrolling {
	direction: ltr;
}

.mdotcar-plist:dir( rtl ) .mdotcar-plist__body.is-scrolling > .mdotcar-plist__row,
.mdotcar-plist:dir( rtl ) .mdotcar-plist__head.is-scrolling > .mdotcar-plist__row {
	direction: rtl;
}

.mdotcar-plist__body.has-more {
	-webkit-mask-image: linear-gradient( to bottom, #000000 calc( 100% - 48px ), transparent );
	mask-image: linear-gradient( to bottom, #000000 calc( 100% - 48px ), transparent );
}

.mdotcar-plist__body::-webkit-scrollbar {
	width: 5px;
}

.mdotcar-plist__body::-webkit-scrollbar-track {
	border-radius: 10px;
	background: var( --mdotcar-plist-track, #F1F1F1 );
}

.mdotcar-plist__body::-webkit-scrollbar-thumb {
	border-radius: 10px;
	background: var( --mdotcar-plist-thumb, #AAAAAA );
}

.mdotcar-plist .mdotcar-plist__row {
	display: grid;
	grid-template-columns: var( --mdotcar-plist-cols );
	align-items: center;
	column-gap: 16px;
	padding: 12px 16px;
	border: 0;
	border-radius: 12px;
	background: none;
	transition: background-color 0.2s ease;
}

.mdotcar-plist .mdotcar-plist__cell {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 22px;
	text-align: start;
	vertical-align: middle;
}

.mdotcar-plist__cell--part {
	justify-content: start;
}

.mdotcar-plist__cell--fits {
	justify-content: center;
	text-align: center;
}

.mdotcar-plist__cell--price {
	justify-content: end;
	gap: 4px;
	text-align: end;
	white-space: nowrap;
}

/* The header row. */
.mdotcar-plist__head .mdotcar-plist__row {
	border-radius: 16px;
	background-color: #FFEBAA;
	color: #212121;
}

.mdotcar-plist__head .mdotcar-plist__cell {
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
}

.mdotcar-plist__head-icon {
	display: block;
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	object-fit: contain;
}

/* The rows. */
.mdotcar-plist__body .mdotcar-plist__row:nth-child( odd ) {
	background-color: #FFFFFF;
}

.mdotcar-plist__body .mdotcar-plist__row:nth-child( even ) {
	background-color: #F5F5F5;
}

.mdotcar-plist__tile {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background-color: #FFFFFF;
}

.mdotcar-plist__tile img {
	display: block;
	width: 20px;
	height: 20px;
	object-fit: contain;
}

.mdotcar-plist__name {
	min-width: 0;
}

.mdotcar-plist a.mdotcar-plist__link {
	color: inherit;
	text-decoration: none;
}

.mdotcar-plist a.mdotcar-plist__link:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.mdotcar-plist__amount {
	font-weight: 500;
}

.mdotcar-plist__unit {
	font-size: 12px;
}

/* The labels inside the cells are for the phone cards; the table has its header. */
.mdotcar-plist__label {
	display: none;
}

.mdotcar-plist__value {
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
}

/* A row's badge: a small pill after the part's name. */
.mdotcar-plist__badge {
	flex: 0 0 auto;
	padding: 2px 8px;
	border-radius: 8px;
	background-color: var( --mdotcar-plm-badge-bg, #FFE082 );
	color: var( --mdotcar-plm-badge, #424242 );
	font-size: 12px;
	font-weight: 500;
	line-height: 18px;
	white-space: nowrap;
}

/*
 * Phones, "a card per row" (the default): each row a card. The part with its
 * icon and badge on top, a divider, what it fits with its label, then the
 * price on a grey footer: the label on the start side, the amount on the
 * end. The table's own box, header and stripes give way. The :not(#…) lifts
 * these rules over the table's style controls, which stay for larger screens.
 */
@media ( max-width: 767px ) {
	.mdotcar-plist-m-cards .mdotcar-plist:not( #mdotcar-plist-cards ) {
		display: block;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: none;
		box-shadow: none;
	}

	.mdotcar-plist-m-cards .mdotcar-plist:not( #mdotcar-plist-cards ) .mdotcar-plist__head {
		display: none;
	}

	.mdotcar-plist-m-cards .mdotcar-plist:not( #mdotcar-plist-cards ) .mdotcar-plist__body {
		display: flex;
		flex-direction: column;
		gap: var( --mdotcar-plm-gap, 12px );
	}

	.mdotcar-plist-m-cards .mdotcar-plist:not( #mdotcar-plist-cards ) .mdotcar-plist__row {
		display: flex;
		/* Under a max height the cards keep their size and scroll, not squeeze. */
		flex: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		overflow: hidden;
		padding: 0;
		border: 1px solid var( --mdotcar-plm-line, #EEEEEE );
		border-radius: var( --mdotcar-plm-radius, 16px );
		background-color: var( --mdotcar-plm-bg, #FFFFFF );
		color: var( --mdotcar-plm-text, #424242 );
	}

	.mdotcar-plist-m-cards .mdotcar-plist:not( #mdotcar-plist-cards ) .mdotcar-plist__cell {
		justify-content: flex-start;
		padding: 14px var( --mdotcar-plm-pad, 16px );
		font-size: 14px;
		font-weight: 400;
		line-height: 24px;
		text-align: start;
		white-space: normal;
	}

	/* The part. */
	.mdotcar-plist-m-cards .mdotcar-plist:not( #mdotcar-plist-cards ) .mdotcar-plist__cell--part {
		gap: 10px;
		min-height: 64px;
		padding-block: 12px;
		border-bottom: 1px solid var( --mdotcar-plm-line, #EEEEEE );
		color: var( --mdotcar-plm-title, #212121 );
		font-size: var( --mdotcar-plm-title-size, 16px );
		font-weight: 500;
	}

	.mdotcar-plist-m-cards .mdotcar-plist:not( #mdotcar-plist-cards ) .mdotcar-plist__name {
		flex: 1 1 auto;
	}

	.mdotcar-plist-m-cards .mdotcar-plist:not( #mdotcar-plist-cards ) .mdotcar-plist__tile {
		width: 36px;
		height: 36px;
		border-radius: 10px;
		background-color: #F5F5F5;
	}

	.mdotcar-plist-m-cards .mdotcar-plist:not( #mdotcar-plist-cards ) .mdotcar-plist__tile img {
		width: 22px;
		height: 22px;
	}

	.mdotcar-plist-m-cards .mdotcar-plist:not( #mdotcar-plist-cards ) .mdotcar-plist__badge {
		max-width: 55%;
		overflow: hidden;
		padding: 6px 12px;
		border-radius: 12px;
		font-size: 13px;
		line-height: 20px;
		text-overflow: ellipsis;
	}

	/* What it fits. */
	.mdotcar-plist-m-cards .mdotcar-plist:not( #mdotcar-plist-cards ) .mdotcar-plist__cell--fits {
		display: block;
		padding-block: 12px 14px;
	}

	.mdotcar-plist-m-cards .mdotcar-plist:not( #mdotcar-plist-cards ) .mdotcar-plist__cell--fits.is-empty {
		display: none;
	}

	.mdotcar-plist-m-cards .mdotcar-plist:not( #mdotcar-plist-cards ) .mdotcar-plist__cell--fits .mdotcar-plist__label {
		display: block;
		color: var( --mdotcar-plm-label, #616161 );
		font-size: 13px;
		line-height: 22px;
	}

	/* The price, on the footer. */
	.mdotcar-plist-m-cards .mdotcar-plist:not( #mdotcar-plist-cards ) .mdotcar-plist__cell--price {
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		border-top: 1px solid var( --mdotcar-plm-line, #EEEEEE );
		background-color: var( --mdotcar-plm-foot, #FAFAFA );
	}

	.mdotcar-plist-m-cards .mdotcar-plist:not( #mdotcar-plist-cards ) .mdotcar-plist__cell--fits.is-empty + .mdotcar-plist__cell--price {
		border-top: 0;
	}

	.mdotcar-plist-m-cards .mdotcar-plist:not( #mdotcar-plist-cards ) .mdotcar-plist__cell--price .mdotcar-plist__label {
		display: block;
		color: var( --mdotcar-plm-text, #424242 );
	}

	.mdotcar-plist-m-cards .mdotcar-plist:not( #mdotcar-plist-cards ) .mdotcar-plist__value {
		margin-inline-start: auto;
		white-space: nowrap;
	}

	.mdotcar-plist-m-cards .mdotcar-plist:not( #mdotcar-plist-cards ) .mdotcar-plist__amount {
		color: var( --mdotcar-plm-price, #212121 );
		font-size: var( --mdotcar-plm-price-size, 16px );
		font-weight: 700;
		line-height: 24px;
	}

	.mdotcar-plist-m-cards .mdotcar-plist:not( #mdotcar-plist-cards ) .mdotcar-plist__unit {
		color: var( --mdotcar-plm-label, #616161 );
		font-size: 13px;
	}
}

/* Phones, "the table, compact": the part on its own line, the fit and the price under it. */
@media ( max-width: 767px ) {
	.mdotcar-plist .mdotcar-plist__row {
		grid-template-columns: minmax( 0, 1fr ) auto;
		row-gap: 4px;
	}

	.mdotcar-plist .mdotcar-plist__cell--part {
		grid-column: 1 / -1;
	}

	.mdotcar-plist .mdotcar-plist__cell--fits {
		justify-content: start;
		text-align: start;
	}
}

/* -----------------------------------------------------------------------------
 * Video Gallery — cards in a slider, each opening the video window
 *
 * The slider is the viewport's own scroll with snapping; the arrows sit beside
 * it, centred on the cards. The values here are the style controls' defaults.
 * -------------------------------------------------------------------------- */

.mdotcar-vgal {
	--mdotcar-vgal-per: 3;
	--mdotcar-vgal-gap: 12px;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: auto minmax( 0, 1fr ) auto;
	align-items: center;
	width: 100%;
}

.mdotcar-vgal *,
.mdotcar-vgal *::before,
.mdotcar-vgal *::after {
	box-sizing: border-box;
}

.mdotcar-vgal__viewport {
	grid-column: 2;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	/* Room under the cards for their hover shadow, taken back with the margin. */
	padding: 0 0 16px;
	margin: 0 0 -16px;
	outline: none;
}

.mdotcar-vgal__viewport::-webkit-scrollbar {
	display: none;
}

.mdotcar-vgal__viewport:focus-visible .mdotcar-vgal__card {
	border-color: #7986CB;
}

.mdotcar-vgal .mdotcar-vgal__track {
	display: flex;
	gap: var( --mdotcar-vgal-gap );
	margin: 0;
	padding: 0;
	list-style: none;
}

.mdotcar-vgal .mdotcar-vgal__slide {
	flex: 0 0 calc( ( 100% - ( var( --mdotcar-vgal-per ) - 1 ) * var( --mdotcar-vgal-gap ) ) / var( --mdotcar-vgal-per ) );
	min-width: 0;
	margin: 0;
	padding: 0;
	scroll-snap-align: start;
	list-style: none;
}

.mdotcar-vgal .mdotcar-vgal__slide::before,
.mdotcar-vgal .mdotcar-vgal__slide::marker {
	content: none;
}

/* The card. */

.mdotcar-vgal__card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 6px 6px 20px;
	border: 1px solid #E0E0E0;
	border-radius: 16px;
	background-color: #FFFFFF;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.mdotcar-vgal__card:hover {
	border-color: #C5CAE9;
	box-shadow: 0 8px 24px -12px rgba( 63, 81, 181, 0.28 );
}

.mdotcar-vgal__card:focus-within {
	border-color: #C5CAE9;
}

.mdotcar-vgal__card:has( .mdotcar-vgal__open:focus-visible ) {
	outline: 2px solid #3F51B5;
	outline-offset: -2px;
}

.mdotcar-vgal__media {
	position: relative;
	flex: none;
	height: 194px;
	overflow: hidden;
	border-radius: 12px;
	background: linear-gradient( 135deg, #E8EAF6, #C5CAE9 );
	/* Clips the zoom in Safari, which ignores the radius on a transformed child. */
	isolation: isolate;
}

.mdotcar-vgal__media img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
	border: 0;
	border-radius: 0;
	object-fit: cover;
	object-position: center center;
	transition: transform 0.6s cubic-bezier( 0.2, 0.7, 0.2, 1 );
}

.mdotcar-vgal-zoom-yes .mdotcar-vgal__card:hover .mdotcar-vgal__media img {
	transform: scale( 1.04 );
}

.mdotcar-vgal__veil {
	position: absolute;
	inset: 0;
	-webkit-backdrop-filter: blur( 2px );
	backdrop-filter: blur( 2px );
	background-color: rgba( 255, 255, 255, 0 );
	pointer-events: none;
}

.mdotcar-vgal__badge {
	position: absolute;
	z-index: 1;
	top: 12px;
	inset-inline-start: 12px;
	max-width: calc( 100% - 24px );
	overflow: hidden;
	padding: 6px;
	border-radius: 6px;
	background-color: #E6F4FF;
	color: #0095FF;
	font-size: 12px;
	font-weight: 500;
	line-height: 18px;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.mdotcar-vgal__play {
	position: absolute;
	z-index: 1;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background-color: #FFFFFF40;
	color: #FFFFFF;
	-webkit-backdrop-filter: blur( 11.67px );
	backdrop-filter: blur( 11.67px );
	transform: translate( -50%, -50% );
	transition: transform 0.3s cubic-bezier( 0.2, 0.7, 0.2, 1 ), background-color 0.2s ease;
}

/*
 * The glass edge: a 1px border fading from white to nothing (border-image
 * cannot follow a radius, so it is a masked layer), and the inner highlight.
 */
.mdotcar-vgal-edge-yes .mdotcar-vgal__play {
	box-shadow: -0.43px 0.43px 0.43px -0.85px #FFFFFF59 inset;
}

.mdotcar-vgal-edge-yes .mdotcar-vgal__play::before {
	content: "";
	position: absolute;
	inset: 0;
	padding: 1px;
	border-radius: inherit;
	background: linear-gradient( 202.36deg, rgba( 255, 255, 255, 0.2 ) 8.26%, rgba( 255, 255, 255, 0 ) 85.43% );
	-webkit-mask: linear-gradient( #000 0 0 ) content-box, linear-gradient( #000 0 0 );
	-webkit-mask-composite: xor;
	mask: linear-gradient( #000 0 0 ) content-box exclude, linear-gradient( #000 0 0 );
	pointer-events: none;
}

.mdotcar-vgal__play > svg,
.mdotcar-vgal__play .mdotcar-vgal__icon {
	width: var( --mdotcar-vgal-icon, 24px );
	height: var( --mdotcar-vgal-icon, 24px );
	/* The triangle's weight sits left of its box; this centres it by eye. */
	margin-inline-start: 2px;
}

[dir="rtl"] .mdotcar-vgal__play > svg,
.rtl .mdotcar-vgal__play > svg {
	margin-inline-start: 0;
	margin-inline-end: 2px;
}

.mdotcar-vgal__card:hover .mdotcar-vgal__play {
	transform: translate( -50%, -50% ) scale( 1.08 );
}

.mdotcar-vgal__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px 10px 0;
}

.mdotcar-vgal .mdotcar-vgal__title,
.mdotcar-vgal .mdotcar-vgal__desc {
	display: -webkit-box;
	overflow: hidden;
	margin: 0;
	padding: 0;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
	line-clamp: 1;
	overflow-wrap: anywhere;
}

.mdotcar-vgal .mdotcar-vgal__title {
	color: #212121;
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
}

.mdotcar-vgal .mdotcar-vgal__desc {
	color: #616161;
	font-size: 14px;
	font-weight: 400;
	line-height: 22px;
}

/* The button that opens the video: a clear layer over the whole card, named by the title. */

.mdotcar-vgal .mdotcar-vgal__open {
	position: absolute;
	z-index: 2;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: inherit;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
	outline: none;
	-webkit-tap-highlight-color: transparent;
}

.mdotcar-vgal .mdotcar-vgal__open:hover,
.mdotcar-vgal .mdotcar-vgal__open:focus {
	background: transparent;
}

/* The arrows. */

.mdotcar-vgal .mdotcar-vgal__arrow {
	display: var( --mdotcar-vgal-arrow, flex );
	align-items: center;
	justify-content: center;
	flex: none;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: #F5F5F5;
	box-shadow: none;
	color: #212121;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.mdotcar-vgal .mdotcar-vgal__arrow--prev {
	grid-column: 1;
	grid-row: 1;
	margin-inline-end: var( --mdotcar-vgal-space, 16px );
}

.mdotcar-vgal .mdotcar-vgal__arrow--next {
	grid-column: 3;
	grid-row: 1;
	margin-inline-start: var( --mdotcar-vgal-space, 16px );
}

.mdotcar-vgal .mdotcar-vgal__arrow:not( :disabled ):hover {
	background-color: #E8EAF6;
	color: #3F51B5;
}

.mdotcar-vgal .mdotcar-vgal__arrow:not( :disabled ):active {
	transform: scale( 0.94 );
}

.mdotcar-vgal .mdotcar-vgal__arrow:focus-visible {
	outline: 2px solid #3F51B5;
	outline-offset: 2px;
}

.mdotcar-vgal .mdotcar-vgal__arrow:disabled {
	background-color: #FAFAFA;
	color: #BDBDBD;
	cursor: default;
}

.mdotcar-vgal__arrow > svg,
.mdotcar-vgal__arrow .mdotcar-vgal__icon {
	display: block;
	width: var( --mdotcar-vgal-icon, 24px );
	height: var( --mdotcar-vgal-icon, 24px );
}

/*
 * An icon from the panel: an uploaded SVG fills the box and takes the
 * control's colour (its own fills and strokes are recoloured, "none" stays);
 * a library icon is a glyph of the same size.
 */
.mdotcar-vgal__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	font-size: var( --mdotcar-vgal-icon, 24px );
	line-height: 1;
}

.mdotcar-vgal__icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.mdotcar-vgal__icon svg:not( [fill] ) {
	fill: currentColor;
}

.mdotcar-vgal__icon svg [fill]:not( [fill="none"] ) {
	fill: currentColor;
}

.mdotcar-vgal__icon svg [stroke]:not( [stroke="none"] ) {
	stroke: currentColor;
}

.mdotcar-vgal__icon i {
	color: inherit;
	font-size: inherit;
}

/* The arrows are drawn for RTL (where "next" is on the left); LTR mirrors them. */
.mdotcar-vgal:not( [dir="rtl"] *, .rtl * ) .mdotcar-vgal__arrow > svg,
.mdotcar-vmodal:not( [dir="rtl"] *, .rtl * ) .mdotcar-vmodal__step > svg {
	transform: scaleX( -1 );
}

/* Every card fits: no arrows, the cards take the whole row. */
.mdotcar-vgal.is-static .mdotcar-vgal__arrow {
	display: none;
}

/* -----------------------------------------------------------------------------
 * Video Gallery — the video window and its player
 *
 * The card's picture flies into the stage. On a computer or a tablet: a white
 * panel with a header (badge, close), the video, and under it the title with
 * the way to the other videos. On phones: the whole screen, the video staying
 * on top while the text and the list of every video scroll under it.
 * -------------------------------------------------------------------------- */

.mdotcar-vmodal {
	--mdotcar-vm-accent: #3F51B5;
	--mdotcar-vm-scrim: rgba( 17, 20, 39, 0.78 );
	--mdotcar-vm-bg: #FFFFFF;
	--mdotcar-vm-width: 960px;
	--mdotcar-vm-radius: 20px;
	--mdotcar-vm-line: #EEEEEE;
	--mdotcar-vm-side: 360px;
	--mdotcar-vm-ease: cubic-bezier( 0.2, 0.8, 0.2, 1 );
	position: fixed;
	z-index: 100000;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	color: #212121;
	font-family: inherit;
	direction: inherit;
}

.mdotcar-vmodal[hidden] {
	display: none;
}

.mdotcar-vmodal *,
.mdotcar-vmodal *::before,
.mdotcar-vmodal *::after {
	box-sizing: border-box;
}

.mdotcar-vmodal__scrim {
	position: absolute;
	inset: 0;
	background-color: var( --mdotcar-vm-scrim );
	-webkit-backdrop-filter: blur( 8px );
	backdrop-filter: blur( 8px );
	opacity: 0;
	transition: opacity 0.3s ease;
}

.mdotcar-vmodal__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	/* As wide as asked, but never so wide that the panel is taller than the screen. */
	max-width: min( var( --mdotcar-vm-width ), calc( ( 100vh - 250px ) * 16 / 9 + 32px + var( --mdotcar-vm-side ) ) );
	max-width: min( var( --mdotcar-vm-width ), calc( ( 100dvh - 250px ) * 16 / 9 + 32px + var( --mdotcar-vm-side ) ) );
	max-height: 100%;
	overflow: hidden;
	padding: 0;
	border-radius: var( --mdotcar-vm-radius );
	background-color: var( --mdotcar-vm-bg );
	box-shadow: 0 40px 100px -30px rgba( 0, 0, 0, 0.6 ), 0 0 0 1px rgba( 255, 255, 255, 0.06 );
	outline: none;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.mdotcar-vmodal.is-open .mdotcar-vmodal__scrim,
.mdotcar-vmodal.is-open .mdotcar-vmodal__dialog {
	opacity: 1;
}

/* The picture on its way between the card and the stage. */
.mdotcar-vmodal__flyer {
	position: fixed;
	z-index: 100001;
	overflow: hidden;
	background-color: #0E1024;
	background-position: center;
	background-size: cover;
	box-shadow: 0 30px 80px -30px rgba( 0, 0, 0, 0.6 );
	pointer-events: none;
	will-change: top, left, width, height;
}

.mdotcar-vmodal.is-flying-in .mdotcar-vmodal__stage > * {
	animation-delay: 0.45s;
}

/* Buttons in the window: nothing from the theme. */

.mdotcar-vmodal button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	line-height: 1;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.mdotcar-vmodal button:focus {
	outline: none;
}

.mdotcar-vmodal button:focus-visible {
	outline: 2px solid var( --mdotcar-vm-accent );
	outline-offset: 2px;
}

.mdotcar-vmodal button:disabled {
	cursor: default;
}

.mdotcar-vmodal svg {
	display: block;
	flex: none;
	pointer-events: none;
}

/* The header: what the video is for on the start side, the way out on the end side. */

.mdotcar-vmodal__head {
	position: relative;
	z-index: 4;
	display: flex;
	flex: none;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 60px;
	padding-block: 12px;
	padding-inline: 20px 12px;
	border-bottom: 1px solid var( --mdotcar-vm-line );
	background-color: var( --mdotcar-vm-bg );
}

.mdotcar-vmodal__badge {
	padding: 6px;
	border-radius: 6px;
	background-color: #E6F4FF;
	color: #0095FF;
	font-size: 12px;
	font-weight: 500;
	line-height: 18px;
}

.mdotcar-vmodal__badge:empty {
	visibility: hidden;
}

.mdotcar-vmodal .mdotcar-vmodal__close {
	gap: 8px;
	height: 38px;
	margin-inline-start: auto;
	padding-inline: 12px 8px;
	border-radius: 12px;
	color: #616161;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
}

.mdotcar-vmodal .mdotcar-vmodal__close:hover {
	background-color: #F5F5F5;
	color: #212121;
}

.mdotcar-vmodal .mdotcar-vmodal__close:hover svg {
	transform: rotate( 90deg );
}

.mdotcar-vmodal__close svg {
	width: 20px;
	height: 20px;
	transition: transform 0.3s var( --mdotcar-vm-ease );
}

.mdotcar-vmodal__close kbd {
	padding: 1px 6px;
	border: 1px solid #E0E0E0;
	border-bottom-width: 2px;
	border-radius: 6px;
	background: #FFFFFF;
	color: #9E9E9E;
	font-family: inherit;
	font-size: 11px;
	font-weight: 500;
	line-height: 16px;
	box-shadow: none;
}

/* The body: the video and its title, and the list beside them. */

.mdotcar-vmodal__body {
	display: grid;
	flex: 1 1 auto;
	grid-template-columns: minmax( 0, 1fr ) var( --mdotcar-vm-side );
	min-height: 0;
}

.mdotcar-vmodal.is-single .mdotcar-vmodal__body {
	grid-template-columns: minmax( 0, 1fr );
}

.mdotcar-vmodal.is-single .mdotcar-vmodal__side {
	display: none;
}

.mdotcar-vmodal__main {
	min-width: 0;
	padding: 16px 16px 20px;
}

/* The stage: the video, 16:9, and the player over it. */

.mdotcar-vmodal__stage {
	position: relative;
	z-index: 3;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: calc( var( --mdotcar-vm-radius ) - 6px );
	background-color: #0E1024;
	color: #FFFFFF;
	isolation: isolate;
}

.mdotcar-vmodal__stage:fullscreen {
	border-radius: 0;
	aspect-ratio: auto;
}

.mdotcar-vmodal__stage:-webkit-full-screen {
	width: 100%;
	height: 100%;
	border-radius: 0;
}

.mdotcar-vmodal__poster,
.mdotcar-vmodal__stage video,
.mdotcar-vmodal__stage iframe {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
	border: 0;
	background: transparent;
}

.mdotcar-vmodal__poster {
	object-fit: cover;
	filter: blur( 24px ) saturate( 1.1 );
	opacity: 0.45;
	transform: scale( 1.15 );
}

.mdotcar-vmodal__stage video {
	object-fit: contain;
}

/* The player. */

.mdotcar-player {
	--mdotcar-p-hide: 0;
	position: absolute;
	inset: 0;
	direction: ltr;
	font-family: inherit;
	user-select: none;
	-webkit-user-select: none;
}

.mdotcar-player.is-idle {
	cursor: none;
}

/* The big button in the middle, the same glass as on the cards. */

.mdotcar-vmodal .mdotcar-player__big {
	position: absolute;
	z-index: 2;
	top: 50%;
	left: 50%;
	width: 72px;
	height: 72px;
	background-color: rgba( 255, 255, 255, 0.25 );
	color: #FFFFFF;
	-webkit-backdrop-filter: blur( 11.67px );
	backdrop-filter: blur( 11.67px );
	box-shadow: -0.43px 0.43px 0.43px -0.85px rgba( 255, 255, 255, 0.35 ) inset, 0 12px 32px -8px rgba( 0, 0, 0, 0.4 );
	transform: translate( -50%, -50% );
	opacity: 1;
	transition: opacity 0.25s ease, transform 0.3s var( --mdotcar-vm-ease ), background-color 0.2s ease;
}

.mdotcar-vmodal .mdotcar-player__big::before {
	content: "";
	position: absolute;
	inset: 0;
	padding: 1px;
	border-radius: inherit;
	background: linear-gradient( 202.36deg, rgba( 255, 255, 255, 0.35 ) 8.26%, rgba( 255, 255, 255, 0 ) 85.43% );
	-webkit-mask: linear-gradient( #000 0 0 ) content-box, linear-gradient( #000 0 0 );
	-webkit-mask-composite: xor;
	mask: linear-gradient( #000 0 0 ) content-box exclude, linear-gradient( #000 0 0 );
}

.mdotcar-vmodal .mdotcar-player__big:hover {
	background-color: rgba( 255, 255, 255, 0.34 );
	transform: translate( -50%, -50% ) scale( 1.06 );
}

.mdotcar-player__big svg {
	width: 30px;
	height: 30px;
	margin-left: 3px;
}

.mdotcar-player.is-playing .mdotcar-player__big,
.mdotcar-player.is-waiting .mdotcar-player__big,
.mdotcar-player.is-ended .mdotcar-player__big,
.mdotcar-player.is-error .mdotcar-player__big {
	opacity: 0;
	pointer-events: none;
	transform: translate( -50%, -50% ) scale( 0.85 );
}

/* Loading. */

.mdotcar-player__spinner {
	position: absolute;
	z-index: 2;
	top: 50%;
	left: 50%;
	width: 48px;
	height: 48px;
	margin: -24px 0 0 -24px;
	border: 3px solid rgba( 255, 255, 255, 0.18 );
	border-top-color: #FFFFFF;
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
	animation: mdotcar-spin 0.8s linear infinite;
}

.mdotcar-player.is-waiting .mdotcar-player__spinner {
	opacity: 1;
	transition-delay: 0.15s;
}

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

/* At the end, and when it cannot play. */

.mdotcar-player__end,
.mdotcar-player__error {
	position: absolute;
	z-index: 3;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 24px;
	background: rgba( 14, 16, 36, 0.55 );
	-webkit-backdrop-filter: blur( 6px );
	backdrop-filter: blur( 6px );
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.mdotcar-player.is-ended .mdotcar-player__end,
.mdotcar-player.is-error .mdotcar-player__error {
	opacity: 1;
	visibility: visible;
	transition-delay: 0s;
}

.mdotcar-player__error {
	flex-direction: column;
	gap: 12px;
	font-size: 15px;
	line-height: 24px;
	text-align: center;
	direction: rtl;
}

.mdotcar-player__error svg {
	width: 36px;
	height: 36px;
	color: #FFD24A;
}

.mdotcar-vmodal .mdotcar-player__again {
	flex-direction: column;
	gap: 8px;
	width: auto;
	min-width: 96px;
	height: auto;
	padding: 14px 18px;
	border-radius: 16px;
	background-color: rgba( 255, 255, 255, 0.12 );
	color: #FFFFFF;
	font-size: 13px;
	line-height: 20px;
	direction: rtl;
}

.mdotcar-vmodal .mdotcar-player__again:hover {
	background-color: rgba( 255, 255, 255, 0.2 );
}


.mdotcar-player__again svg {
	width: 28px;
	height: 28px;
}

/* The bar: the progress across, the buttons under it. */

.mdotcar-player__bar {
	position: absolute;
	z-index: 4;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 40px 14px 10px;
	background: linear-gradient( to top, rgba( 8, 10, 24, 0.82 ), rgba( 8, 10, 24, 0.45 ) 55%, rgba( 8, 10, 24, 0 ) );
	opacity: 1;
	transform: none;
	transition: opacity 0.3s ease, transform 0.3s var( --mdotcar-vm-ease );
}

.mdotcar-player.is-idle .mdotcar-player__bar,
.mdotcar-player.is-fresh .mdotcar-player__bar {
	opacity: 0;
	transform: translateY( 8px );
	pointer-events: none;
}

.mdotcar-player__row {
	display: flex;
	align-items: center;
	gap: 4px;
	height: 40px;
}

.mdotcar-player__spacer {
	flex: 1 1 auto;
}

.mdotcar-vmodal .mdotcar-player__btn {
	position: relative;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	color: #FFFFFF;
}

.mdotcar-vmodal .mdotcar-player__btn:hover,
.mdotcar-vmodal .mdotcar-player__btn[aria-expanded="true"] {
	background-color: rgba( 255, 255, 255, 0.14 );
}

.mdotcar-vmodal .mdotcar-player__btn:focus-visible {
	outline-color: #FFFFFF;
	outline-offset: -2px;
}

.mdotcar-player__btn svg {
	width: 22px;
	height: 22px;
}

.mdotcar-vmodal .mdotcar-player__btn--speed {
	width: auto;
	min-width: 48px;
	padding: 0 8px;
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.mdotcar-player__time {
	padding: 0 8px;
	color: rgba( 255, 255, 255, 0.92 );
	font-size: 13px;
	line-height: 1;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.mdotcar-player__time span:last-child {
	color: rgba( 255, 255, 255, 0.6 );
}

/* Progress: what is buffered, what is played, and a time label where the pointer is. */

.mdotcar-player__seek {
	position: relative;
	height: 18px;
	margin: 0 4px 2px;
	cursor: pointer;
	touch-action: none;
	outline: none;
}

.mdotcar-player__rail,
.mdotcar-player__buffered,
.mdotcar-player__played {
	position: absolute;
	top: 50%;
	left: 0;
	height: 4px;
	margin-top: -2px;
	border-radius: 4px;
	transition: height 0.15s ease, margin 0.15s ease;
}

.mdotcar-player__rail {
	right: 0;
	background-color: rgba( 255, 255, 255, 0.22 );
}

.mdotcar-player__buffered {
	width: 0;
	background-color: rgba( 255, 255, 255, 0.36 );
}

.mdotcar-player__played {
	width: 0;
	background: linear-gradient( 90deg, #7986CB, var( --mdotcar-vm-accent ) );
}

.mdotcar-player__thumb {
	position: absolute;
	top: 50%;
	left: 0;
	width: 14px;
	height: 14px;
	margin: -7px 0 0 -7px;
	border-radius: 50%;
	background-color: #FFFFFF;
	box-shadow: 0 0 0 4px rgba( 63, 81, 181, 0.45 ), 0 2px 6px rgba( 0, 0, 0, 0.3 );
	transform: scale( 0 );
	transition: transform 0.15s ease;
}

.mdotcar-player__seek:hover .mdotcar-player__rail,
.mdotcar-player__seek:hover .mdotcar-player__buffered,
.mdotcar-player__seek:hover .mdotcar-player__played,
.mdotcar-player__seek.is-dragging .mdotcar-player__rail,
.mdotcar-player__seek.is-dragging .mdotcar-player__buffered,
.mdotcar-player__seek.is-dragging .mdotcar-player__played,
.mdotcar-player__seek:focus-visible .mdotcar-player__rail,
.mdotcar-player__seek:focus-visible .mdotcar-player__buffered,
.mdotcar-player__seek:focus-visible .mdotcar-player__played {
	height: 6px;
	margin-top: -3px;
}

.mdotcar-player__seek:hover .mdotcar-player__thumb,
.mdotcar-player__seek.is-dragging .mdotcar-player__thumb,
.mdotcar-player__seek:focus-visible .mdotcar-player__thumb {
	transform: scale( 1 );
}

.mdotcar-player__seek:focus-visible .mdotcar-player__rail {
	box-shadow: 0 0 0 2px rgba( 255, 255, 255, 0.5 );
}

.mdotcar-player__tip {
	position: absolute;
	bottom: calc( 100% + 6px );
	left: 0;
	padding: 4px 8px;
	border-radius: 8px;
	background-color: rgba( 14, 16, 36, 0.9 );
	color: #FFFFFF;
	font-size: 12px;
	line-height: 16px;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	opacity: 0;
	pointer-events: none;
	transform: translateX( -50% );
	transition: opacity 0.15s ease;
}

.mdotcar-player__seek:hover .mdotcar-player__tip,
.mdotcar-player__seek.is-dragging .mdotcar-player__tip {
	opacity: 1;
}

/* Volume: the button, and a slider that opens beside it. */

.mdotcar-player__volume {
	display: flex;
	align-items: center;
}

.mdotcar-player__level {
	width: 0;
	overflow: hidden;
	opacity: 0;
	transition: width 0.25s var( --mdotcar-vm-ease ), opacity 0.2s ease;
}

.mdotcar-player__volume:hover .mdotcar-player__level,
.mdotcar-player__volume:focus-within .mdotcar-player__level {
	width: 84px;
	opacity: 1;
}

.mdotcar-vmodal input.mdotcar-player__range {
	--v: 100%;
	display: block;
	width: 72px;
	height: 18px;
	margin: 0 6px;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.mdotcar-player__range::-webkit-slider-runnable-track {
	height: 4px;
	border-radius: 4px;
	background: linear-gradient( 90deg, #FFFFFF var( --v ), rgba( 255, 255, 255, 0.25 ) var( --v ) );
}

.mdotcar-player__range::-moz-range-track {
	height: 4px;
	border-radius: 4px;
	background: linear-gradient( 90deg, #FFFFFF var( --v ), rgba( 255, 255, 255, 0.25 ) var( --v ) );
}

.mdotcar-player__range::-webkit-slider-thumb {
	width: 12px;
	height: 12px;
	margin-top: -4px;
	border: 0;
	border-radius: 50%;
	background: #FFFFFF;
	box-shadow: 0 1px 4px rgba( 0, 0, 0, 0.35 );
	-webkit-appearance: none;
	appearance: none;
}

.mdotcar-player__range::-moz-range-thumb {
	width: 12px;
	height: 12px;
	border: 0;
	border-radius: 50%;
	background: #FFFFFF;
}

.mdotcar-player__range:focus-visible {
	outline: 2px solid #FFFFFF;
	outline-offset: 2px;
	border-radius: 4px;
}

/* Speed: a small menu above its button. */

.mdotcar-player__menu {
	position: absolute;
	z-index: 5;
	right: 0;
	bottom: calc( 100% + 8px );
	display: flex;
	flex-direction: column;
	min-width: 112px;
	padding: 6px;
	border-radius: 14px;
	background-color: rgba( 20, 23, 48, 0.92 );
	-webkit-backdrop-filter: blur( 16px );
	backdrop-filter: blur( 16px );
	box-shadow: 0 16px 40px -12px rgba( 0, 0, 0, 0.6 ), inset 0 0 0 1px rgba( 255, 255, 255, 0.08 );
	opacity: 0;
	visibility: hidden;
	transform: translateY( 6px );
	transition: opacity 0.2s ease, transform 0.2s var( --mdotcar-vm-ease ), visibility 0s linear 0.2s;
}

.mdotcar-player__menu.is-open {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

.mdotcar-vmodal .mdotcar-player__option {
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	height: 34px;
	padding: 0 10px;
	border-radius: 9px;
	color: rgba( 255, 255, 255, 0.86 );
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}

.mdotcar-vmodal .mdotcar-player__option:hover {
	background-color: rgba( 255, 255, 255, 0.1 );
	color: #FFFFFF;
}

.mdotcar-vmodal .mdotcar-player__option[aria-checked="true"] {
	color: #FFFFFF;
	font-weight: 700;
}

.mdotcar-vmodal .mdotcar-player__option[aria-checked="true"]::after {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: #FFB300;
}

/* A short sign in the middle for a key press: +5, -5, the volume. */

.mdotcar-player__flash {
	position: absolute;
	z-index: 3;
	top: 50%;
	left: 50%;
	padding: 8px 14px;
	border-radius: 12px;
	background-color: rgba( 14, 16, 36, 0.6 );
	-webkit-backdrop-filter: blur( 8px );
	backdrop-filter: blur( 8px );
	color: #FFFFFF;
	font-size: 14px;
	line-height: 20px;
	font-variant-numeric: tabular-nums;
	opacity: 0;
	pointer-events: none;
	transform: translate( -50%, -50% ) scale( 0.9 );
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.mdotcar-player__flash.is-on {
	opacity: 1;
	transform: translate( -50%, -50% );
}

/* Under the video: what it is. */

.mdotcar-vmodal__info {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 4px 0;
}

.mdotcar-vmodal .mdotcar-vmodal__title {
	margin: 0;
	padding: 0;
	color: #212121;
	font-size: 20px;
	font-weight: 700;
	line-height: 32px;
}

.mdotcar-vmodal .mdotcar-vmodal__desc {
	margin: 0;
	padding: 0;
	color: #616161;
	font-size: 14px;
	font-weight: 400;
	line-height: 24px;
}

.mdotcar-vmodal__desc:empty {
	display: none;
}

/* Beside the video: every video of the gallery. */

.mdotcar-vmodal__side {
	position: relative;
	min-width: 0;
	border-inline-start: 1px solid var( --mdotcar-vm-line );
	background-color: #FAFAFA;
}

/* Out of the flow, so the list never makes the panel taller than the video does. */
.mdotcar-vmodal__side-in {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
}

.mdotcar-vmodal__side-head {
	display: flex;
	flex: none;
	align-items: center;
	gap: 8px;
	padding: 16px 16px 12px;
}

.mdotcar-vmodal__side-title {
	color: #212121;
	font-size: 15px;
	font-weight: 700;
	line-height: 24px;
}

.mdotcar-vmodal__count {
	padding: 2px 8px;
	border-radius: 999px;
	background-color: #E8EAF6;
	color: var( --mdotcar-vm-accent );
	font-size: 12px;
	font-weight: 700;
	line-height: 18px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.mdotcar-vmodal__nav {
	display: flex;
	gap: 4px;
	margin-inline-start: auto;
}

.mdotcar-vmodal .mdotcar-vmodal__step {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	color: #424242;
}

.mdotcar-vmodal .mdotcar-vmodal__step:not( :disabled ):hover {
	background-color: #E8EAF6;
	color: var( --mdotcar-vm-accent );
}

.mdotcar-vmodal .mdotcar-vmodal__step:disabled {
	color: #BDBDBD;
}

.mdotcar-vmodal__step > svg,
.mdotcar-vmodal__step .mdotcar-vgal__icon {
	--mdotcar-vgal-icon: 20px;
	width: 20px;
	height: 20px;
}

.mdotcar-vmodal__list {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 4px;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 0 8px 12px;
	scrollbar-width: thin;
	scrollbar-color: #D6D6D6 transparent;
}

.mdotcar-vmodal__list::-webkit-scrollbar {
	width: 6px;
}

.mdotcar-vmodal__list::-webkit-scrollbar-thumb {
	border-radius: 6px;
	background: #D6D6D6;
}

.mdotcar-vmodal .mdotcar-vmodal__pick {
	display: grid;
	grid-template-columns: 128px minmax( 0, 1fr );
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 8px;
	border-radius: 14px;
	text-align: start;
}

.mdotcar-vmodal .mdotcar-vmodal__pick:hover {
	background-color: #F0F0F0;
}

/* The one playing is on the stage, not in the list. */
.mdotcar-vmodal .mdotcar-vmodal__pick.is-current {
	display: none;
}

.mdotcar-vmodal__thumb {
	position: relative;
	display: block;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
	background: linear-gradient( 135deg, #E8EAF6, #C5CAE9 );
}

.mdotcar-vmodal__thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s var( --mdotcar-vm-ease );
}

.mdotcar-vmodal__pick:hover .mdotcar-vmodal__thumb img {
	transform: scale( 1.06 );
}

.mdotcar-vmodal__len {
	position: absolute;
	bottom: 6px;
	left: 6px;
	padding: 1px 6px;
	border-radius: 6px;
	background-color: rgba( 14, 16, 36, 0.72 );
	color: #FFFFFF;
	font-size: 11px;
	font-weight: 500;
	line-height: 16px;
	direction: ltr;
	font-variant-numeric: tabular-nums;
}

.mdotcar-vmodal__len:empty {
	display: none;
}

/* How much was watched, along the bottom of the picture. */
.mdotcar-vmodal__seen {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	display: none;
	height: 3px;
	background-color: rgba( 255, 255, 255, 0.4 );
	direction: ltr;
}

.has-progress .mdotcar-vmodal__seen {
	display: block;
}

.mdotcar-vmodal__seen i {
	display: block;
	height: 100%;
	background-color: #FFB300;
}

.mdotcar-vmodal__pick-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.mdotcar-vmodal__pick-state {
	color: #757575;
	font-size: 11px;
	font-weight: 700;
	line-height: 16px;
}

.mdotcar-vmodal__pick-state:empty {
	display: none;
}


.mdotcar-vmodal__pick-title {
	display: -webkit-box;
	overflow: hidden;
	color: #212121;
	font-size: 14px;
	font-weight: 700;
	line-height: 22px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}


.mdotcar-vmodal__pick-meta {
	overflow: hidden;
	color: #757575;
	font-size: 12px;
	line-height: 18px;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* Changing videos: the stage cross-fades. */

.mdotcar-vmodal__stage > * {
	animation: mdotcar-vm-in 0.35s ease both;
}

@keyframes mdotcar-vm-in {
	from {
		opacity: 0;
	}
}

html.mdotcar-vmodal-locked,
html.mdotcar-vmodal-locked body {
	overflow: hidden;
}

/* -----------------------------------------------------------------------------
 * The player's moments: picking up where it was left, the double tap, and
 * what comes next.
 * -------------------------------------------------------------------------- */

.mdotcar-player {
	container-type: size;
}

.mdotcar-player__resume {
	position: absolute;
	z-index: 5;
	top: 14px;
	right: 14px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 5px 5px 5px 14px;
	border-radius: 999px;
	background-color: rgba( 14, 16, 36, 0.72 );
	-webkit-backdrop-filter: blur( 12px );
	backdrop-filter: blur( 12px );
	box-shadow: inset 0 0 0 1px rgba( 255, 255, 255, 0.1 );
	color: #FFFFFF;
	font-size: 13px;
	line-height: 20px;
	direction: rtl;
	opacity: 0;
	visibility: hidden;
	transform: translateY( -8px );
	transition: opacity 0.3s ease, transform 0.3s var( --mdotcar-vm-ease ), visibility 0s linear 0.3s;
}

.mdotcar-player__resume.is-on {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

.mdotcar-vmodal .mdotcar-player__resume button {
	gap: 6px;
	height: 30px;
	padding: 0 12px;
	border-radius: 999px;
	background-color: rgba( 255, 255, 255, 0.14 );
	color: #FFFFFF;
	font-size: 12px;
	font-weight: 700;
}

.mdotcar-vmodal .mdotcar-player__resume button:hover {
	background-color: rgba( 255, 255, 255, 0.24 );
}

.mdotcar-player__resume svg {
	width: 16px;
	height: 16px;
}

/* Double tap on a side: a soft half circle with how far it went. */
.mdotcar-player__ripple {
	position: absolute;
	z-index: 3;
	top: -20%;
	bottom: -20%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42%;
	background-color: rgba( 255, 255, 255, 0.1 );
	opacity: 0;
	pointer-events: none;
}

.mdotcar-player__ripple--back {
	left: 0;
	border-radius: 0 50% 50% 0;
}

.mdotcar-player__ripple--fwd {
	right: 0;
	border-radius: 50% 0 0 50%;
}

.mdotcar-player__ripple > span {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	color: #FFFFFF;
	font-size: 12px;
	font-weight: 700;
	direction: rtl;
}

.mdotcar-player__ripple svg {
	width: 28px;
	height: 28px;
}

.mdotcar-player__ripple--fwd svg {
	transform: scaleX( -1 );
}

.mdotcar-player__ripple.is-on {
	animation: mdotcar-ripple 0.7s ease-out;
}

@keyframes mdotcar-ripple {
	0% {
		opacity: 0;
	}

	15% {
		opacity: 1;
	}

	100% {
		opacity: 0;
	}
}

/* The end: the next video, counting down on its own picture. */

.mdotcar-player__end {
	background: rgba( 10, 12, 28, 0.72 );
	-webkit-backdrop-filter: blur( 14px );
	backdrop-filter: blur( 14px );
}

.mdotcar-player__upnext {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	max-width: 100%;
	direction: rtl;
}

.mdotcar-player__upnext-label {
	color: rgba( 255, 255, 255, 0.72 );
	font-size: 13px;
	line-height: 20px;
	font-variant-numeric: tabular-nums;
}

.mdotcar-vmodal .mdotcar-player__upnext-card {
	flex-direction: column;
	gap: 10px;
	max-width: 100%;
	border-radius: 16px;
	color: #FFFFFF;
}

.mdotcar-player__upnext-thumb {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	width: 240px;
	aspect-ratio: 16 / 9;
	border-radius: 14px;
	background: linear-gradient( 135deg, #3F51B5, #0E1024 );
	box-shadow: 0 16px 40px -16px rgba( 0, 0, 0, 0.7 ), inset 0 0 0 1px rgba( 255, 255, 255, 0.12 );
	transition: transform 0.3s var( --mdotcar-vm-ease );
}

.mdotcar-vmodal .mdotcar-player__upnext-card:hover .mdotcar-player__upnext-thumb {
	transform: scale( 1.04 );
}

.mdotcar-player__upnext-thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	opacity: 0.85;
}

.mdotcar-player__ring {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
}

.mdotcar-player__ring svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	transform: rotate( -90deg );
}

.mdotcar-player__ring circle {
	fill: rgba( 14, 16, 36, 0.45 );
	stroke: rgba( 255, 255, 255, 0.28 );
	stroke-width: 3;
}

.mdotcar-player__ring .mdotcar-player__ring-run {
	fill: none;
	stroke: #FFFFFF;
	stroke-linecap: round;
	stroke-dasharray: 100;
	stroke-dashoffset: 100;
}

.mdotcar-player.is-counting .mdotcar-player__ring-run {
	animation: mdotcar-ring 5s linear forwards;
}

@keyframes mdotcar-ring {
	to {
		stroke-dashoffset: 0;
	}
}

.mdotcar-player__ring > svg + svg {
	position: relative;
	inset: auto;
	width: 26px;
	height: 26px;
	margin-left: 3px;
	transform: none;
}

.mdotcar-player__upnext-title {
	display: block;
	overflow: hidden;
	max-width: 300px;
	font-size: 15px;
	font-weight: 700;
	line-height: 24px;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.mdotcar-player__upnext-actions {
	display: flex;
	gap: 8px;
}

.mdotcar-vmodal .mdotcar-player__chip {
	gap: 6px;
	height: 36px;
	padding: 0 14px;
	border-radius: 999px;
	background-color: rgba( 255, 255, 255, 0.12 );
	color: #FFFFFF;
	font-size: 13px;
	font-weight: 500;
}

.mdotcar-vmodal .mdotcar-player__chip:hover {
	background-color: rgba( 255, 255, 255, 0.22 );
}

.mdotcar-player__chip svg {
	width: 16px;
	height: 16px;
}

.mdotcar-player:not( .is-counting ) .mdotcar-player__chip--cancel {
	display: none;
}

/* A short stage (a phone): the next video is its ring and title only. */
@container ( max-height: 300px ) {

	.mdotcar-player__upnext {
		gap: 8px;
	}

	.mdotcar-player__upnext-thumb {
		width: auto;
		overflow: visible;
		background: none;
		box-shadow: none;
	}

	.mdotcar-player__upnext-thumb img {
		display: none;
	}

	.mdotcar-player__ring {
		width: 56px;
		height: 56px;
	}

	.mdotcar-player__upnext-title {
		max-width: 240px;
		font-size: 14px;
	}

	.mdotcar-vmodal .mdotcar-player__chip {
		height: 32px;
	}
}

/*
 * Computers and tablets: one panel. The video under the header, and under it
 * the title on the start side, previous · count · next on the end side. The
 * list is the phones' only.
 */

@media ( min-width: 768px ) {

	.mdotcar-vmodal__dialog {
		max-width: min( var( --mdotcar-vm-width ), calc( ( 100vh - 230px ) * 16 / 9 + 24px ) );
		max-width: min( var( --mdotcar-vm-width ), calc( ( 100dvh - 230px ) * 16 / 9 + 24px ) );
	}

	.mdotcar-vmodal__body,
	.mdotcar-vmodal.is-single .mdotcar-vmodal__body {
		grid-template-columns: minmax( 0, 1fr ) auto;
		align-items: center;
		column-gap: 16px;
		padding: 12px 12px 0;
	}

	.mdotcar-vmodal__main,
	.mdotcar-vmodal__side,
	.mdotcar-vmodal__side-in,
	.mdotcar-vmodal__nav {
		display: contents;
	}

	.mdotcar-vmodal__stage {
		grid-column: 1 / -1;
		border-radius: calc( var( --mdotcar-vm-radius ) - 8px );
	}

	.mdotcar-vmodal__info {
		grid-column: 1;
		gap: 4px;
		min-width: 0;
		padding: 14px 4px 18px;
	}

	.mdotcar-vmodal .mdotcar-vmodal__title {
		font-size: 18px;
		line-height: 28px;
	}

	.mdotcar-vmodal .mdotcar-vmodal__desc {
		line-height: 22px;
	}

	.mdotcar-vmodal__side-head {
		grid-column: 2;
		gap: 8px;
		padding: 0 0 4px;
	}

	.mdotcar-vmodal__side-title,
	.mdotcar-vmodal__list {
		display: none;
	}

	.mdotcar-vmodal__step[data-step="-1"] {
		order: 1;
	}

	.mdotcar-vmodal__count {
		order: 2;
		min-width: 44px;
		padding: 0;
		background: none;
		color: #616161;
		font-size: 13px;
		font-weight: 400;
		line-height: 20px;
		text-align: center;
	}

	.mdotcar-vmodal__step[data-step="1"] {
		order: 3;
	}

	.mdotcar-vmodal .mdotcar-vmodal__step {
		width: 40px;
		height: 40px;
		border-radius: 50%;
		background-color: #F5F5F5;
		color: #212121;
	}

	.mdotcar-vmodal .mdotcar-vmodal__step:disabled {
		background-color: #FAFAFA;
		color: #BDBDBD;
	}

	.mdotcar-vmodal.is-single .mdotcar-vmodal__side-head {
		display: none;
	}
}

/*
 * Phones: the whole screen. The header on top, the video edge to edge and
 * staying in view while the text and the other videos scroll under it. Pull
 * the header (or the video, at the top) down to close.
 */

@media ( max-width: 767px ) {

	.mdotcar-vmodal {
		align-items: stretch;
		padding: 0;
	}

	.mdotcar-vmodal__scrim {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.mdotcar-vmodal__dialog {
		width: 100%;
		max-width: none;
		height: 100%;
		max-height: none;
		border-radius: 0;
		box-shadow: none;
	}

	.mdotcar-vmodal__head {
		min-height: 56px;
		padding-top: calc( 10px + env( safe-area-inset-top ) );
		padding-bottom: 10px;
		padding-inline: 16px 8px;
		touch-action: none;
	}

	.mdotcar-vmodal__close kbd {
		display: none;
	}

	.mdotcar-vmodal__body {
		display: block;
		overflow-y: auto;
		overscroll-behavior: contain;
		padding-bottom: env( safe-area-inset-bottom );
	}

	/* Out of the way, so the video stays in view down the whole list, not only past the title. */
	.mdotcar-vmodal__main {
		display: contents;
	}

	.mdotcar-vmodal__stage {
		position: sticky;
		top: 0;
		border-radius: 0;
	}

	.mdotcar-vmodal__info {
		padding: 16px 16px 20px;
	}

	.mdotcar-vmodal .mdotcar-vmodal__title {
		font-size: 17px;
		line-height: 28px;
	}

	.mdotcar-vmodal__side {
		border-inline-start: 0;
		border-top: 8px solid #F5F5F5;
		background-color: var( --mdotcar-vm-bg );
	}

	.mdotcar-vmodal__side-in {
		position: static;
	}

	.mdotcar-vmodal__side-head {
		padding: 16px 16px 8px;
	}

	.mdotcar-vmodal__list {
		overflow: visible;
		padding: 0 8px 16px;
	}

	.mdotcar-vmodal .mdotcar-vmodal__pick {
		grid-template-columns: 136px minmax( 0, 1fr );
	}

	.mdotcar-vmodal .mdotcar-vmodal__pick:active {
		background-color: #F5F5F5;
	}

	.mdotcar-vmodal .mdotcar-vmodal__step {
		width: 40px;
		height: 40px;
	}

	/* The player, for fingers. */

	.mdotcar-player__bar {
		padding: 20px 6px 2px;
	}

	.mdotcar-player__seek {
		height: 26px;
		margin-bottom: 0;
	}

	.mdotcar-vmodal .mdotcar-player__btn {
		width: 40px;
		height: 40px;
	}

	.mdotcar-player__time {
		padding: 0 4px;
		font-size: 12px;
	}

	/* Phones have their own volume keys. */
	.mdotcar-player__level,
	.mdotcar-vmodal .mdotcar-player__btn--pip {
		display: none;
	}

	.mdotcar-vmodal .mdotcar-player__big {
		width: 60px;
		height: 60px;
	}

	.mdotcar-player__resume {
		top: 10px;
		right: 10px;
		font-size: 12px;
	}
}

/* A phone turned sideways: the video is the whole screen. */

@media ( max-height: 500px ) and ( max-width: 950px ) and ( orientation: landscape ) and ( hover: none ) {

	.mdotcar-vmodal {
		padding: 0;
	}

	.mdotcar-vmodal__dialog {
		width: 100%;
		max-width: none;
		height: 100%;
		max-height: none;
		border-radius: 0;
		background-color: #000000;
	}

	.mdotcar-vmodal__head,
	.mdotcar-vmodal__info,
	.mdotcar-vmodal__side,
	.mdotcar-vmodal__side-head {
		display: none;
	}

	.mdotcar-vmodal__body,
	.mdotcar-vmodal.is-single .mdotcar-vmodal__body {
		display: block;
		height: 100%;
		padding: 0;
	}

	.mdotcar-vmodal__main {
		display: block;
		height: 100%;
		padding: 0;
	}

	.mdotcar-vmodal__stage {
		position: relative;
		width: 100%;
		height: 100%;
		aspect-ratio: auto;
		border-radius: 0;
		background-color: #000000;
	}
}

@media ( hover: none ) {

	.mdotcar-player__level,
	.mdotcar-vmodal__close kbd {
		display: none;
	}
}

@media ( prefers-reduced-motion: reduce ) {

	.mdotcar-vgal__viewport {
		scroll-behavior: auto;
	}

	.mdotcar-vgal *,
	.mdotcar-vmodal *,
	.mdotcar-vmodal *::before,
	.mdotcar-vmodal *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
