/* Smart Camera Rental Kiosk — minimal additions on top of Tailwind CDN.
   Tailwind handles the bulk of styling. This file only carries:
   - toast (JS toggles .toast and .toast.show, can't be Tailwind utilities)
   - dialog backdrop tweaks (not exposed by Tailwind)
   - keyframes & loaders */

.hidden { display: none !important; }

/* Toast (mobile-first, top-anchored) */
.toast {
  position: fixed;
  left: 50%;
  top: 1.25rem;
  transform: translate(-50%, -8px);
  background: #1c1917;
  color: #fafaf9;
  padding: 0.75rem 1.125rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 30px -8px rgba(28, 25, 23, 0.35), 0 4px 8px -2px rgba(28, 25, 23, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 9999;
  max-width: 92vw;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast.error { background: #991b1b; }
.toast.success { background: #166534; }

/* Native dialog tuning */
dialog::backdrop {
  background: rgba(28, 25, 23, 0.55);
  backdrop-filter: blur(4px);
}
dialog {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 92vw;
}

/* Loader (used on pay polling, return upload) */
.spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid #e7e5e4;
  border-top-color: #d97706;
  border-radius: 9999px;
  animation: spin 0.85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Override stock number-input spinners on mobile (cleaner look) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] { -moz-appearance: textfield; }
