/* QZ Tray single smart header button (#qz-tray-btn). */

#qz-tray-btn i {
  margin-right: 5px;
  font-size: 15px;
  vertical-align: middle;
}
#qz-tray-btn[data-state="install"] {
  color: #ffd54f;
} /* amber — needs action */
#qz-tray-btn[data-state="ready"] {
  color: #fff;
}

/* The real Print Now button, morphed by qz-print.js to reflect QZ Tray state. */
#lumise-print-nav button[data-func="print"][data-qz-state="install"] {
  background: #f59e0b;
  border-color: #f59e0b;
}
#lumise-print-nav button[data-func="print"][data-qz-state="install"]:hover {
  background: #d97706;
}
#lumise-print-nav button[data-func="print"][data-qz-state="checking"] {
  opacity: 0.7;
  cursor: default;
}

/* ─── Install modal ───────────────────────────────────────────────────────── */
#qz-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#qz-modal {
  background: #fff;
  width: 100%;
  max-width: 480px;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  font-size: 14px;
  color: #333;
}
.qz-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}
.qz-modal-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
}
.qz-modal-x {
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: #9ca3af;
}
.qz-modal-x:hover {
  color: #374151;
}
.qz-modal-body {
  padding: 18px 20px;
  max-height: 60vh;
  overflow-y: auto;
}
.qz-modal-body h4 {
  margin: 14px 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}
.qz-modal-body h4:first-child {
  margin-top: 0;
}
.qz-modal-body p {
  margin: 8px 0;
  line-height: 1.5;
}
.qz-modal-body ul,
.qz-modal-body ol {
  margin: 8px 0;
  padding-left: 22px;
  line-height: 1.7;
}
.qz-modal-body code {
  background: #f3f4f6;
  color: #b45309;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
}
.qz-modal-note {
  margin-top: 14px !important;
  padding: 10px 12px;
  background: #eff6ff;
  border-left: 3px solid #3b82f6;
  border-radius: 4px;
  color: #1e40af;
  font-size: 13px;
}
.qz-modal-foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 20px;
  border-top: 1px solid #eee;
  background: #fafafa;
}
.qz-modal-foot .lumise-btn {
  margin: 0;
}
