:root {
  color-scheme: dark;
  --bg: #080b12;
  --bg-soft: #0d111c;
  --panel: rgba(18, 24, 38, 0.86);
  --panel-strong: rgba(22, 30, 48, 0.94);
  --panel-muted: rgba(255, 255, 255, 0.045);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(148, 163, 184, 0.28);
  --text: #eef4ff;
  --muted: #92a1b8;
  --subtle: #64748b;
  --brand: #F8CB74;
  --brand-2: #DFAE45;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #fb7185;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

.turbo-progress-bar {
  height: 3px;
  background: var(--brand);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  background:
    radial-gradient(circle at 8% 0%, rgba(248, 203, 116, 0.12), transparent 28rem),
    radial-gradient(circle at 94% 8%, rgba(223, 174, 69, 0.12), transparent 30rem),
    linear-gradient(135deg, #080b12 0%, #0b1020 52%, #080b12 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

pre,
code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.backoffice-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
}

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background: rgba(8, 11, 18, 0.74);
  backdrop-filter: blur(22px);
}

.app-brand-logo {
  width: 50px;
  filter:invert();
}

.app-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}
.app-brand-name {
  text-align: center;
}

.app-brand strong,
.app-brand small {
  display: block;
}

.app-brand small,
.topbar-kicker,
.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-nav {
  display: grid;
  gap: 6px;
  margin-top: 28px;
}

.app-nav-link {
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 700;
}

.app-nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.app-frame {
  min-width: 0;
}

.app-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 18, 0.72);
  backdrop-filter: blur(20px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: inherit;
  gap: 24px;
}

.topbar strong {
  display: block;
  font-size: 15px;
}

