@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;700&family=Playpen+Sans:wght@700&display=swap');

/* ============================================================
    Illumia Chat — design tokens (override these in your app)
   ============================================================ */
:root {
  /* Typography */
  --illumia-font-family: 'Nunito Sans', system-ui, -apple-system, sans-serif;
  --illumia-font-size: 14px;
  --illumia-line-height: 1.5;

  /* Brand color — used for header, send button, user bubble */
  --illumia-primary: #0084ff;
  --illumia-primary-text: #ffffff;
  --illumia-main-red: #e5003f;

  /* User message bubble */
  --illumia-user-bg: var(--illumia-primary);
  --illumia-user-color: var(--illumia-primary-text);
  --illumia-user-radius: 8px 0 8px 8px;
  /* 18px 18px 4px 18px */

  /* Bot / agent message bubble */
  --illumia-bot-bg: #f0f0f0;
  --illumia-bot-color: #1a1a1a;
  --illumia-bot-radius: 18px 18px 18px 4px;

  /* Quick Reply buttons */
  --illumia-qr-bg: #ffffff;
  --illumia-qr-radius: 16px;
  --illumia-qr-text: var(--illumia-secondary-main-blue);
  --illumia-qr-border-color: #99aaff;
  --illumia-qr-hover-bg: #b8c4ff;
  --illumia-qr-hover-bg-desktop: #e9ecfd;
  --illumia-qr-hover-border-desktop: #526fff;

  /* Chat window */
  --illumia-window-width: 392px;
  --illumia-window-height: 600px;
  --illumia-window-radius: 16px;
  --illumia-window-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  --illumia-window-bg: #ffffff;

  /* Toggle offset */
  --illumia-toggle-offset-right: 48px;
  --illumia-toggle-offset-bottom: 48px;

  /* Header */
  --illumia-header-color: #ffffff;
  --illumia-header-height: 64px;
  --illumia-header-bg:
    linear-gradient(180deg, rgba(229, 0, 63, 0) 0%, rgba(131, 0, 41, 0.7) 100%),
    linear-gradient(0deg, #e5003f, #e5003f);

  /* Neutral palette */
  --illumia-neutral-light-grey: #fafafa;
  --illumia-neutral-medium-grey: #8c959f;
  --illumia-neutral-text-secondary: #4d5567;
  /* ? neutral-text-secondar */
  --illumia-neutral-main-black: #0a0a0a;
  --illumia-neutral-main-grey: #636b7c;
  --illumia-neutral-subtle-grey: #ededed;
  --illumia-neutral-dark-grey: #4d5567;
  --illumia-neutral-deep-grey: #4d5567;
  --illumia-neutral-pastel-grey: #ccced4;
  --illumia-neutral-border: var(--illumia-neutral-subtle-grey);
  --illumia-orange-light-orange: #ffefd4;

  /* Background palette */
  --illumia-bg-subtle-blue: #e9ecfd;
  --illumia-bg-info: var(--illumia-orange-light-orange);

  /* Secondary palette */
  --illumia-secondary-main-blue: #1428aa;
  --illumia-bg-white: #ffffff;

  /* Input bar */
  --illumia-input-bg: #ffffff;
  --illumia-input-border: 1px solid #e0e0e0;
  --illumia-input-radius: 22px;
  --illumia-input-color: var(--illumia-neutral-main-black);

  /* Error / validation */
  --illumia-error-color: #bb003a;

  /* Toggle button — circle */
  --illumia-toggle-size: 112px;
  --illumia-toggle-gradient-start: var(--illumia-main-red);
  --illumia-toggle-gradient-end: var(--illumia-main-red);
  --illumia-toggle-gradient-overlay: rgba(131, 0, 41, 0.8);
  --illumia-toggle-shadow: 0px 4px 26.67px 0px rgba(0, 0, 0, 0.06);
  --illumia-toggle-color: #ffffff;
  --illumia-toggle-bg:
    linear-gradient(90deg, var(--illumia-toggle-gradient-overlay) 20.46%, rgba(229, 0, 63, 0) 100%),
    linear-gradient(0deg, var(--illumia-toggle-gradient-start), var(--illumia-toggle-gradient-end));

  /* Toggle button — pill (expanded with label) */
  --illumia-toggle-label-gap: 8px;
  --illumia-toggle-padding-x: 8px;
  --illumia-toggle-padding-y: 8.5px;
  --illumia-toggle-title-size: 20px;
  --illumia-toggle-title-weight: 700;
  --illumia-toggle-subtitle-size: 16px;
  --illumia-toggle-subtitle-weight: 400;

  /* Badge */
  --illumia-badge-size: 40px;
  --illumia-badge-bg: #830029;
  --illumia-badge-color: #ffffff;
  --illumia-badge-border: 1px solid #ffffff;
  --illumia-badge-font-size: 20px;
  --illumia-badge-font-family: 'Playpen Sans', var(--illumia-font-family);
  --illumia-badge-font-weight: 700;

  /* Typing indicator dots */
  --illumia-typing-color: #999999;
}

.illumia-widget ::selection {
  background: var(--illumia-primary);
  color: #ffffff;
}
/* ============================================================
    Tooltip pill — reusable via data-tooltip attribute.
    Position is computed by attachTooltip() in tooltip.ts,
    which writes --tip-top / --tip-left as inline style on the
    trigger so the fixed ::after escapes any overflow:hidden ancestor.
   ============================================================ */
[data-tooltip] {
  position: relative;
}

[data-tooltip].tooltip--active::after {
  content: attr(data-tooltip);
  position: fixed;
  top: var(--tip-top);
  left: var(--tip-left);
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--illumia-neutral-deep-grey);
  color: var(--illumia-bg-white);
  font-family: var(--illumia-font-family);
  font-weight: 400;
  font-size: 10px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 40px;
  pointer-events: none;
  z-index: 99999;
}
/* ============================================================
    Atom — icon button (reusable circular icon wrapper)
   ============================================================ */
