/* Prevent double-tap zoom across the order page */
html, body {
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

button, .btn, .option-pill {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.qr-room-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: var(--opa-brand);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.camera-viewport-wrapper {
  height: 290px;
  background-color: #151d28;
  border: 2px solid var(--opa-brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

#roomQrVideo {
  height: 100%;
  object-fit: cover;
}

.camera-scan-reticle {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  box-shadow: 0 0 0 9999px rgba(15, 23, 36, 0.42);
  pointer-events: none;
  overflow: hidden;
}

.scan-laser-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c88a55, #ffffff, #c88a55, transparent);
  box-shadow: 0 0 10px #c88a55;
  position: absolute;
  top: 0;
  animation: scanLaserMove 2.2s ease-in-out infinite;
}

@keyframes scanLaserMove {
  0% { top: 8%; }
  50% { top: 90%; }
  100% { top: 8%; }
}

.category-scroll {
  scrollbar-width: none;
}
.category-scroll::-webkit-scrollbar {
  display: none;
}

.category-chip {
  background-color: var(--opa-bg-secondary);
  border: 1px solid var(--opa-border);
  color: var(--opa-brand);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 600;
  white-space: nowrap;
}

.category-chip.active {
  background-color: var(--opa-brand);
  color: #ffffff;
  border-color: var(--opa-brand);
}

.menu-item-thumb {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--opa-border);
  flex-shrink: 0;
}

.menu-item-icon-placeholder {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background-color: var(--opa-bg-secondary);
  border: 1px solid var(--opa-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--opa-brand);
  flex-shrink: 0;
}

.option-pill {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--opa-border);
  background-color: var(--opa-bg-primary);
  color: var(--opa-text-main);
}

.option-pill.selected {
  background-color: var(--opa-brand);
  color: #ffffff;
  border-color: var(--opa-brand);
}

.qty-stepper {
  border: 1px solid var(--opa-border);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  touch-action: manipulation;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.btn-qty-minus,
.btn-qty-plus {
  border: none;
  background: var(--opa-bg-secondary);
  color: var(--opa-brand);
  width: 32px;
  height: 32px;
  font-weight: 700;
  line-height: 1;
  font-size: 1.1rem;
  touch-action: manipulation;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.12s ease;
}

.btn-qty-minus:active,
.btn-qty-plus:active {
  background: #FFE4D3;
}

.qty-input {
  width: 34px;
  height: 32px;
  border: none;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--opa-brand);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.tray-summary-bar {
  position: sticky;
  bottom: 58px;
  background-color: #ffffff;
  border-top: 1px solid var(--opa-border, #E2E8F0);
  padding: 10px 16px;
  box-shadow: 0 -4px 20px rgba(35, 56, 81, 0.1);
  z-index: 99;
}

.cart-pill-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background-color: #FFF4EC;
  color: #EA580C;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

#openCartModalBtn:active .cart-pill-icon {
  transform: scale(0.95);
  background-color: #FFE7D4;
}

#cartBadgeCount {
  font-size: 0.68rem;
  padding: 0.25em 0.5em;
  border: 1.5px solid #ffffff;
}

.tray-items-list {
  max-height: 280px;
  overflow-y: auto;
  font-size: 0.84rem;
}
