@charset "UTF-8";
:root {
  --tudi-primary-color: #008577;
  --tudi-primary-dark-color: #0b6b60;
  --tudi-primary-light-color: #1ba392;
  --tudi-secondary-color: #0b6b60;
  --tudi-secondary-dark-color: #094f46;
  --tudi-secondary-light-color: #33c4b3;
  --tudi-border-color: #ccc;
  --tudi-clear-color: #e2ffbde3;
  --tudi-background-white: #fff;
  --tudi-alt-surface: #f2f2f2;
  --tudi-bot-message-bg: #e5e5ea;
  --tudi-bot-message-text: #000000;
  --tudi-thinking-color: rgb(0, 255, 162);
  --tudi-text-strong-color: #333;
  --tudi-text-soft-color: #444;
  --tudi-text-muted-color: #666;
  --tudi-link-color: #0066cc;
  --tudi-primary-contrast-color: #ffffff;
  --tudi-secondary-contrast-color: #ffffff;
}

#chat-container,
#chat-button {
  --tudi-primary-color: #008577;
  --tudi-primary-dark-color: #0b6b60;
  --tudi-primary-light-color: #1ba392;
  --tudi-secondary-color: #0b6b60;
  --tudi-secondary-dark-color: #094f46;
  --tudi-secondary-light-color: #33c4b3;
  --tudi-border-color: #ccc;
  --tudi-clear-color: #e2ffbde3;
  --tudi-background-white: #fff;
  --tudi-alt-surface: #f2f2f2;
  --tudi-bot-message-bg: #e5e5ea;
  --tudi-bot-message-text: #000000;
  --tudi-thinking-color: rgb(0, 255, 162);
  --tudi-text-strong-color: #333;
  --tudi-text-soft-color: #444;
  --tudi-text-muted-color: #666;
  --tudi-link-color: #0066cc;
  --tudi-primary-contrast-color: #ffffff;
  --tudi-secondary-contrast-color: #ffffff;
}

#chat-button,
#chat-container {
  box-sizing: border-box !important;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif !important;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  text-transform: none !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#chat-button > *,
#chat-container > *,
#chat-container div,
#chat-container span,
#chat-container p,
#chat-container h1,
#chat-container h2,
#chat-container h3,
#chat-container a,
#chat-container img,
#chat-container svg,
#chat-container button,
#chat-container input,
#chat-container textarea {
  box-sizing: border-box !important;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  font-family: inherit !important;
  font-size: inherit;
  line-height: inherit;
  text-decoration: none;
  text-transform: none !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  vertical-align: baseline;
}

#chat-container input,
#chat-container textarea,
#chat-container button,
#chat-container select {
  background: transparent;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

#chat-container input,
#chat-container textarea,
#chat-input {
  font-size: 16px !important;
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
  transform: translateZ(0);
  touch-action: manipulation;
}

@supports (-webkit-touch-callout: none) {
  #chat-container input,
  #chat-container textarea,
  #chat-input {
    font-size: max(16px, 1rem) !important;
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    touch-action: manipulation;
  }
}
body.tudi-theme-loading #chat-button,
body.tudi-theme-loading #chat-container {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@keyframes tudiButtonGrowIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
#chat-button {
  position: fixed !important;
  bottom: 12px;
  right: 12px;
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  max-width: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  font-size: 14px !important;
  border-radius: 50% !important;
  background-color: var(--tudi-secondary-color);
  background-size: 200% 200%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  will-change: transform, opacity;
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 2147483647 !important;
  transform: scale(0);
  opacity: 0;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
#chat-button.tudi-widget-ready {
  animation: tudiButtonGrowIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
