/* Pisco Chat UI */
.pclpv6-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99998;
  width: 120px;
  height: 110px;
  cursor: pointer;
  animation: pclpPulse 2s infinite ease-in-out;
}

@keyframes pclpPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.pclpv6-chatbox {
  position: fixed;
  right: 16px;
  bottom: 140px;
  width: 360px;
  max-width: calc(100vw - 32px);
  max-height: 70vh;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(2,6,23,.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 99999;
}

.pclpv6-chatbox.open { display: flex; }

.pclpv6-header {
  background:#f3f4f6;
  color:#111827;
  padding:10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-weight:600;
}
.pclpv6-close {
  background:transparent;
  border:none;
  color:#1e3a8a;
  font-size:20px;
  cursor:pointer;
  line-height:1;
}

.pclpv6-messages {
  padding: 12px;
  overflow-y:auto;
  gap: 8px;
  display:flex;
  flex-direction:column;
}

.pclpv6-msg { padding:10px 12px; border-radius:10px; max-width:85%; }
.pclpv6-msg.user { align-self:flex-end; background:#e0f2fe; }
.pclpv6-msg.bot  { align-self:flex-start; background:#f3f4f6; }

.pclpv6-input-row {
  display:flex; gap:8px; padding:10px; border-top:1px solid #e5e7eb;
}
.pclpv6-input-row input {
  flex:1; padding:10px 12px; border:1px solid #d1d5db; border-radius:8px;
}
.pclpv6-input-row button {
  background:#1e3a8a; color:#fff; border:none; border-radius:8px; padding:10px 14px; cursor:pointer;
}

@media (max-width: 480px) {
  .pclpv6-chatbox { right: 8px; left: 8px; width:auto; bottom: 120px; }
  .pclpv6-launcher { right: 10px; bottom: 10px; width:100px; height:92px; }
}
