@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;600;700&display=swap");

#chat-widget-minimized,
iframe#chat-widget-minimized {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
}

.besafe-chat-root {
  --deep: #32134e;
  --purple: #7731a4;
  --orange: #f57924;
  --line: #e7dfee;
  --muted: #6e6375;
  --lilac: #f4eff8;
  font-family: "DM Sans", sans-serif;
}

.besafe-chat-launch {
  position: fixed;
  right: 25px;
  bottom: 24px;
  z-index: 2147483000;
  border: 0;
  border-radius: 50px;
  background: var(--deep);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 9px 20px 9px 9px;
  gap: 12px;
  box-shadow: rgba(50, 19, 78, 0.2) 0 8px 35px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
}

body.besafe-chat-open .besafe-chat-launch {
  background: var(--purple);
}

.besafe-chat-avatar {
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--orange);
  flex: 0 0 48px;
}

.besafe-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  display: block;
}

.besafe-chat-panel {
  position: fixed;
  right: 25px;
  bottom: 100px;
  width: 360px;
  max-height: calc(100dvh - 130px);
  overflow: auto;
  z-index: 2147483001;
  background: #fff;
  box-shadow: rgba(50, 19, 78, 0.21) 0 12px 65px;
  border-radius: 18px;
  border: 1px solid var(--line);
  color: #2c193a;
  font-family: "DM Sans", sans-serif;
}

.besafe-chat-panel[hidden] {
  display: none !important;
}

.besafe-chat-head {
  background: var(--purple);
  color: #fff;
  padding: 23px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.besafe-chat-head b {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.besafe-chat-head small {
  font-size: 11px;
  color: #e8d3f3;
}

.besafe-chat-close {
  margin-left: auto;
  background: none;
  border: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.besafe-chat-body {
  padding: 25px;
}

.besafe-chat-body > img {
  width: 90px;
  height: 110px;
  object-fit: contain;
  float: right;
  margin: 0 -8px 12px 12px;
}

.besafe-chat-body h3 {
  font-size: 24px;
  padding-top: 7px;
  margin: 0 0 8px;
  color: #2c193a;
  font-weight: 700;
}

.besafe-chat-body > p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.besafe-chat-options {
  clear: both;
  display: grid;
  gap: 10px;
  margin-top: 25px;
}

.besafe-chat-options a,
.besafe-chat-options button {
  border: 1px solid #ded0e8;
  background: #fff;
  border-radius: 8px;
  padding: 13px 15px;
  text-align: left;
  color: var(--purple);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.besafe-chat-options a:hover,
.besafe-chat-options button:hover {
  background: var(--lilac);
}

.besafe-chat-options .besafe-chat-live {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}

.besafe-chat-options .besafe-chat-live:hover {
  background: var(--deep);
  color: #fff;
}

.besafe-chat-foot {
  border-top: 1px solid var(--line);
  padding: 12px 22px;
  color: var(--muted);
  font-size: 10px;
}

.besafe-chat-foot a {
  text-decoration: underline;
  color: inherit;
}

#besafe-health-response {
  clear: both;
  margin-top: 18px;
}

#besafe-health-response p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 10px;
}

#besafe-health-response .besafe-textlink {
  color: var(--purple);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 480px) {
  .besafe-chat-panel {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 90px;
  }
  .besafe-chat-launch {
    right: 12px;
    bottom: 16px;
  }
}

#chat-widget-container {
  z-index: 2147483646 !important;
}

body.besafe-livechat-open #chat-widget-container,
body.besafe-livechat-open #chat-widget {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.besafe-livechat-open #chat-widget {
  display: block !important;
}

body.besafe-livechat-open .besafe-chat-launch {
  z-index: 2147483000;
}