#chat-button.tudi-widget-ready.expanded {
  transition: transform 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
}
#chat-button img {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  object-fit: contain;
  transform: rotate(0deg);
  transition: transform 0.35s ease;
  border-radius: 14px;
  user-select: none;
  pointer-events: none;
}
#chat-button:hover img {
  transform: rotate(-6deg);
}
#chat-button.expanded {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  max-width: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
}
#chat-button.expanded img {
  width: 32px !important;
  height: 32px !important;
}
#chat-button.expanded:hover {
  background-color: var(--tudi-secondary-dark-color);
}
#chat-button.expanded:hover img {
  transform: rotate(10deg) !important;
}
#chat-button.keyboard-visible {
  visibility: hidden;
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  pointer-events: none;
  transition: visibility 0.3s ease, opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#chat-button:not(.keyboard-visible) {
  transition: visibility 0.3s ease, opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#welcome-bubble {
  position: fixed !important;
  z-index: 2147483646 !important;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  padding: 4px 12px;
  padding-right: 14px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateX(20px) scale(0.95);
  transform-origin: right center;
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.3s ease;
  will-change: transform, opacity;
  overflow: visible;
  --tudi-background-white: #fff;
  --tudi-text-strong-color: #333;
  box-sizing: border-box !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif !important;
}
#welcome-bubble::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 40%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
  z-index: 1;
}
#welcome-bubble:hover {
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 12px 40px rgba(31, 38, 135, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}
#welcome-bubble:hover .welcome-bubble-close {
  opacity: 1;
  transform: scale(1);
}
#welcome-bubble.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
}
#welcome-bubble.hiding {
  opacity: 0;
  visibility: hidden;
  transform: translateX(35px) scale(0.85);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s cubic-bezier(0.55, 0, 1, 0.45);
}
#welcome-bubble .welcome-bubble-text {
  color: #1c1c1e;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.4;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 2;
  text-shadow: 0 0.5px 1px rgba(255, 255, 255, 0.5);
}
#welcome-bubble .welcome-bubble-arrow {
  margin-left: 10px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid rgba(0, 0, 0, 0.25);
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.25);
  transform: rotate(-45deg);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
#welcome-bubble .welcome-bubble-close {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(60, 60, 67, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
#welcome-bubble .welcome-bubble-close::before, #welcome-bubble .welcome-bubble-close::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 1.5px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 1px;
}
#welcome-bubble .welcome-bubble-close::before {
  transform: rotate(45deg);
}
#welcome-bubble .welcome-bubble-close::after {
  transform: rotate(-45deg);
}
#welcome-bubble .welcome-bubble-close:hover {
  background: rgba(255, 59, 48, 0.9);
  transform: scale(1.15);
}

#chat-backdrop {
  position: fixed !important;
  inset: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  z-index: 2147483645 !important;
  transition: opacity 0.2s ease;
}
#chat-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

