.certificate-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap-reverse;
}
.certificate--text {
  width: calc( 100% - 601px);
  padding-left: 0;
}
.certificate--text>p {
  padding-left: 2rem;
}
.certificate-preview {
  height: 480px;
  width: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-top: 2rem;
  padding: 20px;
}
.certificate-border {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.cert__absolute {
  position: absolute;
}
.certificate-btn-row {
  margin-bottom: 0 !important;
}
@media(max-width: 1023px) {
  .certificate-wrapper {
    flex-direction: column;
  }
  .certificate--text {
    width: calc(100vw - 40px);
    padding-left: 0;
    margin: 1rem auto;
  }
}
@media(max-width: 680px) {
  .certificate-preview {
    display: none;
  }
}


.loader {
  margin: auto;
  margin-top: 24px;
  margin-bottom: 24px;
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  position: relative;
  animation: loading_rotate 1s linear infinite
}

.loader::before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  inset: 0px;
  border-radius: 50%;
  border: 5px solid #AAA;
  animation: loading_prixClipFix 2s linear infinite;
}

.compact-loader {
  {# margin: auto; #}
  margin-top: 2px;
  margin-bottom: 2px;
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  position: relative;
  animation: loading_rotate 1s linear infinite
}

.compact-loader::before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  inset: 0px;
  border-radius: 50%;
  border: 5px solid #AAA;
  animation: loading_prixClipFix 2s linear infinite;
}

@keyframes loading_rotate {
  100% {
    transform: rotate(360deg)
  }
}

@keyframes loading_prixClipFix {
  0% {
    clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0)
  }

  25% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0)
  }

  50% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%)
  }

  75% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%)
  }

  100% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0)
  }
}
