#livechatticket-root {
  position: fixed;
  right: 20px;
  bottom: 70px;
  z-index: 2147483000;
}

#livechatticket-root .lct-toggle {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  background: #fff;
  font-size: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

#livechatticket-root .lct-toggle-icon {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

#livechatticket-root .lct-toggle-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 20px;
  height: 20px;
  line-height: 20px;
  border-radius: 999px;
  background: #e02020;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  padding: 0 4px;
}

#livechatticket-root .lct-panel {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: 340px;
  max-width: calc(100vw - 24px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  z-index: 2147483001;
}

#livechatticket-root .lct-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

#livechatticket-root .lct-close {
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

#livechatticket-root .lct-messages {
  max-height: 320px;
  overflow-y: auto;
  padding: 14px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#livechatticket-root .lct-message-item {
  display: flex;
  flex-direction: column;
  max-width: 82%;
}

#livechatticket-root .lct-message-item.is-agent {
  align-self: flex-start;
}

#livechatticket-root .lct-message-item.is-customer {
  align-self: flex-end;
  text-align: right;
}

#livechatticket-root .lct-author,
#livechatticket-root .lct-date {
  font-size: 12px;
  opacity: .7;
}

#livechatticket-root .lct-bubble {
  display: inline-block;
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  max-width: 100%;
  word-break: break-word;
  text-align: left;
  background: #f1f1f1;
}

#livechatticket-root .is-agent .lct-bubble {
  background: #e8f2ff;
  border-top-left-radius: 4px;
}

#livechatticket-root .is-customer .lct-bubble {
  background: #dff4e8;
  border-top-right-radius: 4px;
}

#livechatticket-root .lct-start-form {
  padding: 14px;
}

#livechatticket-root .lct-field-wrap {
  margin-bottom: 10px;
}

#livechatticket-root input,
#livechatticket-root textarea {
  width: 100%;
  border: 1px solid #d6d6d6;
  border-radius: 10px;
  padding: 10px 12px;
}

#livechatticket-root textarea[disabled],
#livechatticket-root input[disabled] {
  background: #f7f7f7;
  cursor: not-allowed;
}

#livechatticket-root .lct-send,
#livechatticket-root .lct-new-chat {
  width: 100%;
}

#livechatticket-root .lct-new-chat {
  margin-top: 10px;
}

#livechatticket-root .lct-error {
  margin-top: 10px;
  color: #b40000;
  font-size: 13px;
}

#livechatticket-root .lct-status {
  margin: 12px 14px 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  background: #f4f6f8;
  color: #333;
}

#livechatticket-root .lct-status.is-closed {
  background: #fff4e5;
  color: #8a5a00;
}

#livechatticket-root .lct-status.is-active {
  background: #edf7ed;
  color: #1f5f2b;
}

#livechatticket-root.is-mode-active .lct-identity-fields {
  display: none;
}

#livechatticket-root.is-mode-closed .lct-identity-fields {
  display: none;
}

#livechatticket-root.is-mode-closed .lct-send {
  display: none;
}

#livechatticket-root.has-unread .lct-toggle {
  box-shadow: 0 0 0 3px #e02020, 0 8px 24px rgba(0,0,0,.18);
}