#ods-live-chat-root {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99998;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ods-lc-fab {
  height: 58px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  background: #2563eb;
  box-shadow: 0 18px 42px rgba(37, 99, 235, .32);
  cursor: pointer;
  font-weight: 800;
}

.ods-lc-fab span {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #fff;
  position: relative;
}

.ods-lc-fab span:before,
.ods-lc-fab span:after {
  content: "";
  position: absolute;
  background: #2563eb;
  border-radius: 999px;
}

.ods-lc-fab span:before {
  width: 16px;
  height: 10px;
  left: 7px;
  top: 8px;
}

.ods-lc-fab span:after {
  width: 8px;
  height: 8px;
  left: 16px;
  top: 16px;
  transform: rotate(45deg);
}

.ods-lc-panel {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: min(390px, calc(100vw - 28px));
  height: min(610px, calc(100vh - 112px));
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 26px 80px rgba(15, 23, 42, .22);
}

.ods-lc-panel header {
  height: 72px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #0f172a);
}

.ods-lc-panel header strong {
  display: block;
  font-size: 16px;
}

.ods-lc-panel header small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .78);
}

.ods-lc-panel header small:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f59e0b;
}

.ods-lc-panel header small.is-online:before {
  background: #22c55e;
}

.ods-lc-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  cursor: pointer;
}

.ods-lc-messages {
  height: calc(100% - 150px);
  padding: 16px;
  overflow: auto;
  background: #f8fafc;
}

.ods-lc-message {
  max-width: 84%;
  margin: 0 0 10px;
  padding: 11px 13px;
  border-radius: 16px;
  line-height: 1.45;
  font-size: 14px;
  color: #0f172a;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.ods-lc-message-meta {
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

.ods-lc-message-text {
  white-space: pre-wrap;
}

.ods-lc-message.is-visitor {
  margin-left: auto;
  color: #fff;
  background: #2563eb;
  border-color: #2563eb;
}

.ods-lc-message.is-visitor .ods-lc-message-meta {
  color: rgba(255, 255, 255, .75);
}

.ods-lc-message.is-agent {
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.ods-lc-message.is-typing {
  color: #64748b;
  font-style: italic;
}

.ods-lc-message-form,
.ods-lc-offline-form {
  padding: 12px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.ods-lc-message-form {
  display: grid;
  grid-template-columns: 1fr 86px;
  gap: 8px;
}

.ods-lc-message-form[hidden],
.ods-lc-offline-form[hidden] {
  display: none;
}

.ods-lc-message-form input,
.ods-lc-offline-form input,
.ods-lc-offline-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  outline: none;
}

.ods-lc-offline-form {
  display: grid;
  gap: 8px;
}

.ods-lc-offline-form textarea {
  min-height: 86px;
  resize: vertical;
}

.ods-lc-message-form button,
.ods-lc-offline-form button {
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #2563eb;
  font-weight: 800;
  cursor: pointer;
}

.ods-lc-offline-form button {
  min-height: 44px;
}

@media (max-width: 520px) {
  #ods-live-chat-root {
    right: 14px;
    bottom: 14px;
  }

  .ods-lc-panel {
    right: -8px;
    bottom: 70px;
  }
}
