.condition-editor {
  width: 100%;
  height: 0px;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0px 0px 10px 5px grey;
  padding: 12.5px;
  overflow: hidden;
  /* transition: height 0.3s; */
  animation-name: open;
  animation-duration: 0.25s;
}
.condition-editor.on {
  height: 530px;
}

.condition-editor .ez-input {
  height: auto;
  text-align: left;
  margin-bottom: 5px;
}
.condition-editor .ez-input .tag-box {
  display: inline-block;
  padding: 5px;
  border-radius: 10px;
  border: 1.5px solid lightgrey;
  background-color: white;
  color: black;
  margin-right: 6px;
  line-height: 20px;
  cursor: pointer;
  font-size: 0.7vw;
  /* transition: background-color 0.25s, color 0.2s; */
}
.condition-editor .ez-input .tag-box:active {
  background-color: rgb(35, 107, 176);
  color: white;
}
.condition-editor .ez-input .tag-box:last-child {
  margin-right: 0px;
}

.condition-editor .condition-input {
  height: 70%;
}
.condition-editor .condition-input textarea {
  width: calc(100% - 12px); /* padding + border = 12px */
  height: 100%;
  opacity: 0;
  padding: 5px;
  resize: none;
  overflow: auto;
  word-break: break-all;
  animation-name: show-up;
  animation-delay: 0.1s;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
}

.condition-editor .bottom {
  position: absolute;
  width: calc(100% - 25px);
  padding-top: 5px;
  padding-bottom: 10px;
  bottom: 0px;
  border: 1px solid white;
  border-radius: 5px;
  text-align: right;
  opacity: 0;
  background-color: white;
  margin-bottom: 0px;
  animation-name: show-up;
  animation-duration: 0.25s;
  animation-delay: 0.3s;
  animation-fill-mode: forwards;
}
/* .condition-editor .bottom button:nth-child(1) { */
.condition-editor .bottom button.del-btn {
  background-color: #dc3545;
  margin-right: 0px;
  float: left;
}
.condition-editor .bottom button {
  /* width: 45px; */
  height: 28px;
  padding: 1px 7.5px;
  border-radius: 10px;
  background-color: #1085c5;
  border: none;
  color: white;
  margin-right: 5px;
  font-size: 0.8vw;
}
.condition-editor .bottom button:last-child {
  background-color: #8f979b;
  margin-right: 0px;
}

.condition-editor .body-wrap {
  height: calc(100%)
}

@keyframes show-up {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes open {
  0% {
    height: 0px;
  }

  100% {
    height: 530px;
  }
}