.topbar-status {
  padding: 7px 10px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 999px;
  color: var(--success);
  background: rgba(52, 211, 153, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.app-main {
  padding: 34px 0 72px;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.page-title {
  margin: 4px 0 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.page-description {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.card-body {
  padding: 22px;
}

.section-title {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.grid {
  display: grid;
  gap: 18px;
}

.agent-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr);
  gap: 18px;
  align-items: start;
}

.agent-editor-form .form-card {
  max-width: none;
}

.agent-create-layout .form-card {
  max-width: none;
}

.agent-editor-playground {
  position: sticky;
  top: 92px;
}

.chatbot-playground-frame {
  display: block;
  width: 100%;
  min-height: 500px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.agent-editor-playground .field-hint {
  min-height: 18px;
  margin-top: 10px;
}

.chatbot-playground-actions {
  margin-top: 12px;
}

.grid-two {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.usage-dashboard {
  margin-bottom: 24px;
}

.usage-stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.usage-agent-list {
  display: grid;
  gap: 2px;
}

.usage-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.usage-limits-card {
  width: 100%;
}

.usage-card-row {
  display: flex;
  align-items: stretch;
  gap: 18px;
}

.usage-card {
  flex: 1 1 0;
  min-width: 0;
}

.usage-card-compact {
  flex: 0 1 420px;
}

.usage-events-table {
  margin-top: 18px;
}

.client-usage-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}

.client-usage-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.client-usage-card-warning {
  border-color: rgba(251, 191, 36, 0.34);
}

.client-usage-card-danger {
  border-color: rgba(251, 113, 133, 0.42);
}

.client-usage-card-header,
.limit-row-label,
.client-usage-footnote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.client-usage-card-header .badge {
  flex: 0 0 auto;
}

.client-usage-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.client-usage-metrics div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.client-usage-metrics strong,
.client-usage-metrics span {
  display: block;
}

.client-usage-metrics strong {
  overflow: hidden;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
}

.client-usage-metrics span,
.limit-row-label span,
.client-usage-footnote {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.client-usage-limits {
  display: grid;
  gap: 14px;
}

.limit-row {
  display: grid;
  gap: 8px;
}

.limit-row-label strong {
  color: #dbe6f7;
  font-size: 13px;
}

.usage-progress {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
}

.usage-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--success));
}

.client-usage-card-warning .usage-progress span {
  background: linear-gradient(90deg, var(--warning), #f97316);
}

.client-usage-card-danger .usage-progress span {
  background: linear-gradient(90deg, var(--danger), #ef4444);
}

.client-limits-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.client-usage-footnote {
  justify-content: flex-start;
  flex-wrap: wrap;
  padding-top: 4px;
}

.stat-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-muted);
}

.stat-card strong {
  display: block;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.stat-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.03);
}

tr:last-child td {
  border-bottom: 0;
}

td {
  color: #dbe6f7;
  font-size: 14px;
}

.name-cell {
  display: grid;
  gap: 3px;
}

.name-cell strong {
  color: var(--text);
  font-size: 15px;
}

.name-cell small,
.muted {
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(148, 163, 184, 0.1);
  font-size: 12px;
  font-weight: 800;
}

.badge-success {
  color: var(--success);
  background: rgba(52, 211, 153, 0.1);
}

.badge-warning {
  color: var(--warning);
  background: rgba(251, 191, 36, 0.1);
}

.badge-danger {
  color: var(--danger);
  background: rgba(251, 113, 133, 0.1);
}

.btn,
input[type="submit"],
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.btn:hover,
input[type="submit"]:hover,
button:hover {
  border-color: rgba(248, 203, 116, 0.46);
  background: rgba(248, 203, 116, 0.1);
}

.btn-primary,
input[type="submit"] {
  border-color: transparent;
  color: #071018;
  background: var(--brand);
}

.btn-danger,
.button_to .danger-button {
  border-color: rgba(251, 113, 133, 0.32);
  color: #fecdd3;
  background: rgba(251, 113, 133, 0.1);
}

.button_to {
  display: inline;
}

.button_to div {
  display: inline;
}

.form-card {
  max-width: 900px;
}

.form-grid {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

label,
legend {
  color: #c7d2e5;
  font-size: 13px;
  font-weight: 800;
}

input[type="text"],
input[type="number"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  background: rgba(5, 8, 14, 0.52);
  outline: none;
}

input[type="text"],
input[type="number"],
select {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 112px;
  padding: 12px;
  resize: vertical;
}

input[type="color"] {
  width: 64px;
  height: 42px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(5, 8, 14, 0.52);
}

.theme-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.theme-option {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.theme-option:has(input:checked) {
  border-color: rgba(248, 203, 116, 0.74);
  box-shadow: 0 0 0 3px rgba(248, 203, 116, 0.1);
}

.theme-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-option strong,
.theme-option small {
  display: block;
}

.theme-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.theme-option-preview {
  display: grid;
  gap: 6px;
  width: 100%;
  min-height: 130px;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.theme-option-preview-glass {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(12px);
}

.theme-option-preview-light {
  background: #ffffff;
  border: 1px solid #cbd5e1;
}

.theme-option-preview-dark {
  background: #0f172a;
  border: 1px solid #475569;
}

.theme-option-header {
  height: 22px;
  border-radius: 999px;
  background: var(--brand);
}

.theme-option-message,
.theme-option-input {
  display: block;
  height: 18px;
  border-radius: 999px;
}

.theme-option-message-assistant {
  width: 72%;
  background: #e2e8f0;
}

.theme-option-message-visitor {
  justify-self: end;
  width: 58%;
  background: var(--brand-2);
}

.theme-option-input {
  width: 100%;
  margin-top: auto;
  background: rgba(148, 163, 184, 0.28);
}

.theme-option-preview-dark .theme-option-message-assistant {
  background: #334155;
}

.theme-option-preview-dark .theme-option-input {
  background: #1e293b;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(248, 203, 116, 0.7);
  box-shadow: 0 0 0 4px rgba(248, 203, 116, 0.1);
}

fieldset {
  margin: 6px 0 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.field-hint {
  margin: 0;
  color: var(--subtle);
  font-size: 12px;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-list {
  display: grid;
  gap: 12px;
}

.detail-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.detail-row:last-child {
  border-bottom: 0;
}

.detail-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.code-block,
pre {
  overflow: auto;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #cfe8ff;
  background: rgba(2, 6, 12, 0.62);
  white-space: pre-wrap;
}

.flash {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
}

.flash-notice {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.26);
}

.flash-alert,
.error-box {
  color: #fecdd3;
  background: rgba(251, 113, 133, 0.12);
  border: 1px solid rgba(251, 113, 133, 0.28);
}

.error-box {
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 14px;
}

.message-list {
  display: grid;
  gap: 14px;
}

.message-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.empty-state {
  padding: 36px;
  text-align: center;
}

.empty-state p {
  margin: 8px auto 0;
  max-width: 420px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .backoffice-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .page-header,
  .topbar-inner,
  .message-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid-two,
  .stats-grid,
  .usage-stats-grid,
  .agent-editor-layout {
    grid-template-columns: 1fr;
  }

  .usage-card-row {
    flex-direction: column;
  }

  .agent-editor-playground {
    position: static;
  }

  .client-limits-form {
    grid-template-columns: 1fr;
  }

  .app-container {
    width: min(100% - 28px, 1180px);
  }
}
#chatbot-saas-widget {
  position: fixed;
  bottom: 20px;
  z-index: 2147483647;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --chatbot-saas-primary-color: #111827;
--chatbot-saas-panel-bg: rgb(255 255 255 / 32%);
  --chatbot-saas-panel-border: rgba(226, 232, 240, 0.86);
  --chatbot-saas-panel-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
  --chatbot-saas-assistant-bg: rgba(248, 250, 252, 0.92);
  --chatbot-saas-assistant-text: #111827;
  --chatbot-saas-assistant-border: rgba(226, 232, 240, 0.72);
  --chatbot-saas-input-bg: rgba(255, 255, 255, 0.88);
  --chatbot-saas-input-border: rgba(215, 220, 226, 0.82);
  --chatbot-saas-input-text: #111827;
  --chatbot-saas-backdrop-filter: blur(20px) saturate(1.2);
}

#chatbot-saas-widget.chatbot-saas-theme-light {
  --chatbot-saas-panel-bg: #ffffff;
  --chatbot-saas-panel-border: rgba(203, 213, 225, 0.95);
  --chatbot-saas-panel-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
  --chatbot-saas-assistant-bg: #f1f5f9;
  --chatbot-saas-assistant-text: #0f172a;
  --chatbot-saas-assistant-border: rgba(203, 213, 225, 0.88);
  --chatbot-saas-input-bg: #ffffff;
  --chatbot-saas-input-border: rgba(203, 213, 225, 0.95);
  --chatbot-saas-input-text: #0f172a;
  --chatbot-saas-backdrop-filter: none;
}

#chatbot-saas-widget.chatbot-saas-theme-dark {
  --chatbot-saas-panel-bg: #0b1120;
  --chatbot-saas-panel-border: rgba(71, 85, 105, 0.92);
  --chatbot-saas-panel-shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
  --chatbot-saas-assistant-bg: #1e293b;
  --chatbot-saas-assistant-text: #e5edf8;
  --chatbot-saas-assistant-border: rgba(71, 85, 105, 0.72);
  --chatbot-saas-input-bg: #111827;
  --chatbot-saas-input-border: rgba(71, 85, 105, 0.92);
  --chatbot-saas-input-text: #f8fafc;
  --chatbot-saas-backdrop-filter: blur(18px) saturate(1.05);
}

.chatbot-saas-position-bottom-right {
  right: 20px;
}

.chatbot-saas-position-bottom-left {
  left: 20px;
}

.chatbot-saas-panel {
  width: 56px;
  max-width: calc(100vw - 40px);
  height: 56px;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  transform: translateZ(0);
  transition:
    width 280ms cubic-bezier(0.22, 1, 0.36, 1),
    height 280ms cubic-bezier(0.22, 1, 0.36, 1),
    background 220ms ease,
    border-color 220ms ease,
    border-radius 240ms ease,
    box-shadow 260ms ease;
}

.chatbot-saas-position-bottom-right .chatbot-saas-panel {
  transform-origin: bottom right;
}

.chatbot-saas-position-bottom-left .chatbot-saas-panel {
  transform-origin: bottom left;
}

.chatbot-saas-panel-open {
  width: 320px;
  height: 420px;
  max-height: calc(100vh - 40px);
  background: var(--chatbot-saas-panel-bg);
  border: 1px solid var(--chatbot-saas-panel-border);
  border-radius: 24px;
  box-shadow: var(--chatbot-saas-panel-shadow);
  backdrop-filter: var(--chatbot-saas-backdrop-filter);
  -webkit-backdrop-filter: var(--chatbot-saas-backdrop-filter);
}

.chatbot-saas-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  min-height: 56px;
  padding: 0;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  background: var(--chatbot-saas-primary-color);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px) saturate(1.25);
  transform: translateZ(0);
  transition:
    border-radius 220ms ease,
    box-shadow 260ms ease;
}

.chatbot-saas-header-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  transform-origin: center;
  will-change: transform;
}

