@use "../custom" as *;

.successPaymentIntro {
  background: no-repeat url("../images/bg-secondary.webp");
  background-position: bottom center;
  background-size: cover;
  display: flex;
  align-items: center;
  padding: 9.375rem 0 7.5rem;

  .container {
    position: relative;
  }

  &__content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: auto;
    &-wrapper {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1.5rem 2rem;

      @include media-breakpoint-down(md) {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-bottom: 1rem;
      }
    }
  }

  &__icon {
    min-width: 6.25rem;
    width: 6.25rem;
    height: 6.25rem;
    position: relative;
    background-color: rgba(#0caf60, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100vh;

    i,
    img {
      color: $white;
      font-size: 1.3125rem;
      min-width: 1.3125rem;
      width: 1.3125rem;
      height: 1.3125rem;
      object-fit: contain;
      object-position: center;
      position: relative;
      z-index: 3;
    }

    &::after {
      content: "";
      min-width: 4.25rem;
      width: 4.25rem;
      height: 4.25rem;
      border-radius: 100vh;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background-color: #0caf60;
      border: 8px solid #1a1e32;
    }
  }

  &__headline {
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.5;
    color: $white;
    font-family: $roobert;
    display: block;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 3;

    span{
      font-family: $roobert;
      color: #0CAF60;
    }
  }

  &__description {
    font-weight: 400;
    font-size: 1rem;
    color: rgba(#7c8499, 0.6);
    font-family: $roobert;
    margin: 0;
    position: relative;
    z-index: 3;
    background-color: #1a1e32;
  }
}

.success {
  padding: 2rem 0 3.125rem;
  &__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-align: center;
    &-icon {
      width: 6.6875rem;
      height: 6.6875rem;
      margin: auto;

      img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
      }
    }

    &-headline {
      display: block;
      font-weight: 700;
      font-size: clamp(2rem, 3vw, 2.25rem);
      line-height: 1.5;
      text-align: center;
      color: #183b56;
      font-family: $roobert;
    }

    &-description {
      font-weight: 400;
      font-size: 1rem;
      text-align: center;
      color: rgba(#7c8499, 0.8);
      margin: 0;
      font-family: $roobert;
    }
  }

  &__clipboard {
    position: relative;
    height: 2.25rem;
    max-width: max-content;
    width: 100%;
    margin: auto;
    background: rgba(12, 175, 96, 0.25);
    border-radius: 0.375rem;
    padding: 0 3.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    span{
      pointer-events: none;
    }

    &-code {
      font-weight: 400;
      font-size: 1rem;
      text-align: center;
      color: #0caf60;
      font-family: $roobert;
    }

    &-icon {
      width: 1.125rem;
      height: 1.125rem;
      position: absolute;
      top: 50%;
      right: 0.75rem;
      transform: translateY(-50%);
      display: flex;
      align-items: center;
      justify-content: center;
      img{
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
      }
    }
  }
}
