@use 'payment-panel' as payment-panel;

@include payment-panel.host;

.payment-panel {
  @include payment-panel.card;
}

.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;
  }
}
