/* Privance — chat widget */
.pc-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 95;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--gold);
  color: #1a1405;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 34px -12px rgba(201, 162, 39, .6);
  transition: transform .18s ease, background .18s ease;
}
.pc-fab:hover { transform: translateY(-2px) scale(1.04); background: var(--gold-deep) }
.pc-fab svg { width: 26px; height: 26px }
.pc-fab .pc-close-ic { display: none }
.pc-open .pc-fab .pc-chat-ic { display: none }
.pc-open .pc-fab .pc-close-ic { display: block }

.pc-panel {
  position: fixed;
  right: 24px;
  bottom: 94px;
  z-index: 95;
  width: 374px;
  max-width: calc(100vw - 32px);
  height: 70vh;
  max-height: 580px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(.98);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.pc-open .pc-panel { opacity: 1; transform: none; pointer-events: auto }

.pc-head {
  background: var(--ink);
  color: var(--text-inv);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.pc-head .pc-dot { width: 9px; height: 9px; border-radius: 50%; background: #46d18a; flex: none; box-shadow: 0 0 0 3px rgba(70,209,138,.18) }
.pc-head b { font-family: var(--display); font-size: 15px; font-weight: 600; color: #fff }
.pc-head small { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted-inv) }
.pc-head .pc-min { margin-left: auto; background: none; border: 0; color: var(--muted-inv); cursor: pointer; font-size: 22px; line-height: 1; padding: 2px 6px }
.pc-head .pc-min:hover { color: #fff }

.pc-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--paper) }

.pc-msg { max-width: 86%; font-size: 14.5px; line-height: 1.5; padding: 10px 13px; border-radius: 13px; white-space: pre-wrap; word-wrap: break-word }
.pc-msg.bot { align-self: flex-start; background: var(--paper-2); border: 1px solid var(--line); color: var(--text); border-bottom-left-radius: 4px }
.pc-msg.user { align-self: flex-end; background: var(--ink); color: var(--text-inv); border-bottom-right-radius: 4px }

.pc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px }
.pc-chip {
  font-size: 12.5px;
  font-family: var(--body);
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--text);
  border-radius: 16px;
  padding: 7px 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.pc-chip:hover { border-color: var(--gold-deep); background: rgba(201,162,39,.06) }

.pc-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px }
.pc-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .5; animation: pc-bounce 1.2s infinite }
.pc-typing span:nth-child(2) { animation-delay: .15s }
.pc-typing span:nth-child(3) { animation-delay: .3s }
@keyframes pc-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .4 } 30% { transform: translateY(-4px); opacity: .9 } }

.pc-foot { border-top: 1px solid var(--line); padding: 10px; display: flex; gap: 8px; background: var(--paper-2) }
.pc-foot input {
  flex: 1; font-family: var(--body); font-size: 14.5px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 11px; background: var(--paper); color: var(--text);
}
.pc-foot input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold) }
.pc-foot button {
  flex: none; width: 44px; border: 0; border-radius: 11px; background: var(--gold); color: #1a1405;
  cursor: pointer; display: grid; place-items: center; transition: background .15s;
}
.pc-foot button:hover { background: var(--gold-deep) }
.pc-foot button:disabled { opacity: .5; cursor: default }
.pc-disclaimer { font-size: 10.5px; color: var(--muted); text-align: center; padding: 0 0 8px; background: var(--paper-2) }

@media (max-width: 480px) {
  .pc-panel { right: 8px; left: 8px; width: auto; bottom: 88px; height: 72vh }
  .pc-fab { right: 16px; bottom: 16px }
}
