#clou-chatbot-root {
  --clou-accent: #111827;
  --clou-background: #ffffff;
  --clou-text: #111827;
  --clou-muted: rgba(17, 24, 39, 0.62);
  --clou-launcher-bg: var(--clou-accent);
  --clou-launcher-text: #ffffff;
  --clou-launcher-size: 56px;
  --clou-launcher-offset-x: 20px;
  --clou-launcher-offset-y: 20px;
  --clou-radius: 8px;
  --clou-font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --clou-border: color-mix(in srgb, var(--clou-text) 12%, transparent);
  --clou-surface: color-mix(in srgb, var(--clou-background) 92%, #fff);
  --clou-surface-raised: color-mix(in srgb, var(--clou-background) 84%, #fff);
  --clou-accent-soft: color-mix(in srgb, var(--clou-accent) 10%, transparent);
  --clou-shadow: 0 24px 70px rgba(15, 23, 42, 0.2);
  position: fixed;
  right: var(--clou-launcher-offset-x);
  bottom: var(--clou-launcher-offset-y);
  z-index: 999999;
  font-family: var(--clou-font-family);
  color: var(--clou-text);
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

#clou-chatbot-root[data-position="bottom-left"],
#clou-chatbot-root[data-position="left"] {
  right: auto;
  left: var(--clou-launcher-offset-x);
  align-items: flex-start;
}

#clou-chatbot-root[data-position="top-right"] {
  top: var(--clou-launcher-offset-y);
  right: var(--clou-launcher-offset-x);
  bottom: auto;
  flex-direction: column-reverse;
}

#clou-chatbot-root[data-position="top-left"] {
  top: var(--clou-launcher-offset-y);
  left: var(--clou-launcher-offset-x);
  right: auto;
  bottom: auto;
  align-items: flex-start;
  flex-direction: column-reverse;
}

#clou-chatbot-root[data-position="bottom-center"] {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  align-items: center;
}

.clou-chatbot-shortcode-button {
  --clou-shortcode-accent: var(--clou-accent, #111827);
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--clou-shortcode-accent) 18%, transparent);
  border-radius: 999px;
  background: var(--clou-shortcode-accent);
  color: #fff;
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: 800 14px/1.1 var(--clou-font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.clou-chatbot-shortcode-button::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #37e6b0;
  box-shadow: 0 0 0 5px rgba(55, 230, 176, 0.14);
}

.clou-chatbot-shortcode-button:hover,
.clou-chatbot-shortcode-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.24);
  filter: brightness(1.02);
}

