/* Vestec Webchat Pro 1.3.8 */
#advisorChatToggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2147483647;
  background: #0073e6;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease;
}
#advisorChatToggle:hover { transform: scale(1.05); }

#vestecWebchatContainer {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 440px;
  height: 640px;
  max-height: calc(100vh - 140px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  z-index: 2147483646;
  display: none; /* managed by JS */
  opacity: 0;
}

.vwp-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #111;
}

.vwp-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
  background: #f8fafc;
}

.vwp-header img { height: 28px; }
.vwp-title { font-weight: 600; font-size: 15px; }

.vwp-body {
  flex: 1;
  overflow: auto;
  padding: 12px;
  background: #fbfbfb;
}

.vwp-row { margin: 8px 0; }
.vwp-row strong { font-size: 12px; color: #333; display: block; margin-bottom: 4px; }
.vwp-row .bubble {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 8px 10px;
  line-height: 1.35;
}

.vwp-footer {
  padding: 10px;
  border-top: 1px solid #eee;
  background: #fff;
}

#vwpInput {
  width: 100%;
  min-height: 56px;
  max-height: 180px;
  resize: vertical;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: #111;
  box-sizing: border-box;
  margin-bottom: 8px; /* space above buttons */
}

.vwp-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.vwp-btn {
  appearance: none;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
}
.vwp-btn.primary { background:#0073e6; color:#fff; }
.vwp-btn.secondary { background:#f1f5f9; color:#111; }

/* Mobile */
@media (max-width: 768px) {
  #vestecWebchatContainer {
    width: calc(100vw - 32px);
    right: 16px;
    left: 16px;
    bottom: 88px;
    height: 70vh;
  }
}
