.qr-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  border: 1px solid #d7e4da;
  border-radius: 999px;
  background: #fffdf8;
  color: #171b18;
  padding: 8px 13px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.qr-button:hover,
.qr-button:focus-visible {
  border-color: #f4cf57;
  background: #f4cf57;
  outline: 0;
}

.qr-icon {
  display: grid;
  grid-template-columns: repeat(2, 5px);
  grid-template-rows: repeat(2, 5px);
  gap: 3px;
}

.qr-icon span {
  width: 5px;
  height: 5px;
  background: currentColor;
}

.qr-dialog[hidden] {
  display: none;
}

.qr-dialog {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgb(23 27 24 / 58%);
  padding: 22px;
}

.qr-card {
  position: relative;
  width: min(360px, 100%);
  border: 1px solid #d7e4da;
  border-radius: 8px;
  background: #fffdf8;
  color: #171b18;
  padding: 26px 22px 24px;
  box-shadow: 0 22px 70px rgb(23 27 24 / 22%);
  text-align: center;
}

.qr-card h2 {
  margin: 0 0 6px;
  color: #18382f;
  font-size: 1.35rem;
  line-height: 1.15;
}

.qr-card p {
  margin: 0 0 18px;
  color: #4d5851;
  font-size: 0.95rem;
  line-height: 1.45;
}

.qr-card img {
  display: block;
  width: min(248px, 78vw);
  height: auto;
  margin: 0 auto 18px;
  border: 10px solid #ffffff;
}

.qr-url {
  display: block;
  overflow-wrap: anywhere;
  color: #4d5851;
  font-size: 0.78rem;
  line-height: 1.35;
  text-decoration: none;
}

.qr-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #18382f;
  font: inherit;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.qr-close:hover,
.qr-close:focus-visible {
  background: #eef5ef;
  outline: 0;
}

body.qr-open {
  overflow: hidden;
}
