.map-stop-popup-table .map-stop-departures-section {
  padding: 10px 11px 7px;
}

.map-stop-popup-table .map-stop-passages-heading {
  padding: 0 4px 7px;
}

.map-stop-passage-grid {
  overflow: hidden;
  border: 1px solid #e1ebe7;
  border-radius: 12px;
  background: #fff;
}

.map-stop-grid-head,
.map-stop-grid-row {
  display: grid;
  grid-template-columns: minmax(105px, 1fr) repeat(3, 54px);
  align-items: stretch;
}

.map-stop-grid-head {
  min-height: 27px;
  color: #829ab1;
  background: #edf4f1;
}

.map-stop-grid-head span {
  display: grid;
  place-items: center;
  font-size: .54rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.map-stop-grid-head span:first-child {
  padding-left: 9px;
  place-items: center start;
}

.map-stop-grid-row + .map-stop-grid-row {
  border-top: 1px solid #e5ece9;
}

.map-stop-grid-line {
  display: flex;
  min-width: 0;
  padding: 7px 5px 7px 8px;
  align-items: center;
  gap: 7px;
}

.map-stop-grid-line .map-stop-passage-line {
  flex: 0 0 auto;
  min-width: 34px;
  min-height: 28px;
  padding: 4px 7px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}

.map-stop-grid-line small {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  color: #627d72;
  font-size: .58rem;
  font-weight: 700;
  line-height: 1.15;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.map-stop-grid-time {
  display: flex;
  min-width: 0;
  padding: 8px 3px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #102a43;
  border-left: 1px solid #edf2f0;
  font-family: "Manrope", sans-serif;
  font-size: .68rem;
}

.map-stop-grid-time i {
  color: #00a896;
  font-size: .55rem;
}

.map-stop-grid-time.is-live strong {
  color: #087f72;
}

.map-stop-grid-time.is-empty {
  color: #b3c1ca;
}

.map-stop-popup-table .map-stop-popup-footer {
  padding-top: 4px;
}

@media (max-width: 380px) {
  .map-stop-grid-head,
  .map-stop-grid-row {
    grid-template-columns: minmax(92px, 1fr) repeat(3, 48px);
  }

  .map-stop-grid-line {
    gap: 5px;
  }

  .map-stop-grid-time {
    font-size: .62rem;
  }
}
