:host {
  display: block;
  width: 100%;
}

.option {
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  list-style: none;
}
.option.option--expanded {
  position: relative;
}
.option.option--has-children {
  position: relative;
}
.option.option--has-children .option-item > .chevron-wrapper {
  display: flex;
}
.option--disabled {
  cursor: not-allowed;
  pointer-events: none;
  color: #bfbbbb;
}
.option.search-hidden {
  display: none !important;
}
.option.search-match .option-item .option-label .search-highlight {
  font-weight: bold;
}

.option-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  white-space: nowrap;
  min-height: 20px;
  padding: 4px 16px;
  background-color: #ffffff;
  transition: background-color 0.2s ease-in-out;
}
.option-item:hover {
  background-color: #f7f7f7;
}
.option--disabled .option-item:hover {
  background-color: transparent;
}

.option-children {
  display: block;
}

.chevron-wrapper {
  display: none;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.chevron-wrapper:focus {
  outline: none;
}
.chevron-wrapper:focus-visible {
  outline: 2px solid #0a8276;
  outline-offset: 2px;
  border-radius: 1px;
}
.option--has-children .chevron-wrapper {
  display: flex;
}
.chevron-wrapper .chevron {
  transition: transform 0.2s ease-in-out;
  color: #3c3a39;
}
.chevron-wrapper .chevron.chevron--expanded {
  transform: rotate(90deg);
}
.chevron-wrapper .chevron.chevron--collapsed {
  transform: rotate(0deg);
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  margin-right: 8px;
  flex-shrink: 0;
}

.option-label {
  flex-grow: 1;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 2px 0;
  font-family: var(--ifx-font-family);
  font-size: 0.875rem;
}
.option-label:focus {
  outline: none;
}
.option-label:focus-visible {
  outline: 2px solid #0a8276;
  outline-offset: 2px;
  border-radius: 1px;
}
.option--disabled .option-label {
  cursor: not-allowed;
  color: #bfbbbb;
}