/* Geöffnete Suchfelder dürfen weder vom Formular noch vom Bildrand abgeschnitten werden. */
body main :is([data-fhe-global-hero], .fhe-hero) form.fhe-search-launcher:has(details[open]) {
  overflow: visible !important;
}

body main :is([data-fhe-global-hero], .fhe-hero) .fhe-search-popover {
  scroll-margin-block: 12px;
}

@media (min-width: 821px) {
  body main :is([data-fhe-global-hero], .fhe-hero) .fhe-search-popover {
    top: auto !important;
    bottom: calc(100% + 9px) !important;
  }

  body main :is([data-fhe-global-hero], .fhe-hero) .fhe-search-guest-popover {
    left: auto !important;
    right: 0 !important;
  }
}

@media (max-width: 820px) {
  body main [data-fhe-global-hero] .fhe-search-launcher-control > summary {
    height: auto !important;
  }

  body main [data-fhe-global-hero] .fhe-search-popover {
    position: static !important;
    min-width: 0 !important;
    margin: 0 10px 10px !important;
    box-shadow: none !important;
  }
}
