/* QR code tool */
.qr-tool-shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 0 44px;
}
.qr-tool-header {
  padding: 24px 0 22px;
}
.qr-tool-header h1 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 750;
  letter-spacing: 0;
  margin-bottom: 10px;
}
.qr-tool-header p {
  max-width: 680px;
  color: var(--bs-secondary-color);
  margin-bottom: 0;
}
.qr-tool-card {
  border: 1px solid rgba(108, 117, 125, .18);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .07);
}
.qr-tool-card .card-body {
  padding: 24px;
}
.qr-content {
  min-height: 170px;
  resize: vertical;
}
.qr-logo-picker {
  width: 74px;
  height: 74px;
  border: 1px dashed rgba(108, 117, 125, .45);
  border-radius: 8px;
  background: var(--bs-tertiary-bg);
  color: var(--bs-secondary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.qr-logo-picker:hover {
  border-color: rgba(var(--bs-primary-rgb), .65);
  color: var(--bs-primary);
}
.qr-logo-picker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.qr-preview {
  width: min(100%, 320px);
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--bs-tertiary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.qr-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
}
@media (max-width: 575.98px) {
  .qr-tool-card .card-body {
    padding: 18px;
  }
  .qr-preview {
    width: min(100%, 270px);
  }
}
.qr-client-preview {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-client-preview canvas,
.qr-client-preview img {
  width: min(100%, 320px);
  height: auto;
  max-height: 100%;
}
.qr-client-preview canvas,
.qr-client-preview img,
.qr-preview > img#qrImage {
  display: block;
  object-fit: contain;
}
.qr-logo-overlay {
  position: absolute;
  width: 20%;
  height: 20%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.qr-preview {
  position: relative;
}
.qr-result-modal {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, .56);
}
.qr-result-dialog {
  width: min(100%, 420px);
  border-radius: 8px;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
  padding: 18px;
}
.qr-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.qr-result-header h2 {
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 0;
}
.qr-result-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: var(--bs-tertiary-bg);
  color: var(--bs-body-color);
  font-size: 1.45rem;
  line-height: 1;
}
.qr-result-image-button {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(108, 117, 125, .2);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}
.qr-result-image-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.qr-result-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}
