/* ====================================================================
   live-activity.css
   Toast component. Uses Thalwyn's existing design tokens.
   Position: bottom-left (WhatsApp button owns bottom-right).
   ==================================================================== */

.lap-toast {
  position: fixed;
  left: 18px;
  bottom: 20px;
  z-index: 9000;                     /* below modals (typically 9999), above content */
  max-width: 340px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 36px 12px 14px;
  background: var(--surface, #fff);
  color: var(--ink-800, #1f2937);
  border: 1px solid var(--ink-200, #e5e7eb);
  border-radius: var(--r-lg, 14px);
  box-shadow: var(--shadow-lg, 0 12px 28px rgba(15,20,25,.10));
  font-family: var(--font-sans, 'Inter', system-ui, sans-serif);
  font-size: 14px;
  line-height: 1.4;
  opacity: 0;
  transform: translateX(-110%);
  transition: transform .42s cubic-bezier(.22,1,.36,1), opacity .25s ease;
  will-change: transform, opacity;
}

.lap-toast--in  { opacity: 1; transform: translateX(0); }
.lap-toast--out { opacity: 0; transform: translateX(-110%); }

/* Reduced motion: instant in/out, no slide */
.lap-toast--static {
  transition: opacity .18s ease;
  transform: none !important;
}

.lap-toast__icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-100, #f5efe4);
  font-size: 18px;
  line-height: 1;
}

.lap-toast__body {
  flex: 1 1 auto;
  min-width: 0;                      /* allow truncation */
}

.lap-toast__line {
  font-weight: 500;
  color: var(--ink-800, #1f2937);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lap-toast__name {
  color: var(--brand-700, #6d4622);
  font-weight: 700;
}

.lap-toast__city {
  color: var(--ink-500, #6b7280);
  font-weight: 400;
}

.lap-toast__meta {
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-500, #6b7280);
}

.lap-toast__close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
  color: var(--ink-400, #9ca3af);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
  padding: 0;
}
.lap-toast__close:hover { color: var(--ink-700, #374151); background: var(--ink-100, #f3f4f6); }

/* Hover lift — subtle, premium feel */
.lap-toast:hover {
  box-shadow: var(--shadow-xl, 0 24px 48px rgba(15,20,25,.12));
  transform: translateX(0) translateY(-2px);
}

/* Mobile: nudge above the WhatsApp button which sits bottom-right (~24px from edge).
   We're on the left so collision is unlikely, but cap width tightly on tiny screens. */
@media (max-width: 480px) {
  .lap-toast {
    left: 12px;
    right: 12px;
    bottom: 14px;
    max-width: none;
    padding: 10px 32px 10px 12px;
    font-size: 13.5px;
  }
  .lap-toast__icon { width: 34px; height: 34px; flex-basis: 34px; }
}

/* Respect reduced-motion globally as a safety net */
@media (prefers-reduced-motion: reduce) {
  .lap-toast { transition: opacity .18s ease; transform: none !important; }
  .lap-toast--in  { opacity: 1; }
  .lap-toast--out { opacity: 0; }
}