
/* Focus outline colour chosen by the client (Teamwork 29544471). Parent default is #ff0000. */
:root {
    --focus_color: #00A000;
}

/* The collapsible panel around the "Find a route" field clips its content: draw the outline inside the field. */
#itineraryFrom:focus {
    outline-offset: -2px;
}

/*
 * Address suggestions under the "Find a route" field of the map block (js/map-autocomplete.js).
 * The list stays in the page flow: an absolute one is clipped by the collapsible panel (overflow: hidden).
 * The #itinerary prefix is needed to win over the parent list styles for content areas.
 */
#itinerary .itinerary_suggestions {
    margin: -11px 0 10px; /* Covers the 10px bottom margin of the field and overlaps its border. */
    padding: 0;
    list-style: none;
    border: 1px solid var(--light_grey_color);
    background: var(--body_background);
    color: var(--font_color);
    font-weight: normal;
    text-align: start;
}

#itinerary .itinerary_suggestions[hidden] {
    display: none;
}

#itinerary .itinerary_suggestions li {
    margin: 0;
    padding: 10px 15px;
    list-style: none;
    line-height: 1.3;
    cursor: pointer;
}

#itinerary .itinerary_suggestions li[aria-selected="true"] {
    background: var(--highlight_color);
    color: var(--highlight_color_associate);
}
