.qr-code-dialog {
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  margin-top: 0.25rem;
}

.qr-code-preview {
  display: block;
  width: min(100%, 20rem);
  height: auto;
  aspect-ratio: 1;
  padding: 0.65rem;
  border: 1px solid #eadb91;
  border-radius: 1rem;
  background: #fff;
  image-rendering: pixelated;
}

.qr-code-note {
  max-width: 28rem;
  color: #171a22;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.qr-code-url {
  max-width: 28rem;
  color: #604900;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.short-code-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.short-code-qr-button {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  place-items: center;
  padding: 0;
  border: 1px solid #d8cf9e;
  border-radius: 0.5rem;
  color: #604900;
  background: #fff;
  cursor: pointer;
}

.short-code-qr-button:hover,
.short-code-qr-button:focus-visible {
  color: #302400;
  border-color: #dba800;
  background: #fff8d7;
}

.short-code-qr-button svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

@media (max-width: 480px) {
  .qr-code-preview {
    width: min(100%, 17rem);
  }
}