.illumia-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  padding: 4px;
  background: var(--illumia-neutral-light-grey);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.illumia-icon-btn img,
.illumia-icon-btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* ============================================================
    Atom — text input with optional trailing icon
   ============================================================ */
.illumia-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.illumia-input {
  width: 100%;
  background: var(--illumia-input-bg);
  border: 1px solid var(--illumia-neutral-border);
  border-radius: 8px;
  padding: 8px 36px 8px 8px;
  font-size: 12px;
  font-family: var(--illumia-font-family);
  font-weight: 400;
  line-height: 1;
  color: var(--illumia-input-color);
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.illumia-input::placeholder {
  color: var(--illumia-neutral-medium-grey);
  font-weight: 400;
  font-size: 12px;
}

.illumia-input:focus {
  border-color: var(--illumia-secondary-main-blue);
}

.illumia-input:not(:focus) {
  color: var(--illumia-neutral-medium-grey);
}

.illumia-input:disabled {
  background: var(--illumia-neutral-subtle-grey);
  border-color: var(--illumia-neutral-medium-grey);
  cursor: not-allowed;
}

.illumia-input-wrap:has(.illumia-input:disabled) .illumia-input__send {
  color: var(--illumia-neutral-main-grey);
  cursor: not-allowed;
  pointer-events: none;
}

.illumia-input__send {
  position: absolute;
  right: 8px;
  width: 20px;
  height: 20px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--illumia-neutral-pastel-grey);
  transition: color 0.15s;
}

.illumia-input-wrap--has-text:focus-within .illumia-input__send {
  color: var(--illumia-secondary-main-blue);
}

.illumia-input__send:disabled {
  opacity: 0.4;
  cursor: default;
}

.illumia-input__send svg {
  width: 20px;
  height: 20px;
  display: block;
}
/* ============================================================
    Widget wrapper — positions the toggle + window bottom-right
   ============================================================ */
.illumia-widget {
  position: fixed;
  bottom: 40px;
  right: 20px;
  z-index: 9999;
  font-family: var(--illumia-font-family);
  font-size: var(--illumia-font-size);
  line-height: var(--illumia-line-height);
}

@media (min-width: 769px) {
  .illumia-widget {
    bottom: var(--illumia-toggle-offset-bottom);
    right: var(--illumia-toggle-offset-right);
  }
}

/* ============================================================
    Toggle button
   ============================================================ */

/* Wrapper: positions the circle + badge + optional label */
.illumia-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--illumia-toggle-label-gap);
  padding: var(--illumia-toggle-padding-y) var(--illumia-toggle-padding-x);
  border: none;
  background: transparent;
  cursor: pointer;
  margin-left: auto;
  transition: transform 0.2s ease;
}

.illumia-toggle:hover {
  transform: scale(1.04);
}

