/**
 * Confirmed road distance and driving time below each doctor name.
 */

.mzd-elementor-doctor-card
.mzd-browser-route-block {
	display: grid;
	width: 100%;
	margin: 3px 0 10px;
	padding: 9px 12px 7px;
	gap: 4px;
	border: 1px solid #dbeafe;
	border-radius: 10px;
	background: #eff6ff;
	box-sizing: border-box;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
}

.mzd-elementor-doctor-card
.mzd-browser-route-block__distance,
.mzd-elementor-doctor-card
.mzd-browser-route-block__drive {
	display: flex;
	align-items: center;
	min-width: 0;
	gap: 7px;
}

.mzd-elementor-doctor-card
.mzd-browser-route-block__distance {
	color: #175fc7;
	font-size: 15px;
	font-weight: 800;
}

.mzd-elementor-doctor-card
.mzd-browser-route-block__drive {
	color: #f97316;
	font-size: 13px;
	font-weight: 750;
}

.mzd-elementor-doctor-card
.mzd-browser-route-block__distance__value,
.mzd-elementor-doctor-card
.mzd-browser-route-block__drive__value {
	min-width: 0;
}

.mzd-elementor-doctor-card
.mzd-browser-route-block__icon {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	fill: currentColor;
}

.mzd-elementor-doctor-card
.mzd-browser-route-block__icon--distance {
	color: #175fc7;
}

.mzd-elementor-doctor-card
.mzd-browser-route-block__icon--time {
	color: #f97316;
}

.mzd-elementor-doctor-card
.mzd-browser-route-block__attribution {
	justify-self: end;
	margin-top: 1px;
	color: #5e5e5e;
	cursor: default;
	font-family: Roboto, Arial, sans-serif;
	font-size: 12px;
	font-style: normal;
	font-weight: 400;
	letter-spacing: normal;
	line-height: 1;
	pointer-events: none;
	user-select: none;
	white-space: nowrap;
}

@media (max-width: 390px) {
	.mzd-elementor-doctor-card
	.mzd-browser-route-block {
		padding: 9px 11px 7px;
	}

	.mzd-elementor-doctor-card
	.mzd-browser-route-block__distance {
		font-size: 14px;
	}

	.mzd-elementor-doctor-card
	.mzd-browser-route-block__drive {
		font-size: 12.5px;
	}
}

.mzd-route-diagnostics {
	position: fixed;
	right: 14px;
	bottom: 14px;
	z-index: 2147483000;
	width: min(390px, calc(100vw - 28px));
	max-height: min(72vh, 620px);
	overflow: auto;
	padding: 12px;
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 14px 40px rgba(15, 23, 42, 0.22);
	color: #1e293b;
	font: 12px/1.4 system-ui, sans-serif;
}

.mzd-route-diagnostics__title {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 800;
}

.mzd-route-diagnostics__row {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 8px;
	padding: 5px 0;
	border-top: 1px solid #eef2f7;
}

.mzd-route-diagnostics__row:first-of-type {
	border-top: 0;
}

.mzd-route-diagnostics__label {
	font-weight: 700;
}

.mzd-route-diagnostics__value {
	min-width: 0;
	overflow-wrap: anywhere;
}

.mzd-route-diagnostics__value[data-state="ok"] {
	color: #0f7a43;
}

.mzd-route-diagnostics__value[data-state="error"] {
	color: #b42318;
}

.mzd-route-diagnostics__value[data-state="waiting"] {
	color: #8a5a00;
}
