/*
 * Standalone styles for the RouteAutocomplete widget. Prefixed `ra-` class
 * names throughout so this file has no dependency on, and no conflict with,
 * any host page's stylesheet (deliberately not routekit.css).
 */

.ra-container {
  position: relative;
}

.ra-listbox {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #767676;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  max-height: 300px;
  overflow-y: auto;
}

.ra-option {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  padding: 6px 10px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
}

.ra-option-number {
  font-weight: 700;
  flex: 0 0 auto;
}

.ra-option-agency {
  flex: 0 0 auto;
  color: #4d4d4d;
  font-size: 0.9em;
}

.ra-option-desc {
  flex: 1 1 auto;
  color: #4d4d4d;
  font-size: 0.9em;
  text-overflow: ellipsis;
  overflow: hidden;
}

.ra-option-active,
.ra-option[aria-selected="true"] {
  background: #003078;
  color: #fff;
}

.ra-option-active .ra-option-agency,
.ra-option-active .ra-option-desc,
.ra-option[aria-selected="true"] .ra-option-agency,
.ra-option[aria-selected="true"] .ra-option-desc {
  color: #e0e6f0;
}

.ra-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