/* Circle with brand gradient */
.illumia-toggle__image {
  position: relative;
  width: var(--illumia-toggle-size);
  height: var(--illumia-toggle-size);
  border-radius: 50%;
  /* background: var(--illumia-toggle-bg); */
  /* box-shadow: var(--illumia-toggle-shadow); */
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.illumia-toggle__mia {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

/* Label block (title + subtitle) — only visible in expanded variant */
.illumia-toggle__label {
  display: flex;
  flex-direction: column;
  gap: 0;
  color: var(--illumia-toggle-color);
}

.illumia-toggle__title {
  font-family: var(--illumia-font-family);
  font-size: var(--illumia-toggle-title-size);
  font-weight: var(--illumia-toggle-title-weight);
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.illumia-toggle__subtitle {
  font-family: var(--illumia-font-family);
  font-size: var(--illumia-toggle-subtitle-size);
  font-weight: var(--illumia-toggle-subtitle-weight);
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

/* Expanded variant: pill background behind circle + label */
.illumia-toggle--expanded {
  background: var(--illumia-toggle-bg);
  border-radius: 32px;
  box-shadow: var(--illumia-toggle-shadow);
}

/* In expanded mode the inner circle has no separate shadow — it blends with the pill */
.illumia-toggle--expanded .illumia-toggle__image {
  box-shadow: none;
  background: transparent;
}
/* ============================================================
    Teaser bubble — speech bubble shown next to the toggle before
    the chat is opened. Positioned relative to .illumia-widget
    (which is already the fixed anchor for the toggle).
    See FEAT-029.
   ============================================================ */
.illumia-teaser {
  position: absolute;
  right: 0;
  bottom: calc(var(--illumia-toggle-size) + 24px);
  background: var(--illumia-toggle-gradient-start);
  color: var(--illumia-toggle-color);
  font-family: var(--illumia-font-family);
  font-weight: 700;
  width: auto;
  max-width: 160px;
  font-size: 16px;
  padding: 8px;
  border-radius: 8px;
  box-shadow: var(--illumia-window-shadow);
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

/*  Tail: a square rotated 45° with a rounded bottom-right corner (the point),
    clipped to a triangle via overflow on the wrapper. clip-path: polygon()
    can't have a border-radius, so we fake the curve with the square's own
    corner radius instead. */
.illumia-teaser::after {
  content: '';
  position: absolute;
  right: 40px;
  bottom: -6px;
  width: 16px;
  height: 16px;
  background: inherit;
  border-radius: 0 0 2.5px 0;
  transform: rotate(45deg);
  transform-origin: center;
}

.illumia-teaser--hidden {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

/* DEBUG — forces the teaser always visible, ignoring triggers/sessionStorage. */
/* .illumia-teaser--hidden {
  opacity: 1;
  transform: none;
  pointer-events: auto;
} */


.illumia-teaser__text {
  display: block;
  white-space: pre-line;
  text-align: left;
}

@media (min-width: 769px) {
  .illumia-teaser {
    padding: 8px 16px;
    width: 273px;
    max-width: none;
    font-size: 20px;
    right: calc(100% - 12px);
    bottom: 6px;
  }

  .illumia-teaser::after {
    right: -6px;
    top: 14px;
  }


}
/* ============================================================
    Chat window
   ============================================================ */

/* Mobile: full-screen overlay */
.illumia-window {
  position: fixed;
  inset: 0;
  background: var(--illumia-window-bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10000;
}

/* Desktop: always fixed, anchored bottom-right using the same offset tokens as the widget */
@media (min-width: 769px) {
  .illumia-window {
    inset: auto;
    bottom: var(--illumia-toggle-offset-bottom);
    right: var(--illumia-toggle-offset-right);
    width: var(--illumia-window-width);
    height: var(--illumia-window-height);
    border-radius: var(--illumia-window-radius);
    box-shadow: var(--illumia-window-shadow);
    transform-origin: bottom right;
  }

  /* Desktop expanded: fill viewport minus offset on each side */
  .illumia-window--expanded {
    top: var(--illumia-toggle-offset-bottom);
    left: var(--illumia-toggle-offset-right);
    bottom: var(--illumia-toggle-offset-bottom);
    right: var(--illumia-toggle-offset-right);
    width: auto;
    height: auto;
  }

  .illumia-window--opening {
    animation: illumia-open 0.2s ease;
  }
}

.illumia-chat-body {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.illumia-window--hidden {
  display: none;
}

/* ============================================================
    Edit mode (mobile): blur the conversation, keep the input bar
    and a copy of the edited message in focus.
   ============================================================ */
.illumia-window--editing .illumia-header,
.illumia-window--editing .illumia-messages {
  filter: blur(12px);
  pointer-events: none;
}

/* Copy of the message being edited, shown just above the input bar. */
.illumia-edit-preview {
  display: flex;
  justify-content: flex-end;
  padding: 8px 16px 0;
  flex-shrink: 0;
}

.illumia-edit-preview--hidden {
  display: none;
}

.illumia-edit-preview__bubble {
  max-width: 80%;
  background: var(--illumia-bg-subtle-blue);
  border-radius: var(--illumia-user-radius);
  box-shadow: 2px 2px 14px 0 rgba(0, 0, 0, 0.05);
  text-align: right;
}

@keyframes illumia-open {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


/* ============================================================
    Header
   ============================================================ */
.illumia-header {
  height: var(--illumia-header-height);
  background: var(--illumia-header-bg);
  color: var(--illumia-header-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 8px 12px 16px;
  gap: 8px;
  flex-shrink: 0;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .illumia-header__actions .illumia-icon-btn-action--expand {
    display: none;
  }
}

@media (min-width: 769px) {
  .illumia-header {
    border-radius: var(--illumia-window-radius) var(--illumia-window-radius) 0 0;
  }
}

/* Left: avatar + name */
.illumia-header__identity {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.illumia-header__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.illumia-header__name {
  font-family: var(--illumia-font-family);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  color: var(--illumia-header-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Right: action buttons row */
.illumia-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Connection status dot — hidden until a state modifier is applied */
.illumia-header__status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #aaaaaa;
  flex-shrink: 0;
  opacity: 0 !important;
  transition: background 0.3s ease, opacity 0.3s ease;
}

.illumia-header__status--connecting,
.illumia-header__status--connected,
.illumia-header__status--error {
  opacity: 1;
}

.illumia-header__status--connecting {
  background: #ffcc00;
}

.illumia-header__status--connected {
  background: #4cff91;
}

.illumia-header__status--error {
  background: #ff4d4d;
}
/* ============================================================
    Message list
   ============================================================ */
.illumia-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scroll-behavior: smooth;
}

.illumia-messages::-webkit-scrollbar {
  width: 4px;
}

.illumia-messages::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 2px;
}

/* ============================================================
    Message bubble (shared base — typography only)
   ============================================================ */
.illumia-bubble {
  padding: 8px;
  word-break: break-word;
  /* Preserve newlines and consecutive spaces in plain-text bubbles (user / info). */
  white-space: pre-wrap;
  font-family: var(--illumia-font-family);
  font-weight: 400;
  font-size: 14px;
  line-height: var(--illumia-line-height);
  letter-spacing: 0;
  color: var(--illumia-neutral-main-black);
}

/* A login link that has already been used (post-login): inert and greyed out. */
.illumia-login-link--disabled {
  color: var(--illumia-neutral-medium-grey);
  pointer-events: none;
  text-decoration: none;
  cursor: default;
}
/* ============================================================
    Quick Reply bar
   ============================================================ */
.illumia-quickreply {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 16px;
}

.illumia-quickreply__btn {
  background: var(--illumia-qr-bg);
  color: var(--illumia-qr-text);
  border: 1.5px solid var(--illumia-qr-border-color);
  border-radius: var(--illumia-qr-radius);
  padding: 6px 14px;
  font-size: var(--illumia-font-size);
  font-family: var(--illumia-font-family);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}

.illumia-quickreply__btn:hover {
  background: var(--illumia-qr-hover-bg);
  color: var(--illumia-qr-text);
  border-color: transparent;
}

.illumia-quickreply__btn:disabled {
  opacity: 0.45;
  cursor: default;
}

@media (min-width: 769px) {
  .illumia-quickreply__btn {
    font-size: 12px;
  }

  .illumia-quickreply__btn:hover {
    background: var(--illumia-qr-hover-bg-desktop);
    border-color: var(--illumia-qr-hover-border-desktop);
    color: var(--illumia-qr-text);
  }
}

/* ============================================================
    Input bar
   ============================================================ */
.illumia-inputbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 16px;
  flex-shrink: 0;
}

.illumia-inputbar .illumia-input {
  height: 36px;
}

/* Cancel-edit (X) button: same look as the attach button. Its inline SVG uses
   currentColor, so set color to match the attach icon (#8C959F). */
.illumia-inputbar__cancel-edit {
  color: var(--illumia-neutral-medium-grey);
}

/* Cancel-edit (X) button: shown only while editing a message via the input bar. */
.illumia-inputbar__cancel-edit--hidden {
  display: none;
}


/* ============================================================
    Badge — notification dot on the toggle circle
   ============================================================ */
.illumia-badge {
  position: absolute;
  top: -8%;
  right: 8%;
  /* width: var(--illumia-badge-size);
  height: var(--illumia-badge-size); */
  width: 42.95px;
  height: 40.13px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.illumia-badge__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.illumia-badge__label {
  position: relative;
  color: var(--illumia-badge-color);
  font-family: var(--illumia-badge-font-family);
  font-size: var(--illumia-badge-font-size);
  font-weight: var(--illumia-badge-font-weight);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: -3px;
}

.illumia-badge__label svg {
  width: 12px;
  height: 12px;
  fill: var(--illumia-badge-color);
  flex-shrink: 0;
}
.illumia-bot-bubble {
  display: flex;
  flex-direction: row;
  align-self: flex-start;
  align-items: flex-start;
  gap: 8px;
}

.illumia-bot-bubble__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
}

.illumia-bot-bubble__main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.illumia-bot-bubble__content {
  text-align: left;
  padding: 0;
}

.illumia-bot-bubble__content:has(p, ul, ol) {
  white-space: normal;
}

/* Normalize HTML tags sent by the bot (Genesys sends <p>, <ul>, <li>, <a>, <br>, etc.) */
.illumia-bot-bubble__content p {
  margin: 0 0 2px 0;
}

.illumia-bot-bubble__content p:last-child {
  margin-bottom: 0;
}

/* Genesys sends standalone <br> between block elements (e.g. <p>…</p><br><ul>…</ul>),
   which would render as a large blank gap. Hide them — paragraph margins already provide spacing. */
.illumia-bot-bubble__content br {
  display: none;
}

.illumia-bot-bubble__content ul,
.illumia-bot-bubble__content ol {
  margin: 0;
  padding-left: 16px;
}

.illumia-bot-bubble__content li {
  margin: 0;
}

.illumia-bot-bubble__content li:last-child {
  margin-bottom: 0;
}

.illumia-bot-bubble__content li p {
  display: inline;
}

.illumia-bot-bubble__content a {
  color: var(--illumia-primary);
  text-decoration: none;
}

.illumia-bot-bubble__content a:hover {
  text-decoration: underline;
}

/*  Login CTA — replaces the raw login-link <a> at render time (BUG-004).
    Not reusing .illumia-bot-bubble__content a above: that rule underlines only on hover,
    the CTA must be underlined in both default and hover state. display: flex (not inline-flex)
    so the CTA always starts on its own line below the preceding text.
    !important on color: .illumia-bot-bubble__content a (0,1,1) otherwise outranks
    .illumia-login-cta (0,1,0) and its blue wins over this red.
  */
.illumia-login-cta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  color: var(--illumia-main-red) !important;
  text-decoration: underline !important;
  font-weight: 700;
}

.illumia-login-cta:hover {
  color: var(--illumia-error-color) !important;
  text-decoration: underline;
}

.illumia-login-cta__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  line-height: 0;
}

/* Post-login: .illumia-login-link--disabled (added by ChatWidget.disableLoginLinks()) must win
   over the CTA's red/underline styling. */
.illumia-login-cta.illumia-login-link--disabled {
  color: var(--illumia-neutral-medium-grey);
  text-decoration: none;
}

.illumia-login-cta.illumia-login-link--disabled:hover {
  color: var(--illumia-neutral-medium-grey);
}

.illumia-bot-bubble__content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.illumia-bot-bubble__content code {
  font-family: ui-monospace, monospace;
  font-size: 0.875em;
  background: rgba(0, 0, 0, 0.07);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.illumia-bot-bubble__content pre {
  font-family: ui-monospace, monospace;
  font-size: 0.875em;
  background: rgba(0, 0, 0, 0.07);
  padding: 0.6em 0.8em;
  border-radius: 6px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0.25em 0;
}

.illumia-bot-bubble__footer {
  display: flex;
  align-items: center;
  /* gap: 4px; */
  font-family: var(--illumia-font-family);
  font-weight: 400;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--illumia-neutral-main-grey);
}

/* .illumia-bot-bubble__timestamp: no rules — typography is inherited from .illumia-bot-bubble__footer.
   The class is intentionally kept on the DOM node for future, timestamp-specific overrides. */

.illumia-bot-bubble__footer-sep {
  color: var(--illumia-neutral-pastel-grey);
  line-height: 1;
  user-select: none;
  padding-left: 8px;
  padding-right: 4px;
}

.illumia-bot-bubble__action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--illumia-neutral-main-grey);
  line-height: 0;
  transition: background 0.15s ease;
  z-index: 100;
}

.illumia-bot-bubble__action-btn svg {
  width: 20px;
  height: 20px;
}

.illumia-bot-bubble__action-btn:hover {
  background: var(--illumia-neutral-subtle-grey);
  z-index: 200;
}

/* ============================================================
    Attachment rendering (image + PDF)
   ============================================================ */
.illumia-attachment {
  display: block;
  margin-top: 6px;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  transition: opacity 0.15s ease;
}

.illumia-attachment--image:hover {
  opacity: 0.85;
}

.illumia-attachment__pdf-btn:hover {
  opacity: 0.85;
}

.illumia-attachment__image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.illumia-attachment--pdf {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
}

/* Override the generic content img rule — PDF icon has a fixed size, not full-width */
.illumia-attachment__pdf-icon {
  width: 64px;
  height: auto;
  max-width: 64px;
  border-radius: 0;
  flex-shrink: 0;
}

.illumia-attachment__pdf-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.illumia-attachment__pdf-btn,
.illumia-bot-bubble__content .illumia-attachment__pdf-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  background: none;
  border: none;
  padding: 0;
  color: var(--illumia-neutral-main-grey);
  text-decoration: none;
  line-height: 0;
  cursor: pointer;
}

@media (max-width: 768px) {
  .illumia-bot-bubble__action-btn:not(:first-of-type) {
    /* justify-content: left; */
    margin-left: -22px;
  }
}

@media (min-width: 769px) {
  .illumia-bot-bubble__action-btn {
    width: 24px;
    height: 24px;
  }

  .illumia-bot-bubble__action-btn svg {
    width: 15px;
    height: 15px;
  }
}
/* Context menu anchored to the user bubble, opened on long-press (mobile).
   Reuses .illumia-dropdown__menu / __item styling; only positioning differs. */
.illumia-bubble-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
}

/* Flipped above the bubble when there isn't enough room below (set in JS). */
.illumia-bubble-menu.illumia-bubble-menu--up {
  top: auto;
  bottom: calc(100% + 8px);
}

.illumia-btn {
  width: 100%;
  padding: 12px 24px;
  border-radius: 100px;
  font-family: var(--illumia-font-family);
  font-size: 16px;
  font-weight: 800;
  line-height: 24px;
  letter-spacing: 0.04em;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.15s ease;
  box-sizing: border-box;
}

.illumia-btn:hover {
  opacity: 0.85;
}

.illumia-btn--primary {
  background: var(--illumia-main-red);
  color: #ffffff;
  border: none;
}

.illumia-btn--secondary {
  background: #ffffff;
  color: var(--illumia-main-red);
  border: 2px solid var(--illumia-main-red);
}
.illumia-confirm-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: flex-end;
  z-index: 200;
}

.illumia-confirm-sheet {
  width: 100%;
  background: #ffffff;
  border-radius: 24px 24px 0 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}


.illumia-confirm-sheet__actions {
  margin-top: 32px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.illumia-contact-form {
  position: absolute;
  inset: 0;
  background: var(--illumia-window-bg);
  display: flex;
  flex-direction: column;
  padding: 32px 24px 24px;
  overflow-y: auto;
  z-index: 1;
}

.illumia-contact-form--hidden {
  display: none;
}

.illumia-contact-form__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.illumia-contact-form__avatar-wrap {
  display: none;
  width: var(--illumia-contact-avatar-size, 96px);
  height: var(--illumia-contact-avatar-size, 96px);
  border-radius: 50%;
  background: var(--illumia-neutral-light-grey);
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  align-self: center;
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.07),
    0 0 6px rgba(0, 0, 0, 0.05);
}

.illumia-contact-form__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.illumia-contact-form__title {
  font-family: var(--illumia-font-family);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--illumia-neutral-main-black);
  text-align: center;
  margin: 0 0 8px;
}

@media (max-width: 768px) {
  .illumia-contact-form {
    padding-top: 90px;
  }

  .illumia-contact-form__avatar-wrap {
    display: flex;
  }

  .illumia-contact-form__title {
    font-size: var(--illumia-contact-form-title-size, 28px);
  }
}


.illumia-contact-form__cta {
  width: 100%;
  flex-shrink: 0;
  margin-top: 24px;
  padding: 14px 24px;
  background: var(--illumia-toggle-gradient-start);
  color: #ffffff;
  border: none;
  border-radius: var(--illumia-contact-cta-radius, 32px);
  font-family: var(--illumia-font-family);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}

.illumia-contact-form__cta:disabled {
  background: var(--illumia-neutral-subtle-grey);
  color: var(--illumia-neutral-main-grey);
  cursor: not-allowed;
}

.illumia-contact-form__cta:not(:disabled):hover {
  opacity: 0.9;
}

.illumia-contact-form__cta:not(:disabled):active {
  opacity: 0.8;
}

.illumia-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.illumia-dropdown[hidden] {
  display: none;
}

.illumia-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0px 3px 20px 0px rgba(0, 0, 0, 0.06);
  width: 200px;
  z-index: 300;
  overflow: hidden;
}

