.big-search-bar{
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  background: #eff0f2;
  border-radius: 999px;
  padding: 0.7rem 3.1rem;
  margin: 1rem;
  box-shadow: 0 0 0 1px #e3e4e7 inset;
}
.big-search-bar:focus-within{
  box-shadow: 0 0 0 2px #cfd1d6 inset;
}

/* Icon */
.big-search-bar .search-ic{
  position: absolute;
  inset-inline-start: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.12rem;
  color: #8a8e95;
  pointer-events: none;
}

/* Input */
.big-search-bar input{
  border: 0;
  background: #eff0f2;
  box-shadow: none;
  width: 100%;
  padding: 0;
  padding-inline-start: 8px;
  padding-inline-end: 44px;
  font-size: clamp(0.95rem, 0.2vw + 0.9rem, 1.05rem);
  color: #111;
}
.big-search-bar input::placeholder{
  color: #9aa0a6;
}
.big-search-bar input:focus{
  outline: none;
  box-shadow: none;
}
.big-search-bar input::-webkit-search-cancel-button{
  -webkit-appearance: none;
}

/* Custom clear button */
.big-search-bar .clear-btn{
  position: absolute;
  inset-inline-end: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: #cfd1d6;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}
.big-search-bar.has-value .clear-btn{
  display: flex;
}

@media (max-width: 420px){
  .big-search-bar{
    margin: 0.75rem 0.5rem;
    min-height: 50px;
    padding-inline: 2.8rem;
  }
  /* iOS Safari auto-zooms focused inputs smaller than 16px */
  .big-search-bar input{
    font-size: 16px;
  }
  .big-search-bar .clear-btn{
    width: 34px;
    height: 34px;
  }
}
