/* Metallic gold is reserved for the QR camera action. */
.scaninput > form > .formactions > button.btn[type="button"] {
  position:relative; isolation:isolate; overflow:hidden;
  background:linear-gradient(135deg,#f7e3a4 0%,#e5be62 34%,#f6dda0 55%,#cf9e3d 100%) !important;
  color:#382705 !important;
  border:1px solid #9b7226 !important;
  box-shadow:inset 0 1px 0 #fff5ce,0 2px 0 #9b7226,0 4px 8px #80602024 !important;
  font-weight:700;
}
.scaninput > form > .formactions > button.btn[type="button"]::before {
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:linear-gradient(105deg,transparent 20%,#fff8db20 35%,#fffbe8b3 49%,#fff8db20 63%,transparent 78%);
  transform:translateX(-130%);
  /* Two short passes then rest; replay on intentional hover/keyboard focus. */
  animation:camera-gold-shine 2.2s ease-in-out 2;
}
@keyframes camera-gold-shine {
  0%,12% { transform:translateX(-130%); }
  72%,100% { transform:translateX(130%); }
}
@keyframes camera-gold-replay {
  0%,12% { transform:translateX(-130%); }
  72%,100% { transform:translateX(130%); }
}
@media (hover:hover) {
  .scaninput > form > .formactions > button.btn[type="button"]:hover {
    border-color:#765014 !important;
    box-shadow:inset 0 1px 0 #fff5ce,0 2px 0 #765014,0 5px 12px #80602030 !important;
  }
  .scaninput > form > .formactions > button.btn[type="button"]:hover::before { animation:camera-gold-replay 1.8s ease-in-out; }
}
.scaninput > form > .formactions > button.btn[type="button"]:focus-visible {
  outline:3px solid #11573b !important; outline-offset:3px;
}
.scaninput > form > .formactions > button.btn[type="button"]:focus-visible::before { animation:camera-gold-replay 1.8s ease-in-out; }
.scaninput > form > .formactions > button.btn[type="button"]:active {
  transform:translateY(1px); box-shadow:inset 0 2px 4px #76501440 !important;
}
.scaninput > form > .formactions > button.btn[type="button"]:disabled {
  background:#e3e7e4 !important; color:#5a665e !important; border-color:#9aa59e !important;
  box-shadow:none !important; opacity:1; transform:none;
}
.scaninput > form > .formactions > button.btn[type="button"]:disabled::before { animation:none; display:none; }
@media (prefers-reduced-motion:reduce) {
  .scaninput > form > .formactions > button.btn[type="button"]::before { animation:none!important; display:none; }
  .scaninput > form > .formactions > button.btn[type="button"]:active { transform:none; }
}
