/* app/assets/css/places-autocomplete-new.css
 *
 * Matches the site's .lgin-app-form-input look (see _base-app.scss),
 * since <gmp-place-autocomplete> renders in Shadow DOM and ignores the
 * site's input styles unless targeted via the properties/parts below.
 */

gmp-place-autocomplete.lgin-places-new-element {
  display: block;
  width: 100%;
  min-width: 220px;
  border: 1px solid rgb(218, 218, 218);
  border-radius: 10px;
  background-color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  color: #414141;
  /* PlaceAutocompleteElement defaults to `color-scheme: light dark`, which
     makes it follow the OS/browser dark-mode preference for its internal
     rendering -- independent of this site's own (class-based) theme. That's
     why the suggestion dropdown can render dark even though the rest of the
     form is light. Force it to light so it always matches this site. */
  color-scheme: light;
}

gmp-place-autocomplete.lgin-places-new-element:focus-within {
  border-color: rgb(218, 218, 218);
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

gmp-place-autocomplete.lgin-places-new-element::part(input) {
  padding: 15px;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  color: #414141;
}

gmp-place-autocomplete.lgin-places-new-element::part(prediction-list) {
  border-radius: 10px;
  font-family: 'Roboto', sans-serif;
  background-color: #fff;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
}

gmp-place-autocomplete.lgin-places-new-element::part(prediction-item) {
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  background-color: #fff;
  color: #414141;
}

gmp-place-autocomplete.lgin-places-new-element::part(prediction-item-selected) {
  background-color: rgba(217, 51, 45, 0.08);
}