#asc-chat-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  background: #0d6efd;
  color: #fff;
  overflow: visible;
}

.asc-chat-unread {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  padding: 0 6px;
  font-weight: 700;
}

#asc-chat-panel {
  position: fixed;
  right: 20px;
  bottom: 72px;
  width: 360px;
  max-width: calc(100vw - 30px);
  height: 520px;
  max-height: calc(100vh - 120px);
  z-index: 99999;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.asc-chat-header {
  background: #0d6efd;
  color: #fff;
  font-weight: 700;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.asc-chat-header-btn {
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
  cursor: pointer;
}

.asc-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: #f7f8fa;
}

.asc-msg {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 10px;
  line-height: 1.35;
  font-size: 14px;
}

.asc-user {
  background: #daf0ff;
  margin-left: 30px;
}

.asc-bot {
  background: #fff;
  margin-right: 30px;
}

.asc-meta {
  background: #f0f0f0;
  font-size: 12px;
}

.asc-chat-form,
.asc-chat-handoff {
  padding: 10px;
  border-top: 1px solid #e7e7e7;
  background: #fff;
}

.asc-chat-form {
  display: flex;
  gap: 8px;
}

.asc-chat-form input {
  flex: 1;
}

.asc-chat-form input,
.asc-chat-handoff input,
.asc-chat-handoff textarea,
.asc-chat-form button,
.asc-chat-handoff button {
  border: 1px solid #d5d5d5;
  border-radius: 8px;
  padding: 10px;
}

.asc-chat-form button,
.asc-chat-handoff button {
  background: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
  cursor: pointer;
}

.asc-chat-handoff h4 {
  margin: 0 0 8px;
}

.asc-handoff-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.asc-handoff-close {
  border: 1px solid #d5d5d5;
  background: #fff;
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
}

.asc-chat-handoff input,
.asc-chat-handoff textarea {
  width: 100%;
  display: block;
  margin-bottom: 8px;
}

.asc-chat-handoff textarea {
  min-height: 80px;
  resize: vertical;
}

.asc-hidden {
  display: none !important;
}
