.wsb-chat-wrap--floating {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
}

.wsb-chat-wrap--open .wsb-launcher {
  display: none !important;
}

.wsb-chat[hidden] {
  display: none !important;
}

.wsb-launcher {
  border: 0;
  border-radius: 999px;
  background: #b3131b;
  color: #fff;
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.wsb-launcher:hover {
  background: #8f0f15;
}

.wsb-chat {
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  max-width: 760px;
  overflow: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wsb-chat--floating {
  width: min(420px, calc(100vw - 24px));
  margin-top: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.wsb-chat-wrap--inline .wsb-chat {
  max-width: 760px;
}

.wsb-chat__header {
  padding: 16px 18px;
  background: #b3131b;
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.wsb-chat__header h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.wsb-chat__header p {
  margin: 0;
  opacity: 0.9;
  font-size: 14px;
}

.wsb-chat__close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.wsb-chat__messages {
  max-height: 460px;
  overflow-y: auto;
  padding: 16px;
  background: #f9fafb;
}

.wsb-chat__message {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  line-height: 1.5;
}

.wsb-chat__message strong {
  display: inline-block;
  margin-right: 6px;
}

.wsb-chat__message--bot {
  background: #fde8ea;
  border: 1px solid #f5b8be;
}

.wsb-chat__message--user {

  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.wsb-chat__form {
  display: flex;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.wsb-chat__form input[type="text"] {
  flex: 1;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
}

.wsb-chat__form button {
  border: 0;
  border-radius: 10px;
  background: #b3131b;
  color: #fff;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
}

.wsb-chat__form button:hover {
  background: #8f0f15;
}

.wsb-sources {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #ececec;
}

.wsb-sources__title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7a7a7a;
  margin-bottom: 8px;
}

.wsb-sources__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wsb-source {
  margin: 0 0 8px;
}

.wsb-source a {
  color: #8f0f15;
  text-decoration: none;
  font-weight: 600;
}

.wsb-source a:hover {
  text-decoration: underline;
}

.wsb-source__meta {
  font-size: 12px;
  color: #777;
  margin-top: 2px;
}