/* Station selector */
.station-select {
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  display: flex;
  border-bottom: var(--border-width-thick) solid transparent;
  transition: border-color var(--transition-base);
  cursor: pointer;
  height: 7.8rem;
}

.station-select:hover,
.station-select:focus,
.station-select:focus-within {
  border-bottom-color: var(--color-border-primary-strong);
}

.station-field {
  width: 16rem;
  min-width: 16rem;
  min-height: 4.8rem;
  justify-content: center;
  align-items: center;
  gap: var(--space-2\.5);
  display: flex;
}

.station-field__text {
  flex: 1 1 0;
  align-self: stretch;
  text-align: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  color: var(--color-text-assistive);
  font-size: var(--title-m-font-size);
  line-height: var(--title-m-line-height);
  font-weight: var(--font-weight-normal);
}

.station-select.secondary {
  height: 4.8rem;
  border-bottom: none;
  transition: background-color var(--transition-base);
}

.station-select.secondary .station-field {
  min-height: 4.8rem;
  min-width: 10rem;
  max-width: 12rem;
  width: fit-content;
  gap: var(--space-2);
}

.station-select.secondary .station-field .station-field__text {
  font-size: var(--title-s-font-size);
  line-height: var(--title-s-line-height);
  font-weight: var(--font-weight-medium);
  padding: 0 var(--space-1);
  white-space: nowrap;
}

.station-select.secondary:hover,
.station-select.secondary:focus,
.station-select.secondary:focus-within {
  background-color: var(--color-background-alternative);
}

/* Dotted line */
.dotted-line {
  justify-content: flex-start;
  align-items: center;
  gap: var(--space-1);
  display: flex;
}

.dotted-line button {
  cursor: pointer;
}

.dotted-line__dots {
  justify-content: flex-start;
  align-items: center;
  gap: var(--space-1);
  display: flex;
}

.dotted-line__dots--end {
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-1);
  display: flex;
}

.dotted-line__dot {
  width: 0.2rem;
  height: 0.2rem;
  background: var(--color-text-assistive);
  border-radius: var(--rounded-9999);
}

/* Mobile responsive styles */
@media (max-width: 1023px) {
  .station-select {
    justify-content: center;
    align-items: center;
    gap: 0;
  }

  .station-field {
    width: 9.6rem;
    min-width: 9.6rem;
  }

  .station-field__text {
    font-size: var(--body-l-font-size);
    line-height: var(--body-l-line-height);
  }

  .dotted-line {
    align-self: stretch;
    padding: 0;
  }

  .dotted-line__dots {
    flex: 0 0 auto;
  }

  .dotted-line__dots--end {
    flex: 0 0 auto;
  }
}
