.jgatsby-chat {
  position: fixed;
  right: 22px;
  bottom: 86px;
  z-index: 50;
  color: #f8f8f8;
  font-family: "Inter", Arial, sans-serif;
}
[hidden] {
  display: none !important;
}
.jgatsby-chat-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 17px 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #fff;
  background: #111;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.jgatsby-chat-toggle span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #111;
  background: #ff6a00;
  font-weight: 900;
}
.jgatsby-chat-panel {
  position: absolute;
  right: 0;
  bottom: 58px;
  width: min(360px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #f8f8f8;
  background: #111;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
}
.jgatsby-chat-confirm {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.78);
}
.jgatsby-chat-confirm > div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: #181818;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4);
}
.jgatsby-chat-confirm p {
  margin: 8px 0 14px;
  color: #c8c8c8;
  font-size: 0.82rem;
  line-height: 1.45;
}
.jgatsby-chat-confirm > div > div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.jgatsby-chat-confirm button {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  color: #fff;
  background: #292929;
  font-weight: 800;
  cursor: pointer;
}
.jgatsby-chat-confirm [data-chat-confirm-end] {
  border-color: #ff6a00;
  background: #ff6a00;
}
.jgatsby-chat-panel header,
.jgatsby-chat-panel header div,
.jgatsby-chat-conversation form {
  display: flex;
  align-items: center;
}
.jgatsby-chat-panel header {
  justify-content: space-between;
  padding: 15px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #080808;
}
.jgatsby-chat-panel header div {
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
}
.jgatsby-chat-panel small,
.jgatsby-chat-status {
  color: #a8a8a8;
  font-size: 0.75rem;
}
.jgatsby-chat-panel header button {
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
}
.jgatsby-chat-availability {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 15px;
  border-bottom: 1px solid rgba(116, 239, 139, 0.22);
  color: #c6f6ce;
  background: #12351a;
  font-size: 0.76rem;
  font-weight: 900;
}
.jgatsby-chat-availability span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #61e77a;
  box-shadow: 0 0 0 3px rgba(97, 231, 122, 0.2);
}
.jgatsby-chat-intro,
.jgatsby-chat-conversation {
  padding: 15px;
}
.jgatsby-chat-intro p {
  margin-top: 0;
  font-weight: 800;
}
.jgatsby-chat-intro form,
.jgatsby-chat-intro label {
  display: grid;
  gap: 7px;
}
.jgatsby-chat-intro form {
  gap: 11px;
}
.jgatsby-chat-intro label {
  color: #d6d6d6;
  font-size: 0.76rem;
  font-weight: 800;
}
.jgatsby-chat input,
.jgatsby-chat select,
.jgatsby-chat textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  color: #fff;
  background: #1c1c1c;
  resize: vertical;
}
.jgatsby-chat select option {
  color: #fff;
  background: #1c1c1c;
}
.jgatsby-chat form button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: #ff6a00;
  font-weight: 900;
  cursor: pointer;
}
.jgatsby-chat-messages {
  display: grid;
  gap: 10px;
  max-height: 330px;
  overflow-y: auto;
}
.jgatsby-chat-message {
  max-width: 88%;
  padding: 9px 10px;
  border-radius: 6px;
  background: #282828;
}
.jgatsby-chat-message.is-visitor {
  justify-self: end;
  background: #753100;
}
.jgatsby-chat-message strong,
.jgatsby-chat-message small {
  display: block;
  font-size: 0.7rem;
}
.jgatsby-chat-message p {
  margin: 4px 0;
  color: #fff;
  font-size: 0.84rem;
  white-space: pre-wrap;
}
.jgatsby-chat-conversation form {
  gap: 8px;
}
.jgatsby-chat-end {
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  color: #d6d6d6;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}
.jgatsby-chat-end:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
}
.jgatsby-chat-conversation form textarea {
  min-height: 52px;
}
@media (max-width: 520px) {
  .jgatsby-chat {
    right: 14px;
    bottom: 76px;
  }
}
