.pcfw-chatbot {
  --pcfw-primary: #0b2763;
  --pcfw-accent: #00a6ff;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: #0f172a;
}

.pcfw-chatbot *,
.pcfw-chatbot *::before,
.pcfw-chatbot *::after {
  box-sizing: border-box;
}

.pcfw-floating {
  position: fixed;
  bottom: 24px;
  z-index: 99999;
}

.pcfw-position-right {
  right: 24px;
}

.pcfw-position-left {
  left: 24px;
}

.pcfw-launcher {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pcfw-primary), #042f2e);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(15, 118, 110, 0.28);
}

.pcfw-launcher-icon {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--pcfw-accent);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12);
}

.pcfw-window {
  width: min(380px, calc(100vw - 32px));
  height: 560px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(244, 162, 97, 0.2), transparent 28%),
    linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.pcfw-floating.pcfw-is-closed .pcfw-window {
  display: none;
}

.pcfw-floating.pcfw-is-open .pcfw-window {
  display: flex;
}

.pcfw-inline .pcfw-window {
  width: min(100%, 740px);
  margin-top: 0;
}

.pcfw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--pcfw-primary), #134e4a);
  color: #fff;
}

.pcfw-header strong,
.pcfw-header span {
  display: block;
}

.pcfw-header span {
  margin-top: 3px;
  opacity: 0.78;
  font-size: 12px;
  letter-spacing: 0.03em;
}

.pcfw-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.pcfw-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.pcfw-message {
  margin-bottom: 16px;
}

.pcfw-message-bubble {
  display: inline-block;
  max-width: 85%;
  padding: 12px 14px;
  border-radius: 18px;
  line-height: 1.45;
  font-size: 14px;
}

.pcfw-message-meta {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.58;
}

.pcfw-message-bot .pcfw-message-bubble {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.pcfw-message-user {
  text-align: right;
}

.pcfw-message-user .pcfw-message-bubble {
  background: linear-gradient(135deg, var(--pcfw-primary), #115e59);
  color: #fff;
}

.pcfw-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 20px 16px;
}

.pcfw-prompt {
  padding: 8px 12px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #134e4a;
  font-size: 12px;
  cursor: pointer;
}

.pcfw-form {
  display: flex;
  gap: 12px;
  padding: 16px 20px 20px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
}

.pcfw-input {
  flex: 1;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: #fff;
}

.pcfw-send {
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: var(--pcfw-accent);
  color: #1f2937;
  font-weight: 700;
  cursor: pointer;
}

.pcfw-typing {
  margin: 0 20px 16px;
  color: #64748b;
  font-size: 12px;
}

@media (max-width: 767px) {
  .pcfw-floating {
    right: 12px;
    left: 12px;
    bottom: 12px;
  }

  .pcfw-position-left,
  .pcfw-position-right {
    right: 12px;
    left: 12px;
  }

  .pcfw-launcher {
    width: 100%;
    justify-content: center;
  }

  .pcfw-window {
    width: 100%;
    height: min(72vh, 560px);
  }
}
