/* PayZu chat assistant (js/chat.js) */
.fab__btn--chat { border: 0; cursor: pointer; font: inherit; }
.fab__btn--chat[aria-expanded="true"] { background: var(--ink); box-shadow: 0 10px 26px -8px rgba(11,18,54,.5); }

.pzc__panel {
  position: fixed; right: 20px; bottom: 96px; z-index: 60;
  width: 380px; height: min(600px, calc(100vh - 130px)); display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 80px -24px rgba(11,18,54,.35), 0 2px 6px rgba(11,18,54,.06);
  transform-origin: bottom right; animation: pzc-in .28s cubic-bezier(.2,.8,.2,1);
}
.pzc__panel[hidden] { display: none !important; }
@keyframes pzc-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

.pzc__head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-tint), #fff); }
.pzc__head b { display: block; font-family: var(--font-head); font-size: 16px; letter-spacing: -.01em; }
.pzc__head small { display: flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 12.5px; }
.pzc__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(16,185,129,.18); }
.pzc__avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; font-weight: 700; font-family: var(--font-head); background: linear-gradient(135deg, #2f6bff, #6a5cff); box-shadow: 0 8px 18px -8px rgba(47,107,255,.7); }
.pzc__close { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(11,18,54,.06); color: var(--ink-2); font-size: 20px; line-height: 1; cursor: pointer; }
.pzc__close:hover { background: rgba(11,18,54,.1); }

.pzc__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.pzc__msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.5; animation: pzc-msg .25s ease both; }
@keyframes pzc-msg { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pzc__msg--bot { align-self: flex-start; background: var(--bg-soft); color: var(--ink); border-bottom-left-radius: 6px; }
.pzc__msg--me { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
.pzc__msg a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.pzc__msg small { display: block; margin-top: 8px; color: var(--ink-3); font-size: 12px; }
.pzc__sum { list-style: none; margin: 8px 0 0; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 4px; font-size: 13.5px; }
.pzc__sum b { display: inline-block; min-width: 92px; color: var(--ink-3); font-weight: 500; }

.pzc__typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.pzc__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: pzc-dot 1s infinite ease-in-out; }
.pzc__typing i:nth-child(2) { animation-delay: .15s; } .pzc__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes pzc-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.pzc__chips { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; }
.pzc__chips:empty { display: none; }
.pzc__chip { border: 1px solid var(--line-2); background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 13px; font: 500 13.5px/1.2 var(--font-body); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.pzc__chip:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.pzc__chip--cta { background: var(--blue); border-color: var(--blue); color: #fff; }
.pzc__chip--cta:hover { background: var(--blue-d); color: #fff; }

.pzc__bar { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.pzc__input { flex: 1; min-width: 0; border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 16px; font: 16px/1.3 var(--font-body); color: var(--ink); background: var(--bg-soft); outline: none; }
.pzc__input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(47,107,255,.12); }
.pzc__send { width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--blue); cursor: pointer; }
.pzc__send:hover { background: var(--blue-d); }
.pzc__send svg { width: 18px; height: 18px; }
.pzc__note { margin: 0; padding: 0 16px 10px; font-size: 11px; color: var(--ink-3); text-align: center; }

.pzc__teaser { position: fixed; right: 86px; bottom: 150px; z-index: 41; max-width: 230px; padding: 12px 30px 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px 16px 4px 16px; box-shadow: var(--shadow); font-size: 14px; line-height: 1.45; animation: pzc-in .35s cubic-bezier(.2,.8,.2,1); }
.pzc__teaser p { cursor: pointer; }
.pzc__teaser-x { position: absolute; top: 4px; right: 6px; border: 0; background: none; color: var(--ink-3); font-size: 18px; line-height: 1; cursor: pointer; padding: 4px; }
.pzc__solo { position: fixed; right: 20px; bottom: 20px; z-index: 40; }

@media (max-width: 640px) {
  .pzc__panel { right: 0; left: 0; bottom: 0; width: auto; height: 88vh; height: 88dvh; border-radius: 22px 22px 0 0; }
  .pzc-open .fab { display: none; }
  .pzc__teaser { right: 16px; bottom: 80px; border-radius: 16px 16px 4px 16px; }
}
@media (prefers-reduced-motion: reduce) { .pzc__panel, .pzc__msg, .pzc__teaser, .pzc__typing i { animation: none; } }