.clou-chatbot-contact-form {
  --clou-form-accent: var(--clou-accent, #111827);
  width: min(100%, 780px);
  padding: 24px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  color: #111827;
  font-family: var(--clou-font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.clou-chatbot-contact-head {
  margin-bottom: 20px;
  display: grid;
  gap: 7px;
}

.clou-chatbot-contact-head strong {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: 0;
}

.clou-chatbot-contact-head span {
  max-width: 62ch;
  color: rgba(17, 24, 39, 0.66);
  font-size: 15px;
  line-height: 1.55;
}

.clou-chatbot-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.clou-chatbot-contact-form label {
  display: grid;
  gap: 7px;
  margin: 0;
  color: #111827;
  font-weight: 750;
  font-size: 13px;
}

.clou-chatbot-contact-form input,
.clou-chatbot-contact-form textarea {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: #111827;
  padding: 13px 14px;
  font: 500 15px/1.4 var(--clou-font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.clou-chatbot-contact-form textarea {
  resize: vertical;
  min-height: 132px;
}

.clou-chatbot-contact-form input:focus,
.clou-chatbot-contact-form textarea:focus {
  border-color: color-mix(in srgb, var(--clou-form-accent) 44%, transparent);
  background: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--clou-form-accent) 10%, transparent);
}

.clou-chatbot-contact-message {
  margin-top: 14px !important;
}

.clou-chatbot-contact-actions {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.clou-chatbot-contact-actions button {
  appearance: none;
  border: 0;
  border-radius: 8px;
  background: var(--clou-form-accent);
  color: #fff;
  min-height: 46px;
  padding: 0 18px;
  font: 850 14px/1 var(--clou-font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

.clou-chatbot-contact-actions button:disabled {
  cursor: wait;
  opacity: 0.66;
}

.clou-chatbot-contact-actions em {
  min-width: 0;
  color: rgba(17, 24, 39, 0.64);
  font-style: normal;
  font-size: 14px;
  line-height: 1.45;
}

.clou-chatbot-contact-actions em[data-type="success"] {
  color: #047857;
}

.clou-chatbot-contact-actions em[data-type="error"] {
  color: #b42318;
}

.clou-chatbot-contact-followup {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 16px 36px rgba(15, 23, 42, 0.08);
}

.clou-contact-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
}

.clou-contact-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--clou-form-accent), #37e6b0);
  transition: width 240ms ease;
}

.clou-contact-progress.is-complete i {
  background: linear-gradient(90deg, #059669, #37e6b0);
}

.clou-contact-step {
  margin-top: 13px;
  display: grid;
  gap: 6px;
}

.clou-contact-step span {
  color: rgba(17, 24, 39, 0.54);
  font-size: 12px;
  font-weight: 800;
}

.clou-contact-step strong,
.clou-contact-done strong {
  color: #111827;
  font-size: 16px;
  line-height: 1.35;
}

.clou-contact-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.clou-contact-tags span {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: color-mix(in srgb, var(--clou-form-accent) 7%, #fff);
  color: color-mix(in srgb, var(--clou-form-accent) 72%, #111827);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 800;
}

.clou-contact-choices {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.clou-contact-choices button,
.clou-contact-answer button {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #fff;
  color: #111827;
  min-height: 40px;
  padding: 0 13px;
  font: 800 13px/1 var(--clou-font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.clou-contact-choices button:hover,
.clou-contact-answer button:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--clou-form-accent) 24%, transparent);
}

.clou-contact-answer {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.clou-contact-answer input {
  min-height: 42px;
}

.clou-contact-answer button {
  background: var(--clou-form-accent);
  color: #fff;
}

.clou-contact-done {
  margin-top: 13px;
  display: grid;
  gap: 8px;
}

.clou-contact-done p {
  margin: 0;
  color: rgba(17, 24, 39, 0.66);
  font-size: 14px;
  line-height: 1.45;
}

.clou-chatbot-launcher {
  position: relative;
  min-width: var(--clou-launcher-size);
  width: auto;
  height: var(--clou-launcher-size);
  padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--clou-launcher-text) 22%, transparent);
  border-radius: 999px;
  background: var(--clou-launcher-bg);
  color: var(--clou-launcher-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, filter 180ms ease;
  animation: clou-launcher-in 260ms ease-out both, clou-launcher-float 4200ms ease-in-out 900ms infinite;
}

.clou-chatbot-launcher::marker {
  display: none;
}

.clou-launcher-badge {
  position: absolute;
  right: -2px;
  top: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border: 2px solid var(--clou-background);
  border-radius: 999px;
  background: #20c997;
  color: #042f2e;
  display: inline-grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.clou-launcher-spark {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.clou-launcher-label {
  max-width: 122px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.clou-launcher-wordmark {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

.clou-chatbot-launcher:not(.is-open)::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 2px solid color-mix(in srgb, var(--clou-accent) 36%, transparent);
  border-radius: 50%;
  animation: clou-launcher-pulse 2200ms ease-out 1200ms infinite;
}

.clou-chatbot-launcher:not(.is-open)::after {
  content: attr(data-nudge);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  width: max-content;
  max-width: 210px;
  padding: 8px 10px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  background: var(--clou-background);
  color: var(--clou-text);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  font-size: 13px;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translate(8px, -50%);
  animation: clou-nudge-in 6200ms ease-in-out 2200ms infinite;
}

#clou-chatbot-root[data-position="bottom-left"] .clou-chatbot-launcher:not(.is-open)::after,
#clou-chatbot-root[data-position="top-left"] .clou-chatbot-launcher:not(.is-open)::after,
#clou-chatbot-root[data-position="left"] .clou-chatbot-launcher:not(.is-open)::after {
  right: auto;
  left: calc(100% + 10px);
  transform: translate(-8px, -50%);
}

#clou-chatbot-root[data-position="bottom-center"] .clou-chatbot-launcher:not(.is-open)::after {
  right: auto;
  left: 50%;
  top: auto;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
}

.clou-chatbot-launcher:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.28);
  filter: saturate(1.08);
}

.clou-chatbot-launcher:active {
  transform: translateY(0) scale(0.97);
}

.clou-chatbot-launcher.is-open {
  animation: clou-launcher-in 180ms ease-out both;
}

.clou-chatbot-launcher.has-handoff {
  animation: clou-launcher-in 220ms ease-out both, clou-launcher-attention 1600ms ease-in-out 3;
}

.clou-chatbot-launcher.has-handoff::before {
  inset: -10px;
  border-color: color-mix(in srgb, var(--clou-accent) 55%, transparent);
  animation: clou-launcher-pulse 1500ms ease-out infinite;
}

.clou-chatbot-launcher .fa-solid,
.clou-chatbot-header .fa-solid,
.clou-chatbot-form .fa-solid {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  font-size: 20px;
}

.clou-fa-icon {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  flex: 0 0 auto;
  fill: currentColor;
  vertical-align: -0.16em;
  pointer-events: none;
}

.clou-chatbot-launcher .clou-fa-icon,
.clou-chatbot-header .clou-fa-icon,
.clou-chatbot-form .clou-fa-icon {
  width: 22px;
  height: 22px;
}

.clou-chatbot-panel {
  position: relative;
  width: min(430px, calc(100vw - 32px));
  height: min(680px, calc(100vh - 104px));
  margin-bottom: 14px;
  background: var(--clou-surface);
  border: 1px solid var(--clou-border);
  border-radius: var(--clou-radius);
  box-shadow: var(--clou-shadow);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  animation: clou-panel-in 220ms ease-out both;
  transform-origin: bottom right;
}

.clou-chatbot-panel.is-fullscreen {
  position: fixed;
  inset: 24px;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  border-radius: min(var(--clou-radius), 24px);
  transform-origin: center;
}

.clou-chatbot-panel.is-stable {
  animation: none;
}

.clou-chatbot-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--clou-accent);
  z-index: 2;
}

.clou-chatbot-header {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 18px 0;
  border-bottom: 1px solid var(--clou-border);
  background: color-mix(in srgb, var(--clou-background) 88%, #fff);
  backdrop-filter: blur(14px);
  position: relative;
  z-index: 1;
}

.clou-chatbot-title {
  display: grid;
  gap: 4px;
}

.clou-chatbot-header strong {
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0;
}

.clou-chatbot-title span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--clou-muted);
  font-size: 12px;
  line-height: 1;
}

.clou-chatbot-title span b {
  font: inherit;
  font-weight: 500;
}

.clou-chatbot-title i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #20c997;
  box-shadow: 0 0 0 4px rgba(32, 201, 151, 0.12);
  animation: clou-status-pulse 1800ms ease-in-out infinite;
}

.clou-chatbot-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.clou-chatbot-language {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
  border: 1px solid color-mix(in srgb, var(--clou-text) 10%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--clou-background) 72%, transparent);
  color: var(--clou-muted);
}

