/*
 * The clear button (x) in the station fields - the WORKAROUND described at the top of
 * wheelsys-station-clear.js. Delete this file with it.
 *
 * Three ids, because the engine's own button rules in the search form reach two ids, two
 * classes and two elements, and would otherwise paint this as one of its buttons.
 * The colours are the --wg-* tokens declared on .wheelsys-shell, which wraps the engine.
 */
#wheelsbook #WheelsBookingEngineWrapper #wheelsbookingEnginesearch .wheelsys-station-clear {
    flex: 0 0 44px;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    box-shadow: none;
    color: var(--wg-muted);
    cursor: pointer;
    transform: none;
    float: none;
    transition: color .15s;
}

#wheelsbook #WheelsBookingEngineWrapper #wheelsbookingEnginesearch .wheelsys-station-clear:hover,
#wheelsbook #WheelsBookingEngineWrapper #wheelsbookingEnginesearch .wheelsys-station-clear:focus-visible {
    background: transparent;
    color: var(--wg-purple);
}

#wheelsbook #WheelsBookingEngineWrapper #wheelsbookingEnginesearch .wheelsys-station-clear:focus-visible {
    outline: 2px solid var(--wg-purple);
    outline-offset: -6px;
}

/*
 * Only while the field holds text. :placeholder-shown follows the value however it got
 * there - typed, or written by the engine when a station is picked, which fires no event
 * - so no script has to watch it. Both station fields carry a placeholder.
 */
#wheelsbook #WheelsBookingEngineWrapper #wheelsbookingEnginesearch input:placeholder-shown + .wheelsys-station-clear {
    display: none;
}