.illumia-dropdown__menu--hidden {
  display: none;
}

.illumia-dropdown__divider {
  height: 0.5px;
  background: #ededed;
  margin: 0;
}

.illumia-dropdown__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--illumia-font-family);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-align: right;
  vertical-align: middle;
  transition: background 0.15s ease;
  box-sizing: border-box;
}

.illumia-dropdown__item:hover {
  background: #e9ecfd;
}

.illumia-dropdown__item-label {
  flex: 1;
  text-align: left;
  color: #11206d;
}

.illumia-dropdown__item--danger .illumia-dropdown__item-label {
  color: #bb003a;
}

.illumia-dropdown__item--disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.illumia-dropdown__item--disabled:hover {
  background: transparent;
}

.illumia-dropdown__item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: #11206d;
}

.illumia-dropdown__item--danger .illumia-dropdown__item-icon {
  color: #bb003a;
}

.illumia-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.illumia-field__label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--illumia-font-family);
  font-size: 14px;
  font-weight: 400;
  color: var(--illumia-neutral-main-black);
  text-align: left;
  cursor: text;
}

@media (max-width: 768px) {
  .illumia-field__label {
    color: var(--illumia-neutral-main-grey);
  }
}

.illumia-field__label-text {
  padding-left: 4px;
}

