.qdm-qr-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(4, 3, 3, 0.74);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 160ms ease, visibility 160ms ease;
}

.qdm-qr-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.qdm-qr-dialog {
  position: relative;
  box-sizing: border-box;
  width: 538px;
  min-height: 464px;
  padding: 54px 42px 42px;
  overflow: hidden;
  color: #f5f0ec;
  text-align: center;
  background: #151210;
  border: 1px solid #302823;
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.56);
  transform: translateY(8px) scale(0.985);
  transition: transform 160ms ease;
}

.qdm-qr-overlay.is-open .qdm-qr-dialog {
  transform: translateY(0) scale(1);
}

.qdm-qr-close {
  position: absolute;
  top: 23px;
  right: 27px;
  width: 28px;
  height: 28px;
  padding: 0;
  color: #8d817a;
  font: 300 30px/24px Arial, sans-serif;
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}

.qdm-qr-close:hover,
.qdm-qr-close:focus-visible {
  color: #ffffff;
  background: #28211d;
  outline: none;
}

.qdm-qr-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 29px;
  padding: 0 14px;
  color: #c1aaa0;
  font-size: 13px;
  line-height: 29px;
  background: #241d19;
  border: 1px solid #302823;
  border-radius: 999px;
}

.qdm-qr-badge-dot {
  width: 6px;
  height: 6px;
  background: #f07f3d;
  border-radius: 50%;
}

.qdm-qr-title {
  margin: 20px 0 30px;
  color: #f5f0ec;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.qdm-qr-main {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  text-align: left;
}

.qdm-qr-code-shell {
  box-sizing: border-box;
  width: 216px;
  height: 216px;
  padding: 10px;
  overflow: hidden;
  background: #ffffff;
  border-radius: 17px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.qdm-qr-code,
.qdm-qr-code canvas,
.qdm-qr-code img,
.qdm-qr-code svg {
  display: block;
  width: 196px !important;
  height: 196px !important;
}

.qdm-qr-steps {
  display: grid;
  gap: 19px;
  align-content: center;
}

.qdm-qr-step {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
}

.qdm-qr-step-number {
  display: grid;
  width: 29px;
  height: 29px;
  color: #f1a064;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  place-items: center;
  background: #4a2b19;
  border-radius: 50%;
}

.qdm-qr-step-title {
  color: #eee8e3;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.qdm-qr-step-description {
  margin-top: 3px;
  color: #82766f;
  font-size: 12px;
  line-height: 1.4;
}

.qdm-qr-code-note {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  color: #9d918a;
  font-size: 12px;
}

.qdm-qr-code-note.is-visible {
  display: flex;
}

.qdm-qr-extraction-code {
  color: #f0a16a;
  font-size: 14px;
  letter-spacing: 0.08em;
}

@media (prefers-reduced-motion: reduce) {
  .qdm-qr-overlay,
  .qdm-qr-dialog {
    transition: none;
  }
}

@media (max-width: 767px) {
  .qdm-qr-overlay {
    display: none !important;
  }
}