#chat-container {
  position: fixed !important;
  bottom: 12px;
  right: 14px;
  width: 420px;
  max-width: 80%;
  font-size: 14px !important;
  background: var(--tudi-background-white);
  box-shadow: -5px 0 10px rgba(0, 0, 0, 0.3), 5px 0 10px rgba(0, 0, 0, 0.3);
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--tudi-border-color) !important;
  border-radius: 12px !important;
  z-index: 2147483646 !important;
  visibility: hidden;
  opacity: 0;
  transform: scale(0);
  transform-origin: calc(100% + 24px) calc(100% + 26px);
  pointer-events: none;
  height: var(--chat-height-px, 30%);
  max-height: var(--chat-height-px, 30%);
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), visibility 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), max-height 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), height 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), top 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), max-width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-radius 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity;
  /* Contenedor que agrupa el icono y la burbuja */
}
#chat-container.visible {
  visibility: visible;
  bottom: 72px;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  height: var(--chat-height-px, 60%);
  max-height: var(--chat-height-px, 60%);
}
#chat-container.ios-keyboard-open {
  height: var(--chat-height-px, 60vh) !important;
  max-height: var(--chat-height-px, 60vh) !important;
  bottom: 10px !important;
}
#chat-container.fullscreen {
  position: fixed !important;
  top: 56px !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: calc(100% - 56px) !important;
  max-height: calc(100% - 56px) !important;
  border-radius: 0 !important;
  z-index: 10000 !important;
  transform: scale(1);
  transform-origin: center center;
}
#chat-container #chat-header {
  background-color: var(--tudi-primary-color);
  color: var(--tudi-primary-contrast-color);
  padding: 12px 10px;
  font-weight: 350;
  text-align: center;
  position: relative;
  text-shadow: 0 0 2px var(--tudi-clear-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.35s ease;
  cursor: pointer;
  overflow: hidden;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
#chat-container #chat-header:hover {
  background-color: var(--tudi-primary-dark-color);
}
#chat-container #chat-header.border-color {
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.2);
  transition: box-shadow 0.3s ease;
}
#chat-container #chat-header #maximize-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  padding: 5px 3px;
  width: 26px;
  height: 26px;
  color: var(--tudi-primary-contrast-color);
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease, filter 0.3s ease;
  border-radius: 4px;
}
#chat-container #chat-header #maximize-icon path {
  stroke: var(--tudi-primary-contrast-color);
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
}
#chat-container #chat-header #maximize-icon:hover {
  background-color: rgba(0, 0, 0, 0.2);
  filter: brightness(0.85);
}
#chat-container #chat-header #pin-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  padding: 5px 3px;
  width: 24px;
  height: 24px;
  fill: var(--tudi-primary-contrast-color);
  cursor: pointer;
  transition: fill 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
  border-radius: 4px;
}
#chat-container #chat-header #pin-icon:hover {
  background-color: rgba(0, 0, 0, 0.2);
  filter: brightness(0.85);
}
#chat-container #chat-header #pin-icon.active {
  fill: rgb(0, 255, 21);
  transform: translateY(-50%) rotate(45deg);
}
#chat-container #chat-header #fullscreen-icon {
  position: absolute !important;
  right: 10px !important;
  top: 50%;
  transform: translateY(-50%);
  padding: 5px 3px;
  width: 26px;
  height: 26px;
  fill: var(--tudi-primary-contrast-color);
  cursor: pointer;
  transition: fill 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
  border-radius: 4px;
}
#chat-container #chat-header #fullscreen-icon .collapse-path {
  display: none;
}
#chat-container #chat-header #fullscreen-icon:hover {
  background-color: rgba(0, 0, 0, 0.2);
  filter: brightness(0.85);
}
#chat-container #chat-header #fullscreen-icon.active .expand-path {
  display: none;
}
#chat-container #chat-header #fullscreen-icon.active .collapse-path {
  display: block;
}
#chat-container #chat-messages {
  flex: 1;
  padding: 10px;
  overflow-x: hidden;
  overflow-y: auto;
}
#chat-container #chat-input-container {
  --chat-input-min-height: 32px;
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  border-top: 1.5px solid var(--tudi-border-color);
  z-index: 10;
  min-height: var(--chat-input-min-height);
}
#chat-container #chat-input-container #chat-input {
  flex: 1;
  background: white;
  width: 100%;
  height: var(--chat-input-min-height);
  margin: 10px 18px 36px 18px;
  border: none;
  outline: none;
  font-weight: 460;
  font-family: inherit;
  line-height: 1.4;
  resize: none;
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
  overflow-y: auto;
  caret-color: var(--tudi-primary-color);
}
#chat-container #chat-input-container #chat-input::placeholder {
  color: var(--tudi-text-muted-color);
  opacity: 0.7;
}
#chat-container #chat-input-container #send-button {
  position: absolute;
  right: 18px;
  bottom: 10px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.16));
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), filter 0.25s ease;
}
#chat-container #chat-input-container #send-button:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.22));
}
#chat-container #chat-input-container #send-button:focus-visible {
  outline: none;
}
#chat-container #chat-input-container #send-button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
#chat-container .message-wrapper {
  display: flex;
  align-items: flex-end;
  margin-bottom: 10px;
  gap: 6px;
}
#chat-container .message-wrapper.bot {
  justify-content: flex-start;
}
#chat-container .message-wrapper.bot .message-icon {
  margin-right: 8px;
  margin-left: 0;
}
#chat-container .message-wrapper.user {
  justify-content: end;
  flex-direction: row-reverse;
}
#chat-container .message-wrapper.user .message-icon {
  margin-left: 8px;
  margin-right: 0;
}
#chat-container .message-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  padding: 4px;
  background-color: var(--tudi-background-white);
  object-fit: contain;
  flex-shrink: 0;
}
#chat-container .message-icon.bot-icon {
  border: 1px solid rgba(0, 0, 0, 0.08);
}
#chat-container .message-icon.user-icon {
  border: 1px solid rgba(0, 0, 0, 0.05);
}
#chat-container #suggestions {
  position: relative;
  transition: opacity 0.5s ease, transform 0.5s ease, max-height 0.5s ease;
  min-height: 16px;
}
#chat-container #restore-arrow {
  position: absolute;
  top: -0.9rem;
  right: 0.3rem;
  width: 16px;
  height: 16px;
  background: var(--tudi-background-white);
  border-radius: 30%;
  border: 1px solid var(--tudi-border-color);
  padding: 1px 1px 4px 1px;
  cursor: pointer;
  scale: 1.2;
  z-index: 10;
  transform: rotate(180deg);
  transition: transform 0.5s ease;
}
#chat-container #restore-arrow.rotated {
  transform: rotate(0deg);
}
#chat-container .inline-bubblecards {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
  gap: 12px;
  margin-top: 12px;
  padding-bottom: 16px;
  transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
}
#chat-container .inline-bubblecards.is-hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  max-height: 0;
  margin-top: 0;
  padding-bottom: 0;
}
#chat-container .bubblecard {
  align-self: flex-end;
  background-color: #ffffff;
  color: var(--tudi-text-strong-color);
  padding: 6px 16px;
  border-radius: 18px;
  border: 1px solid #000000;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  font-weight: 450;
  font-size: 14px;
  text-align: left;
}
#chat-container .bubblecard:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.11);
}
#chat-container .message {
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 80%;
  clear: both;
  float: none;
  font-weight: 350;
  font-size: 14px;
  word-wrap: break-word;
  word-break: break-word;
  display: block;
  line-height: 1.5;
  white-space: pre-wrap;
}
#chat-container .message.user {
  background-color: var(--tudi-primary-color);
  color: var(--tudi-primary-contrast-color);
  align-self: flex-end;
  float: right;
  flex-direction: row-reverse;
}
#chat-container .message.bot {
  background-color: var(--tudi-background-white);
  color: var(--tudi-bot-message-text);
  align-self: flex-start;
  float: left;
}
#chat-container .message span {
  font-size: 14px;
}
#chat-container .message strong,
#chat-container .message b {
  font-weight: 600;
}
#chat-container .message em,
#chat-container .message i {
  font-style: italic;
}
#chat-container .message code {
  background-color: rgba(0, 0, 0, 0.08);
  padding: 1px 4px;
  border-radius: 3px;
  font-family: "Consolas", "Monaco", monospace;
  font-size: 0.9em;
}
#chat-container .message a {
  color: var(--tudi-link-color);
  text-decoration: underline;
}
#chat-container .message a:hover {
  text-decoration: none;
}
#chat-container .message .md-heading {
  margin: 0.5em 0 0.3em 0;
  font-weight: 600;
  line-height: 1.3;
}
#chat-container .message .md-heading:first-child {
  margin-top: 0;
}
#chat-container .message .md-h2 {
  font-size: 1.15em;
}
#chat-container .message .md-h3 {
  font-size: 1.05em;
}
#chat-container .message .md-h4 {
  font-size: 1em;
  font-weight: 550;
}
#chat-container .message .md-list {
  margin: 0.4em 0;
  padding-left: 1.4em;
  line-height: 1.5;
}
#chat-container .message .md-list:first-child {
  margin-top: 0;
}
#chat-container .message .md-list:last-child {
  margin-bottom: 0;
}
#chat-container .message .md-ul {
  list-style-type: disc;
}
#chat-container .message .md-ol {
  list-style-type: decimal;
}
#chat-container .message .md-list li {
  margin: 0.15em 0;
  padding-left: 0.2em;
}
#chat-container .message-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}
#chat-container .message.user .message-icon {
  margin-right: 0;
  margin-left: 8px;
}
#chat-container .message.bot.ai-structured {
  background-color: transparent;
  padding: 0;
  display: block;
}
#chat-container .message.bot.ai-structured .ai-response-block {
  background-color: var(--tudi-background-white);
  color: var(--tudi-bot-message-text);
  border-radius: 14px;
  padding: 12px 14px;
  display: block;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  margin-bottom: 8px;
}
#chat-container .message.bot.ai-structured .ai-response-block:last-child {
  margin-bottom: 0;
}
#chat-container .ai-block-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
#chat-container .ai-block-entry {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
#chat-container .ai-block-entry:first-child {
  border-top: none;
  padding-top: 0;
}
#chat-container .ai-block-entry:last-child {
  padding-bottom: 0;
}
#chat-container .ai-block-text {
  margin: 0;
  line-height: 1.3;
  font-weight: 350;
  color: inherit;
}
#chat-container .ai-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#chat-container .ai-option {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: rgba(0, 133, 119, 0.07);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  color: inherit;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}
#chat-container .ai-option:hover,
#chat-container .ai-option:focus-visible {
  background: rgba(0, 133, 119, 0.12);
  border-color: rgba(0, 133, 119, 0.3);
  transform: translateY(-1px);
  outline: none;
}
#chat-container .ai-option:focus-visible {
  box-shadow: 0 0 0 2px rgba(0, 133, 119, 0.35);
}
#chat-container .ai-option-label {
  color: var(--tudi-link-color);
  font-weight: 600;
  text-decoration: underline;
  font-size: 0.95rem;
}
#chat-container .ai-option-description {
  color: var(--tudi-text-soft-color);
  font-size: 0.9rem;
}
#chat-container .ai-link-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0 16px 0;
  padding: 10px 14px;
  background: rgba(0, 133, 119, 0.06);
  border-left: 3px solid var(--tudi-link-color);
  border-radius: 0 8px 8px 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