.illumia-field__input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-family: var(--illumia-font-family);
  font-size: 16px;
  color: var(--illumia-neutral-main-black);
  background: var(--illumia-window-bg);
  border: var(--illumia-field-input-border, 1px solid #e0e0e0);
  border-radius: var(--illumia-field-input-radius, 8px);
  outline: none;
  transition: border-color 0.15s;
}

.illumia-field__input::placeholder {
  color: var(--illumia-neutral-medium-grey);
}

.illumia-field__input--error,
.illumia-field__input--error:focus {
  border-color: var(--illumia-error-color);
}

.illumia-field__error {
  display: flex;
  align-items: center;
  text-align: left;
  font-family: var(--illumia-font-family);
  font-size: 14px;
  font-weight: 700;
  color: var(--illumia-error-color);
  margin-top: 4px;
}

.illumia-field__error--hidden {
  display: none;
}

.illumia-field__error::before {
  content: '!';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--illumia-error-color);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  margin-right: 10px;
}

.illumia-icon-btn-action {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--illumia-bg-white);
  transition: background 0.15s ease, color 0.15s ease;
}

.illumia-icon-btn-action span {
  display: flex;
  align-items: center;
  justify-content: center;
}

.illumia-icon-btn-action svg {
  width: 32px;
  height: 32px;
}

