/* ==========================================================================
   Fruit Up Daily — 1-Tap Snap-to-MAP Auto-Fill & Live Kitchen View (120fps)
   Strict Motion Tokens · iOS WebKit 16px Input Parity · Light & Dark Mode
   ========================================================================== */

.fu-snap-map-drawer {
  margin: 0 0 16px;
  border-radius: 16px;
  border: 1.5px solid rgba(34, 197, 94, 0.34);
  background: rgba(240, 253, 244, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

html[data-theme="dark"] .fu-snap-map-drawer {
  background: rgba(11, 29, 21, 0.86);
  border-color: rgba(163, 230, 53, 0.3);
  color: #f8fafc;
}

.fu-snap-map-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  font-weight: 800;
  font-size: 0.94rem;
  user-select: none;
}

.fu-snap-map-summary::-webkit-details-marker {
  display: none;
}

.fu-snap-map-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(21, 128, 61, 0.14);
  color: #14532d;
}

html[data-theme="dark"] .fu-snap-map-badge {
  background: rgba(163, 230, 53, 0.18);
  color: #d9f99d;
}

.fu-snap-map-body {
  padding: 0 14px 14px;
  display: grid;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.fu-snap-map-hint {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.42;
  opacity: 0.86;
}

.fu-snap-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fu-snap-map-btn,
.fu-live-cam-btn,
.fu-live-cam-chip {
  appearance: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: max(16px, 0.92rem);
  font-weight: 800;
  cursor: pointer;
  border: 1px solid rgba(21, 128, 61, 0.34);
  background: #15803d;
  color: #ffffff;
  transform: translateZ(0);
  transition:
    transform var(--motion-duration-quick) var(--motion-spring-soft-easing),
    opacity var(--motion-duration-quick) var(--motion-ease-standard),
    background-color var(--motion-duration-standard) var(--motion-ease-standard);
}

.fu-snap-map-btn.is-secondary,
.fu-live-cam-btn.is-secondary,
.fu-live-cam-chip {
  background: rgba(255, 255, 255, 0.9);
  color: #14532d;
}

html[data-theme="dark"] .fu-snap-map-btn.is-secondary,
html[data-theme="dark"] .fu-live-cam-btn.is-secondary,
html[data-theme="dark"] .fu-live-cam-chip {
  background: rgba(255, 255, 255, 0.08);
  color: #ecfccb;
  border-color: rgba(163, 230, 53, 0.34);
}

.fu-snap-map-btn:active,
.fu-live-cam-btn:active,
.fu-live-cam-chip:active {
  transform: scale(0.97);
}

.fu-snap-map-btn:disabled,
.fu-live-cam-btn:disabled {
  opacity: 0.58;
  cursor: wait;
}

.fu-snap-map-status {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(21, 128, 61, 0.2);
}

html[data-theme="dark"] .fu-snap-map-status {
  background: rgba(7, 19, 14, 0.78);
  border-color: rgba(163, 230, 53, 0.22);
}

/* Live Kitchen & Produce Camera Panel inside Ask Fruit Up */
.fu-live-cam-panel {
  margin: 8px 0 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1.5px solid rgba(34, 197, 94, 0.34);
  background: rgba(240, 253, 244, 0.9);
  display: grid;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

html[data-theme="dark"] .fu-live-cam-panel {
  background: rgba(11, 29, 21, 0.94);
  border-color: rgba(163, 230, 53, 0.3);
  color: #f8fafc;
}

.fu-live-cam-video {
  width: 100%;
  max-height: 210px;
  object-fit: cover;
  border-radius: 12px;
  background: #07130e;
}

.fu-live-cam-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fu-live-cam-chip {
  padding: 7px 11px;
  font-size: 0.82rem;
  border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
  .fu-snap-map-btn,
  .fu-live-cam-btn,
  .fu-live-cam-chip {
    transition: none !important;
  }
}
