#jgm-webchat-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99998;
  border: 2px solid #e0b82d;
  background: #e0b82d;
  color: #111;
  font-weight: 800;
  border-radius: 999px;
  padding: 14px 18px;
  box-shadow: 0 12px 35px rgba(0,0,0,.35);
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
}

#jgm-webchat-panel {
  position: fixed;
  right: 22px;
  bottom: 82px;
  z-index: 99999;
  width: min(380px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 110px));
  background: #090909;
  color: #fff;
  border: 1px solid rgba(224,184,45,.65);
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(0,0,0,.55);
  overflow: hidden;
  display: none;
  font-family: Arial, Helvetica, sans-serif;
}

#jgm-webchat-panel.jgm-open {
  display: flex;
  flex-direction: column;
}

.jgm-chat-header {
  padding: 16px 18px;
  background: linear-gradient(135deg, #111, #241d06);
  border-bottom: 1px solid rgba(224,184,45,.45);
}

.jgm-chat-header strong {
  display: block;
  color: #e0b82d;
  font-size: 18px;
  line-height: 1.2;
}

.jgm-chat-header span {
  display: block;
  color: #e8e8e8;
  font-size: 13px;
  margin-top: 5px;
}

.jgm-chat-body {
  padding: 14px;
  overflow-y: auto;
}

.jgm-chat-small {
  color: #cfcfcf;
  font-size: 12px;
  line-height: 1.35;
  margin: 8px 0 12px;
}

.jgm-chat-row {
  margin-bottom: 10px;
}

.jgm-chat-row label {
  display: block;
  color: #f4f4f4;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 5px;
}

.jgm-chat-row input,
.jgm-chat-row select,
.jgm-chat-row textarea {
  width: 100%;
  box-sizing: border-box;
  background: #151515;
  color: #fff;
  border: 1px solid #3b3b3b;
  border-radius: 10px;
  padding: 10px 11px;
  font-size: 14px;
  outline: none;
}

.jgm-chat-row textarea {
  min-height: 92px;
  resize: vertical;
}

.jgm-chat-row input:focus,
.jgm-chat-row select:focus,
.jgm-chat-row textarea:focus {
  border-color: #e0b82d;
}

.jgm-chat-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.jgm-chat-actions button {
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  cursor: pointer;
  font-weight: 800;
}

.jgm-chat-send {
  background: #e0b82d;
  color: #111;
}

.jgm-chat-close {
  background: #202020;
  color: #fff;
}

.jgm-chat-transcript {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 14px;
  padding-top: 12px;
}

.jgm-chat-message {
  padding: 10px 12px;
  border-radius: 12px;
  margin: 8px 0;
  font-size: 13px;
  line-height: 1.42;
  white-space: pre-wrap;
}

.jgm-chat-message.customer {
  background: #1f2937;
}

.jgm-chat-message.assistant {
  background: #171307;
  border: 1px solid rgba(224,184,45,.4);
}

.jgm-chat-error {
  color: #ffb4b4;
  font-size: 13px;
  margin-top: 8px;
}

@media (max-width: 520px) {
  #jgm-webchat-launcher {
    right: 14px;
    bottom: 14px;
  }

  #jgm-webchat-panel {
    right: 10px;
    bottom: 70px;
    width: calc(100vw - 20px);
  }
}
