.image {
  height: 100%;
  width: 100%;

  &__img {
    margin-left: auto;
    margin-right: auto;
    display: block;
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    width: 100%;

    &--fit-cover {
      object-fit: cover;
    }

    &--fit-content {
      object-fit: contain;
    }
  }

  &__container-draggable {
    margin-top: rem-calc(24);
  }

  &__droppable-adjust-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: $white;
  }

  &__droppable-adjust-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
  }

  &__image-draggable {
    width: 180px;
    height: 150px;
    text-align: center;
    background-color: #f6fbff;
    margin-right: 5px;
    margin-bottom: 45px;
    cursor: move;
    position: relative;
  }

  &__image-draggable-placeholder {
    border: 2px dashed #a3aab4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  &__connect-wrapper {
    height: 100%
  }

  &__image-droppable {
    width: 180px;
    height: 158px;
    text-align: center;
    background-color: #f6fbff;
    cursor: move;
    position: relative;

    &__text {
      padding: 0 10px;
    }

    &__upload-here {
      color: #4a90e2;
    }

    &__icon {
      position: absolute;
      top: 5px;
      left: 5px;
    }
  }

  &__actions {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: rem-calc(3);

    &__action {
      display: flex;
      cursor: pointer;
    }

    &__rotate-icon {
      color: #4a90e2;
      font-size: rem-calc(15);
      font-weight: bold;
      height: auto;
      width: rem-calc(28);
    }

    &__rotate-text {
      color: #4a90e2;
      margin-top: rem-calc(1);
    }
  
    &__delete-icon {
      color: red;
      font-size: rem-calc(15);
      font-weight: bold;
      height: auto;
      width: rem-calc(28);
    }

    &__delete-text {
      color: red;
      margin-top: rem-calc(1);
    }
  }

  &__border {
    position: relative;
  }

  &__loader-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    z-index: 10;
    background-color: rgba(255, 255, 255, .7);

    &__adjust {
      width: 100%;
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }

  &__error-container {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 234, 234, 1);
    border: 2px solid #d0021b;
  }

  &__error-adjust {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;

    &__top {
      width: 100%;
      height: 55%;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;

      &__image {
        width: rem-calc(24);
        height: rem-calc(29);
      }

      .adjust-wrapper {
        height: auto;
        margin-bottom: rem-calc(5);
      }

      &__text {
        font-weight: bold;
        line-height: 1 !important;
      }
    }

    &__bottom {
      height: 45%;
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;

      &__try {
        color: #4a90e2;
        cursor: pointer;
      }
    }
  }
}