/* 1) Ascund/afișez containerul potrivit */
.whs-desktop { display: block; }
.whs-mobile  { display: none; }
@media (max-width: 768px) {
  .whs-desktop { display: none; }
  .whs-mobile  { display: block; }
}

/* 2) Stiluri de bază (desktop & mobile) */
.whs-wrap {
  transform: none !important;
}
.whs-input {
  width: 100%;
  padding: 8px;
  font-size: 16px !important;
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
}
.whs-suggestions {
  position: absolute;
  top: 100%; left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 10px;
  z-index: 1;
}
.whs-suggestions ul {
  list-style: none;
  margin: 0; padding: 0;
}
.whs-suggestions li {
  display: flex;
  align-items: center;
  margin: 6px 0;
}
.whs-suggestions li img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  margin-right: 8px;
  border-radius: 4px;
}
.whs-suggestions li span {
  font-size: 15px;
  color: #333;
  flex: 1;
}
.whs-suggestions li a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* 3) Overwrite mobile: fixed & full-width styling */
@media (max-width: 768px) {
  .whs-mobile {
    position: fixed !important;
    top: 0; left: 0;
    width: 100% !important;
    padding: 8px 10px;
    background: #fff;
    z-index: 1;
  }
  .whs-mobile .whs-input {
    padding: 12px 14px !important;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
  }
  .whs-mobile .whs-suggestions {
    top: calc(100% + 4px) !important;
    left: 10px !important;
    width: calc(100% - 20px) !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    max-height: 60vh !important;
    overflow-y: auto !important;
  }
  .whs-mobile .whs-suggestions li a:hover {
    background: #f2f2f2;
  }
  .whs-wrap.whs-mobile {
    z-index: 1!important;

}
}
