.qr-code {
  color: var(--gray-500);
  display: grid;
  max-width: 486px;
  border-radius: 8px;
  border: 1px solid var(--gray-150);
  background: var(--gray-100);
  box-shadow: var(--shadow-muddy);
  padding: 32px;
  align-items: flex-end;
}

@media screen and (max-width: 1026px) {
  .qr-code {
    justify-items: center;
    gap: 24px;
    width: 93%;
  }

  .qr-code__text {
    text-align: center;
  }
}

@media screen and (min-width: 1026px) {
  .qr-code:not(.qr-code--tertiary) {
    grid-template-columns: 70% 30%;
  }

  .qr-code__text:not(.qr-code--tertiary .qr-code__text) {
    max-width: 250px;
  }
}

.qr-code--tertiary {
  gap: 40px;
}

.qr-code--tertiary,
.qr-code--tertiary .qr-code__content {
  justify-items: center;
}

.qr-code__bar {
  border: 10px solid white;
  border-radius: 8px;
  position: relative;
  z-index: 1;
}

.qr-code__bar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 127px;
}

.qr-code__content {
  display: grid;
  gap: 16px;
  position: relative;
  z-index: 1;
}

@media screen and (max-width: 1026px) {
  .qr-code__content {
    justify-items: center;
  }
}

.qr-code--secondary {
  box-shadow: 0px 16px 32px 0px rgba(0, 0, 0, 0.05);
  position: relative;
}

.qr-code--secondary .qr-code__title {
  font-size: 24px;
  text-align: center;
  font-weight: 600;
}

@media screen and (min-width: 770px) {
  .qr-code--secondary .qr-code__title {
    display: none;
  }
}

.qr-code--secondary .qr-code__logo,
.qr-code--tertiary .qr-code__logo {
  width: 120px;
}

@media screen and (max-width: 770px) {
  .qr-code--secondary .qr-code__figure,
  .qr-code--secondary .qr-code__logo {
    width: 80px;
    height: 28px;
  }
}

.qr-code--secondary::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 8px;
}
