.chat-widget {
  color-scheme: light;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: #233c35;
  font-size: 14px;
  line-height: 1.6;
}
.chat-widget * {
  box-sizing: border-box;
}
.chat-widget [hidden] {
  display: none !important;
}
.chat-widget button,
.chat-widget input,
.chat-widget textarea,
.chat-widget select {
  font: inherit;
}
.chat-widget button {
  cursor: pointer;
}
.chat-launcher {
  position: fixed;
  right: 28px;
  bottom: 26px;
  z-index: 90;
  border: 0;
  border-radius: 30px;
  background: #167867;
  color: white;
  padding: 14px 23px;
  box-shadow: 0 7px 26px #123c3430;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-launcher i {
  font-style: normal;
  color: #ffd797;
}
.chat-panel {
  position: fixed;
  right: 28px;
  bottom: 92px;
  width: 380px;
  max-height: min(700px, calc(100dvh - 115px));
  z-index: 91;
  background: white;
  box-shadow: 0 14px 80px #102f3438;
  border: 1px solid #dbe5df;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.chat-panel > header {
  background: #163f35;
  color: white;
  padding: 21px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-panel header strong {
  display: block;
  font-size: 15px;
}
.chat-panel header small {
  display: block;
  color: #bfd4cb;
  font-size: 11px;
  margin-top: 5px;
}
.chat-close {
  color: #e7f3eb;
  background: transparent;
  border: 0;
  font-size: 25px !important;
  padding: 0 5px;
}
.chat-body {
  padding: 0;
  overflow: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
#contact-form {
  padding: 25px;
}
#contact-form h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
  margin: 0 0 10px;
}
#contact-form p {
  color: #708278;
  font-size: 12px;
  line-height: 1.9;
  margin-bottom: 20px;
}
#contact-form label:not(.consent) {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 13px;
  font-size: 12px;
  color: #54675d;
}
#contact-form input:not([type="checkbox"]),
#contact-form select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #dbe5df;
  border-radius: 7px;
  background: #fcfdfa;
  color: #233c35;
}
#contact-form input[name="contact"] {
  margin-top: 8px;
}
#contact-form .consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: #718278;
  margin: 18px 0;
  line-height: 1.8;
}
.consent input {
  margin: 4px 0 0;
  accent-color: #167867;
}
#contact-form button {
  width: 100%;
}
.chat-widget .primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: #167867;
  color: white;
  border: 0;
  border-radius: 7px;
  padding: 11px 18px;
  font-size: 13px;
}
.chat-widget button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.chat-widget .honey {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  left: -10000px !important;
}
.chat-status {
  font-size: 12px;
  color: #b14337;
  padding: 0 24px;
  margin: 10px 0;
  line-height: 1.8;
}
.chat-status:empty {
  display: none;
}
#visitor-session {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.messages {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #fbfcfa;
  overscroll-behavior: contain;
}
#visitor-messages {
  height: 330px;
  flex: auto;
}
.message {
  padding: 12px 15px;
  border-radius: 0 12px 12px 12px;
  border: 1px solid #e5ece7;
  max-width: 85%;
  background: #fff;
  align-self: flex-start;
  overflow-wrap: anywhere;
}
.message.own {
  background: #e9f4ed;
  align-self: flex-end;
  border-color: #d6e8dc;
  border-radius: 12px 0 12px 12px;
}
.message-role {
  font-size: 10px;
  color: #77887d;
}
.message p {
  font-size: 13px;
  line-height: 1.8;
  margin: 6px 0;
  white-space: pre-wrap;
  color: #2b4438;
}
.message time {
  display: block;
  text-align: right;
  font-size: 9px;
  color: #87978c;
}
.composer {
  padding: 16px;
  display: flex;
  gap: 10px;
  border-top: 1px solid #e1e9e6;
  align-items: flex-end;
  background: white;
}
.composer textarea {
  resize: vertical;
  min-height: 65px;
  max-height: 160px;
  flex: 1;
  width: 0;
  border: 1px solid #dde7df;
  background: #fff;
  border-radius: 7px;
  padding: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: #254336;
}
.composer button {
  padding: 10px 14px;
  font-size: 13px;
}
.retention-note {
  display: block;
  text-align: center;
  padding: 0 15px 12px;
  color: #84938a;
  font-size: 10px;
  background: white;
}
.chat-widget input:focus,
.chat-widget textarea:focus,
.chat-widget select:focus {
  outline: 2px solid #a2d2b9;
  outline-offset: 2px;
}
@media (max-width: 520px) {
  .chat-launcher {
    right: 16px;
    bottom: 18px;
    padding: 12px 18px;
  }
  .chat-panel {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 80px;
    max-height: calc(100dvh - 100px);
  }
  #visitor-messages {
    height: 35dvh;
  }
  .chat-panel > header {
    padding: 17px 20px;
  }
  .chat-panel #contact-form {
    padding: 20px;
  }
  .composer {
    padding: 12px;
  }
  .message {
    max-width: 92%;
  }
}
