/* Momo chat bubble — shared by the homepage and the booking page. */
.momo-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.momo-chat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 20px 0 10px;
  color: #07110c;
  background: var(--accent);
  border: 0;
  border-radius: 26px;
  cursor: pointer;
  font: 750 13px inherit;
  box-shadow: 0 14px 38px rgba(114, 241, 184, .22);
  transition: transform .2s, box-shadow .2s;
}
.momo-chat-toggle:hover { transform: translateY(-2px); box-shadow: 0 18px 46px rgba(114, 241, 184, .3); }

.momo-chat-badge {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: rgba(7, 17, 12, .14);
  border-radius: 50%;
  font: 900 10px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.momo-chat-close { display: none; font-size: 21px; line-height: 1; }
.momo-chat.is-open .momo-chat-toggle-text,
.momo-chat.is-open .momo-chat-badge { display: none; }
.momo-chat.is-open .momo-chat-close { display: block; }
.momo-chat.is-open .momo-chat-toggle {
  width: 52px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}

.momo-chat-panel {
  width: min(376px, calc(100vw - 32px));
  height: min(536px, calc(100vh - 130px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(22, 27, 37, .99), rgba(11, 14, 20, .99));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  animation: momo-chat-in .22s ease;
}
.momo-chat-panel[hidden] { display: none; }

@keyframes momo-chat-in {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: none; }
}

.momo-chat-head {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
}
.momo-chat-head > div { min-width: 0; display: flex; flex-direction: column; }
.momo-chat-head strong { color: var(--text); font-size: 13px; }
.momo-chat-head small { color: var(--muted); font-size: 10px; }
.momo-chat-head .momo-avatar { width: 38px; height: 38px; border-radius: 10px; }

.momo-chat-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font: 700 8.5px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
}
.momo-chat-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: momo-chat-pulse 2s ease-in-out infinite;
}
@keyframes momo-chat-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

.momo-chat-log {
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.momo-msg { display: flex; margin-bottom: 11px; }
.momo-msg-user { justify-content: flex-end; }

.momo-msg-bubble {
  max-width: 84%;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
}
.momo-msg-bubble p { margin: 0 0 9px; }
.momo-msg-bubble p:last-child { margin-bottom: 0; }

.momo-msg-assistant .momo-msg-bubble {
  color: #d3dae4;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.momo-msg-user .momo-msg-bubble {
  color: #07110c;
  background: var(--accent);
  border-bottom-right-radius: 4px;
  font-weight: 600;
}

.momo-typing .momo-msg-bubble { display: flex; gap: 4px; padding: 13px; }
.momo-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .35;
  animation: momo-typing 1.2s ease-in-out infinite;
}
.momo-typing span:nth-child(2) { animation-delay: .18s; }
.momo-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes momo-typing {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.momo-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.momo-chip {
  padding: 7px 11px;
  color: #b9c3d1;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  font: 11px inherit;
  text-align: left;
  transition: border-color .2s, color .2s;
}
.momo-chip:hover { border-color: var(--accent); color: var(--text); }

.momo-chat-form {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 38px;
  gap: 8px;
  align-items: end;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}
.momo-chat-srlabel {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.momo-chat-form textarea {
  width: 100%;
  min-height: 42px;
  max-height: 110px;
  padding: 11px 12px;
  color: var(--text);
  background: #0b0e14;
  border: 1px solid #303846;
  border-radius: 9px;
  outline: none;
  resize: none;
  overflow-y: auto;
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
  transition: border-color .2s;
  /* Some engines draw stepper controls on a sized textarea. */
  appearance: none;
  -webkit-appearance: none;
}
.momo-chat-form textarea::-webkit-inner-spin-button,
.momo-chat-form textarea::-webkit-outer-spin-button {
  display: none;
  margin: 0;
  -webkit-appearance: none;
}
.momo-chat-form textarea::placeholder { color: #5f6a7a; }

/* Slim scrollbars - the default chrome is what looked bolted on. */
.momo-chat-log,
.momo-chat-form textarea {
  scrollbar-width: thin;
  scrollbar-color: #39424f transparent;
}
.momo-chat-log::-webkit-scrollbar,
.momo-chat-form textarea::-webkit-scrollbar { width: 7px; }
.momo-chat-log::-webkit-scrollbar-track,
.momo-chat-form textarea::-webkit-scrollbar-track { background: transparent; }
.momo-chat-log::-webkit-scrollbar-thumb,
.momo-chat-form textarea::-webkit-scrollbar-thumb {
  background: #39424f;
  border-radius: 4px;
}
.momo-chat-log::-webkit-scrollbar-thumb:hover,
.momo-chat-form textarea::-webkit-scrollbar-thumb:hover { background: #4a5566; }
.momo-chat-form textarea:focus { border-color: rgba(114, 241, 184, .6); }
.momo-chat-form button {
  width: 38px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #07110c;
  background: var(--accent);
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  transition: opacity .2s;
}
.momo-chat-form button[disabled] { opacity: .5; cursor: wait; }

.momo-chat-foot {
  flex: 0 0 auto;
  margin: 0;
  padding: 0 14px 13px;
  color: #616b7b;
  font-size: 9.5px;
  line-height: 1.5;
  text-align: center;
}
.momo-chat-foot a { color: #8f9aab; text-decoration: underline; }

@media (max-width: 620px) {
  .momo-chat { right: 14px; bottom: 14px; }
  .momo-chat-panel { height: min(520px, calc(100vh - 110px)); }
}

@media (prefers-reduced-motion: reduce) {
  .momo-chat-panel { animation: none; }
  .momo-chat-toggle { transition: none; }
  .momo-chat-toggle:hover { transform: none; }
  .momo-chat-live i, .momo-typing span { animation: none; }
}
