/* Typography Reset + Base Styles */
:host, body, html {
  font-family: 'Inter', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  margin: 1.5em 0 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin: 0 0 1em;
}
ul, ol {
  margin: 1em 0;
  padding-left: 2em;
}
ul {
  list-style-type: disc;
}
ol {
  list-style-type: decimal;
}
li {
  margin-bottom: 0.5em;
}
dl {
  margin: 1em 0;
}
dt {
  font-weight: 600;
  margin-top: 0.5em;
}
dd {
  margin-left: 1.5em;
  margin-bottom: 0.5em;
}
a {
  color: #007acc;
  text-decoration: underline;

  &:hover,
  &:focus {
    color: #005999;
    text-decoration: none;
  }
}

strong {
  font-weight: 600;
}

blockquote {
  margin: 1em 0;
  padding-left: 1em;
  border-left: 4px solid #ccc;
  color: #555;
  font-style: italic;
}
code, pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  background-color: #d3e3fd;
  border-radius: 4px;
}
code {
  padding: 0.2em 0.4em;
  font-size: 0.95em;
}
pre {
  padding: 1em;
  overflow-x: auto;
}
hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 2em 0;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0;
}


/* Chatbot Container */
.chatbot-aside {
  bottom: 0;
  position: fixed;
  right: 0;
  z-index: 99999;
  --icon-color-primary: currentColor;
  --chatbot-color-hover: #d0d0d0mix(var(--chatbot-color), #ffffff, 50%);
  --icon-size-small: 16px;
  --icon-size-medium: 32px;
  --icon-size-large: 48px;
  --icon-size-mega: 64px;
  --icon-unify-modifier: 0.86;
  --icon-opacity-disabled: 0.5;
}

.chatbot-aside ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.chatbot-aside ul li {
  margin-bottom: 10px;
  padding-left: 18px;
  position: relative;
}

.chatbot-aside ul li:last-child {
  margin-bottom: 0;
}

.chatbot-aside ul li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  background: var(--chatbot-color);
  border-radius: 50%;
}

/* Chatbot Trigger Button */
.chatbot-trigger {
  background: var(--chatbot-color);
  border: none;
  border-radius: 50%;
  bottom: var(--widget-bottom-size);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: grid;
  justify-content: center;
  overflow: hidden;
  height: 60px;
  padding: 0;
  place-items: center;
  align-content: center;
  position: fixed;
  right: 20px;
  transition: all 0.3s ease;
  width: 60px;
  z-index: 99999;
}

.chatbot-trigger img {
  height: var(--avatar-size);
  border-radius: 50%;
  object-fit: cover;
  transition: opacity 0.3s ease;
  width: var(--avatar-size);
}

