.load {
  display: flex;
  align-items: center;
  justify-content: center;
  &.small {
    .loader {
      width: 30px;
      height: 30px;
    }
    .text {
      font-size: 16px;
    }
  }

  &.colored .text {
    /* color: var(--primary-color); */
  }
}

.loader {
  /* margin: 40px auto; */
  border: 2px solid #f3f3f3; /* Light grey */
  border-top: 2px solid var(--primary-color); /* colored */
  border-radius: 50%;
  width: 35px;
  height: 35px;
  animation: spin 1s ease-in infinite;
  flex-shrink: 0;
}

.text {
  margin-left: 20px;
  word-break: break-word;
}

.light {
  color: #fff;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

:global(.dir--rtl) {
  .text {
    margin-right: 20px;
    margin-left: 0;
  }
}