.clou-chatbot-language span {
  display: inline-grid;
  place-items: center;
}

.clou-chatbot-language .clou-fa-icon {
  width: 14px;
  height: 14px;
}

.clou-chatbot-language select {
  width: 48px;
  min-height: 28px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--clou-text);
  font: 800 11px/1 var(--clou-font-family);
  cursor: pointer;
  outline: none;
  appearance: auto;
}

.clou-chatbot-header button {
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  background: color-mix(in srgb, var(--clou-background) 62%, transparent);
  color: currentColor;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 8px;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.clou-chatbot-header button span {
  display: none;
}

.clou-chatbot-header .clou-chatbot-fullscreen {
  width: auto;
  min-width: 42px;
  padding: 0 10px;
  gap: 7px;
  border-color: color-mix(in srgb, var(--clou-text) 9%, transparent);
  background: color-mix(in srgb, var(--clou-background) 72%, #fff);
  color: var(--clou-text);
}

.clou-chatbot-header .clou-chatbot-fullscreen span {
  display: inline;
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0;
}

.clou-chatbot-header .clou-chatbot-fullscreen .clou-fa-icon {
  width: 15px;
  height: 15px;
}

.clou-chatbot-header button:hover {
  background: var(--clou-accent-soft);
  border-color: color-mix(in srgb, var(--clou-accent) 18%, transparent);
  transform: scale(1.04);
}

.clou-chatbot-reset {
  color: var(--clou-muted);
}

.clou-chatbot-messages {
  padding: 18px 18px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: auto;
  overflow-anchor: none;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--clou-background) 82%, #fff), var(--clou-background));
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--clou-accent) 34%, transparent) transparent;
}

