/* utee-license-scan-bridge.css
   Styles for the scan CTA injected into the EE attendee step, the inline
   scanner overlay, and the desktop cross-device handoff modal. Kept neutral so
   it sits inside whatever theme the registration page uses; the one accent
   (hi-vis yellow) matches the scanner itself for continuity. */

#utee-scan-cta {
  margin: 0 0 22px;
  padding: 18px;
  border: 1px solid #d9dce2;
  border-radius: 12px;
  background: #fafbfc;
}
.utee-scan-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  background: #e8ff2b; color: #15170c; border: 0; border-radius: 10px;
  padding: 13px 18px; line-height: 1;
}
.utee-scan-btn:hover { background: #d8ef1f; }
.utee-scan-btn:focus-visible { outline: 3px solid #15170c; outline-offset: 2px; }
.utee-scan-ico { font-size: 18px; }
.utee-scan-sub { margin: 10px 2px 0; font-size: 13px; color: #6b7280; }

#utee-scan-notice { margin-top: 12px; font-size: 14px; font-weight: 600; padding: 10px 12px; border-radius: 8px; }
#utee-scan-notice[data-tone="ok"]   { background: #e7f8ee; color: #176b3a; }
#utee-scan-notice[data-tone="warn"] { background: #fff4e5; color: #8a5300; }

/* Overlay + modal (inline iframe and handoff share these) */
#utee-scan-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(10,12,16,.72);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.utee-scan-modal {
  position: relative; width: 100%; max-width: 460px;
  background: #16181c; border-radius: 16px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.utee-scan-close {
  position: absolute; top: 8px; right: 10px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; border: 0;
  font-size: 22px; line-height: 1; cursor: pointer;
}
.utee-scan-close:hover { background: rgba(255,255,255,.22); }
#utee-scan-frame { width: 100%; height: 80vh; max-height: 760px; border: 0; display: block; }

/* Handoff (desktop) */
.utee-scan-handoff { max-width: 380px; padding: 28px 24px; text-align: center; color: #f3f4f6; }
.utee-scan-handoff h3 { margin: 0 0 10px; font-size: 20px; }
.utee-scan-handoff p { margin: 0 0 14px; font-size: 14px; color: #9aa0aa; line-height: 1.5; }
.utee-scan-qr { width: 200px; height: 200px; border-radius: 12px; background: #fff; padding: 10px; }
.utee-scan-or { margin-top: 16px !important; font-size: 12.5px !important; }
.utee-scan-link {
  width: 100%; font-size: 12px; padding: 9px 10px; border-radius: 8px;
  border: 1px solid #2c3038; background: #1f2228; color: #f3f4f6; text-align: center;
}
.utee-scan-waiting { margin-top: 16px !important; color: #e8ff2b !important; font-weight: 600; }

@media (max-width: 520px) {
  #utee-scan-frame { height: 86vh; }
}

/* Desktop handoff: file-upload option below the QR code */
.utee-scan-divider { border: 0; border-top: 1px solid #2c3038; margin: 18px 0 14px; }
.utee-scan-upload-btn {
  width: 100%; font-size: 14px; font-weight: 700; cursor: pointer;
  background: #e8ff2b; color: #15170c; border: 0; border-radius: 10px; padding: 12px 16px;
}
.utee-scan-upload-btn:hover { background: #d8ef1f; }

/* Button row: scan + choose-file side by side */
.utee-scan-btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.utee-scan-btn-alt {
  background: #2c3038 !important; color: #fff !important;
}
.utee-scan-btn-alt:hover { background: #363b44 !important; }
