/* =============================================
   COMPONENTS — Exit Popup, Live Order Feed
   ============================================= */

/* === EXIT INTENT POPUP === */
.exit-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.exit-popup.show { display: flex }
.exit-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); backdrop-filter: blur(4px) }
.exit-box {
  position: relative;
  background: var(--wh);
  border-radius: 20px;
  padding: 40px 36px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .2);
  animation: fu .3s ease;
}
.exit-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--ivory);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  color: var(--mu);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.exit-close:hover { background: var(--em-s); color: var(--em) }
.exit-emoji { font-size: 48px; margin-bottom: 12px; display: block }
.exit-box h2 { font-family: var(--fd); font-size: 26px; margin-bottom: 8px }
.exit-box h2 em { color: var(--em); font-style: italic }
.exit-box p { font-size: 14px; color: var(--mu); line-height: 1.6; margin-bottom: 24px }

.exit-input-row { display: flex; gap: 8px; margin-bottom: 12px }
.exit-input-row input {
  flex: 1;
  padding: 12px 14px;
  background: var(--ivory);
  border: 1.5px solid rgba(26, 26, 26, .07);
  border-radius: 9px;
  font-family: var(--fb);
  font-size: 14px;
  color: var(--ch);
  outline: none;
  transition: all .3s;
}
.exit-input-row input:focus { border-color: var(--em); background: var(--wh) }
.exit-input-row button {
  padding: 12px 20px;
  background: var(--em);
  color: var(--wh);
  border: none;
  border-radius: 9px;
  font-family: var(--fb);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all .3s;
}
.exit-input-row button:hover { background: var(--em-d) }
.exit-skip { font-size: 11px; color: var(--mu); cursor: pointer; text-decoration: underline }


/* === LIVE ORDER FEED === */
.live-feed { position: fixed; bottom: 28px; left: 28px; z-index: 1400; max-width: 320px; pointer-events: none }
.live-toast {
  background: var(--wh);
  border: 1px solid rgba(200, 164, 78, .12);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .1), 0 0 0 1px rgba(0, 0, 0, .02);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(20px);
  opacity: 0;
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
  pointer-events: auto;
}
.live-toast.show { transform: translateY(0); opacity: 1 }
.live-toast-dot { width: 8px; height: 8px; background: #4ade80; border-radius: 50%; flex-shrink: 0; animation: pulse-dot 2s infinite }
.live-toast-text { font-size: 12px; color: var(--sl); line-height: 1.4 }
.live-toast-text strong { color: var(--ch); font-weight: 700 }
.live-toast-text .lt-time { color: var(--mu); font-size: 10px; display: block; margin-top: 2px }
