/* Terms gate + "Confirm your location" dialog + toast + chatbot chips/typing dots */
html.consent-lock { overflow: hidden !important; }

.consent-overlay {
  position: fixed; inset: 0; z-index: 5000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(5, 8, 14, 0.78);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.consent-overlay[hidden] { display: none !important; }

.consent-card {
  width: 100%; max-width: 560px; max-height: calc(100vh - 32px);
  display: flex; flex-direction: column;
  background: #131722; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px; box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  animation: consent-pop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes consent-pop { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }

.consent-head { padding: 22px 24px 8px; }
.consent-head h3 { margin: 0 0 6px; font-family: 'Playfair Display', serif; font-size: 1.5rem; color: #fff; }
.consent-head p { margin: 0; color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; }

.consent-scroll {
  margin: 12px 24px 0; padding: 4px 14px 4px 0;
  overflow-y: auto; flex: 1 1 auto; min-height: 120px; max-height: 42vh;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.consent-scroll .terms-body h5 { color: #ffa64d; font-size: 0.95rem; margin: 16px 0 4px; font-family: 'Poppins', sans-serif; }
.consent-scroll .terms-body p, .consent-scroll .terms-body li { color: rgba(255, 255, 255, 0.86); font-size: 0.88rem; line-height: 1.6; }
.consent-scroll .terms-body ul { padding-left: 1.1rem; margin-bottom: 0; }
.consent-scroll .terms-body .terms-meta { color: rgba(255, 255, 255, 0.55); font-size: 0.8rem; margin: 10px 0 8px; }
.consent-scroll .terms-body .terms-summary { background: rgba(249, 115, 22, 0.12); border-left: 3px solid #f97316; padding: 10px 12px; border-radius: 8px; }
.consent-scroll .terms-body a { color: #ffa64d; }

.consent-foot { padding: 16px 24px 22px; }
.consent-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 0.92rem; color: #fff; }
.consent-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: #f97316; flex: 0 0 auto; cursor: pointer; }
.consent-hint { margin: 8px 0 0 30px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px; }

.consent-btn {
  border: none; border-radius: 999px; padding: 11px 22px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.92rem; cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}
.consent-btn:focus-visible, .consent-check input:focus-visible { outline: 3px solid rgba(255, 166, 77, 0.7); outline-offset: 2px; }
.consent-btn.primary { background: #f97316; color: #fff; }
.consent-btn.primary:hover:not(:disabled) { background: #ea6a0d; transform: translateY(-1px); }
.consent-btn.ghost { background: rgba(255, 255, 255, 0.1); color: #fff; }
.consent-btn.ghost:hover { background: rgba(255, 255, 255, 0.18); }
.consent-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---- location dialog ---- */
.loc-card { max-width: 460px; text-align: center; }
.loc-body { padding: 26px 26px 8px; }
.loc-icon {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; color: #fff; background: linear-gradient(135deg, #2ec4b6, #1c6b61);
  box-shadow: 0 0 0 8px rgba(46, 196, 182, 0.15);
}
.loc-icon.pulse { animation: loc-pulse 1.4s ease-in-out infinite; }
@keyframes loc-pulse { 50% { box-shadow: 0 0 0 16px rgba(46, 196, 182, 0.05); } }
.loc-body h3 { margin: 0 0 8px; font-family: 'Playfair Display', serif; font-size: 1.45rem; color: #fff; }
.loc-body p { margin: 0 0 10px; color: rgba(255, 255, 255, 0.82); font-size: 0.92rem; line-height: 1.6; }
.loc-note { font-size: 0.8rem !important; color: rgba(255, 255, 255, 0.55) !important; }
.loc-map { width: 100%; height: 190px; border: 0; border-radius: 12px; margin: 6px 0 10px; background: #1b2030; }
.loc-coords { font-size: 0.85rem !important; color: #7fe3d6 !important; font-weight: 600; }
.loc-error { background: rgba(239, 68, 68, 0.14); border: 1px solid rgba(239, 68, 68, 0.4); color: #ffb4b4 !important; padding: 10px 12px; border-radius: 10px; }
.loc-card .consent-actions { justify-content: center; padding: 8px 26px 24px; margin-top: 0; }

/* ---- toast ---- */
.consent-toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px);
  z-index: 5100; max-width: calc(100vw - 32px);
  background: #0f172a; color: #fff; border: 1px solid rgba(46, 196, 182, 0.5);
  padding: 12px 18px; border-radius: 999px; font-size: 0.9rem; font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease;
}
.consent-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- chatbot: quick-reply chips + typing dots ---- */
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px 44px; }
.chat-chip {
  border: 1px solid #2a9d8f; background: #fff; color: #1c6b61;
  border-radius: 999px; padding: 6px 13px; font-size: 0.84rem; font-weight: 600; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.chat-chip:hover { background: #2a9d8f; color: #fff; transform: translateY(-1px); }
.typing-dots { display: inline-flex; gap: 4px; align-items: center; height: 14px; }
.typing-dots span { width: 7px; height: 7px; border-radius: 50%; background: #2a9d8f; opacity: 0.35; animation: typing-bounce 1.1s infinite ease-in-out; }
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: 0.35; } 40% { transform: translateY(-5px); opacity: 1; } }

@media (max-width: 520px) {
  .consent-head, .consent-foot { padding-left: 18px; padding-right: 18px; }
  .consent-scroll { margin-left: 18px; margin-right: 18px; }
  .consent-actions .consent-btn { flex: 1; }
  .consent-toast { bottom: 110px; border-radius: 16px; }
}
