#bob-webchat-launcher {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 99990;
  border: 0;
  border-radius: 999px;
  padding: 16px 28px;
  background: #e6c229;
  color: #050505;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

#bob-webchat-panel {
  position: fixed;
  right: 28px;
  bottom: 92px;
  z-index: 99991;
  width: min(420px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 120px));
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(230, 194, 41, 0.55);
  border-radius: 20px;
  background: #101827;
  color: #ffffff;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.45);
}

#bob-webchat-panel.bob-open {
  display: flex;
}

.bob-chat-header {
  position: relative;
  padding: 18px 56px 18px 18px;
  background: linear-gradient(135deg, #111827, #1f2a44);
  border-bottom: 1px solid rgba(230, 194, 41, 0.28);
}

.bob-chat-close-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(230, 194, 41, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 24px;
  line-height: 28px;
  font-weight: 800;
  cursor: pointer;
}

.bob-chat-close-x:hover {
  background: rgba(230, 194, 41, 0.18);
}

.bob-chat-header strong {
  display: block;
  font-size: 20px;
  color: #e6c229;
  margin-bottom: 6px;
}

.bob-chat-header span,
.bob-chat-authority span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
  font-size: 13px;
}

.bob-chat-body {
  padding: 16px;
  overflow-y: auto;
}

.bob-chat-authority {
  border: 1px solid rgba(230, 194, 41, 0.35);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 14px;
  background: rgba(230, 194, 41, 0.08);
}

.bob-chat-authority strong {
  display: block;
  color: #ffffff;
  font-size: 13px;
  margin-bottom: 4px;
}

.bob-chat-row {
  margin-bottom: 12px;
}

.bob-chat-row label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.bob-chat-row input,
.bob-chat-row select,
.bob-chat-row textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  background: #ffffff;
  color: #111827;
}

.bob-chat-row textarea {
  min-height: 105px;
  resize: vertical;
}

.bob-chat-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.bob-chat-send,
.bob-chat-close {
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 800;
  cursor: pointer;
}

.bob-chat-send {
  flex: 1;
  background: #e6c229;
  color: #050505;
}

.bob-chat-send:disabled {
  opacity: 0.6;
  cursor: wait;
}

.bob-chat-close {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.bob-chat-error {
  color: #ffb4b4;
  min-height: 20px;
  margin-top: 10px;
  font-size: 13px;
}

.bob-chat-transcript {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.bob-chat-message {
  border-radius: 14px;
  padding: 12px;
  line-height: 1.45;
  font-size: 14px;
  white-space: pre-wrap;
}

.bob-chat-message.customer {
  background: #243244;
}

.bob-chat-message.assistant {
  border: 1px solid rgba(230, 194, 41, 0.45);
  background: rgba(230, 194, 41, 0.08);
}

@media (max-width: 620px) {
  #bob-webchat-launcher {
    right: 16px;
    bottom: 16px;
  }

  #bob-webchat-panel {
    right: 16px;
    bottom: 76px;
  }
}
