/* WP GPX Maps Pro: stages planner, a link next to the estimated time and a panel on request */
.wpgpxmaps-pro-stages-toggle,
.wpgpxmaps-pro-stages-toggle:hover,
.wpgpxmaps-pro-stages-toggle:focus,
.wpgpxmaps-pro-stages-choice,
.wpgpxmaps-pro-stages-choice:hover,
.wpgpxmaps-pro-stages-choice:focus {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
	box-shadow: none;
}

.wpgpxmaps-pro-time .wpgpxmaps-pro-stages-toggle {
	margin-left: 4px;
	font-size: 0.9em;
}

.wpgpxmaps-pro-stages {
	font-size: 0.9em;
}

.wpgpxmaps-pro-stages-panel {
	margin: 4px 0 12px;
}

.wpgpxmaps-pro-stages-form {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	margin-bottom: 6px;
}

.wpgpxmaps-pro-stages-form select {
	margin-left: 4px;
	font: inherit;
}

.wpgpxmaps-pro-stages-help,
.wpgpxmaps-pro-stages-note,
.wpgpxmaps-pro-stages-loading,
.wpgpxmaps-pro-stages-place small {
	color: #6b7280;
}

.wpgpxmaps-pro-stages-help {
	font-size: 0.9em;
}

.wpgpxmaps-pro-stages-table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
}

.wpgpxmaps-pro-stages-table th,
.wpgpxmaps-pro-stages-table td {
	padding: 5px 8px 5px 0;
	border: 0;
	border-bottom: 1px solid rgba(127, 127, 127, 0.25);
	text-align: left;
	vertical-align: top;
	font-size: inherit;
}

.wpgpxmaps-pro-stages-table td {
	white-space: nowrap;
}

.wpgpxmaps-pro-stages-table thead th,
.wpgpxmaps-pro-stages-total th,
.wpgpxmaps-pro-stages-total td {
	font-weight: 600;
}

.wpgpxmaps-pro-stages-table tbody th {
	font-weight: normal;
}

.wpgpxmaps-pro-stages-row {
	cursor: pointer;
}

.wpgpxmaps-pro-stages-row:hover {
	background: rgba(127, 127, 127, 0.08);
}

.wpgpxmaps-pro-stages-row th .wpgpxmaps-pro-stage-end {
	margin-right: 6px;
	vertical-align: 1px;
}

.wpgpxmaps-pro-stages-alt td {
	padding-top: 0;
	white-space: normal;
	font-size: 0.9em;
}

.wpgpxmaps-pro-stages-row:has(+ .wpgpxmaps-pro-stages-alt) th,
.wpgpxmaps-pro-stages-row:has(+ .wpgpxmaps-pro-stages-alt) td {
	border-bottom: 0;
}

.wpgpxmaps-pro-stages-choice {
	margin-right: 16px;
}

.wpgpxmaps-pro-stages-warning {
	color: #b45309;
}

.wpgpxmaps-pro-stages-note {
	margin: 6px 0 0;
	font-size: 0.85em;
}

/* Numbered end of a stage: in the table and on the map */
.wpgpxmaps-pro-stage-end {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 20px;
	height: 20px;
	border: 2px solid #fff;
	border-radius: 50%;
	color: #fff;
	font: bold 11px/1 Arial, Helvetica, sans-serif;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.wpgpxmaps-pro-stage-end-icon {
	background: none;
	border: 0;
}

.wpgpxmaps-pro-stage-end-gl {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	pointer-events: none;
	will-change: transform;
}
