.chatbot-widget {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.chatbot-widget__panel {
  display: flex;
  flex-direction: column;
  width: 430px;
  height: 660px;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 7rem);
  border-radius: 20px;
  overflow: hidden;
  background: #f8fafc;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.chatbot-widget__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #3b82f6 100%);
  color: #fff;
}

.chatbot-widget__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  font-size: 18px;
}

.chatbot-widget__title {
  display: flex;
  flex-direction: column;
  flex: 1;
  line-height: 1.35;
  font-size: 16px;
}

.chatbot-widget__title span {
  font-size: 13px;
  opacity: 0.85;
}

.chatbot-widget__minimize {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}

.chatbot-widget__minimize:hover {
  background: rgba(255, 255, 255, 0.28);
}

.chatbot-widget__panel[hidden] {
  display: none;
}

.chatbot-widget__panel deep-chat {
  display: block;
  flex: 1;
  min-height: 0;
}

.chatbot-widget__launcher {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  height: 62px;
  padding: 0 1.5rem;
  border: none;
  border-radius: 31px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.chatbot-widget svg {
  display: block;
}

.chatbot-widget__open,
.chatbot-widget__close {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.chatbot-widget__launcher[aria-expanded="true"] {
  width: 62px;
  padding: 0;
}

.chatbot-widget__launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(29, 78, 216, 0.5);
}

.chatbot-widget__close,
.chatbot-widget__launcher[aria-expanded="true"] .chatbot-widget__open {
  display: none;
}

.chatbot-widget__launcher[aria-expanded="true"] .chatbot-widget__close {
  display: flex;
}

.chatbot-widget__disclaimer {
  margin: 0;
  padding: 0.5rem 1rem 0.65rem;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 480px) {
  .chatbot-widget__label {
    display: none;
  }

  .chatbot-widget__launcher {
    padding: 0;
    width: 62px;
  }
}

.chatbot-widget__avatar::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #2563eb;
}
