.payment-panel__card {
  width: 100%;
  max-width: 320px;
  min-height: 269px;
  padding: 1.5rem 1.75rem;
  border-radius: 5px;
  background: #ffffff;
  color: #666666;
  box-shadow: 0 0 0 1px #f1f1f1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.payment-panel__title {
  max-width: 18rem;
  margin: 0;
  color: #8a8a8a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.payment-panel__divider {
  width: 100%;
  max-width: 220px;
  height: 1px;
  margin: 1.2rem 0 1.45rem;
  background: #dddddd;
}

.qr-code {
  position: relative;
  width: min(170px, 100%);
  aspect-ratio: 1;
  border: 8px solid #ffffff;
  background-color: #ffffff;
  background-image:
    linear-gradient(
      90deg,
      rgba(17, 17, 17, 0.95) 0 14%,
      transparent 14% 28%,
      rgba(17, 17, 17, 0.95) 28% 42%,
      transparent 42% 56%,
      rgba(17, 17, 17, 0.95) 56% 70%,
      transparent 70% 84%,
      rgba(17, 17, 17, 0.95) 84% 100%
    ),
    linear-gradient(
      rgba(17, 17, 17, 0.95) 0 14%,
      transparent 14% 28%,
      rgba(17, 17, 17, 0.95) 28% 42%,
      transparent 42% 56%,
      rgba(17, 17, 17, 0.95) 56% 70%,
      transparent 70% 84%,
      rgba(17, 17, 17, 0.95) 84% 100%
    );
  background-size: 18px 18px;
  background-position:
    0 0,
    9px 9px;
  display: flex;
  justify-content: center;
  align-items: center;

  qrcode {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;

    ::ng-deep canvas,
    ::ng-deep img {
      display: block !important;
      width: 100% !important;
      height: 100% !important;
      max-width: 100%;
      max-height: 100%;
    }
  }
}

.qr-code__finder {
  position: absolute;
  width: 38px;
  height: 38px;
  border: 5px solid #111111;
  background: #ffffff;
  box-shadow:
    inset 0 0 0 8px #ffffff,
    inset 0 0 0 14px #111111;

  &--tl {
    top: 10px;
    left: 10px;
  }

  &--tr {
    top: 10px;
    right: 10px;
  }

  &--bl {
    bottom: 10px;
    left: 10px;
  }
}

.payment-status {
  margin: 1rem 0 0;
  color: #6f6f6f;
  font-size: 0.8rem;
  font-weight: 500;

  &--warning {
    margin-bottom: 0.75rem;
    color: #9a6a12;
  }
}

.payment-verification {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.82);

  &__spinner {
    width: 30px;
    height: 30px;
    border: 4px solid rgba(17, 17, 17, 0.2);
    border-top-color: #111111;
    border-radius: 50%;
    animation: payment-verification-spin 0.75s linear infinite;
  }

  &__message {
    color: #111111;
    font-size: 0.72rem;
    font-weight: 700;
  }
}

@keyframes payment-verification-spin {
  to {
    transform: rotate(360deg);
  }
}
