/* momodew — AI 상담 챗봇 (오른쪽 아래) */
.mmchat { position: fixed; right: 18px; bottom: 18px; z-index: 80; font-family: var(--font); }
.mmchat__open {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 20px 10px 14px;
  border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); cursor: pointer;
  font: inherit; font-size: 17px; font-weight: 700; box-shadow: 0 12px 30px rgba(34, 32, 31, .28);
}
.mmchat__open:hover { background: var(--ink-soft); }
.mmchat__bubble { display: inline-flex; gap: 2px; font-size: 26px; line-height: 1; }
.mmchat.is-open .mmchat__open { display: none; }

.mmchat__panel {
  position: fixed; right: 18px; bottom: 18px; width: min(380px, calc(100vw - 24px)); height: min(600px, calc(100vh - 36px));
  display: flex; flex-direction: column; background: var(--paper); border-radius: 22px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(34, 32, 31, .28); border: 1px solid var(--line);
}
.mmchat__panel[hidden] { display: none; }
.mmchat__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: var(--ink); color: var(--paper); }
.mmchat__head b { display: block; font-size: 17px; }
.mmchat__head span { display: block; font-size: 13px; color: var(--muted-light); }
.mmchat__close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--paper); font-size: 24px; line-height: 1; cursor: pointer; }
.mmchat__log { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.mmchat__msg { max-width: 86%; padding: 11px 14px; font-size: 16px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
.mmchat__msg--bot { align-self: flex-start; background: var(--white); border-radius: 16px 16px 16px 4px; }
.mmchat__msg--user { align-self: flex-end; background: var(--accent-tint); border-radius: 16px 16px 4px 16px; }
.mmchat__msg a { color: var(--accent-text); font-weight: 700; }
.mmchat__msg.is-wait { color: var(--muted); }
.mmchat__quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.mmchat__quick[hidden] { display: none; }
.mmchat__quick button { border: 1.5px solid var(--line); background: var(--white); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 14.5px; cursor: pointer; }
.mmchat__quick button:hover { border-color: var(--ink); }
.mmchat__form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--white); }
.mmchat__form textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; font: inherit; font-size: 16px; background: var(--paper); color: var(--ink); }
.mmchat__form textarea:focus { outline: none; border-color: var(--ink); }
.mmchat__send { width: 48px; border: 0; border-radius: 12px; background: var(--accent); color: var(--ink); font-size: 18px; cursor: pointer; }
.mmchat__send:disabled { opacity: .5; cursor: default; }
.mmchat__note { margin: 0; padding: 0 14px 12px; background: var(--white); font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.mmchat__note a { color: var(--ink); }
.mmchat__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 600px) {
  .mmchat { right: 12px; bottom: 12px; }
  .mmchat__open-text { display: none; }
  .mmchat__open { padding: 10px 14px; }
  .mmchat__panel { right: 0; bottom: 0; width: 100vw; height: 88vh; height: 88dvh; border-radius: 20px 20px 0 0; }
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
