/* Статус построения, варианты маршрута, прогресс и справочные блоки. */
.routes {
  display: grid;
  gap: 9px;
}

.route {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  transition: 0.18s ease;
}

.route:hover {
  border-color: #9bbcf4;
  box-shadow: 0 1px 3px rgb(60 64 67 / 18%);
}

.route.active {
  background: #e8f0fe;
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.route-top {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}

.route small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.badge {
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 999px;
}

.safe {
  color: var(--green);
  background: #e6f4ea;
}
.middle {
  color: var(--orange);
  background: #fef7e0;
}
.risk {
  color: var(--red);
  background: #fce8e6;
}

.info-card {
  padding: 2px 0 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.info-card .facts {
  display: none;
}

.legend {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.legend-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.green {
  background: var(--green);
}
.dot.orange {
  background: #f9ab00;
}
.dot.red {
  background: var(--red);
}

.route-progress {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.route-progress span {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #80868b;
  font-size: 12px;
  transition: color 0.2s ease;
}

.route-progress span:not(.is-active):not(.is-complete):not(.is-failed) {
  display: none;
}

.route-progress span::before {
  box-sizing: border-box;
  display: grid;
  width: 16px;
  height: 16px;
  color: #80868b;
  border: 1.5px solid #bdc1c6;
  border-radius: 50%;
  content: "";
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}

.route-progress .is-active {
  color: #202124;
  font-weight: 800;
}

.route-progress .is-active::before {
  border: 2px solid #d2e3fc;
  border-top-color: var(--blue);
  animation: route-progress-spin 0.75s linear infinite;
}

.route-progress .is-complete {
  color: #137333;
}

.route-progress .is-complete::before {
  background: url("../../images/accept.png") center / contain no-repeat;
  border: 0;
  content: "";
}

.route-progress .is-failed {
  color: var(--red);
  font-weight: 800;
}

.route-progress .is-failed::before {
  background: url("../../images/fail.png") center / contain no-repeat;
  border: 0;
  content: "";
  animation: none;
}

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

.route-reasons {
  display: grid;
  gap: 5px;
  margin: 12px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
  font-size: 12px;
}

.route-reasons[hidden] {
  display: none;
}

.route-reasons li::before {
  margin-right: 7px;
  color: var(--blue);
  content: "•";
}

.risk-help {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

.risk-help summary {
  color: #3c4043;
  cursor: pointer;
  font-weight: 700;
}

.risk-help p {
  margin: 8px 0 0;
}