.illumia-icon-btn-action:hover,
.illumia-icon-btn-action--active {
  background: #ffffff;
  color: var(--illumia-main-red);
}
.illumia-bubble--info {
  align-self: center;
  background: transparent;
  color: var(--illumia-neutral-subtle-grey);
  font-size: 12px;
  padding: 2px 0;
}

.illumia-bubble--disclaimer {
  align-self: stretch;
  background: var(--illumia-bg-info);
  color: var(--illumia-neutral-deep-grey);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  padding: 10px 24px;
  border-radius: 8px;
}
.illumia-login-form {
  position: absolute;
  inset: 0;
  background: var(--illumia-window-bg);
  display: flex;
  flex-direction: column;
  padding: 32px 24px 24px;
  overflow-y: auto;
  z-index: 300;
}

.illumia-login-form--hidden {
  display: none;
}

.illumia-login-form__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.illumia-login-form__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 72px;
  flex-shrink: 0;
  /* 28px + the content's 20px gap = 48px between header and the fields below. */
  margin-bottom: 28px;
}

.illumia-login-form__logo {
  display: block;
  width: auto;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.illumia-login-form__subtitle {
  font-family: var(--illumia-font-family);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--illumia-neutral-text-secondary);
  text-align: center;
  margin: 0;
}