/* Chatbot Window */
.chatbot-window {
  background: #fff;
  border-radius: 10px;
  bottom: calc(var(--widget-bottom-size) + 70px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  max-height: calc(100% - calc(var(--widget-bottom-size) + 72px));
  max-width: calc(100% - 40px);
  width: 448px;
  min-height: 300px;
  opacity: 0;
  overflow: hidden;
  position: fixed;
  right: 20px;
  transform: translateY(10px);
  transition: all 0.3s ease;
  visibility: hidden;
  z-index: 99999;
}

.chatbot-window.chatbot-window--active,
.chatbot-aside.chatbot-open .chatbot-window {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* Chatbot Header */
.chatbot-header {
  align-items: center;
  background: var(--chatbot-color);
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 15px;
}

.chatbot-header-content {
  align-items: center;
  display: flex;
  gap: 10px;
}

.chatbot-header-content .chatbot-logo {
  width: 24px;
}

.chatbot-title {
  color: #fff;
  font-size: 16px;
  line-height: 1;
  margin: 0;
}

.chatbot-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

/* Chatbot Messages Area */
.chatbot-messages {
  background: #fff;
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  scrollbar-color: #c1c1c1 #f1f1f1;
  scrollbar-width: thin;

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

.chatbot-messages::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background-color: #c1c1c1;
  border-radius: 4px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
  background-color: #a8a8a8;
}

.chatbot-conversation {
  display: flex;
  flex-direction: column;
  gap: 0 15px;
}

/* Welcome Message */
.chatbot-welcome {
  padding-bottom: 20px;
  text-align: center;
}

.chatbot-welcome-avatar {
  border: 3px solid var(--chatbot-color);
  border-radius: 50%;
  height: 80px;
  margin: 0 auto 20px;
  overflow: hidden;
  width: 80px;
}

.chatbot-welcome-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.chatbot-welcome-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.chatbot-welcome-subtitle {
  color: #666;
  font-size: 14px;
  hyphens: auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Message Bubbles */
.chatbot-message {
  display: flex;
  gap: 10px;
  max-width: 95%;
  padding: 10px 0;
}

.chatbot-message.bot-message {
  align-self: flex-start;
  margin-right: auto;
}

.chatbot-message.user-message {
  align-self: flex-end;
  flex-direction: row-reverse;
  margin-left: auto;
  max-width: 70%;
  width: 100%;
}

.chatbot-message__avatar {
  background-color: var(--chatbot-color);
  border-radius: 50%;
  flex-shrink: 0;
  height: 30px;
  left: 0;
  overflow: hidden;
  position: sticky;
  width: 30px;
  z-index: 2;
}

.chatbot-message__avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.chatbot-message__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  width: calc(100% - 40px);
}

.bot-message .chatbot-message__content {
  align-items: flex-start;
}

.chatbot-message-text {
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
  overflow-x: auto;
  padding: 10px 15px;
  position: relative;
  hyphens: auto;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}
 
.chatbot-message-text a {
  color: var(--chatbot-color);
  text-decoration: underline;
  transition: all 0.3s ease;
}

.chatbot-message-text a:hover {
  color: var(--chatbot-color-hover);
  text-decoration: none;
}

.chatbot-message-text.d-none {
  display: none;
}

.bot-message .chatbot-message-text {
  background: #f1f1f1;
  border-top-left-radius: 0;
}

.user-message .chatbot-message-text {
  background: var(--chatbot-color);
  border-top-right-radius: 0;
  color: #fff;
}

.chatbot-message-time {
  color: #707070;
  font-size: 11px;
  margin-top: 5px;
  text-align: right;
  display: none;
}

.chatbot-message-time.chatbot-message-time--visible {
  display: block;
}

.chatbot-rating-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  overflow: visible;
}

.chatbot-rating-btn {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  color: #8a9ab0;
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  height: 32px;
  justify-content: center;
  min-width: 32px;
  padding: 0;
  position: relative;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  width: 32px;
}

.chatbot-rating-btn[data-tooltip]::after {
  background: #111827;
  border-radius: 8px;
  bottom: calc(100% + 8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #fff;
  content: attr(data-tooltip);
  font-size: 13px;
  font-weight: 500;
  left: 50%;
  line-height: 1.25;
  opacity: 0;
  padding: 6px 10px;
  pointer-events: none;
  position: absolute;
  transform: translateX(-50%);
  transition: opacity 0.15s ease, visibility 0.15s ease;
  visibility: hidden;
  white-space: nowrap;
  z-index: 100;
}

.chatbot-rating-btn[data-tooltip]:hover::after,
.chatbot-rating-btn[data-tooltip]:focus-visible::after {
  opacity: 1;
  visibility: visible;
}

.chatbot-rating-btn:hover {
  color: #415163;
}

.chatbot-rating-btn[data-rating].is-active {
  background: #a0c4ff;
  border-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.06);
  color: #111827;
}

.chatbot-copy-response-btn.is-copied {
  background: #a0c4ff;
}

.chatbot-rating-btn:disabled {
  cursor: default;
}

/* No trailing cursor while streaming — three-dot loader is used instead */
.chatbot-message-text.is-streaming::after,
.chatbot-message-text .is-streaming::after {
  animation: none;
  background: transparent;
  content: none;
  display: none;
}

.chatbot-message-text > p {
  margin-bottom: 0;
  margin-top: 0;
}

.chatbot-message-text > p:not(:last-child) {
  margin-bottom: 10px;
}

.chatbot-source-links-wrap {
  margin-top: 12px;
}

.chatbot-source-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: #111827;
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 8px;
  margin: 0;
  padding: 0;
  width: 100%;
}