.clou-chatbot-messages::-webkit-scrollbar {
  width: 9px;
}

.clou-chatbot-messages::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: color-mix(in srgb, var(--clou-accent) 36%, transparent);
  background-clip: padding-box;
}

.clou-chatbot-marker {
  align-self: center;
  padding: 4px 9px;
  border: 1px solid var(--clou-border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--clou-background) 78%, #fff);
  color: var(--clou-muted);
  font-size: 11px;
  line-height: 1;
  animation: clou-message-in 180ms ease-out both;
}

.clou-chatbot-marker.is-settled {
  animation: none;
}

.clou-chatbot-starters,
.clou-chatbot-smart-replies,
.clou-chatbot-action-card,
.clou-chatbot-qa-card {
  overflow-anchor: none;
}

.clou-chatbot-message {
  position: relative;
  max-width: 86%;
  padding: 12px 14px;
  border: 1px solid var(--clou-border);
  border-radius: calc(var(--clou-radius) + 4px);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  animation: clou-message-in 200ms ease-out both;
  overflow-anchor: none;
}

.clou-chatbot-message.is-settled {
  animation: none;
}

.clou-chatbot-message p {
  margin: 0 0 10px;
}

.clou-chatbot-message p:last-child,
.clou-chatbot-message ul:last-child,
.clou-chatbot-message ol:last-child {
  margin-bottom: 0;
}

.clou-chatbot-message ul,
.clou-chatbot-message ol {
  margin: 8px 0 10px;
  padding-left: 18px;
}

.clou-chatbot-message li {
  margin: 5px 0;
  padding-left: 2px;
}

.clou-chatbot-message strong {
  font-weight: 700;
}

.clou-chatbot-message code {
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(17, 24, 39, 0.08);
  font-size: 0.92em;
}

.clou-chatbot-message a {
  color: inherit;
  text-decoration: underline;
}

.clou-chatbot-message-user {
  align-self: flex-end;
  background: var(--clou-accent);
  color: var(--clou-launcher-text);
  border-color: var(--clou-accent);
  border-bottom-right-radius: 5px;
  box-shadow: 0 12px 26px color-mix(in srgb, var(--clou-accent) 24%, transparent);
}

.clou-chatbot-message-assistant {
  align-self: flex-start;
  background: color-mix(in srgb, var(--clou-background) 88%, #fff);
  border-bottom-left-radius: 5px;
}

.clou-chatbot-message-assistant::before {
  content: "";
  position: absolute;
  left: -6px;
  bottom: 10px;
  width: 10px;
  height: 10px;
  border-left: 1px solid var(--clou-border);
  border-bottom: 1px solid var(--clou-border);
  background: inherit;
  transform: rotate(45deg);
}

.clou-chatbot-message-user::before {
  content: "";
  position: absolute;
  right: -6px;
  bottom: 10px;
  width: 10px;
  height: 10px;
  background: var(--clou-accent);
  transform: rotate(45deg);
}

.clou-chatbot-typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 54px;
}

.clou-chatbot-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.42);
  animation: clou-typing 900ms infinite ease-in-out;
}

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

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

.clou-chatbot-starters,
.clou-chatbot-smart-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  animation: clou-message-in 180ms ease-out both;
}

.clou-chatbot-starters {
  align-self: stretch;
}

.clou-chatbot-flow {
  align-self: stretch;
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 2px 4px 0;
  padding: 4px 2px 6px;
  animation: clou-message-in 180ms ease-out both;
}

.clou-chatbot-flow span {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding: 18px 3px 0;
  border: 0;
  background: transparent;
  color: var(--clou-muted);
  font-size: 10px;
  line-height: 1.1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clou-chatbot-flow span::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.18);
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px var(--clou-background);
  z-index: 1;
}

.clou-chatbot-flow span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 7px;
  left: calc(50% + 7px);
  right: calc(-50% + 7px);
  height: 2px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.12);
}

