.select {
  position: relative;

  max-width: calc(270px + 8px + 16px);
}

.select-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.select__wrapper {
  display: flex;
  gap: 8px;

  background-color: var(--bg-primary);

  button.select__informations {
    background-color: transparent;
  }
}

.select__field {
  max-width: 270px;
  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 24px;

  background-color: var(--bg-primary);

  border: 2px solid transparent;
  border-radius: 4px;

  transition: all 0.4s;

  overflow: hidden;

  span {
    width: 100%;

    text-align: left;

    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  app-icon {
    transition: all 0.4s;
  }

  &:disabled {
    app-icon {
      --fill: var(--text-tertiary);
    }

    span {
      color: var(--text-tertiary);
    }

    background-color: var(--gray-050);
  }
}

.select__dropdown {
  max-width: 270px;
  width: 100%;

  position: absolute;
  top: 100%;
  z-index: 1;

  display: flex;
  flex-direction: column;

  background-color: var(--bg-primary);
  border-radius: 0 0 8px 8px;

  overflow: auto;

  box-shadow: var(--shadow-secondary);
}

.dropdown__option {
  width: 100%;

  display: flex;
  align-content: center;

  padding: 8px 16px;

  background-color: var(--bg-primary);
  border-top: 1px solid var(--gray-100);

  transition: all 0.4s;

  span {
    width: 100%;

    text-align: left;

    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  &:hover {
    background-color: #4097dc1f;
  }
}