.chatbot-source-toggle-icon {
  background-image: url('data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgZmlsbD0ibm9uZSI+PGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iOSIgc3Ryb2tlPSIjNkI3MjgwIiBzdHJva2Utd2lkdGg9IjEuNSIvPjxwYXRoIGQ9Ik0zIDEyaDE4IiBzdHJva2U9IiM2QjcyODAiIHN0cm9rZS13aWR0aD0iMS41Ii8+PHBhdGggZD0iTTEyIDNjMi42IDEuOCA0IDQuNyA0IDlzLTEuNCA3LjItNCA5Yy0yLjYtMS44LTQtNC43LTQtOXMxLjQtNy4yIDQtOVoiIHN0cm9rZT0iIzZCNzI4MCIgc3Ryb2tlLXdpZHRoPSIxLjUiLz48L3N2Zz4=');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  display: inline-block;
  flex-shrink: 0;
  height: 14px;
  width: 14px;
}

.chatbot-source-links-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 0;
}

.chatbot-source-toggle-chevron {
  border-bottom: 1.5px solid #6b7280;
  border-right: 1.5px solid #6b7280;
  display: inline-block;
  height: 7px;
  margin-left: auto;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  width: 7px;
}

.chatbot-source-links-wrap.is-expanded .chatbot-source-toggle-chevron {
  transform: rotate(225deg);
}

.chatbot-source-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.chatbot-source-links-wrap.is-collapsed .chatbot-source-links {
  display: none;
}

.chatbot-source-links .chatbot-source-chip {
  align-items: center;
  background: #fff;
  border: 1px solid #d7dde5;
  border-radius: 999px;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin: 0;
  padding: 8px 10px;
}

.chatbot-source-links .chatbot-source-chip::before {
  background-image: url('data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgZmlsbD0ibm9uZSI+PGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iOSIgc3Ryb2tlPSIjNkI3MjgwIiBzdHJva2Utd2lkdGg9IjEuNSIvPjxwYXRoIGQ9Ik0zIDEyaDE4IiBzdHJva2U9IiM2QjcyODAiIHN0cm9rZS13aWR0aD0iMS41Ii8+PHBhdGggZD0iTTEyIDNjMi42IDEuOCA0IDQuNyA0IDlzLTEuNCA3LjItNCA5Yy0yLjYtMS44LTQtNC43LTQtOXMxLjQtNy4yIDQtOVoiIHN0cm9rZT0iIzZCNzI4MCIgc3Ryb2tlLXdpZHRoPSIxLjUiLz48L3N2Zz4=');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-color: transparent;
  content: '';
  display: inline-block;
  flex-shrink: 0;
  height: 12px;
  width: 12px;
}

.chatbot-source-links .chatbot-source-chip a {
  color: #111827;
  display: inline-block;
  flex: 1;
  font-size: 13px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  white-space: nowrap;
}

.chatbot-source-links .chatbot-source-chip a:hover {
  text-decoration: underline;
}

.chatbot-source-score {
  background: #f3f4f6;
  border-radius: 999px;
  color: #374151;
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1;
  padding: 5px 8px;
}

.chatbot-aside--left {
  .chatbot-trigger {
    left: 20px;
    right: auto;
  }

  .chatbot-window {
    left: 20px;
    right: auto;
  }

  .chatbot-hint {
    left: 20px;
    right: auto;
  }
}

@keyframes chatbot-stream-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.15;
  }
}