.clou-chatbot-flow span.is-done {
  color: var(--clou-text);
}

.clou-chatbot-flow span.is-done::before,
.clou-chatbot-flow span.is-done:not(:last-child)::after {
  background: color-mix(in srgb, var(--clou-accent) 72%, #fff);
}

.clou-chatbot-flow span.is-active {
  color: var(--clou-text);
  font-weight: 700;
}

.clou-chatbot-flow span.is-active::before {
  background: var(--clou-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--clou-accent) 14%, transparent);
}

.clou-chatbot-action-card {
  position: relative;
  align-self: stretch;
  display: grid;
  gap: 9px;
  padding: 14px 14px 14px 46px;
  border: 1px solid color-mix(in srgb, var(--clou-accent) 18%, transparent);
  border-radius: calc(var(--clou-radius) + 4px);
  background: color-mix(in srgb, var(--clou-accent) 7%, var(--clou-background));
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  animation: clou-message-in 180ms ease-out both;
}

.clou-chatbot-action-card.is-settled {
  animation: none;
}

.clou-chatbot-action-card::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 15px;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: var(--clou-accent);
  box-shadow: inset 0 0 0 6px color-mix(in srgb, var(--clou-launcher-text) 90%, transparent);
}

.clou-chatbot-action-card span {
  color: var(--clou-muted);
  font-size: 12px;
}

.clou-chatbot-action-card strong {
  font-size: 14px;
}

.clou-chatbot-action-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.clou-chatbot-action-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.clou-chatbot-action-card button .fa-solid {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  font-size: 13px;
}

.clou-chatbot-action-primary {
  border: 0;
  background: var(--clou-accent);
  color: var(--clou-launcher-text);
}

.clou-chatbot-action-secondary {
  border: 1px solid rgba(17, 24, 39, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: var(--clou-text);
}

.clou-chatbot-action-card button:hover,
.clou-chatbot-action-card button:focus {
  outline: none;
  transform: translateY(-1px);
}

.clou-chatbot-products-card {
  align-self: stretch;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--clou-accent) 16%, var(--clou-border));
  border-radius: calc(var(--clou-radius) + 4px);
  background: color-mix(in srgb, var(--clou-background) 92%, #fff);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  animation: clou-message-in 180ms ease-out both;
  overflow-anchor: none;
}

.clou-chatbot-products-card.is-settled {
  animation: none;
}

.clou-chatbot-products-card > span {
  color: var(--clou-muted);
  font-size: 12px;
}

.clou-chatbot-products-card > strong {
  font-size: 14px;
}

.clou-chatbot-products-list {
  display: grid;
  gap: 8px;
}

.clou-chatbot-product {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--clou-border);
  border-radius: 9px;
  background: color-mix(in srgb, var(--clou-background) 88%, #fff);
  color: var(--clou-text);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.clou-chatbot-product-image {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: color-mix(in srgb, var(--clou-accent) 9%, #fff);
  border: 1px solid color-mix(in srgb, var(--clou-accent) 12%, transparent);
}

.clou-chatbot-product-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.clou-chatbot-product-image.is-empty {
  color: var(--clou-accent);
}

.clou-chatbot-product-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.clou-chatbot-product:hover,
.clou-chatbot-product:focus {
  outline: none;
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--clou-accent) 34%, var(--clou-border));
}

.clou-chatbot-product b {
  font-size: 13px;
  line-height: 1.25;
}

.clou-chatbot-product small {
  color: var(--clou-muted);
  font-size: 12px;
}

.clou-chatbot-product em {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--clou-accent);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.clou-chatbot-product .fa-solid {
  width: 14px;
  height: 14px;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
}

.clou-chatbot-review {
  align-self: stretch;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--clou-border);
  border-radius: calc(var(--clou-radius) + 4px);
  background: color-mix(in srgb, var(--clou-background) 88%, #fff);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  animation: clou-message-in 180ms ease-out both;
}

.clou-chatbot-qa-card {
  display: grid;
  gap: 12px;
  max-width: 94%;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--clou-accent) 16%, var(--clou-border));
  border-radius: calc(var(--clou-radius) + 4px);
  background: color-mix(in srgb, var(--clou-background) 90%, #fff);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
  animation: clou-message-in 180ms ease-out both;
}