.chatbot-saas-header-icon svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.chatbot-saas-header-title {
  display: none;
  max-width: 0;
  min-width: 0;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  transform: translateX(-6px);
  transition:
    max-width 240ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease,
    transform 220ms ease;
}

.chatbot-saas-panel-open .chatbot-saas-header {
  justify-content: center;
  min-height: 56px;
  padding: 0;
  border-radius: 24px 24px 0 0;
  box-shadow: none;
}

.chatbot-saas-panel-open .chatbot-saas-header-title {
  display: inline-block;
  max-width: 240px;
  opacity: 1;
  transform: translateX(0);
}

.chatbot-saas-header-title[hidden] {
  display: none;
}

.chatbot-saas-body {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: calc(100% - 56px);
  padding: 0 14px 14px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.98);
  transform-origin: top center;
  transition:
    opacity 220ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0ms linear 260ms;
}

.chatbot-saas-body-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition:
    opacity 220ms ease 70ms,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1) 70ms,
    visibility 0ms;
}

.chatbot-saas-messages {
  display: grid;
  flex: 1;
  min-height: 0;
  align-content: start;
  gap: 10px;
  margin-block: 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.chatbot-saas-message {
  max-width: 85%;
  padding: 10px 12px;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.4;
  border-radius: 18px;
}

.chatbot-saas-message a {
  color: var(--chatbot-saas-primary-color);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chatbot-saas-message-assistant {
  justify-self: start;
  color: var(--chatbot-saas-assistant-text);
  background: var(--chatbot-saas-assistant-bg);
  border-bottom-left-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--chatbot-saas-assistant-border);
}

.chatbot-saas-message-typing {
  display: inline-flex;
  min-width: 42px;
  min-height: 20px;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.chatbot-saas-message-typing span {
  width: 5px;
  height: 5px;
  background: #6b7280;
  border-radius: 999px;
  animation: chatbot-saas-typing 900ms ease-in-out infinite;
}

.chatbot-saas-message-typing span:nth-child(2) {
  animation-delay: 120ms;
}

.chatbot-saas-message-typing span:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes chatbot-saas-typing {
  0%,
  100% {
    opacity: 0.45;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.chatbot-saas-message-visitor {
  justify-self: end;
  color: #ffffff;
  background: var(--chatbot-saas-primary-color);
  border-bottom-right-radius: 6px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.chatbot-saas-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chatbot-saas-input {
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  font-size: 14px;
  color: var(--chatbot-saas-input-text);
  background: var(--chatbot-saas-input-bg);
  border: 1px solid var(--chatbot-saas-input-border);
  border-radius: 999px;
  outline: 0;
}

.chatbot-saas-input:focus {
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.18);
}

.chatbot-saas-submit {
  min-height: 40px;
  padding: 10px 14px;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  background: var(--chatbot-saas-primary-color);
  border: 0;
  border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
  .chatbot-saas-panel,
  .chatbot-saas-header,
  .chatbot-saas-header-title,
  .chatbot-saas-body,
  .chatbot-saas-body-open {
    transition: none;
  }
}

@media (max-width: 420px) {
  #chatbot-saas-widget {
    bottom: 12px;
  }

  .chatbot-saas-position-bottom-right {
    right: 12px;
  }

  .chatbot-saas-position-bottom-left {
    left: 12px;
  }

  .chatbot-saas-panel-open {
    width: calc(100vw - 24px);
    max-width: none;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
