/* The search dismiss control is always one compact circle, never a stretched action. */
html body .app-shell .pin-search-heading,
html body main.app-shell section.map-stage .pin-search-heading {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 42px !important;
  align-items: center !important;
  min-width: 0 !important;
  gap: 10px !important;
}

html body .app-shell .pin-search-close,
html body main.app-shell section.map-stage .pin-search-close,
html body .app-shell button.pin-search-close,
html body main.app-shell section.map-stage button.pin-search-close,
html body #pinSearchCloseButton {
  box-sizing: border-box !important;
  display: inline-grid !important;
  flex: 0 0 42px !important;
  grid-column: 2 !important;
  place-items: center !important;
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0 !important;
  padding: 0 0 2px !important;
  overflow: hidden !important;
  border-radius: 50% !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

html body #pinSearchCloseButton > span {
  display: grid !important;
  width: 100% !important;
  height: 100% !important;
  place-items: center !important;
  padding-bottom: 2px !important;
  line-height: 1 !important;
}

@media (max-width: 350px) {
  html body .app-shell .pin-search-heading,
  html body main.app-shell section.map-stage .pin-search-heading {
    grid-template-columns: minmax(0, 1fr) 40px !important;
  }

  html body .app-shell .pin-search-close,
  html body main.app-shell section.map-stage .pin-search-close,
  html body .app-shell button.pin-search-close,
  html body main.app-shell section.map-stage button.pin-search-close,
  html body #pinSearchCloseButton {
    flex-basis: 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
  }
}