.clou-chatbot-qa-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.clou-chatbot-qa-head strong {
  font-size: 14px;
}

.clou-chatbot-qa-head button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--clou-border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--clou-background) 86%, #fff);
  color: var(--clou-text);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.clou-chatbot-qa-head .fa-solid {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  font-size: 16px;
}

.clou-chatbot-qa-list {
  display: grid;
  gap: 8px;
}

.clou-chatbot-qa-list details {
  border: 1px solid var(--clou-border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--clou-background) 82%, #fff);
  overflow: hidden;
}

.clou-chatbot-qa-list summary {
  cursor: pointer;
  padding: 10px 11px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.35;
}

.clou-chatbot-qa-list p {
  margin: 0;
  padding: 0 11px 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--clou-text);
}

.clou-chatbot-qa-list a {
  display: inline-flex;
  margin: 0 11px 11px;
  color: var(--clou-accent);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.clou-chatbot-review strong {
  font-size: 14px;
}

.clou-chatbot-review span {
  color: var(--clou-muted);
  font-size: 13px;
}

.clou-chatbot-review div {
  display: flex;
  gap: 6px;
}

.clou-chatbot-review div button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--clou-border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--clou-background) 82%, #fff);
  color: #f59e0b;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.clou-chatbot-review div button:hover,
.clou-chatbot-review div button:focus {
  outline: none;
  transform: translateY(-1px) scale(1.04);
  border-color: #f59e0b;
  background: #fffbeb;
}

.clou-chatbot-skip-review {
  justify-self: start;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 8px;
  background: transparent;
  color: var(--clou-muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

.clou-chatbot-skip-review:hover,
.clou-chatbot-skip-review:focus {
  outline: none;
  border-color: rgba(17, 24, 39, 0.24);
  color: var(--clou-text);
}

.clou-chatbot-starters button,
.clou-chatbot-smart-replies button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 31px 8px 11px;
  border: 1px solid var(--clou-border);
  border-radius: calc(var(--clou-radius) + 2px);
  background: color-mix(in srgb, var(--clou-background) 80%, #fff);
  color: var(--clou-text);
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.clou-chatbot-starters button::after,
.clou-chatbot-smart-replies button::after {
  content: ">";
  position: absolute;
  right: 11px;
  top: 50%;
  color: var(--clou-muted);
  transform: translateY(-50%);
  transition: transform 160ms ease, color 160ms ease;
}

.clou-chatbot-starters button:hover,
.clou-chatbot-smart-replies button:hover {
  transform: translateY(-1px);
  border-color: var(--clou-accent);
  background: color-mix(in srgb, var(--clou-background) 92%, #fff);
}

.clou-chatbot-starters button:hover::after,
.clou-chatbot-smart-replies button:hover::after {
  color: var(--clou-accent);
  transform: translate(2px, -50%);
}

.clou-chatbot-form {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--clou-border);
  background: color-mix(in srgb, var(--clou-background) 86%, #fff);
  backdrop-filter: blur(14px);
}

.clou-chatbot-composer {
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--clou-text) 14%, transparent);
  border-radius: calc(var(--clou-radius) + 2px);
  background: color-mix(in srgb, var(--clou-background) 86%, #fff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52), 0 8px 20px rgba(15, 23, 42, 0.05);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.clou-chatbot-composer:focus-within {
  border-color: color-mix(in srgb, var(--clou-accent) 55%, #fff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--clou-accent) 14%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.52);
  background: color-mix(in srgb, var(--clou-background) 94%, #fff);
}

.clou-chatbot-form textarea {
  width: 100%;
  min-height: 44px;
  max-height: 120px;
  resize: vertical;
  padding: 11px 12px;
  border: 0;
  border-radius: inherit;
  font: inherit;
  color: var(--clou-text);
  background: transparent;
  box-shadow: none;
}

.clou-chatbot-form textarea:focus {
  outline: none;
}

.clou-chatbot-form button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: calc(var(--clou-radius) + 2px);
  background: var(--clou-accent);
  color: var(--clou-launcher-text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
}

.clou-chatbot-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.22);
}

.clou-chatbot-form textarea:disabled,
.clou-chatbot-form button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.clou-chatbot-credit {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  margin: -7px 14px 9px;
  opacity: 0.6;
  transition: opacity 160ms ease, transform 160ms ease;
}

.clou-chatbot-credit:hover,
.clou-chatbot-credit:focus {
  opacity: 0.92;
  transform: translateY(-1px);
}

.clou-chatbot-credit img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

@keyframes clou-panel-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes clou-message-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes clou-launcher-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes clou-launcher-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes clou-launcher-pulse {
  0% {
    opacity: 0.5;
    transform: scale(0.92);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.22);
  }
}

@keyframes clou-launcher-attention {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  45% {
    transform: translateY(-3px) scale(1.04);
  }
}

@keyframes clou-nudge-in {
  0%,
  18%,
  100% {
    opacity: 0;
  }
  24%,
  56% {
    opacity: 1;
    transform: translate(0, -50%);
  }
}

@keyframes clou-typing {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@keyframes clou-status-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.72);
    opacity: 0.62;
  }
}

