@import 'variables';
@import 'functions';

// VARIABLES
$backupTutorialBoxBorder: #d4d4d9;
$backupCodesBoxColor: #000;
$backupCodesSubTextColor: #898989;

.twofas-backup-codes-box-tutorial {
  border: 1px solid $backupTutorialBoxBorder;
  margin-top: 45px;
  padding: 34px 38px;
  text-align: left;

  @media all and (max-width: 700px) {
    padding: 25px;
  }

  @media all and (max-width: 480px) {
    padding: 20px;
  }

  &.twofas-backup-codes-box-tutorial-modal {
    margin-bottom: 20px;
    padding: 20px;

    @media all and (max-width: 700px) {
      padding: 20px;
    }

    .twofas-backup-codes-box-tutorial-content {
      position: relative;

      &-step {
        flex-shrink: unset;

        &-content {
          p {
            margin: 0;
          }
        }
      }
    }
  }

  &-content {
    display: flex;
    flex-direction: row;

    @media all and (max-width: 700px) {
      flex-direction: column;
    }

    &-step {
      flex-grow: 0;
      flex-shrink: 0;
      width: 33.3%;

      @media all and (max-width: 700px) {
        display: flex;
        flex-direction: row;
        width: 100%;
      }

      &:first-of-type {
        padding-right: 10px;

        @media all and (max-width: 700px) {
          padding-right: 0;
        }

        .twofas-backup-codes-box-tutorial-content-step-line {
          &::after {
            width: calc(100% + 10px);

            @media all and (max-width: 700px) {
              width: 1px;
            }
          }
        }
      }

      &:nth-of-type(2) {
        padding-left: 10px;
        padding-right: 10px;

        @media all and (max-width: 700px) {
          padding-left: 0;
          padding-right: 0;
        }

        .twofas-backup-codes-box-tutorial-content-step-line {
          &::after {
            left: -10px;
            width: calc(100% + 20px);

            @media all and (max-width: 700px) {
              left: 4px;
              width: 1px;
            }
          }
        }
      }

      &:last-of-type {
        padding-left: 10px;

        @media all and (max-width: 700px) {
          padding-left: 0;
        }

        .twofas-backup-codes-box-tutorial-content-step-line {
          &::after {
            left: -10px;
            width: calc(100% + 10px);

            @media all and (max-width: 700px) {
              left: 4px;
              width: 1px;
            }
          }
        }
      }

      &-line {
        margin-bottom: 33px;
        position: relative;

        @media all and (max-width: 700px) {
          margin-bottom: 0;
          margin-right: 33px;
        }

        &::before,
        &::after {
          background-color: $backupTutorialBoxBorder;
          content: '';
          display: block;
        }

        &::before {
          border-radius: 50%;
          height: 8px;
          width: 8px;
        }

        &::after {
          height: 1px;
          left: 0;
          position: absolute;
          top: 4px;
          width: 100%;

          @media all and (max-width: 700px) {
            height: 100%;
            left: 4px;
            top: 0;
            width: 1px;
          }
        }
      }

      &-content {
        img {
          margin-bottom: 26px;

          @media all and (max-width: 700px) {
            margin-bottom: 5px;
          }
        }

        p {
          color: $backupCodesBoxColor;
          font-size: px-to-rem(14);
          font-weight: 400;
          line-height: px-to-rem(18);
          margin: 0;
          max-width: 250px;

          @media all and (max-width: 700px) {
            margin: 0 0 15px !important;
            max-width: 100%;
          }
        }
      }
    }
  }

  h6 {
    color: $backupCodesSubTextColor;
    font-size: px-to-rem(16);
    font-weight: 600;
    line-height: px-to-rem(20);
    margin: 0 0 27px;
  }
}
