.bngine--project {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(var(--grey), 1);
  padding: 16px 20px;
  border-radius: 10px;
  transition: border-color 0.22s;
  &:hover,
  &:focus-within {
    border-color: rgba(var(--dark), 1);
  }
  &-toggle {
    button {
      display: flex;
      align-items: center;
      width: 100%;
      justify-content: space-between;
      color: rgba(var(--dark), 1);
      transition: color 0.3s;
      &:hover,
      &:focus {
        color: rgba(var(--dark), 1);
        // border: 1px solid rgba(var(--dark), 1);
      }
      svg {
        margin-left: auto;
        width: 14px;
        height: 14px;
        fill: rgba(var(--grey), 1);
        transition: all 0.32s;
      }
      .show {
        transform: rotate(180deg);
      }
    }
    &-title {
      text-transform: capitalize;
    }
    span {
      font-size: 20px;
    }
    p {
      font-size: 16px;
    }
  }
  &-top {
    display: flex;
    .input {
      max-width: 350px;
    }
  }
  &-section {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    h4 {
      font-size: 24px;
      font-weight: 300;
      color: rgba(var(--grey), 1);
      margin-bottom: 10px;
    }
    .delete {
      margin-left: auto;
    }
    .vars,
    .commands,
    .general {
      padding: 20px;
      border: 1px solid rgba(var(--grey), 0.5);
      display: flex;
      flex-direction: column;
      .remove {
        color: rgba(var(--grey), 1);
        &:hover {
          color: rgba(var(--dark), 1);
        }
      }
      .bcmsButton {
        &_ghost {
          padding-top: 0;
          padding-bottom: 0;
          transition: color 0.22s;
        }
      }
    }
    .vars {
      gap: 20px;
      border-radius: 10px;
      .var {
        ._bcmsInput {
          width: 100%;
        }
        display: flex;
        margin-bottom: 20px;
        margin-top: 20px;
        .remove {
          margin: auto 0 auto 10px;
          svg {
            width: 24px;
            height: 24px;
            fill: rgba(var(--grey), 1);
            transition: fill 0.22s;
          }
          &:hover,
          &:focus {
            svg {
              fill: rgba(var(--red), 1);
            }
          }
        }
      }
    }
    .commands {
      border-radius: 10px;
      .command {
        margin-bottom: 30px;
        padding-bottom: 30px;
        border-bottom: 1px solid rgba(var(--grey), 0.5);
        .top {
          display: flex;
          div {
            display: flex;
            align-items: flex-start;
          }
          .title {
            width: 100%;
          }
          .ignore {
            margin: 0 20px 0 10px;
            min-width: 100px;
          }
          .remove,
          .move {
            svg {
              width: 24px;
              height: 24px;
              fill: rgba(var(--grey), 1);
              transition: fill 0.22s;
            }
          }
          .remove {
            display: flex;
            &:hover,
            &:focus {
              svg {
                fill: rgba(var(--red), 1);
                transition: fill 0.22s;
              }
            }
          }
          .move {
            margin-right: 14px;
            &:hover,
            &:focus {
              svg {
                fill: rgba(var(--dark), 1);
              }
            }
          }
        }
      }
    }
  }
  &-update {
    margin-left: auto;
    margin-top: 20px;
  }
  @include media(640px, 'max') {
    &-section {
      .commands {
        .command {
          .top {
            display: flex;
            flex-direction: column;
            & > div {
              display: flex;
              justify-content: space-between;
              margin-top: 16px;
              div {
                display: block;
              }
              .remove {
                margin-top: 10px;
              }
            }
            .ignore,
            .move {
              margin: 0;
            }
            ._bcmsInput {
              margin-bottom: 16px;
              &:last-of-type {
                margin-bottom: 0;
              }
            }
          }
        }
      }
    }
  }
  @include media(500px, 'max') {
    &-section {
      .vars {
        .var {
          display: flex;
          flex-direction: column;
          align-items: center;
          ._bcmsInput {
            margin: 0;
            margin-bottom: 16px;
            &:last-of-type {
              margin-bottom: 0;
            }
          }
          .remove {
            margin: 16px 10px 0 auto;
          }
        }
      }
    }
  }
}
