﻿/* ---------- footer QR/barcode scanner ---------- */
.footer-scan-btn {
  margin-top: 4.8px;
  align-self: flex-start;
}

.qr-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.qr-modal.open {
  display: flex;
}

.qr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(38, 3, 10, .68);
  backdrop-filter: blur(2px);
}

.qr-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: 20px;
  padding: 22.4px 22.4px 25.6px;
  box-shadow: var(--shadow-lg);
}

.qr-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14.4px;
}

.qr-modal-head h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--maroon-800);
  margin: 0;
}

.qr-modal-close {
  border: none;
  background: transparent;
  font-size: 25.6px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 3.2px 6.4px;
}

.qr-modal-close:hover {
  color: var(--maroon-800);
}

#qr-reader {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  min-height: 240px;
}

.qr-modal-hint {
  margin: 14.4px 0 0;
  font-size: 16px;
  color: var(--muted);
  text-align: center;
}

.qr-modal-result {
  margin-top: 14.4px;
  padding: 14.4px 16px;
  background: var(--cream);
  border: 1px solid var(--cream-line);
  border-radius: 12px;
  font-size: 16px;
  color: var(--ink);
  text-align: center;
}

.qr-modal-result p {
  margin: 0 0 11.2px;
  word-break: break-word;
}

.qr-modal-actions {
  display: flex;
  gap: 9.6px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-qr {
  margin-top: 14.4px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-qr img {
  width: 108px;
  height: 108px;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  box-shadow: var(--shadow);
}

.footer-qr span {
  font-size: 12.48px;
  color: var(--cream-200);
  font-weight: 600;
}