/* Kontener dodawany do rodzica pola */
.ih-has-panel {
  position: relative;
}

/* Dropdown */
.ih-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid #16161620;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  z-index: 99999;
  padding: 12px;
  box-sizing: border-box;
  display: none;
}

.ih-panel::after{
  position: absolute;
  content: "";
  width: 100%;
  height: 24px;
  bottom: -24px;
}

/* otwarty */
.ih-has-panel.ih-open .ih-panel {
  display: block;
}

/* search */
.ih-search {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.ih-search input {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid #16161620;
  border-radius: 18px;
  box-sizing: border-box;
  font-family: var(--wp--preset--font-family--raleway);
  outline: none;
}

.ih-search input:focus {
  border-color: #9F66F0;
  box-shadow: 0 0 0 2px rgba(159, 102, 240, 0.3);
}

/* lista */
.ih-list {
  margin-top: 10px;
  max-height: 280px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ih-item {
  border-radius: 20px;
  padding: 6px 8px;
}

.ih-item label {
  display: flex !important;
  gap: 10px;
  align-items: center;
  margin-bottom: 0 !important;
  padding: 8px 0;
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  font-weight: 500;
}

.ih-item input[type="checkbox"] {
  margin-top: 1px;
}

.ih-item.is-selected {
  background: rgba(159, 102, 240, 0.10);
}

.ih-empty {
  font-size: 12px;
  opacity: .7;
  padding: 8px;
}