#chat-container .ai-link-block:hover, #chat-container .ai-link-block:focus-visible {
  background: rgba(0, 133, 119, 0.12);
  transform: translateX(2px);
  outline: none;
}
#chat-container .ai-link-block:active {
  transform: translateX(1px);
}
#chat-container .ai-link-block .ai-link-title {
  color: var(--tudi-link-color);
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 2px;
}
#chat-container .ai-link-block .ai-link-arrow {
  color: var(--tudi-link-color);
  font-size: 0.85rem;
  opacity: 0.6;
  transition: transform 0.2s ease, opacity 0.2s ease;
  flex-shrink: 0;
}
#chat-container .ai-link-block:hover .ai-link-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}
#chat-container .ai-link-block.ai-link-compact {
  padding: 6px 12px;
  margin: 0 0 4px 0;
  display: inline-flex;
  width: auto;
}
#chat-container .ai-link-block.ai-link-compact .ai-link-url {
  color: var(--tudi-link-color);
  font-weight: 400;
  font-size: 0.85rem;
  line-height: 1.2;
}
#chat-container .ai-link-block.ai-link-compact .ai-link-arrow {
  font-size: 0.75rem;
}
#chat-container #chat-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 0 48px 0;
}
#chat-container #tudi-avatar {
  width: 96px;
  height: 76px;
  object-fit: contain;
  border-radius: 18px;
  padding: 8px;
}
#chat-container #tudi-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}
#chat-container #tudi-subtitle-main {
  display: none;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 300;
  text-align: center;
  color: var(--tudi-text-muted-color);
}
#chat-container .date-display {
  text-align: center;
  color: var(--tudi-text-soft-color);
  font-size: 0.85rem;
  margin: 0 0 10px 12px;
}
@keyframes fadeInTop {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
#chat-container .fade-in-from-top {
  animation: fadeInTop 0.5s ease forwards;
}
@keyframes fadeInLeft {
  from {
    transform: translateX(-30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
#chat-container .fade-in-left {
  animation: fadeInLeft 0.4s ease forwards;
}
@keyframes fadeInRight {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
#chat-container .fade-in-right {
  animation: fadeInRight 0.4s ease forwards;
}
@keyframes rotatePulse {
  0% {
    transform: rotate(0deg) scale(1);
  }
  25% {
    transform: rotate(-3deg) scale(1.05);
  }
  50% {
    transform: rotate(0deg) scale(1.1);
  }
  75% {
    transform: rotate(3deg) scale(1.05);
  }
  100% {
    transform: rotate(0deg) scale(1);
  }
}
@keyframes wavePulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}
#chat-container .thinking-indicator .pulse-icon {
  width: 24px;
  height: 24px;
  position: relative;
  display: inline-block;
  animation: rotatePulse 1.5s infinite ease-in-out;
}
#chat-container .thinking-indicator .pulse-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 24px;
  margin-top: 2px;
  background-color: var(--tudi-thinking-color);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  animation: wavePulse 1.5s infinite ease-out;
  z-index: 1;
}
#chat-container .thinking-indicator .pulse-icon img {
  position: relative;
  z-index: 2;
  top: 2px;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#chat-container #chat-header #chat-subtitle {
  display: none;
  font-size: 0.7rem;
  opacity: 0.9;
  font-weight: 300;
  flex-direction: column;
  text-align: center;
}
#chat-container .info-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--tudi-background-white);
  z-index: 1000;
  overflow: hidden;
  opacity: 1;
  pointer-events: none;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
