#sbva-chat-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  background: var(--color-content-primary);
  color: #fff;
  border-radius: 50px;
  padding: 16px 24px;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
}
#sbva-chat-btn:hover {
  background: var(--color-content-secondary);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}
#sbva-chat-btn:active {
  transform: translateY(0);
}
#sbva-chat-btn .icon {
  font-size: 20px;
  vertical-align: middle;
}
#sbva-chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 380px;
  max-width: 95vw;
  height: 580px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
}
#sbva-chat-header {
  background: var(--color-content-primary);
  color: #fff;
  padding: 18px 20px;
  font-size: 1.1em;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
#sbva-chat-close {
  cursor: pointer;
  font-size: 1.3em;
  font-weight: normal;
}
#sbva-chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  font-size: 0.95em;
  line-height: 1.5;
}
#sbva-chat-messages::-webkit-scrollbar {
  width: 6px;
}
#sbva-chat-messages::-webkit-scrollbar-track {
  background: transparent;
}
#sbva-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.3);
  border-radius: 3px;
}
.sbva-msg {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 18px;
  max-width: 85%;
  word-break: break-word;
  clear: both;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  animation: fadeInUp 0.3s ease;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.sbva-user {
  background: var(--color-content-primary);
  color: #fff;
  margin-left: auto;
  text-align: right;
  border-bottom-right-radius: 6px;
}
.sbva-bot {
  background: #fff;
  color: #374151;
  margin-right: auto;
  text-align: left;
  border-bottom-left-radius: 6px;
  border: 1px solid #e5e7eb;
}
#sbva-chat-form {
  display: flex;
  border-top: 1px solid #e5e7eb;
  background: #fff;
  padding: 16px;
  gap: 12px;
}
#sbva-chat-input {
  flex: 1;
  border: 2px solid #e5e7eb;
  border-radius: 25px;
  padding: 12px 18px;
  font-size: 0.95em;
  background: #f9fafb;
  transition: all 0.3s ease;
  resize: none;
}
#sbva-chat-input:focus {
  outline: none;
  border-color: var(--color-content-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
#sbva-chat-input:disabled {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}
#sbva-chat-form button {
  background: var(--color-content-primary);
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 12px 20px;
  font-size: 0.9em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 80px;
  white-space: nowrap;
}
#sbva-chat-form button:hover:not(:disabled) {
  background: var(--color-content-secondary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
#sbva-chat-form button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.sbva-typing {
  color: #6b7280;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sbva-typing::after {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid #667eea;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
#sbva-chat-faq {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 20px 8px 20px;
  background: transparent;
  border-bottom: 1px solid #f1f5f9;
}
.sbva-faq-btn {
  background: #f1f5f9;
  color: var(--color-content-primary);
  border: 1px solid #e0e7ef;
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 0.85em;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  margin-bottom: 2px;
  outline: none;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sbva-faq-btn:hover, .sbva-faq-btn:focus {
  background:  var(--color-content-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(102,126,234,0.10);
  border-color: var(--color-content-primary);
}
@media (max-width: 500px) {
  #sbva-chat-widget {
    width: 98vw;
    height: 70vh;
    right: 1vw;
    bottom: 1vw;
  }
  #sbva-chat-faq {
    padding: 8px 8px 6px 8px;
    gap: 4px;
  }
  .sbva-faq-btn {
    font-size: 0.8em;
    padding: 5px 8px;
  }
} 