.account-hub {
  &__empty,
  &__members {
    .header {
      margin-bottom: 20px;
      padding: 0;
      font-size: 1.5rem;
      font-weight: 300;
      line-height: 32px;
      word-break: break-word;
    }

    .btn-edit {
      .btn-icon {
        margin-right: 8px;
        font-size: 1rem;
      }
    }

    .description {
      margin: 45px 0 20px;
      text-align: center;
      font-weight: 500;
      font-size: 1.25rem;
    }

    .add-member {
      display: flex;
      justify-content: center;

      .btn {
        padding-left: 25px;
        padding-right: 25px;
      }
    }
  }

  &-modal {
    .modal-dialog-centered {
      justify-content: center;
    }

    .modal-box__inner-row {
      margin-left: 0;
      margin-right: 0;
    }

    .modal-box__inner-columns {
      @include make-col(12);
    }

    .modal-box__inner-columns {
      padding-top: 15px;
      padding-bottom: 15px;

      .title {
        margin-bottom: 10px;
      }

      .description {
        margin-bottom: 20px;
        font-size: 1rem;
      }

      .strong {
        font-weight: 500;
      }

      .actions {
        display: flex;
        width: 100%;
        column-gap: 10px;

        .btn {
          padding: 8px;
        }
      }
    }
  }

  &__control {
    .control {
      &__actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;

        .btn {
          &-edit {
            @include make-col(12);
          }

          &-add,
          &-remove {
            max-width: calc(50% - 5px);
            padding-left: 5px;
            padding-right: 5px;
          }
        }
      }

      &__sort {
        width: 100%;
        margin-top: 30px;

        .sort-order-by {
          flex-wrap: nowrap;
        }

        .form-row {
          padding: 0;
          margin: 0;

          &__label {
            padding-left: 0;
            padding-right: 10px;
            white-space: nowrap;
          }

          &__field {
            max-width: 100%;
            padding: 0;
          }
        }
      }
    }
  }

  &__list {
    padding-top: 30px;
  }

  &__actions {
    margin-top: 10px;

    .account-hub__remove {
      display: none;
    }
  }

  &__load {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
  }

  &__remove {
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;

    .btn {
      max-width: calc(50% - 5px);
      padding-left: 5px;
      padding-right: 5px;
    }
  }

  &-remove {
    .account-hub {
      &__remove {
        display: flex;
      }
    }

    .control {
      &__actions {
        display: none;
      }
    }
  }
}

@include media-breakpoint-up(sm) {
  .account-hub {
    &__control {
      .control {
        &__actions {
          flex-wrap: nowrap;

          .btn {
            &-edit {
              @include make-col(5);
            }
          }
        }
      }
    }
  }
}

@include media-breakpoint-up(md) {
  .account-hub {
    &__empty,
    &__members {
      .header {
        font-size: 1.875rem;
        line-height: 46px;
        text-align: center;
      }
    }

    &-modal {
      .modal-box__columns {
        @include make-col(12);
        width: 540px;
      }
    }

    &__control {
      .control {
        &__actions {
          .btn {
            &-edit {
              @include make-col(6);
            }
          }
        }
      }
    }
  }
}

@include media-breakpoint-up(lg) {
  .account-hub {
    &__members,
    &__empty {
      .header {
        text-align: left;
      }
    }
  }
}
