@mixin notLogguedScreen {
  padding: 100px 20px 0 20px;
  @include container;

  font-size: 16px;

  h1 {
    text-align: center;
  }
  .logo-wrapper {
    width: fit-content;
    margin: 0 auto 50px auto;
    img {
      width: 100%;
      max-width: 120px;
    }
  }
  .form-wrapper {
    max-width: 330px;
    margin: 0 auto 50px auto;
  }

  .links {
    display: grid;
    max-width: 330px;
    margin: 0 auto 30px auto;
    text-align: center;

    .link {
      width: fit-content;
      padding-bottom: 5px;
      border-bottom: solid 2px $color-green;
      margin: 0 auto 20px auto;
    }
  }
}

@mixin accountInformation {
  .info {
    display: none;
    &.active {
      display: block;
    }
  }
  .inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    .item {
      width: 48%;
    }
  }
  .item {
    display: grid;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: solid 2px $color-grey-background;
    .label {
      font-weight: 700;
      margin-bottom: 10px;
    }
  }
}

@mixin workSpace {
  .top {
    width: 100%;
    position: relative;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    h1 {
      padding-bottom: 0;
    }

    .details {
      display: flex;
      align-items: center;
      img {
        margin-right: 10px;
      }
      p {
        margin: 0;
      }
    }
    @include tablet {
      display: block;
    }
  }

  .action-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    > * {
      cursor: pointer;
      margin-left: 10px;
      &:first-child {
        margin-left: 0;
      }
    }
    @include tablet {
      margin-top: 10px;
    }
  }

  .image-wrapper {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    overflow: hidden;
    margin-bottom: 30px;

    position: relative;

    $h: 180px;
    $spacing: 20px;

    img {
      height: 100%;
      width: 100%;
      object-fit: cover;
    }
    .custom-preview {
      margin: 0;
      width: 100%;
      max-width: none;
    }

    .full {
      width: calc(50% - #{$spacing * 0.5});
      overflow: hidden;

      @include medium {
        width: 100%;
        margin-bottom: $spacing;
      }
    }
    .custom-dropzone,
    .custom-preview {
      height: 2 * $h + $spacing;
    }
    @include medium {
      .custom-dropzone {
        height: 1.5 * $h;
      }
    }
    .grid {
      width: calc(50% - #{$spacing * 0.5});
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;

      @include medium {
        width: 100%;
      }

      .item {
        width: calc(50% - #{$spacing * 0.5});
        overflow: hidden;

        &:nth-child(1),
        &:nth-child(2) {
          margin-bottom: $spacing;
        }
      }
      .custom-dropzone,
      .custom-preview {
        height: $h;
      }
    }
  }

  .bottom {
    width: 100%;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: space-between;
    .detail-wrapper {
      width: 62%;
      @include medium {
        width: 100%;
      }

      .detail {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        padding: 10px 30px;
        background-color: $color-grey-background;
        border-radius: 50px;

        @include tablet {
          border-radius: 4px;
          justify-content: space-between;
          hr {
            display: none;
          }

          p {
            margin: 10px;
          }
        }

        @include phone {
          display: block;
        }

        .item {
          display: flex;
          align-items: center;
          @include tablet {
            margin: 5px;
          }
          @include phone {
            margin: 0 0 20px 0;

            &:nth-last-child(1) {
              margin: 0;
            }
          }
        }

        .green {
          font-weight: 700;
        }

        .label {
          font-weight: 700;
          margin-right: 10px;
        }

        p {
          margin: 0;
          padding: 0;
        }

        hr {
          width: 2px;
          height: 20px;
          border: 0;
          background-color: $color-grey;
        }
      }
    }

    .detail,
    .description,
    .features,
    .equipments {
      margin-bottom: 30px;
    }

    .description .content {
      .content {
        white-space: pre-wrap;
      }
    }

    .form-wrapper {
      width: 36%;
      background-color: $color-grey-background;
      height: 300px;
      border-radius: 10px;
      padding: 30px;
      height: auto;

      @include medium {
        width: 100%;
      }

      @include phone {
        padding: 15px;
      }
    }

    .calendar-wrapper {
      width: 36%;
      background-color: $color-grey-background;
      height: 300px;
      border-radius: 10px;

      height: auto;

      @include medium {
        width: 100%;
      }

      @include phone {
        padding: 15px;
      }

      .content {
        .item {
          display: flex;
          align-items: center;
          p {
            margin-bottom: 0;
          }
          .label {
            font-weight: 700;
            min-width: 100px;
          }
        }
      }
    }
    .toggle-wrapper {
      width: 100%;
      .toggle-button {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;

        @include tablet {
          flex-wrap: wrap;
        }
      }
      .button {
        border: solid 2px $color-grey;
        width: 100%;
        text-align: center;
        padding: 15px;
        font-weight: 700;
        cursor: pointer;
        @include transition(all);

        @include tablet {
          width: 49%;
          border-radius: 0 !important;
          border: solid 2px $color-grey !important;
          margin: 2px;
        }

        @include phone {
          width: 100%;
        }

        &.active {
          border: solid 2px #364350 !important;
        }

        p {
          margin: 0;
        }
        &:nth-child(1) {
          border-radius: 50px 0 0 50px;
          border-right: 0;
        }
        &:nth-child(2) {
        }
        &:nth-child(3) {
          border-left: 0;
        }
        &:nth-child(4) {
          border-radius: 0 50px 50px 0;
          border-left: 0;
        }
        &.error {
          border: 2px solid $color_error !important;
        }
      }

      .toggle-content {
        margin-top: 30px;
        .content {
          display: none;
          &.active {
            display: block;
          }

          &.info {
            // max-width: 500px;
          }

          &.feature,
          &.equipment {
            max-width: 1200px;
          }

          &.calendar {
            .wrapper {
              display: flex;
              align-items: flex-start;
              justify-content: space-between;

              @include medium {
                flex-wrap: wrap;
              }

              .calendar-wrapper {
                width: 28%;
                background-color: transparent;
                @include medium {
                  width: 100%;
                  margin-bottom: 30px;
                }
              }

              .hour-wrapper {
                width: 70%;
                @include medium {
                  width: 100%;
                }
              }
            }
          }
        }
      }
    }
  }
}
