.gm-search-toggle,
#gm-search-open {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: 8px 0;
  border: 0 !important;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.gm-search-toggle:hover,
.gm-search-toggle[aria-expanded="true"] { color: var(--gold); }
.gm-search-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.gm-search-icon {
  position: relative;
  width: .85em;
  height: .85em;
  flex: 0 0 auto;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  margin-right: .15em;
}
.gm-search-icon::after {
  content: "";
  position: absolute;
  width: .46em;
  height: 1.5px;
  background: currentColor;
  top: 100%;
  left: 79%;
  transform: rotate(45deg);
  transform-origin: left center;
}
@media (max-width: 640px) {
  .gm-search-toggle { padding: 13px 0; min-height: 44px; }
}

.gm-search {
  position: relative;
  z-index: 5;
  background: #f3f6fa;
  border-bottom: 1px solid #dbe3ec;
  color: #142b44;
}

.gm-search-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding-block: .65rem;
}

.gm-search-field { position: relative; width: min(100%, 36rem); min-width: 0; }
.gm-search-controls { display: flex; gap: .45rem; }
.gm-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.gm-search input, .gm-search button {
  min-height: 44px;
  font: inherit;
  border-radius: .45rem;
}
.gm-search input {
  flex: 1;
  min-width: 0;
  background: #fff;
  color: inherit;
  border: 1px solid #8598af;
  padding-inline: .8rem;
}
#gm-search-open {
  padding-inline: .55rem;
  color: #173e67;
}
#gm-search-open:hover { text-decoration: underline; }
.gm-search button.gm-search-close {
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  padding: 0;
  border: 0 !important;
  border-radius: .45rem;
  background: transparent;
  color: #173e67;
  font: 400 1.6rem/1 system-ui, sans-serif;
  cursor: pointer;
}
.gm-search button.gm-search-close:hover { background: #e3edf8; }
.gm-search :focus-visible { outline: 2px solid #2162a9; outline-offset: 2px; }
.gm-search-dropdown {
  position: absolute;
  inset: calc(100% + .35rem) 0 auto;
  border: 1px solid #a5b5c7;
  border-radius: .45rem;
  background: #fff;
  box-shadow: 0 12px 30px #09233c24;
  max-height: min(28rem, 55vh);
  overflow: auto;
}
.gm-search-dropdown ul { margin: 0; padding: .25rem; list-style: none; }
.gm-search-dropdown [role="option"] {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .65rem;
  padding: .55rem .65rem;
  min-height: 44px;
  border-radius: .3rem;
  cursor: pointer;
}
.gm-search-dropdown [aria-selected="true"], .gm-search-dropdown [role="option"]:hover {
  background: #e3edf8;
}
.gm-search-dropdown small { color: #415872; text-align: right; }
.gm-search-dropdown p { margin: 0; padding: .75rem; }
.gm-search [hidden] { display: none; }