@supports (clip-path: circle(0 at 50% 50%)) {
  #chat-container .info-screen {
    opacity: 1;
    transform: scale(1);
    clip-path: circle(0 at 50% 50%);
    transition: clip-path 0.6s ease;
  }
}
#chat-container .info-screen.active {
  pointer-events: auto;
  opacity: 1;
  transform: scale(1);
}
@supports (clip-path: circle(0 at 50% 50%)) {
  #chat-container .info-screen.active {
    clip-path: circle(150% at 50% 50%);
  }
}
#chat-container .info-header {
  background: var(--tudi-alt-surface);
  padding: 0.5em 1em;
  display: flex;
  align-items: center;
}
#chat-container .back-btn {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: var(--tudi-text-strong-color);
  display: flex;
  align-items: center;
}
#chat-container .back-btn:before {
  content: "←";
  margin-right: 0.3em;
}
#chat-container .back-btn:focus {
  outline: none;
}
#chat-container .info-content {
  padding: 1em;
  color: var(--tudi-text-strong-color);
}
#chat-container .info-content h3 {
  margin-top: 0;
  margin-bottom: 0.5em;
}
#chat-container .info-content p {
  margin: 0.2em 0;
}
#chat-container .info-content a {
  color: var(--tudi-link-color);
  text-decoration: none;
}
#chat-container .info-content a:hover {
  text-decoration: underline;
}
#chat-container .maintenance-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  background: rgba(3, 8, 15, 0.82);
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
#chat-container .maintenance-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}
#chat-container .maintenance-overlay .maintenance-card {
  width: 100%;
  max-width: 360px;
  padding: 1.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
#chat-container .maintenance-overlay .maintenance-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin: 0 auto;
  background-color: var(--tudi-primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tudi-primary-contrast-color);
  font-weight: 700;
  font-size: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
#chat-container .maintenance-overlay .maintenance-icon::before {
  content: "!";
}
#chat-container .maintenance-overlay .maintenance-card h2 {
  margin: 0;
  color: var(--tudi-text-strong-color);
  font-size: 1.25rem;
}
#chat-container .maintenance-overlay .maintenance-card p {
  margin: 0;
  color: var(--tudi-text-soft-color);
  line-height: 1.5;
  font-size: 0.95rem;
}
#chat-container .maintenance-overlay .maintenance-contact {
  color: var(--tudi-primary-color);
  font-weight: 600;
  text-decoration: none;
}
#chat-container .maintenance-overlay .maintenance-contact:hover,
#chat-container .maintenance-overlay .maintenance-contact:focus-visible {
  text-decoration: underline;
}

#chat-container #maximize-icon {
  display: none !important;
}

@media screen and (max-width: 768px) {
  #chat-container #pin-icon {
    display: none !important;
  }
  #chat-container #fullscreen-icon {
    right: 10px !important;
  }
}

/*# sourceMappingURL=styles.css.map */
