/* Styles for the <gmp-place-autocomplete> web component used for address
 * inputs across the project. Matches the project's standard form-input
 * look: 44px height, 1.5px border, 14px font, 14px horizontal padding.
 *
 * The component renders its own <input> inside a shadow DOM; we style the
 * outer element (border, background, height) and the inner input via
 * ::part(input) for padding + font.
 */

.places-autocomplete-wrap {
  width: 100%;
}

gmp-place-autocomplete {
  display: block;
  width: 100%;
  height: 44px;
  background: #fff;
  border: 1.5px solid var(--gray-200, #E2E8F0);
  border-radius: var(--radius-md, 8px);
  font-family: var(--font-body, inherit);
  font-size: 14px;
  color: var(--gray-800, #1E293B);
  box-sizing: border-box;
  /* NOTE: no `overflow: hidden` — the component's suggestion dropdown
   * renders as a child of the element and gets clipped otherwise. */
  transition: border-color 0.15s, box-shadow 0.15s;
}

gmp-place-autocomplete:focus-within {
  border-color: var(--navy, #1B2A4A);
  box-shadow: 0 0 0 3px rgba(27, 42, 74, 0.08);
  outline: none;
}

/* Style the inner <input> inside the component's shadow DOM via the
 * exposed "input" shadow part.
 */
gmp-place-autocomplete::part(input) {
  height: 100%;
  padding: 0 14px;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: inherit;
  width: 100%;
}

gmp-place-autocomplete::part(input)::placeholder {
  color: var(--gray-300, #CBD5E0);
}
