.shlc-widget {
  --shlc-accent: #1677ff;
  bottom: 24px;
  color: #172033;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: fixed;
  z-index: 99999;
}

.shlc-right {
  right: 24px;
}

.shlc-left {
  left: 24px;
}

.shlc-launcher {
  align-items: center;
  background: var(--shlc-accent);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  color: #fff;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  height: 48px;
  justify-content: center;
  line-height: 1;
  min-width: 0;
  padding: 0 20px;
  position: relative;
  white-space: nowrap;
}

.shlc-launcher-text {
  display: block;
}

.shlc-launcher-dot {
  background: #21c45d;
  border: 2px solid #fff;
  border-radius: 50%;
  height: 14px;
  position: absolute;
  right: 4px;
  top: 4px;
  width: 14px;
}

.shlc-window {
  background: #fff;
  border: 1px solid rgba(20, 31, 51, 0.12);
  border-radius: 8px;
  bottom: 78px;
  box-shadow: 0 18px 60px rgba(13, 22, 39, 0.24);
  display: flex;
  flex-direction: column;
  height: min(620px, calc(100vh - 120px));
  overflow: hidden;
  position: absolute;
  width: min(360px, calc(100vw - 32px));
}

.shlc-right .shlc-window {
  right: 0;
}

.shlc-left .shlc-window {
  left: 0;
}

.shlc-window[hidden],
.shlc-contact-fields[hidden],
.shlc-form[hidden] {
  display: none;
}

.shlc-header {
  align-items: center;
  background: var(--shlc-accent);
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 16px;
}

.shlc-header strong,
.shlc-header span {
  display: block;
}

.shlc-header span {
  font-size: 12px;
  opacity: 0.84;
}

.shlc-close {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.shlc-messages {
  background: #f6f8fb;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 16px;
}

.shlc-message {
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
  max-width: 82%;
  padding: 10px 12px;
  white-space: pre-wrap;
}

.shlc-message-agent {
  align-self: flex-start;
  background: #fff;
  border: 1px solid rgba(20, 31, 51, 0.1);
}

.shlc-message-visitor {
  align-self: flex-end;
  background: var(--shlc-accent);
  color: #fff;
}

.shlc-form {
  background: #fff;
  border-top: 1px solid rgba(20, 31, 51, 0.1);
  display: grid;
  gap: 8px;
  padding: 12px;
}

.shlc-contact-fields {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
}

.shlc-contact-fields input,
.shlc-form textarea {
  border: 1px solid rgba(20, 31, 51, 0.18);
  border-radius: 6px;
  box-sizing: border-box;
  font: inherit;
  padding: 10px;
  width: 100%;
}

.shlc-form {
  grid-template-columns: 1fr auto;
}

.shlc-form textarea {
  min-height: 44px;
  resize: vertical;
}

.shlc-form button {
  cursor: pointer;
  min-height: 44px;
}

.shlc-widget .shlc-form.shlc-form-starting > button.shlc-start-button[type="submit"] {
  box-sizing: border-box !important;
  display: block !important;
  grid-column: 1 / -1 !important;
  justify-self: stretch !important;
  max-width: none !important;
  min-width: 100% !important;
  width: 100% !important;
}

@media (max-width: 767px) {
  .shlc-widget {
    display: none;
  }
}
