.ember-basic-dropdown {
  position: relative;
}

.ember-basic-dropdown, .ember-basic-dropdown-content, .ember-basic-dropdown-content * {
  box-sizing: border-box;
}

.ember-basic-dropdown-content {
  position: absolute;
  width: auto;
  list-style: none;
  text-align: left;
  z-index: z-index('dropdownContent');
  background-color: var(--dropdown-bg);
  border: 1px solid var(--dropdown-border);

  // Links within the dropdown menu
  li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    clear: both;
    font-weight: normal;
    color: var(--dropddown-text);
    white-space: nowrap; // prevent links from randomly breaking onto new lines
    cursor: pointer;
    @extend .clip;

    .icon {
      font-size: 12px;
    }

    // Hover/Focus state
    &:hover,
    &:focus {
      text-decoration: none;
      color: var(--dropdown-hover-text);
      background-color: var(--dropdown-hover-bg);
    }
  }

  // Active state
  .active > a {
    & {
      color: var(--dropdown-active-text);
      text-decoration: none;
      outline: 0;
      background-color: var(--dropdown-active-bg);
    }

    &:hover,
    &:focus {
      color: var(--dropdown-hover-text);
      background-color: var(--dropdown-hover-bg);
    }
  }

  // Disabled state
  //
  // Gray out text and ensure the hover/focus state remains gray
  .disabled > a {
    &,
    &:hover,
    &:focus {
      text-decoration: none;
      color: var(--dropdown-disabled-text);
      background-color: var(--dropdown-disabled-bg);
    }
  }

  .divider {
    margin: 0;
    border-top: 1px solid var(--dropdown-divider);
  }

  .header {
    font-weight: bold;
    padding: 0;
    margin: 0;
    border-bottom: 0;

    A {
      font-weight: bold;
    }
  }

  .subitem A {
    padding-left: 30px;
  }
}

.ember-basic-dropdown-content--left { left: 0; }
.ember-basic-dropdown-content--right { right: 0; }

.ember-basic-dropdown-overlay {
  position: fixed;
  background: rgba(0,0,0,0);
  width: 100%;
  height: 100%;
  z-index: z-index('dropdownOverlay');
  top: 0;
  left: 0;
}

.ember-basic-dropdown-content-wormhole-origin {
  display: inline;
}
