:host {
  display: block;
  position: relative;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  min-width: 12rem;
}

.dropdown-content {
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1), 0 0px 0 1px rgba(10, 10, 10, 0.02);
  padding: 0.5rem 0;
}

.dropdown-item {
  color: #4a4a4a;
  display: block;
  font-size: 0.875rem;
  line-height: 1.5;
  padding: 0.375rem 1rem;
  position: relative;
  cursor: pointer;
  text-decoration: none;

  &:hover {
    background-color: #f5f5f5;
    color: #363636;
  }

  &.is-active {
    background-color: #3273dc;
    color: #fff;
  }
}

.indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.selected-mode-auto .indicator {
  background-color: #48c774;
}

.selected-mode-structured .indicator {
  background-color: #ffdd57;
}

.selected-mode-specific .indicator {
  background-color: #f14668;
}

.button {
  background-color: white;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  color: #363636;
  cursor: pointer;
  justify-content: center;
  padding: 0.5em 0.75em;
  text-align: center;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;

  &:hover {
    border-color: #b5b5b5;
    color: #363636;
  }

  .icon {
    height: 1.5rem;
    width: 1.5rem;
    margin-left: 0.25rem;
  }
}

// Ensure dropdown is displayed when active or on hover
.dropdown.is-active .dropdown-menu,
.dropdown.is-hoverable:hover .dropdown-menu {
  display: block;
}

.dropdown:not(.is-active):not(:hover) .dropdown-menu {
  display: none;
}
