.b6-chat-widget {
  position: fixed;
  right: 14px;
  bottom: calc(var(--nav-height, 56px) + var(--safe-bottom, 0px) + 14px);
  z-index: 250;
  font-family: 'Outfit', system-ui, sans-serif;
}
.b6-chat-fab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #e91e63, #c2185b);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(233, 30, 99, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.b6-chat-fab:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 28px rgba(233, 30, 99, 0.55);
}
.b6-chat-fab-icon {
  font-size: 18px;
}
.b6-chat-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(360px, calc(100vw - 28px));
  max-height: min(480px, 70vh);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 48px rgba(26, 18, 24, 0.22);
  border: 1px solid #f0e6ea;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.b6-chat-panel[hidden] {
  display: none !important;
}
.b6-chat-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #1a1218, #2d1520);
  color: #fff;
}
.b6-chat-panel-head strong {
  display: block;
  font-size: 15px;
}
.b6-chat-panel-head small {
  display: block;
  font-size: 11px;
  opacity: 0.75;
  margin-top: 2px;
}
.b6-chat-close {
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.b6-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  max-height: 320px;
  background: #faf8f9;
}
.b6-chat-msg {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
}
.b6-chat-msg p {
  margin: 0;
}
.b6-chat-msg--bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #ebe0e4;
  color: #1a1218;
}
.b6-chat-msg--user {
  align-self: flex-end;
  background: linear-gradient(135deg, #e91e63, #ff6b9d);
  color: #fff;
}
.b6-chat-msg--typing {
  opacity: 0.7;
  font-style: italic;
}
.b6-chat-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #f0e6ea;
  background: #fff;
}
.b6-chat-form input {
  flex: 1;
  border: 1px solid #e0d5da;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
}
.b6-chat-form input:focus {
  border-color: #e91e63;
  box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.15);
}
.b6-chat-send {
  flex: 0 0 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #e91e63;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.b6-chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
@media (min-width: 1024px) {
  .b6-chat-widget {
    bottom: 24px;
  }
}
