.mz-smart-suggestions-host {
  position: relative;
}

.mz-smart-suggestions {
  background: #fff;
  border: 1px solid #dfe3e8;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 10px 24px rgba(27, 31, 35, .14);
  color: #1d2329;
  left: 0;
  margin: 0;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 1065;
}

.mz-smart-suggestions[hidden] {
  display: none !important;
}

.mz-smart-suggestions--flow {
  inset: auto;
  position: relative;
  width: 100%;
  z-index: 1;
}

.mz-smart-suggestions--joli {
  border-width: 0 0 1px;
  border-radius: 0;
  box-shadow: none;
  flex: 0 0 auto;
}

.mz-smart-suggestions--discovery {
  margin-top: 0;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  box-shadow: none;
}

.mz-smart-suggestions__list {
  display: block;
}

.mz-smart-suggestions__option {
  align-items: center;
  background: #fff;
  border: 0;
  border-top: 1px solid #eef0f2;
  color: #1d2329;
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 10px;
  min-height: 42px;
  padding: 8px 13px;
  text-align: left;
  width: 100%;
}

.mz-smart-suggestions__option:hover,
.mz-smart-suggestions__option:focus,
.mz-smart-suggestions__option.is-active {
  background: #fff7f1;
  color: #b94700;
  outline: none;
}

.mz-smart-suggestions__icon {
  color: #555d68;
  display: inline-flex;
  flex: 0 0 auto;
}

.mz-smart-suggestions__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mz-smart-suggestions__text {
  flex: 1 1 auto;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.mz-smart-suggestions__text strong {
  font-weight: 700;
}

#mz-search-form:has(+ .mz-smart-suggestions--discovery:not([hidden])) {
  border-radius: 20px 20px 0 0;
}

@media (max-width: 767px) {
  .mz-smart-suggestions {
    border-radius: 0 0 10px 10px;
    max-height: min(55vh, 330px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .mz-smart-suggestions__option {
    min-height: 44px;
  }

  .mz-smart-suggestions--joli {
    max-height: none;
    overflow: visible;
  }

  .mz-smart-suggestions--discovery {
    max-height: min(48vh, 300px);
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .mz-discovery-app .mz-top:has(.mz-smart-suggestions--discovery:not([hidden])) {
    flex-wrap: wrap;
  }

  .mz-smart-suggestions--discovery {
    flex: 1 0 100%;
  }
}