/* Three-dot loader — inline at the start of the bot bubble while streaming */
.chatbot-aside {
  --chatbot-typing-dot-color: #4b5563;
}

.chatbot-typing-indicator {
  display: none;
}

.chatbot-stream-loader {
  align-items: center;
  display: inline-flex;
  flex-shrink: 0;
  gap: 5px;
  margin-right: 8px;
  vertical-align: middle;
}

.chatbot-stream-loader > span {
  animation: chatbot-typing-dot 1.2s ease-in-out infinite;
  background-color: var(--chatbot-typing-dot-color, #4b5563);
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
  height: 7px;
  width: 7px;
}

.chatbot-stream-loader > span:nth-child(2) {
  animation-delay: 0.15s;
}

.chatbot-stream-loader > span:nth-child(3) {
  animation-delay: 0.3s;
}

.bot-message.is-streaming-turn .chatbot-message-text.is-streaming {
  display: block;
}

@keyframes chatbot-typing-dot {
  0%,
  60%,
  100% {
    opacity: 0.4;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

/* Input Area */
.chatbot-input {
  background: #f7f7f7;
  border-top: 1px solid #eee;
  padding: 0;
}

.chatbot-form {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.chatbot-input-area {
  background: #fff;
  border: 0;
  border-radius: 0;
  display: flex;
  padding: 5px;
  overflow: hidden;

  &.disabled {
    opacity: 0.5;
    pointer-events: none;
  }
}

.chatbot-input-toggle {
  align-items: center;
  align-self: flex-end;
  background: transparent;
  border: 0;
  color: #6b7280;
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  justify-content: center;
  margin-bottom: 10px;
  padding: 8px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.chatbot-input-toggle:hover {
  color: #111827;
}

.chatbot-input-toggle .expand-icon {
  display: none;
}

.chatbot-input-area--expanded .chatbot-input-toggle .expand-icon {
  display: block;
}

.chatbot-input-area--expanded .chatbot-input-toggle .collapse-icon {
  display: none;
}

.chatbot-textarea {
  font-family: 'Inter', sans-serif;
  border: none;
  flex: 1;
  font-size: 16px;
  height: auto;
  line-height: 21px;
  max-height: 200px;
  min-height: 50px;
  outline: none;
  padding: 15px 15px 5px 5px;
  resize: none;
}

.chatbot-input-area--expanded .chatbot-textarea {
  min-height: 220px;
  padding-top: 5px;
}

.chatbot-input-footer {
  padding: 5px 10px;
  text-align: center;
  font-size: 12px;
  line-height: 1;
  margin-bottom: 0;
}

.chatbot-input-footer .chatbot-footer-link {
  color: inherit;
}

/* Accessibility focus outline */
.chatbot-textarea:focus,
.chatbot-send-button:focus,
.chatbot-voice-button:focus,
.chatbot-close:focus {
  outline: 0;
}

.chatbot-input-buttons {
  align-items: flex-end;
  display: flex;
  padding: 0 5px;
}

.chatbot-voice-button,
.chatbot-send-button {
  background: none;
  border: none;
  color: #c1c1c1;
  cursor: pointer;
  line-height: 1;
  padding: 8px;
  transition: color 0.2s ease;

  &.disabled {
    opacity: 0.5;
    pointer-events: none;
  }
}

.chatbot-send-button {
  font-size: 18px;
}

.chatbot-voice-button:hover,
.chatbot-send-button:hover {
  color: #000;
}

/* Voice recognition pulse */
.chatbot-voice-button.is-listening {
  animation: pulse 1.5s infinite;
  color: var(--chatbot-color);
}

@keyframes pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.chatbot-icon {
  height: 24px;
  line-height: 1;
  width: 24px;
}

/* Hint Bubble */
.chatbot-hint {
  background: #f1f1f1;
  border-radius: 10px;
  bottom: calc(var(--widget-bottom-size) + 70px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 300px;
  opacity: 0;
  padding: 15px;
  position: fixed;
  right: 20px;
  transition: all 0.3s ease;
  visibility: hidden;
  z-index: 9999;
}

.chatbot-hint.chatbot-hint--visible {
  opacity: 1;
  visibility: visible;
}

/* Left Position Variant */
.chatbot-aside.is-left .chatbot-trigger,
.chatbot-aside.is-left .chatbot-window,
.chatbot-aside.is-left .chatbot-hint {
  left: 30px;
  right: auto;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .chatbot-aside ul li:before {
    background: #fff;
  }

  .chatbot-window {
    background: #222;
    color: #fff;
  }

  .chatbot-rating-btn {
    color: #9ca3af;
  }

  .chatbot-rating-btn:hover {
    color: #e5e7eb;
  }

  .chatbot-rating-btn[data-rating].is-active {
    background: #a0c4ff;
    color: #111827;
  }

  .chatbot-copy-response-btn.is-copied {
    background: #a0c4ff;
    color: #111827;
  }

  .chatbot-voice-button:hover,
  .chatbot-send-button:hover {
    color: #fff;
  }

  code, pre {
    background-color: #212121;
    color: #fff;
  }

  .chatbot-textarea:focus,
  .chatbot-send-button:focus,
  .chatbot-voice-button:focus,
  .chatbot-close:focus {
    outline-color: #515151;
  }

  .chatbot-messages {
    background: #000;
    scrollbar-color: #969696 #424141;
  }

  .chatbot-messages::-webkit-scrollbar-track {
    background: #2a2a2a;
  }

  .chatbot-messages::-webkit-scrollbar-thumb {
    background-color: #555;
  }

  .chatbot-messages::-webkit-scrollbar-thumb:hover {
    background-color: #777;
  }

  .chatbot-input {
    background-color: #2a2a2a;
    border-top-color: #6f6f6f;
  }

  .chatbot-input-area {
    background-color: #000;
    border-color: #444;
  }

  .chatbot-input-toggle {
    color: #d1d5db;
  }

  .chatbot-input-toggle:hover {
    color: #fff;
  }

  .chatbot-textarea {
    background-color: #000;
    color: #fff;
  }

  .chatbot-message-text a {
    color: #fff;
  }

  .chatbot-message-text a:hover {
    color: #eee;
  }

  .bot-message .chatbot-message-text,
  .chatbot-hint {
    background-color: #333;
    color: #fff;
  }

  .chatbot-aside {
    --chatbot-typing-dot-color: #fff;
  }

  .chatbot-typing-dots > span {
    background-color: #fff;
  }

  .chatbot-stream-loader > span {
    background-color: #fff;
  }

  .chatbot-welcome-subtitle,
  .chatbot-message-time {
    color: #c1c1c1;
  }
}

.chatbot-aside {
  .icon {
    color: var(--icon-color-primary);
    display: inline-flex;
    flex-shrink: 0;
    height: var(--icon-size, 1em);
    line-height: var(--icon-size, 1em);
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    width: var(--icon-size, 1em);
  }

  .icon img,
  .icon svg {
    display: block;
    height: 100%;
    width: 100%;
  }

  .icon * {
    display: block;
    line-height: inherit;
  }

  .icon-markup {
    bottom: 0;
    display: block;
    left: 0;
    position: absolute;
    right: 0;
    text-align: center;
    top: 0;
  }

  .icon-overlay {
    bottom: 0;
    height: 68.75%;
    position: absolute;
    right: 0;
    text-align: center;
    width: 68.75%;
  }

  .icon-spin .icon-markup {
    animation: icon-spin 2s infinite linear;
  }

  @keyframes icon-spin {
    0% {
      transform: rotate(0);
    }

    100% {
      transform: rotate(360deg);
    }
  }

  .icon-state-disabled .icon-markup {
    opacity: var(--icon-opacity-disabled);
  }

  .icon-size-small {
    --icon-size: var(--icon-size-small);
  }

  .icon-size-small .icon-unify {
    font-size: calc(var(--icon-size) * var(--icon-unify-modifier));
    line-height: var(--icon-size);
  }

  .icon-size-small .icon-overlay .icon-unify {
    font-size: calc(var(--icon-size) / 1.6 * var(--icon-unify-modifier));
    line-height: calc(var(--icon-size) / 1.6);
  }

  .icon-size-medium {
    --icon-size: var(--icon-size-medium);
  }

  .icon-size-medium .icon-unify {
    font-size: calc(var(--icon-size) * var(--icon-unify-modifier));
    line-height: var(--icon-size);
  }

  .icon-size-medium .icon-overlay .icon-unify {
    font-size: calc(var(--icon-size) / 1.6 * var(--icon-unify-modifier));
    line-height: calc(var(--icon-size) / 1.6);
  }

  .icon-size-large {
    --icon-size: var(--icon-size-large);
  }

  .icon-size-large .icon-unify {
    font-size: calc(var(--icon-size) * var(--icon-unify-modifier));
    line-height: var(--icon-size);
  }

  .icon-size-large .icon-overlay .icon-unify {
    font-size: calc(var(--icon-size) / 1.6 * var(--icon-unify-modifier));
    line-height: calc(var(--icon-size) / 1.6);
  }

  .icon-size-mega {
    --icon-size: var(--icon-size-mega);
  }

  .icon-size-mega .icon-unify {
    font-size: calc(var(--icon-size) * var(--icon-unify-modifier));
    line-height: var(--icon-size);
  }

  .icon-size-mega .icon-overlay .icon-unify {
    font-size: calc(var(--icon-size) / 1.6 * var(--icon-unify-modifier));
    line-height: calc(var(--icon-size) / 1.6);
  }
}


/* Sources Links */
.chatbot-message__content .chatbot-source-toggle {
  margin-bottom: 5px;
}

.chatbot-conversation .chatbot-source-links .chatbot-source-chip {
  padding-left: 25px;
  position: relative;
}

.chatbot-conversation .chatbot-source-links .chatbot-source-chip::before {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.chatbot-conversation .chatbot-source-links .chatbot-source-chip:last-child {
  margin-bottom: 10px;
}

@media (prefers-color-scheme: dark) {
  .chatbot-source-links-title {
    color: #fff;
  }

  .chatbot-source-toggle-icon {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSI+PGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iOSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjEuNSIvPjxwYXRoIGQ9Ik0zIDEyaDE4IiBzdHJva2U9IiNmZmYiIHN0cm9rZS13aWR0aD0iMS41Ii8+PHBhdGggZD0iTTEyIDNjMi42IDEuOCA0IDQuNyA0IDlzLTEuNCA3LjItNCA5Yy0yLjYtMS44LTQtNC43LTQtOXMxLjQtNy4yIDQtOVoiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIxLjUiLz48L3N2Zz4=');
  }

  .chatbot-conversation .chatbot-source-links .chatbot-source-chip a:hover {
    color: #111827;
  }

  .chatbot-conversation .chatbot-source-links .chatbot-source-chip::before {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSI+PGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iOSIgc3Ryb2tlPSIjMTExODI3IiBzdHJva2Utd2lkdGg9IjEuNSIvPjxwYXRoIGQ9Ik0zIDEyaDE4IiBzdHJva2U9IiMxMTE4MjciIHN0cm9rZS13aWR0aD0iMS41Ii8+PHBhdGggZD0iTTEyIDNjMi42IDEuOCA0IDQuNyA0IDlzLTEuNCA3LjItNCA5Yy0yLjYtMS44LTQtNC43LTQtOXMxLjQtNy4yIDQtOVoiIHN0cm9rZT0iIzExMTgyNyIgc3Ryb2tlLXdpZHRoPSIxLjUiLz48L3N2Zz4=');
  }
}

