/* SOLUBLOOM™ — VoltAgent Customer Chat Widget Styling */
#voltagent-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 10px;
}

#voltagent-toggle-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #18261A 0%, #405342 100%);
  color: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 25px -5px rgba(24, 38, 26, 0.4), 0 8px 10px -6px rgba(24, 38, 26, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

#voltagent-toggle-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 15px 30px -5px rgba(24, 38, 26, 0.5);
}

#voltagent-pill-badge {
  background: #FAF7F2;
  color: #18261A;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #EFE8DC;
  white-space: nowrap;
  animation: voltagentPulse 3s infinite;
  display: flex;
  align-items: center;
  gap: 6px;
}

@keyframes voltagentPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

#voltagent-chat-card {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 540px;
  max-height: calc(100vh - 120px);
  background: #FFFFFF;
  border-radius: 24px;
  box-shadow: 0 20px 40px -10px rgba(17, 28, 19, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.06);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#voltagent-chat-card.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.voltagent-header {
  background: linear-gradient(135deg, #18261A 0%, #29382B 100%);
  color: #FFFFFF;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.voltagent-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.voltagent-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.voltagent-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  background: #FAF7F2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.voltagent-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.55;
  word-break: break-word;
}

.voltagent-msg-bot {
  background: #FFFFFF;
  color: #1E2D22;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid #EFE8DC;
}

.voltagent-msg-user {
  background: #405342;
  color: #FFFFFF;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.voltagent-msg-user a {
  color: #FFFFFF;
  text-decoration: underline;
}

.voltagent-msg-bot a {
  color: #2F4734;
  font-weight: 700;
  text-decoration: underline;
}

.voltagent-chips-container {
  padding: 10px 18px;
  background: #FFFFFF;
  border-top: 1px solid #EFE8DC;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.voltagent-chips-container::-webkit-scrollbar {
  display: none;
}

.voltagent-chip {
  background: #F4F1EA;
  color: #2C352E;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #E5D7C4;
  transition: all 0.2s;
  flex-shrink: 0;
}

.voltagent-chip:hover {
  background: #405342;
  color: #FFFFFF;
  border-color: #405342;
}

.voltagent-footer {
  padding: 12px 16px;
  background: #FFFFFF;
  display: flex;
  gap: 8px;
  border-top: 1px solid #EFE8DC;
}

.voltagent-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #E2D9CC;
  font-size: 13px;
  outline: none;
  background: #FAF7F2;
  transition: border 0.2s;
}

.voltagent-input:focus {
  border-color: #405342;
  background: #FFFFFF;
}

.voltagent-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #405342;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.voltagent-send-btn:hover {
  background: #18261A;
}

.voltagent-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: #FFFFFF;
  border-radius: 14px;
  width: fit-content;
  border: 1px solid #EFE8DC;
}

.voltagent-dot {
  width: 6px;
  height: 6px;
  background: #717A72;
  border-radius: 50%;
  animation: voltagentBlink 1.4s infinite both;
}

.voltagent-dot:nth-child(2) { animation-delay: 0.2s; }
.voltagent-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes voltagentBlink {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.1); }
}
