.projects-detail-bar {
  width: 100%;
  height: 0;
  position: relative;

  @include sm {
    height: 0;
    z-index: 10;
  }

  &__detach {
    position: relative;
    display: flex;
    align-items: center;
    background-color: $background-blue;
    width: 100%;
    height: 70px;
    z-index: 10;
    padding: 0 20px;
    right: 0;
    transition: 0.2s bottom, 0.2s right, 0.2s border-radius, 0.2s width 0.2s,
      0.2s height 0.2s;

    @include sm {
      width: 300px;
      height: 270px;
    }
  }

  &--close {
    @include sm {
      transition: 0.2s width, 0.2s height, 0.2s bottom 0.2s, 0.2s right 0.2s,
        0.2s border-radius 0.2s;
      position: absolute;
      width: 40px;
      height: 40px;
      bottom: 40px !important;
      right: 15px;
      border-radius: 100%;
    }
  }

  &__dots-icon {
    opacity: 0;
    pointer-events: none;
    transition: 0.2s all;
    position: absolute;

    .projects-detail-bar--close & {
      @include sm {
        opacity: 1;
        pointer-events: all;
        z-index: 10;
        top: 0;
        left: 0;
        width: 40px;
        height: 40px;
      }
    }
  }

  &__close {
    position: absolute;
    top: 19px;
    left: 15px;
    width: 22px;
    height: 22px;
    cursor: pointer;
    transition: 1s opacity;
    opacity: 1;
    pointer-events: unset;

    .projects-detail-bar--close & {
      pointer-events: none;
      opacity: 0;
    }

    &::after,
    &::before {
      content: " ";
      width: 10px;
      height: 10px;
      display: inline-block;
      transform: rotate(45deg);
      position: absolute;
      top: 6px;
    }

    &::after {
      border-right: 2px solid $primary-color;
      border-top: 2px solid $primary-color;
      left: 0;
    }

    &::before {
      border-left: 2px solid $primary-color;
      border-bottom: 2px solid $primary-color;
      right: 0;
    }
  }

  &__content {
    width: 100%;
    max-width: $projects-detail-width;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.2s opacity 0.2s;
    opacity: 1;

    @include sm {
      flex-direction: column;

      .projects-detail-bar--close & {
        opacity: 0;
        overflow: hidden;
      }
    }
  }

  &__left {
    display: flex;
    align-items: center;

    @include sm {
      flex-direction: column;
      padding-left: 30px;
      width: 100%;

      & > div {
        width: 100%;
      }
    }

    .square-button {
      margin-right: 20px;
    }
  }

  &__right {
    display: flex;
    align-items: center;
    padding-left: 30px;

    @include sm {
      flex-direction: column;
      width: 100%;
    }

    .square-button {
      margin-left: 20px;
    }
  }

  &__contact {
    &::before {
      content: "";
      background: url(../img/svg/icon-bubble-chat.svg) no-repeat center;
      display: inline-block;
      width: 22px;
      height: 22px;
      margin-right: 10px;
    }
  }

  @include sm {
    .square-button {
      margin-left: 0;
      margin-right: 0;
      margin-bottom: 10px;
      width: 100%;
      justify-content: center;
    }
  }
}