@media (prefers-reduced-motion: reduce) {
  .clou-chatbot-panel,
  .clou-chatbot-message,
  .clou-chatbot-marker,
  .clou-chatbot-starters,
  .clou-chatbot-smart-replies,
  .clou-chatbot-flow,
  .clou-chatbot-action-card,
  .clou-chatbot-products-card,
  .clou-chatbot-review,
  .clou-chatbot-qa-card,
  .clou-chatbot-launcher,
  .clou-chatbot-title i,
  .clou-chatbot-typing span {
    animation: none;
  }

  .clou-chatbot-launcher,
  .clou-chatbot-header button,
  .clou-chatbot-form button,
  .clou-chatbot-starters button,
  .clou-chatbot-smart-replies button,
  .clou-chatbot-composer {
    transition: none;
  }
}

@media (max-width: 520px) {
  #clou-chatbot-root,
  #clou-chatbot-root[data-position="left"],
  #clou-chatbot-root[data-position="bottom-left"],
  #clou-chatbot-root[data-position="bottom-right"],
  #clou-chatbot-root[data-position="bottom-center"],
  #clou-chatbot-root[data-position="top-left"],
  #clou-chatbot-root[data-position="top-right"] {
    top: auto;
    left: 12px;
    right: 12px;
    bottom: 12px;
    transform: none;
    flex-direction: column;
    align-items: flex-end;
  }

  #clou-chatbot-root[data-position="left"],
  #clou-chatbot-root[data-position="bottom-left"],
  #clou-chatbot-root[data-position="top-left"] {
    align-items: flex-start;
  }

  #clou-chatbot-root[data-position="bottom-center"] {
    align-items: center;
  }

  .clou-chatbot-panel {
    width: 100%;
    height: min(620px, calc(100vh - 92px));
  }

  .clou-chatbot-header {
    padding-inline: 14px;
  }

  .clou-chatbot-actions {
    gap: 4px;
  }

  .clou-chatbot-header .clou-chatbot-fullscreen {
    width: 40px;
    min-width: 40px;
    padding: 0;
  }

  .clou-chatbot-header .clou-chatbot-fullscreen span {
    display: none;
  }

  .clou-chatbot-panel.is-fullscreen {
    inset: 0;
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }

  .clou-chatbot-launcher {
    margin-left: 0;
  }

  .clou-chatbot-launcher:not(.is-open)::after {
    display: none;
  }

  .clou-chatbot-launcher.has-handoff:not(.is-open)::after {
    display: block;
    right: 0;
    left: auto;
    top: auto;
    bottom: calc(100% + 10px);
    max-width: min(250px, calc(100vw - 32px));
    transform: translateY(4px);
    animation: clou-nudge-in 5200ms ease-in-out 300ms 2;
  }

  .clou-chatbot-message {
    max-width: 90%;
  }

  .clou-chatbot-starters,
  .clou-chatbot-smart-replies {
    gap: 7px;
  }

  .clou-chatbot-contact-form {
    padding: 18px;
  }

  .clou-chatbot-contact-grid {
    grid-template-columns: 1fr;
  }

  .clou-chatbot-contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .clou-chatbot-contact-actions button {
    width: 100%;
  }

  .clou-contact-answer {
    grid-template-columns: 1fr;
  }
}
