.idf2-sidebar {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  padding: 16px;
}

.idf2-section + .idf2-section {
  margin-top: 16px;
}

.idf2-toggle {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e3e3e3;
  background: transparent;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
}

.idf2-title {
  margin: 0;
  font-size: 16px;
}

.idf2-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid #222;
  border-bottom: 2px solid #222;
  transform: rotate(45deg);
  transition: transform .2s ease;
}

.idf2-section.is-open .idf2-chevron {
  transform: rotate(-135deg);
}

.idf2-body {
  padding-top: 10px;
}

.idf2-section:not(.is-open) .idf2-body {
  display: none;
}

.idf2-show-all {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13px;
}

.idf2-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.idf2-list li {
  border: 1px solid #efefef;
  border-radius: 6px;
  padding: 8px 10px;
}

.idf2-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.idf2-list--visual {
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}

.idf2-item--visual {
  padding: 0 !important;
  border: 0;
  background: transparent !important;
}

.idf2-label--visual {
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  background: #fff;
  min-height: 86px;
  padding: 10px;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  position: relative;
}

.idf2-label--visual input[type="checkbox"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.idf2-label--visual:has(input[type="checkbox"]:checked) {
  border-color: #111;
  box-shadow: inset 0 0 0 1px #111;
}

.idf2-term-media {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

.idf2-label--visual .idf2-term-label {
  font-size: 12px;
  line-height: 1.25;
}

.idf2-list small {
  opacity: 0.8;
}

.idf2-term-thumb {
  width: 22px;
  height: 22px;
  object-fit: contain;
  object-position: center;
  border-radius: 4px;
  background: #fff;
  padding: 2px;
  box-sizing: border-box;
  flex: 0 0 auto;
}

.idf2-select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d7d7d7;
  border-radius: 6px;
  padding: 8px 10px;
}

.idf2-actions {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.idf2-actions button {
  border: 0;
  border-radius: 6px;
  padding: 8px 14px;
  background: #222;
  color: #fff;
  cursor: pointer;
}