@media (max-width: 768px) {
  .illumia-login-form {
    padding-top: 90px;
  }
}

.illumia-login-form__cta {
  width: 100%;
  flex-shrink: 0;
  margin-top: 24px;
  padding: 14px 24px;
  background: var(--illumia-toggle-gradient-start);
  color: #ffffff;
  border: none;
  border-radius: var(--illumia-contact-cta-radius, 32px);
  font-family: var(--illumia-font-family);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}

.illumia-login-form__cta:disabled {
  background: var(--illumia-neutral-subtle-grey);
  color: var(--illumia-neutral-main-grey);
  cursor: not-allowed;
}

.illumia-login-form__cta:not(:disabled):hover {
  opacity: 0.9;
}

.illumia-login-form__cta:not(:disabled):active {
  opacity: 0.8;
}

.illumia-login-form__back {
  align-self: center;
  flex-shrink: 0;
  margin-top: 16px;
  padding: 4px 8px;
  background: none;
  border: none;
  color: var(--illumia-toggle-gradient-start);
  font-family: var(--illumia-font-family);
  font-size: 16px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.illumia-login-form__back:disabled {
  color: var(--illumia-neutral-main-grey);
  cursor: not-allowed;
}

.illumia-login-form__back:not(:disabled):hover {
  opacity: 0.9;
}
.illumia-operator-bubble {
  display: flex;
  flex-direction: row;
  align-self: flex-start;
  align-items: flex-start;
  gap: 8px;
}

.illumia-operator-bubble__avatar-wrap {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--illumia-bg-subtle-blue, #e9ecfd);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.illumia-operator-bubble__avatar {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.illumia-operator-bubble__main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.illumia-operator-bubble__content {
  text-align: left;
  padding: 0;
}

.illumia-operator-bubble__footer {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--illumia-font-family);
  font-weight: 400;
  font-size: 10px;
  line-height: 1;
  color: var(--illumia-neutral-main-grey);
}

.illumia-operator-bubble__footer-sep {
  color: var(--illumia-neutral-pastel-grey, #ccced4);
  user-select: none;
}

.illumia-session-divider {
  display: flex;
  align-items: center;
  margin: 8px 0;
}

.illumia-session-divider::before,
.illumia-session-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--illumia-neutral-border);
}

.illumia-session-divider__label {
  font-family: var(--illumia-font-family);
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  color: var(--illumia-neutral-main-grey);
  padding: 0 8px;
}

@media (max-width: 768px) {
  .illumia-session-divider__label {
    font-size: 14px;
  }
}

.illumia-sheet-content__icon {
  font-size: 48px;
  line-height: 1;
  text-align: center;
}

.illumia-sheet-content__icon-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.illumia-sheet-content__title {
  margin: 16px 0 0;
  font-family: var(--illumia-font-family);
  font-size: 16px;
  font-weight: 700;
  color: #1f1f1f;
  text-align: center;
  line-height: 1;
  letter-spacing: 0;
}

.illumia-sheet-content__body {
  margin: 8px 0 0;
  font-family: var(--illumia-font-family);
  font-size: 12px;
  font-weight: 400;
  color: #4d5567;
  text-align: center;
  line-height: 1;
  letter-spacing: 0;
}
.illumia-typing {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  width: 36px;
  height: 20px;
  box-sizing: border-box;
  background: var(--illumia-neutral-subtle-grey);
  border-radius: 32px;
}

.illumia-typing__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--illumia-typing-color);
  animation: illumia-bounce 1.2s infinite ease-in-out;
}

.illumia-typing__dot:nth-child(2) {
  animation-delay: 0.2s;
}

.illumia-typing__dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes illumia-bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-6px);
  }
}

.illumia-user-bubble {
  position: relative;
  /* anchor for the long-press context menu (mobile) */
  display: flex;
  flex-direction: column;
  align-self: flex-end;
  align-items: flex-end;
  gap: 4px;
}

/* Row: edit button + bubble, aligned to the bubble height only */
.illumia-user-bubble__row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

/* In editing mode the row may span up to the full available width so the
    textarea can grow toward the bubble's max-width; its actual width is sized
   to the content in JS (autoSize). */
.illumia-user-bubble--editing {
  width: 100%;
  align-self: stretch;
}

.illumia-user-bubble--editing .illumia-user-bubble__row {
  width: 100%;
  justify-content: flex-end;
}

/* Hidden mirror used to measure the natural single-line text width, on browsers
    without `field-sizing` support only (it is not created at all otherwise — see
    supportsFieldSizing in index.ts). Kept out of flow and invisible.
    Its typography MUST stay identical to .illumia-user-bubble__edit-input below,
    or the measured width will not match the width the text actually needs — note
    that a textarea does not inherit font properties from its parent, so both rules
    have to declare them explicitly rather than rely on inheritance. */
