#ows-chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #1a3a6e;
  color: #fff;
  border: none;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  z-index: 999998;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
#ows-chat-launcher:hover { transform: scale(1.06); }
#ows-chat-launcher.ows-hidden { display: none; }

#ows-chat-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 340px;
  max-width: calc(100vw - 32px);
  height: 460px;
  max-height: calc(100vh - 48px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 999999;
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
}
#ows-chat-panel.ows-open { display: flex; }

#ows-chat-header {
  background: #1a3a6e;
  color: #fff;
  padding: 14px 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
}
#ows-chat-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

#ows-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f7f8fa;
}
.ows-msg {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.ows-msg-bot {
  align-self: flex-start;
  background: #eef1f6;
  color: #1a1a2e;
  border-bottom-left-radius: 2px;
}
.ows-msg-user {
  align-self: flex-end;
  background: #1a3a6e;
  color: #fff;
  border-bottom-right-radius: 2px;
}

#ows-chat-lead-form {
  padding: 10px 14px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}
#ows-chat-lead-form p {
  font-size: 0.78rem;
  color: #555;
  margin: 0 0 8px;
}
#ows-chat-lead-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  margin-bottom: 6px;
  border: 1px solid #d5d9e0;
  border-radius: 6px;
  font-size: 0.82rem;
}
#ows-lead-submit {
  width: 100%;
  background: #1a3a6e;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.85rem;
  cursor: pointer;
}
#ows-lead-status { font-size: 0.75rem; margin-top: 6px; }

#ows-chat-input-row {
  display: flex;
  border-top: 1px solid #e5e7eb;
  padding: 10px;
  gap: 8px;
  background: #fff;
}
#ows-chat-input {
  flex: 1;
  padding: 9px 10px;
  border: 1px solid #d5d9e0;
  border-radius: 6px;
  font-size: 0.85rem;
}
#ows-chat-send {
  background: #1a3a6e;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0 14px;
  font-size: 0.85rem;
  cursor: pointer;
}

@media (max-width: 480px) {
  #ows-chat-panel {
    right: 16px;
    left: 16px;
    width: auto;
    bottom: 16px;
  }
  #ows-chat-launcher { right: 16px; bottom: 16px; }
}