/* TCFF FOOD QR HUNTER V1 */

.tcff-qr-hunter-toolbar{
  width:min(1080px,calc(100% - 24px));
  margin:10px auto 12px;
  padding:10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border:1px solid rgba(219,178,72,.28);
  border-radius:14px;
  background:rgba(255,255,250,.78);
  color:#103f2f;
  box-shadow:0 9px 25px rgba(42,40,24,.07);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  font-family:inherit;
}

.tcff-qr-hunter-status{
  min-width:0;
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  font-weight:800;
}

.tcff-qr-hunter-status::before{
  content:"";
  width:9px;
  height:9px;
  flex:0 0 auto;
  border-radius:50%;
  background:#d3a42b;
  box-shadow:0 0 0 5px rgba(211,164,43,.12);
}

.tcff-qr-hunter-status[data-mode="locked"]::before{
  background:#38b56c;
  box-shadow:0 0 0 5px rgba(56,181,108,.13);
}

.tcff-qr-hunter-status[data-mode="fallback"]::before{
  background:#5d8eb8;
  box-shadow:0 0 0 5px rgba(93,142,184,.12);
}

.tcff-qr-hunter-status[data-mode="error"]::before{
  background:#c9544c;
  box-shadow:0 0 0 5px rgba(201,84,76,.12);
}

.tcff-qr-hunter-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}

.tcff-qr-hunter-actions button{
  min-height:34px;
  padding:0 11px;
  border:1px solid rgba(18,81,56,.18);
  border-radius:10px;
  color:#fff;
  background:#10513a;
  font-family:inherit;
  font-size:10px;
  font-weight:800;
  cursor:pointer;
}

.tcff-qr-hunter-actions span{
  color:#7a7164;
  font-size:9px;
}

.tcff-qr-image-preview{
  position:fixed;
  z-index:9999;
  right:14px;
  bottom:14px;
  width:min(280px,45vw);
  max-height:42vh;
  object-fit:contain;
  padding:6px;
  border:2px solid #48b975;
  border-radius:14px;
  background:#fff;
  box-shadow:0 15px 40px rgba(0,0,0,.18);
}

/* Widen the useful camera area slightly on desktop without forcing a crop. */
@media (min-width:900px){
  .tcff-qr-hunter-toolbar{
    width:min(1100px,calc(100% - 32px));
  }

  video{
    image-rendering:auto;
  }
}

@media (max-width:700px){
  .tcff-qr-hunter-toolbar{
    width:calc(100% - 14px);
    margin:7px auto 8px;
    padding:8px;
    align-items:stretch;
    flex-direction:column;
    border-radius:12px;
  }

  .tcff-qr-hunter-status{
    font-size:10px;
  }

  .tcff-qr-hunter-actions{
    justify-content:space-between;
  }

  .tcff-qr-hunter-actions button{
    min-height:32px;
    font-size:9px;
  }

  .tcff-qr-hunter-actions span{
    flex:1;
    text-align:right;
    font-size:7.5px;
  }
}
