/* Našeptávač vyhledávání Dům, dílna, bazén */
#header .searchWhisperer.active {
  box-sizing: border-box;
  max-height: min(680px, 76vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 12px 32px #172d4933;
}

#header .searchWhisperer__products {
  flex: 1 0 100%;
  min-width: 0;
  padding: 12px 12px 4px;
}

#header .searchWhisperer__product {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 9px 4px;
}

#header .searchWhisperer__product:hover,
#header .searchWhisperer__product:focus-visible {
  background: #f1f7fc;
}

#header .searchWhisperer__product__image {
  width: 58px;
  height: 58px;
}

#header .searchWhisperer__product__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#header .searchWhisperer__product__infoWrapper,
#header .searchWhisperer__product__price,
#header .searchWhisperer__product__cart {
  width: auto;
  min-width: 0;
  padding: 0;
  margin: 0;
}

#header .searchWhisperer__product__name {
  font-size: 16px;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}

#header .searchWhisperer__product__price {
  text-align: right;
  white-space: nowrap;
}

#header .searchWhisperer__product__cart .btn {
  padding: 8px 12px;
  min-height: 0;
  line-height: 1.4;
  white-space: nowrap;
}

#header .searchWhisperer__additionalResults {
  flex: 1 0 100%;
  min-width: 0;
}

@media (min-width: 1200px) {
  #header .searchWhisperer.active {
    left: auto;
    right: 0;
    width: 640px;
    padding: 12px;
    margin: 0;
  }
}

@media (max-width: 540px) {
  #header .searchWhisperer__products { padding: 8px; }
  #header .searchWhisperer__product {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 8px;
  }
  #header .searchWhisperer__product__image { width: 48px; height: 48px; }
  #header .searchWhisperer__product__name { font-size: 15px; }
  #header .searchWhisperer__product__cart { display: none; }
}
