/* Booking chat side panel, opened by every Let's Meet button (markup and behaviour in js/meet.js,
   answers from api/book.mjs). Slides in from the right over a dimmed page; fills the screen on phones. */
.meet-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, 0.6); opacity: 0; transition: opacity 0.35s var(--ease); }
.meet { position: fixed; top: 0; right: 0; bottom: 0; z-index: 91; display: flex; flex-direction: column; width: min(420px, 100vw); background: var(--ink); border-left: 1px solid var(--line); box-shadow: -30px 0 80px rgba(0, 0, 0, 0.7); color: var(--text); font-family: var(--body); transform: translateX(100%); transition: transform 0.45s var(--ease); }
.meet-root.is-open .meet { transform: none; }
.meet-root.is-open .meet-backdrop { opacity: 1; }
.meet-root[hidden] { display: none; }

.meet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.meet-title { font-size: 18px; font-weight: 700; }
.meet-close { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; transition: border-color 0.2s; }
.meet-close:hover, .meet-close:focus-visible { border-color: var(--ui); outline: none; }

/* Conversation: the assistant on the left, the visitor on the right. */
.meet-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 20px; overscroll-behavior: contain; }
.meet-msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 16px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.meet-msg.is-bot { align-self: flex-start; background: var(--ink-3); border-bottom-left-radius: 4px; }
.meet-msg.is-user { align-self: flex-end; background: var(--ui); color: var(--ink); border-bottom-right-radius: 4px; }
.meet-msg.is-error { color: var(--ai); }
/* Waiting for an answer: three dots. */
.meet-typing { display: inline-flex; gap: 4px; }
.meet-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: meet-dot 1s ease-in-out infinite; }
.meet-typing span:nth-child(2) { animation-delay: 0.15s; }
.meet-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes meet-dot { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* Suggested times as tappable chips; they wrap onto several lines. */
.meet-times { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 12px; }
.meet-times:empty { display: none; }
.meet-time { min-height: 40px; padding: 8px 14px; border: 1px solid var(--ui); border-radius: 999px; background: none; color: var(--text); font: inherit; font-size: 15px; cursor: pointer; transition: background 0.2s, color 0.2s; }
.meet-time:hover, .meet-time:focus-visible { background: var(--ui); color: var(--ink); outline: none; }

.meet-form { display: flex; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); }
.meet-input { flex: 1; min-width: 0; min-height: 46px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--ink-2); color: var(--text); font: inherit; font-size: 16px; transition: border-color 0.2s, box-shadow 0.2s; }
.meet-input::placeholder { color: var(--muted); }
.meet-input:focus { outline: none; border-color: var(--ui); box-shadow: 0 0 0 3px rgba(25, 194, 255, 0.25); }
.meet-send:disabled { opacity: 0.6; cursor: progress; }
.meet-alt { padding: 0 20px 18px; font-size: 14px; color: var(--muted); }
.meet-alt[hidden] { display: none; }
.meet-alt a { color: var(--text); text-decoration: none; transition: text-shadow 0.2s; }
.meet-alt a:hover, .meet-alt a:focus-visible { text-shadow: var(--glow-ui); outline: none; }

/* While the panel is open the page behind does not scroll. */
html.meet-lock { overflow: hidden; }

@media (max-width: 520px) {
  .meet { width: 100vw; border-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .meet, .meet-backdrop { transition: none; }
  .meet-typing span { animation: none; opacity: 0.7; }
}
