.haendler-suche {
  --haendler-border: #d8d8d8;
  --haendler-text: #111111;
  --haendler-muted: #6a6a6a;
  color: var(--haendler-text);
}

.haendler-suche svg.search__category-icon {
  width: 16px !important;
  height: 24px !important;
  display: inline-flex;
  flex-shrink: 0;
}

.haendler-suche__form {
  position: relative;
  --haendler-radius-width: 5.25rem;
}

.haendler-suche__field {
  position: relative;
  display: block;
}

.haendler-suche__top-fields {
  display: grid;
  grid-template-columns: 1fr var(--haendler-radius-width);
  gap: 0.5rem;
}

.haendler-suche__top-fields .haendler-suche__input {
  height: 3rem;
  min-height: 3rem;
}

.haendler-suche__input {
  width: 100%;
  min-height: 2.2rem;
  border: 1px solid var(--haendler-border);
  background: #ececec;
  padding: 0.6rem 0.75rem;
  color: var(--haendler-text);
  font: inherit;
  box-sizing: border-box;
}

.haendler-suche__select {
  appearance: none;
  cursor: pointer;
}

.haendler-suche__field--distance .haendler-suche__input {
  padding-right: 1.8rem;
  text-align: left;
}

.haendler-suche__suffix {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  transform: translateY(-50%);
  color: var(--haendler-muted);
  font-size: 0.875rem;
  pointer-events: none;
}

.haendler-suche__hint {
  margin: 0;
  color: var(--haendler-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 19rem;
}

.haendler-suche__suggestions {
  position: absolute;
  top: 3.25rem;
  left: 0;
  width: calc(100% - var(--haendler-radius-width) - 0.5rem);
  z-index: 20;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--haendler-border);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.haendler-suche__suggestion {
  border: 0;
  border-bottom: 1px solid var(--haendler-border);
  background: transparent;
  padding: 0.875rem;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.haendler-suche__suggestion:last-child {
  border-bottom: 0;
}

.haendler-suche__checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1rem;
}

.haendler-suche__submit {
  width: 10.75rem;
  min-height: 2.3rem;
  justify-content: center;
}

.haendler-suche__results {
  max-height: 40rem;
  overflow-y: auto;
  padding-top: 0.25rem;
}

.haendler-suche__map-wrap {
  position: relative;
  min-height: 28rem;
}

.haendler-suche__map-wrap > .sticky {
  top: calc(5rem + var(--wp-admin--admin-bar--height, 0px)) !important;
}

.haendler-suche__map {
  min-height: 28rem;
  height: 100%;
}

.haendler-suche__card {
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.haendler-suche__card.is-active {
  background: #d5d5d5;
  transform: translateY(-1px);
}

.haendler-suche__empty {
  margin: 0;
  padding: 1rem;
  background: #ffffff;
  color: var(--haendler-muted);
}

.haendler-suche__popup {
  position: relative;
  width: 31rem;
  max-width: min(31rem, calc(100vw - 2.5rem));
  padding: 2.5rem 2rem 2.75rem;
  color: var(--haendler-text);
}

.haendler-suche__popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  padding: 0;
  background: transparent;
  color: #000000;
  cursor: pointer;
}

.haendler-suche__popup-close-icon {
  width: 1rem;
  height: 1rem;
}

.haendler-suche__popup p {
  margin: 0;
}

.haendler-suche__popup-title {
  margin-bottom: 1.5rem !important;
  font-size: 1.875rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.haendler-suche__popup-line {
  font-size: 1.125rem;
  line-height: 1.5;
}

.haendler-suche__popup-line + .haendler-suche__popup-line {
  margin-top: 0.125rem;
}

.haendler-suche__popup-line a {
  color: inherit;
  text-decoration: none;
}

.haendler-suche__popup-address {
  margin-bottom: 0.125rem !important;
}

.haendler-suche__popup-action {
  margin-top: 2rem !important;
}

.haendler-suche__popup-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18.25rem;
  max-width: 100%;
  min-height: 4.125rem;
  border: 0;
  padding: 1rem 1.5rem;
  background: #000000;
  color: #ffffff;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  font-size: 1.125rem;
  cursor: pointer;
}

.haendler-suche__popup-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.haendler-suche__popup-badges .search__category {
  font-size: 1rem;
  line-height: 1.5;
}

.haendler-suche__detail-panel {
  background: #ececec;
  padding: 1.5rem 1.25rem;
}

@media (min-width: 768px) {
  .haendler-suche__detail-panel {
    padding: 2.5rem 2rem;
  }
}

.haendler-suche__detail {
  color: var(--haendler-text);
}

.haendler-suche__detail-back {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  cursor: pointer;
}

.haendler-suche__detail-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 18rem;
}

.haendler-suche__detail-summary {
  max-width: 30rem;
  line-height: 1.7;
}

.haendler-suche__detail-headline {
  margin: 0;
  font-size: 1.125rem;
  letter-spacing: 0.04em;
}

.haendler-suche__detail-open-hours {
  margin: 0;
  line-height: 1.7;
}

.haendler-suche__detail-contact {
  line-height: 1.65;
}

.haendler-suche__detail-contact p {
  margin: 0;
}

.haendler-suche__detail-contact-line a {
  color: inherit;
  text-decoration: none;
}

.haendler-suche .gm-style .gm-style-iw-c {
  border-radius: 0;
  background: #ececec;
  padding: 0 !important;
  max-height: none !important;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
}

.haendler-suche .gm-style .gm-style-iw-d {
  overflow: hidden !important;
  max-height: none !important;
  background: #ececec;
}

.haendler-suche .gm-style .gm-style-iw-chr {
  display: none !important;
}

.haendler-suche .gm-style .gm-ui-hover-effect {
  display: none !important;
}

@media (min-width: 992px) {
  .haendler-suche__map-wrap,
  .haendler-suche__map {
    min-height: 34rem;
  }
}
