/* ==========================================================================
   css/voiceOrder.css   语音点餐悬浮按钮 + 确认弹窗
   独立新文件，不改动 menu.css / base.css 里任何一行既有样式。
   ========================================================================== */
.voice-fab {
  position: fixed;
  right: 16px;
  bottom: 92px; /* 留在底部购物车栏上方，不挡结算按钮 */
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #ff6b4a, #ff3d2e);
  color: #fff;
  font-size: 24px;
  box-shadow: 0 4px 14px rgba(255, 61, 46, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 700; /* 必须永远盖在弹窗遮罩(600)之上，不然录音中会点不到它，之前就是卡在这里 */
  cursor: pointer;
  touch-action: none; /* 按住说话时不要触发页面滚动 */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none; /* 防止iOS长按弹出"复制/分享"菜单 */
}
.voice-fab.is-recording {
  animation: voice-fab-pulse 1.1s infinite;
  background: linear-gradient(135deg, #ff3d2e, #c0271b);
}
@keyframes voice-fab-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 61, 46, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(255, 61, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 61, 46, 0); }
}

.voice-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 600;
}
.voice-modal-mask.is-open { display: flex; }
.voice-modal {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  max-height: 78vh;
  overflow-y: auto;
}
.voice-modal-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}
.voice-modal-status {
  font-size: 14px;
  color: #888;
  text-align: center;
  padding: 24px 0;
}
.voice-modal-transcript {
  background: #f6f6f6;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: #555;
  margin-bottom: 10px;
}
.voice-modal-reply {
  font-size: 14px;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.5;
}
.voice-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}
.voice-item-row:last-child { border-bottom: none; }
.voice-item-qty { color: #ff6b4a; font-weight: 600; }
.voice-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.voice-modal-actions button {
  flex: 1;
  padding: 12px 0;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.btn-voice-cancel { background: #f0f0f0; color: #555; }
.btn-voice-confirm { background: #ff3d2e; color: #fff; }


.voice-status-pill {
  position: fixed;
  right: 16px;
  bottom: 156px; /* 悬浮在麦克风按钮正上方，不遮住它 */
  max-width: 240px;
  background: rgba(20, 20, 20, 0.92);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  padding: 10px 14px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  z-index: 690; /* 比麦克风按钮低一点，比其他内容高，遮罩关掉时也看得到 */
  display: none;
  text-align: right;
}
.voice-status-pill.is-open { display: block; }
