.qsy-route-launcher {
  position: fixed;
  right: 24px;
  bottom: 240px;
  z-index: 842;
  border: 1px solid rgba(41, 79, 70, 0.16);
  border-radius: 999px;
  padding: 10px 15px;
  background: #edf8f4;
  color: #27594c;
  box-shadow: 0 12px 30px rgba(28, 74, 62, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 700;
}

.qsy-route-launcher span {
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background: #347765;
  color: #fff;
  display: grid;
  place-items: center;
}

.qsy-route-panel {
  position: fixed;
  inset: 14px 14px 14px auto;
  z-index: 940;
  width: min(760px, calc(100vw - 28px));
  border: 1px solid rgba(41, 79, 70, 0.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(82, 165, 139, 0.18), transparent 31%),
    #f9fdfb;
  color: #21473c;
  box-shadow: 0 30px 84px rgba(23, 59, 49, 0.28);
  transform: translateX(calc(100% + 42px));
  transition: transform 220ms ease;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
}

.qsy-route-panel.is-open {
  transform: translateX(0);
}

.qsy-route-panel header {
  padding: 20px 22px 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.qsy-route-panel header div {
  display: grid;
  gap: 4px;
}

.qsy-route-panel header b {
  font: 800 22px/1.2 "STKaiti", "KaiTi", serif;
}

.qsy-route-panel header small {
  color: #71877f;
}

.qsy-route-panel button {
  border: 1px solid rgba(41, 79, 70, 0.14);
  border-radius: 10px;
  padding: 8px 12px;
  background: #fff;
  color: #285b4e;
  cursor: pointer;
}

.qsy-route-search {
  padding: 0 22px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
}

.qsy-route-search label {
  display: grid;
  gap: 4px;
  color: #71877f;
  font-size: 10px;
}

.qsy-route-search input {
  min-width: 0;
  border: 1px solid rgba(41, 79, 70, 0.15);
  border-radius: 9px;
  padding: 8px;
}

#qsy-route-content {
  padding: 17px 22px 24px;
  overflow: auto;
  border-top: 1px solid rgba(41, 79, 70, 0.12);
}

.qsy-route-summary {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  border: 1px solid rgba(41, 79, 70, 0.13);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.qsy-route-summary > div,
.qsy-route-summary > span {
  padding: 13px;
  border-right: 1px solid rgba(41, 79, 70, 0.12);
  display: grid;
  gap: 4px;
  font-size: 11px;
  color: #748980;
}

.qsy-route-summary b {
  color: #285f50;
  font-size: 16px;
}

.qsy-route-summary div span {
  width: fit-content;
  border-radius: 999px;
  padding: 3px 7px;
  color: #287057;
  background: #e8f7f0;
}

.qsy-route-summary div span.is-offline {
  color: #b65343;
  background: #fff0ec;
}

.qsy-route-stops {
  position: relative;
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.qsy-route-stops:before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 21px;
  width: 2px;
  background: #d5e8e1;
}

.qsy-route-stops article {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
}

.qsy-route-stops em {
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #347765;
  color: #fff;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 800;
}

.qsy-route-stops article.is-delivery em {
  background: #bd704f;
}

.qsy-route-stop__copy {
  border: 1px solid rgba(41, 79, 70, 0.12);
  border-radius: 15px;
  padding: 12px 14px;
  background: #fff;
  display: grid;
  gap: 6px;
}

.qsy-route-stop__copy > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.qsy-route-stop__copy span,
.qsy-route-stop__copy p,
.qsy-route-stop__copy small {
  color: #748980;
  font-size: 11px;
}

.qsy-route-stop__copy p,
.qsy-route-stop__copy strong {
  margin: 0;
}

.qsy-route-stop__copy strong {
  color: #bf563f;
  font-size: 12px;
}

.qsy-route-stop__copy small {
  color: #a56c20;
}

.qsy-route-notice,
.qsy-route-empty,
.qsy-route-error {
  text-align: center;
  color: #71877f;
  font-size: 11px;
}

.qsy-route-empty,
.qsy-route-error {
  padding: 48px 16px;
}

.qsy-route-error {
  color: #b65343;
}

@media (max-width: 680px) {
  .qsy-route-launcher {
    right: 12px;
    bottom: 212px;
  }

  .qsy-route-panel {
    inset: 8px;
    width: auto;
  }

  .qsy-route-summary {
    grid-template-columns: 1fr 1fr;
  }
}