.illumia-user-bubble__edit-mirror {
  position: absolute;
  visibility: hidden;
  white-space: pre;
  pointer-events: none;
  font-family: var(--illumia-font-family);
  font-size: 14px;
  font-weight: 400;
  line-height: var(--illumia-line-height);
  letter-spacing: 0;
}

.illumia-user-bubble__content {
  background: var(--illumia-bg-subtle-blue);
  border-radius: var(--illumia-user-radius);
  box-shadow: 2px 2px 14px 0px rgba(0, 0, 0, 0.05);
  text-align: right;
}

.illumia-user-bubble__footer {
  padding-inline: 8px;
}

.illumia-user-bubble__timestamp {
  font-family: var(--illumia-font-family);
  font-weight: 400;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--illumia-neutral-main-grey);
}

.illumia-user-bubble__edit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  padding: 0;
  background: var(--illumia-neutral-subtle-grey, #f0f1f3);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--illumia-neutral-main-grey);
  line-height: 0;
  transition: background 0.15s ease;
}

.illumia-user-bubble__edit-btn:hover {
  background: var(--illumia-neutral-pastel-grey, #ccced4);
}

.illumia-user-bubble__edit-btn--hidden {
  display: none;
}

/* On touch devices editing is triggered by a long-press context menu, so the
    inline pencil is never shown — but the bubble is still "editable" (the
    --hidden class still toggles to gate the long-press). The long-press must not
    start a native text selection, which would otherwise interfere with the
   clipboard copy. */
@media (pointer: coarse) {
  .illumia-user-bubble__edit-btn {
    display: none;
  }

  .illumia-user-bubble__content {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
  }
}

/* Typography here MUST stay in sync with .illumia-user-bubble__edit-mirror above
    (the fallback measures with the mirror), and matches .illumia-bubble so the text
    keeps the same layout when switching between the read-only bubble and this field.
    A textarea does not inherit font properties from its parent — every one of them
    has to be declared here or it falls back to the user-agent stylesheet. */
.illumia-user-bubble__edit-input {
  /* Let the browser size the control to its own content: width and wrap are then
      resolved in a single layout pass, so they cannot disagree. Ignored by browsers
      without support, which instead get the JS-measured width (see @supports below). */
  field-sizing: content;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--illumia-font-family);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--illumia-neutral-main-black);
  background: #ffffff;
  border: 2px solid var(--illumia-secondary-main-blue);
  border-radius: var(--illumia-user-radius);
  resize: none;
  outline: none;
  line-height: var(--illumia-line-height);
  overflow: hidden;
}

/* Without `field-sizing`, an un-sized textarea falls back to its default `cols`
    width (~20 characters) — narrower than the bubble it replaces. JS sets an explicit
    width in that case, so only the intrinsic sizing hints are needed here. */
@supports not (field-sizing: content) {
  .illumia-user-bubble__edit-input {
    width: auto;
  }
}

.illumia-user-bubble__edit-actions {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 16px;
  padding-inline: 4px;
}

.illumia-user-bubble__cancel-btn,
.illumia-user-bubble__submit-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--illumia-font-family);
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  line-height: 1;
}

.illumia-user-bubble__cancel-btn {
  color: #4D5567;
}

.illumia-user-bubble__submit-btn {
  color: #1428AA;
}
.illumia-welcome-state {
  position: absolute;
  inset: 0;
  background: var(--illumia-window-bg);
  display: flex;
  flex-direction: column;
  padding: 32px 24px 24px;
  overflow-y: auto;
  z-index: 1;
}

.illumia-welcome-state--hidden {
  display: none;
}

.illumia-welcome-state__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.illumia-welcome-state__avatar-wrap {
  width: var(--illumia-welcome-avatar-size, 100px);
  height: var(--illumia-welcome-avatar-size, 100px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.illumia-welcome-state__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.illumia-welcome-state__title {
  font-family: var(--illumia-font-family);
  font-size: var(--illumia-welcome-title-size, 16px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--illumia-neutral-main-black);
  text-align: center;
  margin: 0;
}

@media (max-width: 768px) {
  .illumia-welcome-state__title {
    font-size: var(--illumia-welcome-title-size, 28px);
  }
}

.illumia-welcome-state__body {
  font-family: var(--illumia-font-family);
  font-size: var(--illumia-welcome-body-size, 12px);
  font-weight: 400;
  color: var(--illumia-welcome-body-color, var(--illumia-neutral-text-secondary));
  line-height: 1.3;
  text-align: center;
  margin: 0;
}

@media (max-width: 768px) {
  .illumia-welcome-state__title {
    font-size: var(--illumia-welcome-title-size, 16px);
  }
}

.illumia-welcome-state__body a {
  color: inherit;
  text-decoration: underline;
}

.illumia-welcome-state__cta {
  width: 100%;
  flex-shrink: 0;
  margin-top: 24px;
  padding: 14px 24px;
  background: var(--illumia-welcome-cta-bg, var(--illumia-toggle-gradient-start));
  color: var(--illumia-welcome-cta-color, #ffffff);
  border: none;
  border-radius: var(--illumia-welcome-cta-radius, 32px);
  font-family: var(--illumia-font-family);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}

.illumia-welcome-state__cta:hover {
  opacity: 0.9;
}

.illumia-welcome-state__cta:active {
  opacity: 0.8;
}