@charset "UTF-8";
:root {
  --ff-ai-primary: #1A7EFB;
  --ff-ai-primary-hover: #1565C9;
  --ff-ai-primary-light: rgba(26, 126, 251, 0.15);
  --ff-ai-primary-dark: #0F5FB5;
  --ff-ai-chat-bg: #f9fafb;
  --ff-ai-surface-muted: #f9fafb;
  --ff-ai-surface-soft: #f3f4f6;
  --ff-ai-surface-strong: #e5e7eb;
  --ff-ai-surface: #ffffff;
  --ff-ai-text-primary: #111827;
  --ff-ai-text-secondary: #374151;
  --ff-ai-text-muted: #6b7280;
  --ff-ai-text-placeholder: #9ca3af;
  --ff-ai-text-disabled: #d1d5db;
  --ff-ai-border: #e5e7eb;
  --ff-ai-border-subtle: #f3f4f6;
  --ff-ai-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --ff-ai-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --ff-ai-radius: 0.5rem;
  --ff-ai-radius-lg: 0.75rem;
  --ff-ai-radius-xl: 1rem;
  --ff-ai-radius-full: 9999px;
  --ff-ai-msg-bg-color: #ffffff;
  --ff-ai-msg-text-color: #111827;
  --ff-human-msg-bg-color: #1A7EFB;
  --ff-human-msg-text-color: #ffffff;
  --ff-msg-font-size: 15px;
  --ff-msg-border-radius: 12px;
  --ff-msg-spacing: 16px;
  --ff-msg-padding: 16px;
  --ff-msg-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --ff-header-bg: #ffffff;
  --ff-ai-header-text: #111827;
  --ff-input-bg: #ffffff;
  --ff-input-border: #e5e7eb;
  --ff-ai-transition-fast: 0.15s;
  --ff-ai-transition-normal: 0.3s;
  --ff-ai-transition-slow: 0.5s;
  --ff-ai-chat-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ff-ai-chat-font-scale: 1;
}

.ff-ai-chat-message {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  width: 100%;
}
.ff-ai-chat-message:last-child {
  margin-bottom: 0 !important;
}
.ff-ai-chat-message.ff-ai-chat-message-user {
  flex-direction: row-reverse;
}

.ff-ai-chat-message-avatar {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--ff-ai-radius-full, 9999px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--ff-ai-accent, #1f2937) 25%, var(--ff-ai-chat-bg, #ffffff) 75%);
  color: var(--ff-ai-chat-text, white);
}
.ff-ai-chat-message-avatar svg {
  width: 1.125rem;
  height: 1.125rem;
}
.ff-ai-chat-message-user .ff-ai-chat-message-avatar {
  background: var(--ff-ai-accent, var(--ff-ai-primary, #1A7EFB));
  color: var(--ff-ai-chat-text, white);
}

.ff-ai-chat-message-content {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.ff-ai-chat-message-user .ff-ai-chat-message-content {
  align-items: flex-end;
}
.ff-ai-chat-message-assistant .ff-ai-chat-message-content {
  align-items: flex-start;
}

.ff-ai-chat-message-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ff-ai-text-muted, #6b7280);
  padding: 0 0.25rem;
}

.ff-ai-chat-message-bubble {
  padding: var(--ff-msg-padding, 0.75rem 1rem);
  line-height: 1.6;
  word-wrap: break-word;
  width: -moz-fit-content;
  width: fit-content;
}

.ff-ai-chat-interface {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
  width: 100%;
  background: var(--ff-ai-chat-bg, var(--ff-ai-surface));
  color: var(--ff-ai-chat-text, var(--ff-ai-text-primary));
  font-family: var(--ff-ai-chat-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.ff-ai-chat-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--ff-header-bg, var(--ff-ai-surface));
  border-bottom: 1px solid var(--ff-ai-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  z-index: 10;
}

.ff-ai-chat-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ff-ai-header-text, var(--ff-ai-chat-text, var(--ff-ai-text-primary)));
}
.ff-ai-chat-title svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--ff-ai-chat-text, var(--ff-ai-text-primary));
}

.ff-ai-chat-custom-logo {
  width: 2rem;
  height: 2rem;
  -o-object-fit: contain;
     object-fit: contain;
  flex-shrink: 0;
}

.ff-ai-chat-actions {
  display: flex;
  gap: 0.5rem;
}

.ff-ai-chat-error-action, .ff-ai-chat-action-btn-secondary, .ff-ai-chat-action-btn-primary, .ff-ai-chat-none-of-above-btn, .ff-ai-chat-quick-reply-btn, .ff-ai-chat-skip-btn, .ff-ai-chat-action-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--ff-ai-radius);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--ff-ai-transition-fast);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.ff-ai-chat-error-action:active, .ff-ai-chat-action-btn-secondary:active, .ff-ai-chat-action-btn-primary:active, .ff-ai-chat-none-of-above-btn:active, .ff-ai-chat-quick-reply-btn:active, .ff-ai-chat-skip-btn:active, .ff-ai-chat-action-btn:active {
  transform: translateY(0);
}
.ff-ai-chat-error-action:focus, .ff-ai-chat-action-btn-secondary:focus, .ff-ai-chat-action-btn-primary:focus, .ff-ai-chat-none-of-above-btn:focus, .ff-ai-chat-quick-reply-btn:focus, .ff-ai-chat-skip-btn:focus, .ff-ai-chat-action-btn:focus {
  outline: none;
}
.ff-ai-chat-error-action:focus-visible, .ff-ai-chat-action-btn-secondary:focus-visible, .ff-ai-chat-action-btn-primary:focus-visible, .ff-ai-chat-none-of-above-btn:focus-visible, .ff-ai-chat-quick-reply-btn:focus-visible, .ff-ai-chat-skip-btn:focus-visible, .ff-ai-chat-action-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ff-ai-primary-light, rgba(26, 126, 251, 0.25));
}

.ff-ai-chat-action-btn {
  background: var(--ff-ai-btn-bg, var(--ff-ai-accent, var(--ff-ai-primary)));
  color: var(--ff-ai-btn-text, var(--ff-ai-chat-text, white));
}
.ff-ai-chat-action-btn:hover {
  background: var(--ff-ai-btn-bg, var(--ff-ai-accent, var(--ff-ai-primary-hover)));
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  filter: brightness(0.92);
}

.ff-ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: var(--ff-msg-spacing, 1.5rem);
  scroll-behavior: smooth;
  width: 100%;
}
.ff-ai-chat-messages::-webkit-scrollbar {
  width: 6px;
}
.ff-ai-chat-messages::-webkit-scrollbar-track {
  background: var(--ff-ai-chrome-bg, var(--ff-ai-surface-muted));
}
.ff-ai-chat-messages::-webkit-scrollbar-thumb {
  background: var(--ff-ai-border);
  border-radius: 3px;
}
.ff-ai-chat-messages::-webkit-scrollbar-thumb:hover {
  background: var(--ff-ai-text-placeholder);
}
.ff-ai-chat-messages.ff-ai-chat-messages-centered {
  justify-content: center;
  padding: 3rem 1.5rem;
}

.ff-ai-chat-message {
  animation: slideIn var(--ff-ai-transition-normal) ease;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 0.5rem;
}
.ff-ai-chat-message .ff-ai-chat-message-bubble p {
  margin: 0 0 0.75rem 0;
}
.ff-ai-chat-message .ff-ai-chat-message-bubble p:last-child {
  margin-bottom: 0;
}
.ff-ai-chat-message .ff-ai-chat-message-bubble ul, .ff-ai-chat-message .ff-ai-chat-message-bubble ol {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
}
.ff-ai-chat-message .ff-ai-chat-message-bubble ul li, .ff-ai-chat-message .ff-ai-chat-message-bubble ol li {
  margin-bottom: 0.25rem;
}
.ff-ai-chat-message .ff-ai-chat-message-bubble code {
  background: rgba(0, 0, 0, 0.05);
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.875em;
}
.ff-ai-chat-message .ff-ai-chat-message-bubble pre {
  background: rgba(0, 0, 0, 0.05);
  padding: 0.75rem;
  border-radius: 0.375rem;
  overflow-x: auto;
  margin: 0.75rem 0;
}
.ff-ai-chat-message .ff-ai-chat-message-bubble pre code {
  background: none;
  padding: 0;
}
.ff-ai-chat-message .ff-ai-chat-message-bubble strong {
  font-weight: 600;
}
.ff-ai-chat-message .ff-ai-chat-message-bubble em {
  font-style: italic;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ff-ai-chat-message-avatar {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  overflow: hidden;
  background: var(--ff-ai-chrome-bg, var(--ff-ai-surface-muted));
  color: var(--ff-ai-chat-text, var(--ff-ai-text-primary));
  font-size: 0.875rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ff-ai-chat-message-avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

.ff-ai-chat-message-avatar-fallback {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ff-ai-chat-message-content {
  gap: 0.25rem;
  max-width: 70%;
}
.ff-ai-chat-fullscreen-question .ff-ai-chat-message-content {
  max-width: 90%;
}

.ff-ai-chat-message-label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.ff-ai-chat-message-bubble {
  padding: var(--ff-msg-padding);
  line-height: 1.6;
  font-size: var(--ff-msg-font-size, 0.9375rem);
  word-wrap: break-word;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  transition: all var(--ff-ai-transition-fast);
  box-shadow: var(--ff-msg-shadow, var(--ff-ai-shadow));
  font-weight: normal;
  text-transform: none;
  font-style: normal;
  text-decoration: none;
  line-height: var(--ff-msg-line-height, 1.6);
  letter-spacing: normal;
  word-spacing: normal;
  border-style: none;
  border-color: transparent;
  border-width: 0;
  border-radius: var(--ff-msg-border-radius, var(--ff-ai-radius-lg));
}

.ff-ai-chat-message-assistant .ff-ai-chat-message-bubble {
  background: var(--ff-ai-msg-bg-color, var(--ff-ai-surface));
  color: var(--ff-ai-msg-text-color, var(--ff-ai-chat-text, var(--ff-ai-text-primary)));
  font-size: calc(var(--ff-ai-msg-font-size, var(--ff-msg-font-size, 0.9375rem)) * var(--ff-ai-chat-font-scale, 1));
  font-weight: var(--ff-ai-msg-font-weight, normal);
  text-transform: var(--ff-ai-msg-text-transform, none);
  font-style: var(--ff-ai-msg-font-style, normal);
  -webkit-text-decoration: var(--ff-ai-msg-text-decoration, none);
          text-decoration: var(--ff-ai-msg-text-decoration, none);
  line-height: var(--ff-ai-msg-line-height, 1.6);
  letter-spacing: var(--ff-ai-msg-letter-spacing, normal);
  word-spacing: var(--ff-ai-msg-word-spacing, normal);
  border-style: var(--ff-ai-msg-border-type, none);
  border-color: var(--ff-ai-msg-border-color, transparent);
  border-width: var(--ff-ai-msg-border-width, 0);
  border-radius: var(--ff-ai-msg-border-radius, var(--ff-msg-border-radius, var(--ff-ai-radius-lg)));
}
.ff-ai-chat-message-user .ff-ai-chat-message-bubble {
  background: var(--ff-human-msg-bg-color, var(--ff-ai-primary));
  color: var(--ff-human-msg-text-color, var(--ff-ai-chat-text, white));
  font-size: calc(var(--ff-human-msg-font-size, var(--ff-msg-font-size, 0.9375rem)) * var(--ff-ai-chat-font-scale, 1));
  font-weight: var(--ff-human-msg-font-weight, normal);
  text-transform: var(--ff-human-msg-text-transform, none);
  font-style: var(--ff-human-msg-font-style, normal);
  -webkit-text-decoration: var(--ff-human-msg-text-decoration, none);
          text-decoration: var(--ff-human-msg-text-decoration, none);
  line-height: var(--ff-human-msg-line-height, 1.6);
  letter-spacing: var(--ff-human-msg-letter-spacing, normal);
  word-spacing: var(--ff-human-msg-word-spacing, normal);
  border-style: var(--ff-human-msg-border-type, none);
  border-color: var(--ff-human-msg-border-color, transparent);
  border-width: var(--ff-human-msg-border-width, 0);
  border-radius: var(--ff-human-msg-border-radius, var(--ff-msg-border-radius, var(--ff-ai-radius-lg)));
}
.ff-ai-chat-message-bubble .ff-ai-chat-loading-dots {
  display: flex;
  gap: 0.375rem;
  padding: 0.25rem 0;
}
.ff-ai-chat-message-bubble .ff-ai-chat-loading-dots span {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--ff-ai-text-muted);
  border-radius: var(--ff-ai-radius-full);
  animation: bounce 1.4s infinite ease-in-out both;
}
.ff-ai-chat-message-bubble .ff-ai-chat-loading-dots span:nth-child(1) {
  animation-delay: -0.32s;
}
.ff-ai-chat-message-bubble .ff-ai-chat-loading-dots span:nth-child(2) {
  animation-delay: -0.16s;
}
.ff-ai-chat-message-bubble .ff-ai-chat-loading-cursor {
  min-width: 0.5rem;
  min-height: 1.5em;
  display: inline-flex;
  align-items: center;
}
.ff-ai-chat-message-bubble .ff-ai-chat-loading-cursor::after {
  content: "|";
  color: currentColor;
  animation: ffAiCursorBlink 1s ease-in-out infinite;
}

.ff-ai-chat-typing-cursor {
  display: inline-block;
  width: 0.35em;
  margin-left: 0.05em;
  vertical-align: baseline;
}
.ff-ai-chat-typing-cursor::after {
  content: "|";
  animation: ffAiCursorBlink 1s ease-in-out infinite;
}

@keyframes ffAiCursorBlink {
  0%, 100% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
}
.ff-ai-chat-quick-replies,
.ff-ai-chat-skip-btn,
.ff-ai-chat-input-area,
.ff-ai-chat-fullscreen-input,
.ff-ai-chat-terms-content,
.ff-ai-chat-rating,
.ff-ai-chat-file-upload,
.ff-ai-chat-matrix,
.ff-ai-chat-address-autocomplete {
  animation: ffAiControlsReveal 180ms ease-out both;
}

.ff-ai-chat-quick-replies .ff-ai-chat-quick-reply-btn {
  animation: ffAiControlsReveal 180ms ease-out both;
}
.ff-ai-chat-quick-replies .ff-ai-chat-quick-reply-btn:nth-child(2) {
  animation-delay: 25ms;
}
.ff-ai-chat-quick-replies .ff-ai-chat-quick-reply-btn:nth-child(3) {
  animation-delay: 50ms;
}
.ff-ai-chat-quick-replies .ff-ai-chat-quick-reply-btn:nth-child(4) {
  animation-delay: 75ms;
}
.ff-ai-chat-quick-replies .ff-ai-chat-quick-reply-btn:nth-child(5) {
  animation-delay: 100ms;
}

@keyframes ffAiControlsReveal {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ff-ai-chat-long-loading-text {
  font-size: 0.8125rem;
  color: var(--ff-ai-chat-text, var(--ff-ai-text-muted));
  margin-top: 0.5rem;
  animation: fadeIn 0.5s ease;
}

.ff-ai-chat-scroll-bottom-btn {
  position: sticky;
  bottom: 1rem;
  align-self: flex-end;
  margin-right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--ff-ai-border);
  background: var(--ff-ai-chat-bg, var(--ff-ai-surface));
  color: var(--ff-ai-chat-text, var(--ff-ai-text-primary));
  font-size: 1.125rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  z-index: 5;
  transition: all 0.2s ease;
}
.ff-ai-chat-scroll-bottom-btn:hover {
  background: var(--ff-ai-accent, var(--ff-ai-primary));
  color: var(--ff-ai-chat-text, white);
  border-color: var(--ff-ai-accent, var(--ff-ai-primary));
}
.ff-ai-chat-scroll-bottom-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
}

.ff-ai-chat-message-time {
  font-size: 0.6875rem;
  color: var(--ff-ai-timestamp-color, var(--ff-ai-chat-text, var(--ff-ai-text-placeholder)));
  padding: 0 0.25rem;
  opacity: 0.6;
  transition: opacity var(--ff-ai-transition-normal);
}
.ff-ai-chat-message-content:hover .ff-ai-chat-message-time {
  opacity: 1;
}

.ff-ai-chat-footer {
  flex-shrink: 0;
  padding: 0.75rem 1.5rem;
  text-align: center;
  background: var(--ff-header-bg, var(--ff-ai-surface));
  border-top: 1px solid var(--ff-ai-border);
}

.ff-ai-chat-footer-text {
  font-size: 0.75rem;
  color: var(--ff-ai-footer-text-color, var(--ff-ai-chat-text, var(--ff-ai-text-placeholder)));
  margin: 0;
}
.ff-ai-chat-footer-text a {
  color: var(--ff-ai-link-color, var(--ff-ai-chat-text, var(--ff-ai-text-muted)));
  text-decoration: none;
  font-weight: 600;
  transition: color var(--ff-ai-transition-fast);
}
.ff-ai-chat-footer-text a:hover {
  opacity: 0.7;
}

.ff-ai-chat-loading {
  display: flex;
  justify-content: center;
  padding: 1rem;
}

.ff-ai-chat-app {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ff-ai-chat-bg, var(--ff-ai-surface-muted));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ff-human-msg-bg-color: var(--ffo-user-bg, var(--ff-ai-accent, var(--ff-ai-primary)));
  --ff-ai-msg-bg-color: var(--ffo-ai-bg, color-mix(in srgb, var(--ff-ai-accent, var(--ff-ai-surface)) 25%, var(--ff-ai-chat-bg, #ffffff) 75%));
  --ff-ai-chrome-bg: color-mix(in srgb, var(--ff-ai-chat-bg, #ffffff) 85%, var(--ff-ai-accent, var(--ff-ai-primary)) 15%);
  --ff-input-bg: var(--ffo-input-bg, var(--ff-ai-chrome-bg));
  --ff-ai-msg-text-color: var(--ffo-ai-text, var(--ff-ai-chat-text));
  --ff-human-msg-text-color: var(--ffo-user-text, var(--ff-ai-chat-text, var(--ff-ai-user-contrast, #ffffff)));
  --ff-ai-header-text: var(--ffo-header-text, var(--ff-ai-accent, var(--ff-ai-primary)));
  --ff-ai-progress-fill: var(--ffo-progress, var(--ff-ai-accent, var(--ff-ai-primary)));
  --ff-ai-btn-bg: var(--ffo-button-bg, var(--ff-ai-accent, var(--ff-ai-primary)));
  --ff-ai-btn-text: var(--ffo-button-text, var(--ff-ai-btn-contrast, #ffffff));
  --ff-input-text-color: var(--ffo-input-text, var(--ff-ai-chat-text));
  --ff-input-border-color: var(--ffo-input-border, var(--ff-ai-border));
  --ff-ai-footer-text-color: var(--ffo-footer-text, var(--ff-ai-accent, var(--ff-ai-primary)));
  --ff-ai-link-color: var(--ffo-link, var(--ff-ai-accent, var(--ff-ai-primary)));
  --ff-ai-timestamp-color: var(--ffo-timestamp, var(--ff-ai-chat-text));
}

.ff-ai-chat-app .ff-ai-chat-loading {
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--ff-ai-chat-text, var(--ff-ai-text-placeholder));
}
.ff-ai-chat-app .ff-ai-chat-loading__spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid var(--ff-ai-border);
  border-top-color: var(--ff-ai-accent, var(--ff-ai-primary));
  border-radius: var(--ff-ai-radius-full);
  animation: ff-ai-app-spin 0.8s linear infinite;
}
.ff-ai-chat-app .ff-ai-chat-loading p {
  margin: 0;
  font-size: 0.875rem;
}

@keyframes ff-ai-app-spin {
  to {
    transform: rotate(360deg);
  }
}
/* Welcome screen (gated) — shown until the user clicks the CTA. Used by both the
   live widget and the static preview so the two render identically. */
.ff-ai-chat-welcome {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 220px;
  padding: 40px 24px;
  text-align: center;
  box-sizing: border-box;
}
.ff-ai-chat-welcome-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 460px;
  margin: 0 auto;
}
.ff-ai-chat-welcome-content h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ff-ai-chat-text, var(--ff-ai-text-primary, #111827));
}
.ff-ai-chat-welcome-content p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ff-ai-chat-text, #4b5563);
  opacity: 0.72;
}

.ff-ai-chat-welcome-cta {
  margin-top: 8px;
  padding: 12px 30px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ff-ai-btn-text, #ffffff);
  background: var(--ff-ai-btn-bg, var(--ff-ai-accent, var(--ff-ai-primary, #2563eb)));
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}
.ff-ai-chat-welcome-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
  filter: brightness(1.03);
}
.ff-ai-chat-welcome-cta:active {
  transform: translateY(0);
}
.ff-ai-chat-welcome-cta:focus-visible {
  outline: 2px solid var(--ff-ai-primary, #2563eb);
  outline-offset: 2px;
}
.ff-ai-chat-welcome-cta[disabled] {
  cursor: default;
  opacity: 0.9;
}

/* Fullscreen welcome — larger, immersive, and uses the fullscreen ink vars so the
   title/statement stay readable on both light and dark canvases. */
.ff-ai-chat-welcome--fullscreen {
  min-height: 60vh;
  padding: 56px 24px;
}
.ff-ai-chat-welcome--fullscreen .ff-ai-chat-welcome-content {
  max-width: 640px;
  gap: 18px;
}
.ff-ai-chat-welcome--fullscreen .ff-ai-chat-welcome-content h3 {
  font-size: 40px;
  line-height: 1.15;
  color: var(--ff-ai-chat-text, var(--ff-ai-fs-ink, var(--ff-ai-text-primary, #111827)));
}
.ff-ai-chat-welcome--fullscreen .ff-ai-chat-welcome-content p {
  font-size: 18px;
  color: var(--ff-ai-chat-text, var(--ff-ai-fs-ink-muted, var(--ff-ai-fs-ink, #4b5563)));
  opacity: 1;
}
.ff-ai-chat-welcome--fullscreen .ff-ai-chat-welcome-cta {
  margin-top: 14px;
  padding: 14px 36px;
  font-size: 16px;
  background: var(--ff-ai-btn-bg, var(--ff-ai-fs-accent, var(--ff-ai-primary, #2563eb)));
  color: var(--ff-ai-btn-text, #ffffff);
}

.ff-ai-chat-input-container {
  max-width: 900px;
  width: 100%;
}

.ff-ai-chat-input-form {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  background: var(--ff-input-bg, var(--ff-ai-chrome-bg, var(--ff-ai-surface)));
  border: 1px solid var(--ff-input-border-color, var(--ff-ai-border));
  border-radius: var(--ff-ai-radius-lg);
  padding: 0.75rem 1rem;
  transition: all var(--ff-ai-transition-fast);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.ff-ai-chat-input-form:focus-within {
  border-color: var(--ff-ai-accent, var(--ff-ai-primary));
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.ff-ai-chat-input-actions {
  display: none;
}
.ff-ai-chat-input-actions .ff-ai-chat-file-input {
  display: none;
}
.ff-ai-chat-input-actions .ff-ai-chat-upload-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--ff-ai-accent, var(--ff-ai-primary));
  color: var(--ff-ai-chat-text, white);
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all var(--ff-ai-transition-fast);
  font-size: 0.875rem;
  font-weight: 500;
}
.ff-ai-chat-input-actions .ff-ai-chat-upload-btn:hover:not(:disabled) {
  background: var(--ff-ai-accent, var(--ff-ai-primary-hover));
  filter: brightness(0.92);
}
.ff-ai-chat-input-actions .ff-ai-chat-upload-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.ff-ai-chat-input-actions .ff-ai-chat-upload-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.ff-ai-chat-send-btn, .ff-ai-chat-mic-btn, .ff-ai-chat-input-action-btn {
  padding: 0.5rem;
  border: none;
  border-radius: var(--ff-ai-radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ff-ai-transition-fast);
}
.ff-ai-chat-send-btn svg, .ff-ai-chat-mic-btn svg, .ff-ai-chat-input-action-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}
.ff-ai-chat-send-btn:focus, .ff-ai-chat-mic-btn:focus, .ff-ai-chat-input-action-btn:focus {
  outline: none;
}

.ff-ai-chat-input-action-btn {
  background: transparent;
  color: var(--ff-ai-chat-text, var(--ff-ai-text-muted));
}
.ff-ai-chat-input-action-btn:hover, .ff-ai-chat-input-action-btn:focus {
  background: var(--ff-ai-chrome-bg, var(--ff-ai-surface-muted));
  color: var(--ff-ai-chat-text, var(--ff-ai-text-primary));
}

.ff-ai-chat-input-field {
  flex: 1;
  padding: 0.5rem 0;
  border: none;
  font-size: calc(0.9375rem * var(--ff-ai-chat-font-scale, 1));
  font-family: inherit;
  resize: none;
  min-height: 1.5rem;
  max-height: 8rem;
  line-height: 1.5;
  color: var(--ff-input-text-color, var(--ff-ai-chat-text, var(--ff-ai-text-primary)));
  background: transparent;
}
.ff-ai-chat-input-field:focus {
  outline: none;
}
.ff-ai-chat-input-field::-moz-placeholder {
  color: var(--ff-input-text-color, var(--ff-ai-chat-text, var(--ff-ai-text-placeholder)));
  opacity: 0.6;
}
.ff-ai-chat-input-field::placeholder {
  color: var(--ff-input-text-color, var(--ff-ai-chat-text, var(--ff-ai-text-placeholder)));
  opacity: 0.6;
}
.ff-ai-chat-input-field:disabled {
  background: transparent;
  cursor: not-allowed;
  color: var(--ff-input-text-color, var(--ff-ai-chat-text, var(--ff-ai-text-placeholder)));
  opacity: 0.6;
}
.ff-ai-chat-input-field.ff-ai-chat-input-error {
  color: #ef4444;
}

.ff-ai-chat-phone-input-form {
  align-items: center;
}
.ff-ai-chat-phone-input-form .iti {
  flex: 1;
  width: 100%;
  min-width: 0;
}
.ff-ai-chat-phone-input-form .iti__country-list {
  z-index: 999999;
}

.ff-ai-chat-phone-input-field {
  width: 100%;
  min-height: 2.5rem;
  resize: none;
}

.ff-ai-chat-mic-btn {
  background: transparent;
  color: var(--ff-ai-chat-text, var(--ff-ai-text-muted));
  flex-shrink: 0;
}
.ff-ai-chat-mic-btn:hover, .ff-ai-chat-mic-btn:focus {
  background: var(--ff-ai-chrome-bg, var(--ff-ai-surface-muted));
  color: var(--ff-ai-chat-text, var(--ff-ai-text-primary));
}
.ff-ai-chat-mic-btn--active {
  color: #ef4444;
  animation: ff-ai-mic-pulse 1.5s ease-in-out infinite;
}
.ff-ai-chat-mic-btn--active:hover, .ff-ai-chat-mic-btn--active:focus {
  color: #dc2626;
}

@keyframes ff-ai-mic-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.ff-ai-chat-send-btn {
  background: var(--ff-ai-btn-bg, var(--ff-ai-accent, var(--ff-ai-primary)));
  color: var(--ff-ai-btn-text, #ffffff);
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.ff-ai-chat-send-btn:hover:not(:disabled) {
  background: var(--ff-ai-btn-bg, var(--ff-ai-accent, var(--ff-ai-primary-hover)));
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
  filter: brightness(0.92);
}
.ff-ai-chat-send-btn:active:not(:disabled) {
  transform: translateY(0);
}
.ff-ai-chat-send-btn:focus {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
}
.ff-ai-chat-send-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: var(--ff-ai-text-placeholder, #9ca3af);
  box-shadow: none;
  transform: none;
}

.ff-ai-chat-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.ff-ai-chat-input-counter {
  font-size: 0.75rem;
  color: var(--ff-ai-chat-text, var(--ff-ai-text-placeholder));
  text-align: right;
  margin-top: 0.25rem;
  opacity: 0;
  transition: opacity var(--ff-ai-transition-fast);
}
.ff-ai-chat-input-counter.visible {
  opacity: 1;
}
.ff-ai-chat-input-counter.near-limit {
  color: var(--ff-ai-accent, var(--ff-ai-primary));
}
.ff-ai-chat-input-counter.at-limit {
  color: #dc2626;
}

.ff-ai-chat-input-wrapper {
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ff-ai-chat-input-info {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #9ca3af;
  transition: opacity 0.2s;
}
.ff-ai-chat-input-info.ff-ai-chat-input-warning {
  color: #ef4444;
}

.ff-ai-chat-skip-btn {
  margin-bottom: 0.5rem;
  margin-left: auto;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  background: var(--ff-ai-chrome-bg, var(--ff-ai-surface-muted, #f9fafb));
  color: var(--ff-ai-chat-text, var(--ff-ai-text-muted, #6b7280));
  border: 1px solid var(--ff-ai-btn-bg, var(--ff-ai-accent, var(--ff-ai-primary)));
}
.ff-ai-chat-skip-btn:hover {
  background: var(--ff-ai-chrome-bg, var(--ff-ai-surface-muted, #f9fafb));
  color: var(--ff-ai-chat-text, var(--ff-ai-text-primary, #111827));
}

.ff-ai-chat-save-flow {
  margin: 12px auto 0;
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: var(--ff-ai-chat-bg, var(--ff-ai-surface, #ffffff));
}

.ff-ai-chat-save-flow__label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}

.ff-ai-chat-save-flow__row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.ff-ai-chat-save-flow__input {
  flex: 1 1 220px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  font-size: 14px;
}

.ff-ai-chat-save-flow__submit,
.ff-ai-chat-save-flow__cancel {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 0;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}

.ff-ai-chat-save-flow__submit {
  background: var(--ff-ai-accent, #4c6fff);
  color: #fff;
}
.ff-ai-chat-save-flow__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ff-ai-chat-save-flow__cancel {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.16);
}

.ff-ai-chat-save-flow__error {
  margin: 8px 0 0;
  font-size: 12px;
  color: #dc2626;
}

.ff-ai-chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.ff-ai-chat-selection-hint {
  width: 100%;
  font-size: 0.75rem;
  color: var(--ff-ai-chat-text, var(--ff-ai-text-muted));
  margin-bottom: 0.5rem;
  font-style: italic;
  padding: 0.25rem 0.5rem;
  background: var(--ff-ai-chrome-bg, var(--ff-ai-surface-muted));
  border-radius: var(--ff-ai-radius);
}

.ff-ai-chat-quick-reply-btn {
  background: var(--ff-ai-chrome-bg, var(--ff-ai-surface));
  color: var(--ff-ai-chat-text, var(--ff-ai-primary));
  border: 1.5px solid var(--ff-ai-btn-bg, var(--ff-ai-accent, var(--ff-ai-primary)));
  border-radius: var(--ff-ai-radius-full);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}
.ff-ai-chat-quick-reply-btn:hover:not(.ff-ai-chat-quick-reply-btn-selected) {
  background: var(--ff-ai-btn-bg, var(--ff-ai-accent, var(--ff-ai-primary)));
  color: var(--ff-ai-chat-text, white);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.ff-ai-chat-quick-reply-btn.ff-ai-chat-quick-reply-btn-selected {
  background: var(--ff-ai-btn-bg, var(--ff-ai-accent, var(--ff-ai-primary)));
  color: var(--ff-ai-chat-text, white);
  border-color: var(--ff-ai-btn-bg, var(--ff-ai-accent, var(--ff-ai-primary)));
  font-weight: 500;
}
.ff-ai-chat-quick-reply-btn.ff-ai-chat-quick-reply-btn-selected:hover {
  background: var(--ff-ai-btn-bg, var(--ff-ai-accent, var(--ff-ai-primary)));
  color: var(--ff-ai-chat-text, white);
  border-color: var(--ff-ai-btn-bg, var(--ff-ai-accent, var(--ff-ai-primary)));
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  filter: brightness(0.92);
}
.ff-ai-chat-quick-reply-btn.ff-ai-chat-quick-reply-btn-selected:active {
  transform: translateY(0);
}
.ff-ai-chat-quick-reply-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
}
.ff-ai-chat-quick-reply-btn:active:not(.ff-ai-chat-quick-reply-btn-selected) {
  transform: translateY(0);
}
.ff-ai-chat-quick-reply-btn.ff-ai-chat-quick-reply-btn-disabled, .ff-ai-chat-quick-reply-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.ff-ai-chat-quick-reply-btn.ff-ai-chat-quick-reply-btn-disabled:hover, .ff-ai-chat-quick-reply-btn:disabled:hover {
  background: var(--ff-ai-chrome-bg, var(--ff-ai-surface));
  color: var(--ff-ai-chat-text, var(--ff-ai-primary));
  transform: none;
  box-shadow: none;
}
.ff-ai-chat-quick-reply-btn.ff-ai-chat-quick-reply-submit {
  background: var(--ff-ai-btn-bg, var(--ff-ai-accent, var(--ff-ai-primary)));
  color: var(--ff-ai-chat-text, white);
  border-color: var(--ff-ai-btn-bg, var(--ff-ai-accent, var(--ff-ai-primary)));
  font-weight: 600;
}
.ff-ai-chat-quick-reply-btn.ff-ai-chat-quick-reply-submit:hover {
  background: var(--ff-ai-btn-bg, var(--ff-ai-accent, var(--ff-ai-primary-hover)));
  border-color: var(--ff-ai-btn-bg, var(--ff-ai-accent, var(--ff-ai-primary-hover)));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  filter: brightness(0.92);
}
.ff-ai-chat-quick-reply-btn.ff-ai-chat-quick-reply-other {
  border-style: dashed;
}
.ff-ai-chat-quick-reply-btn.ff-ai-chat-quick-reply-btn-custom .ff-ai-chat-custom-remove {
  margin-left: 0.25rem;
  font-size: 1.1em;
  opacity: 0.7;
}
.ff-ai-chat-quick-reply-btn.ff-ai-chat-quick-reply-btn-custom:hover .ff-ai-chat-custom-remove {
  opacity: 1;
}
.ff-ai-chat-quick-reply-btn.ff-ai-chat-quick-reply-btn-picture {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem;
  min-width: 100px;
  max-width: 160px;
}

.ff-ai-chat-option-image {
  width: 100%;
  max-width: 140px;
  height: auto;
  max-height: 100px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 0.375rem;
}

.ff-ai-chat-quick-replies:has(.ff-ai-chat-quick-reply-btn-picture) {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ff-ai-chat-other-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  width: 100%;
  margin-top: 0.25rem;
}

.ff-ai-chat-other-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  outline: none;
}
.ff-ai-chat-other-input:focus {
  border-color: var(--ff-ai-accent, var(--ff-ai-primary, #2563eb));
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.ff-ai-chat-other-input-submit,
.ff-ai-chat-other-input-cancel {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.ff-ai-chat-other-input-submit {
  background: var(--ff-ai-btn-bg, var(--ff-ai-accent, var(--ff-ai-primary, #1A7EFB)));
  color: var(--ff-ai-chat-text, white);
}
.ff-ai-chat-other-input-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ff-ai-chat-other-input-cancel {
  background: #f3f4f6;
  color: #6b7280;
}
.ff-ai-chat-other-input-cancel:hover {
  background: #e5e7eb;
}

.ff-ai-chat-option-filter-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.ff-ai-chat-option-filter {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--ff-ai-border, #d1d5db);
  border-radius: var(--ff-ai-radius, 0.5rem);
  font-size: 0.875rem;
  outline: none;
}
.ff-ai-chat-option-filter:focus {
  border-color: var(--ff-ai-primary, #2563eb);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.ff-ai-chat-option-filter-count {
  font-size: 0.75rem;
  color: var(--ff-ai-chat-text, var(--ff-ai-text-muted, #6b7280));
  white-space: nowrap;
}

.ff-ai-chat-options-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ff-ai-chat-matrix {
  min-width: 280px;
}
.ff-ai-chat-matrix .ff-ai-chat-quick-reply-btn {
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
}
.ff-ai-chat-matrix .ff-ai-chat-quick-reply-submit {
  margin-top: 8px;
}

.ff-ai-chat-matrix-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.ff-ai-chat-matrix-row:last-of-type {
  margin-bottom: 0;
}
.ff-ai-chat-matrix-row .ff-ai-chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ff-ai-chat-matrix-row-label {
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  min-width: -moz-fit-content;
  min-width: fit-content;
  color: currentColor;
  opacity: 0.85;
}

.ff-ai-chat-none-of-above-btn {
  background: var(--ff-ai-chat-bg, var(--ff-ai-surface));
  color: var(--ff-ai-chat-text, var(--ff-ai-text-muted));
  border: 1px dashed var(--ff-ai-border);
  border-radius: var(--ff-ai-radius-full);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  margin-top: 0.5rem;
}
.ff-ai-chat-none-of-above-btn:hover {
  background: var(--ff-ai-chrome-bg, var(--ff-ai-surface-muted));
  color: var(--ff-ai-chat-text, var(--ff-ai-text-primary));
  border-color: var(--ff-ai-chat-text, var(--ff-ai-text-muted));
  transform: translateY(-1px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.ff-ai-chat-none-of-above-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}
.ff-ai-chat-none-of-above-btn:active {
  transform: translateY(0);
}

.ff-ai-chat-validation-error {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: #fee2e2;
  border-left: 3px solid #dc2626;
  border-radius: var(--ff-ai-radius);
  font-size: 0.875rem;
  color: #991b1b;
  animation: shake 0.5s ease;
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.1);
}
.ff-ai-chat-validation-error svg {
  flex-shrink: 0;
  color: #dc2626;
  margin-top: 0.125rem;
}
.ff-ai-chat-validation-error span {
  flex: 1;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-2px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(2px);
  }
}
.ff-ai-chat-progress {
  width: 100%;
  padding: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 0;
  height: 2px;
}

.ff-ai-chat-progress-bar {
  height: 2px;
  background: rgba(157, 163, 175, 0.25);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  flex: 1;
}

.ff-ai-chat-progress-fill {
  height: 100%;
  background: var(--ff-ai-progress-fill, var(--ff-ai-accent, var(--ff-ai-primary)));
  border-radius: 0;
  transition: width 400ms cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.ff-ai-chat-progress-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ff-ai-chat-file-input-hidden {
  display: none;
}

.ff-ai-chat-file-upload {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.5rem;
}

.ff-ai-chat-file-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.ff-ai-chat-file-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.5rem;
  background: rgba(0, 0, 0, 0.04);
  border-radius: var(--ff-ai-radius);
  font-size: 0.8125rem;
  position: relative;
  overflow: hidden;
}

.ff-ai-chat-file-thumb {
  width: 2.25rem;
  height: 2.25rem;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 0.25rem;
  flex-shrink: 0;
}

.ff-ai-chat-file-ext-badge {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 0.25rem;
  font-size: 0.625rem;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
}

.ff-ai-chat-file-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.ff-ai-chat-file-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  color: var(--ff-ai-chat-text, var(--ff-ai-text-primary));
}

.ff-ai-chat-file-size {
  font-size: 0.6875rem;
  color: var(--ff-ai-chat-text, var(--ff-ai-text-muted));
}

.ff-ai-chat-file-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.ff-ai-chat-file-progress-bar {
  height: 100%;
  background: var(--ff-ai-accent, var(--ff-ai-primary));
  transition: width 0.2s ease;
}

.ff-ai-chat-file-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.125rem;
  line-height: 1;
  color: var(--ff-ai-chat-text, var(--ff-ai-text-muted));
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  flex-shrink: 0;
  transition: color var(--ff-ai-transition-fast), background var(--ff-ai-transition-fast);
}
.ff-ai-chat-file-remove:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.ff-ai-chat-file-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ff-ai-chat-upload-done-btn {
  font-weight: 600;
}

.ff-ai-chat-file-upload-error {
  font-size: 0.8125rem;
  color: #ef4444;
  margin: 0;
}

.ff-ai-chat-message-files {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
  margin-top: 0.25rem;
}

.ff-ai-chat-message-file-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.5rem;
  background: rgba(0, 0, 0, 0.04);
  border-radius: var(--ff-ai-radius);
  font-size: 0.8125rem;
}
.ff-ai-chat-message-user .ff-ai-chat-message-file-item {
  background: rgba(255, 255, 255, 0.15);
}

.ff-ai-chat-message-file-thumb {
  width: 1.75rem;
  height: 1.75rem;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 0.25rem;
  flex-shrink: 0;
}

.ff-ai-chat-message-file-ext {
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 0.25rem;
  font-size: 0.5625rem;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
}
.ff-ai-chat-message-user .ff-ai-chat-message-file-ext {
  background: rgba(255, 255, 255, 0.25);
}

.ff-ai-chat-message-file-name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.ff-ai-chat-message-file-size {
  font-size: 0.6875rem;
  opacity: 0.7;
  flex-shrink: 0;
}

.ff-ai-chat-completed {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2rem;
  text-align: center;
  background: var(--ff-ai-chrome-bg, var(--ff-ai-surface-muted));
  animation: fadeIn var(--ff-ai-transition-slow) ease;
}

.ff-ai-chat-completed__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ff-ai-accent, var(--ff-ai-primary, #1A7EFB)) 12%, transparent);
  color: var(--ff-ai-chat-text, var(--ff-ai-text-primary, #111827));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}
.ff-ai-chat-completed__icon svg {
  display: block;
  stroke-width: 2.5;
}

.ff-ai-chat-completed__title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ff-ai-chat-text, var(--ff-ai-text-primary));
  animation: slideUp var(--ff-ai-transition-normal) ease 0.2s both;
}

.ff-ai-chat-completed__message {
  font-size: 1.0625rem;
  color: var(--ff-ai-chat-text, var(--ff-ai-text-primary));
  margin: 0;
  max-width: 560px;
  animation: slideUp var(--ff-ai-transition-normal) ease 0.25s both;
  line-height: 1.55;
}

.ff-ai-chat-completed__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ff-ai-btn-text, #ffffff);
  background: var(--ff-ai-btn-bg, var(--ff-ai-accent, var(--ff-ai-primary, #2563eb)));
  border: none;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease;
}
.ff-ai-chat-completed__cta:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.ff-ai-chat-completed__restart {
  padding: 0.65rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ff-ai-chat-text, #4b5563);
  opacity: 0.72;
  background: transparent;
  border: 1px solid var(--ff-ai-border, #e5e7eb);
  border-radius: 999px;
  cursor: pointer;
  transition: background 120ms ease;
}
.ff-ai-chat-completed__restart:hover {
  background: var(--ff-ai-surface-muted, #f3f4f6);
}

@media (prefers-reduced-motion: reduce) {
  .ff-ai-chat-completed__icon,
  .ff-ai-chat-completed__message,
  .ff-ai-chat-completed-actions {
    animation: none;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}
.ff-ai-chat-completed-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  animation: slideUp var(--ff-ai-transition-normal) ease 0.5s both;
  flex-wrap: wrap;
  justify-content: center;
}

.ff-ai-chat-action-btn-primary {
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  background: var(--ff-ai-btn-bg, var(--ff-ai-accent, var(--ff-ai-primary)));
  color: var(--ff-ai-btn-text, var(--ff-ai-chat-text, white));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.ff-ai-chat-action-btn-primary:hover {
  background: var(--ff-ai-btn-bg, var(--ff-ai-accent, var(--ff-ai-primary-hover)));
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
  filter: brightness(0.92);
}
.ff-ai-chat-action-btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
}

.ff-ai-chat-action-btn-secondary {
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  background: var(--ff-ai-chat-bg, var(--ff-ai-surface));
  color: var(--ff-ai-chat-text, var(--ff-ai-text-primary));
  border: 1px solid var(--ff-ai-border);
}
.ff-ai-chat-action-btn-secondary:hover {
  background: var(--ff-ai-chrome-bg, var(--ff-ai-surface-muted));
  transform: translateY(-1px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.ff-ai-chat-action-btn-secondary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.ff-ai-chat-error {
  padding: 1.25rem;
  background: #fee2e2;
  border-left: 4px solid #dc2626;
  border-radius: var(--ff-ai-radius);
  margin: 1rem 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.1);
}

.ff-ai-chat-error-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #991b1b;
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.ff-ai-chat-error-content svg {
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.ff-ai-chat-error-content span {
  flex: 1;
}

.ff-ai-chat-error-action {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  background: #dc2626;
  color: white;
  box-shadow: 0 1px 2px rgba(220, 38, 38, 0.2);
}
.ff-ai-chat-error-action:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}
.ff-ai-chat-error-action:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.ff-ai-chat-captcha {
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ff-ai-chat-captcha-widget {
  display: inline-block;
}

.ff-ai-chat-captcha-error {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ff-ai-danger, #ef4444);
}

.ff-ai-chat-terms-content {
  margin-top: 8px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ff-ai-chat-text, var(--ff-ai-text-primary, #111827));
  background: var(--ff-ai-chrome-bg, var(--ff-ai-surface-muted, #f9fafb));
  border: 1px solid var(--ff-ai-border, #e5e7eb);
  border-radius: var(--ff-ai-radius, 0.5rem);
}
.ff-ai-chat-terms-content a {
  color: var(--ff-ai-chat-text, var(--ff-ai-text-primary, #111827));
  text-decoration: underline;
}
.ff-ai-chat-terms-content a:hover {
  opacity: 0.7;
}

.ff-ai-chat-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

.ff-ai-chat-rating-stars {
  display: flex;
  gap: 4px;
}

.ff-ai-chat-rating-star {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: transform 0.15s ease;
}
.ff-ai-chat-rating-star:hover {
  transform: scale(1.1);
}
.ff-ai-chat-rating-star .ff-ai-chat-star-svg {
  width: 36px;
  height: 36px;
}
.ff-ai-chat-rating-star .ff-ai-chat-star-fill {
  fill: transparent;
  transition: fill 0.15s ease;
}
.ff-ai-chat-rating-star .ff-ai-chat-star-outline {
  fill: #d1d5db;
  transition: fill 0.15s ease;
}
.ff-ai-chat-rating-star.is-hovered .ff-ai-chat-star-fill, .ff-ai-chat-rating-star.is-selected .ff-ai-chat-star-fill {
  fill: #f59e0b;
}
.ff-ai-chat-rating-star.is-hovered .ff-ai-chat-star-outline, .ff-ai-chat-rating-star.is-selected .ff-ai-chat-star-outline {
  fill: #f59e0b;
}
.ff-ai-chat-rating-star .ff-ai-chat-rating-number {
  font-size: 11px;
  color: var(--ff-ai-chat-text, var(--ff-ai-text-muted, #6b7280));
}

.ff-ai-chat-rating-text {
  font-size: 13px;
  color: var(--ff-ai-chat-text, var(--ff-ai-text-secondary, #374151));
  min-height: 18px;
}

.ff-ai-chat-subscription-custom {
  margin-top: 0.75rem;
  width: 100%;
}

.ff-ai-chat-subscription-label {
  display: block;
  font-size: 0.875rem;
  color: var(--ff-ai-chat-text, var(--ff-ai-text-muted, #6b7280));
  margin-bottom: 0.5rem;
}

.ff-ai-chat-subscription-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.ff-ai-chat-subscription-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--ff-ai-border, #e5e7eb);
  border-radius: var(--ff-ai-radius, 0.5rem);
  font-size: 0.9375rem;
  outline: none;
  -moz-appearance: textfield;
}
.ff-ai-chat-subscription-input::-webkit-outer-spin-button, .ff-ai-chat-subscription-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.ff-ai-chat-subscription-input:focus {
  border-color: var(--ff-ai-accent, var(--ff-ai-primary, #2563eb));
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.ff-ai-chat-interface .ff-ai-chat-embedded-payment,
.ff-ai-chat-interface .ff-ai-chat-stripe-card-wrap {
  display: block;
  width: 100%;
  min-width: 280px;
  max-width: 400px;
}
.ff-ai-chat-interface .ff-ai-chat-stripe-instruction {
  margin: 0 0 12px 0;
  font-size: 14px;
  line-height: 1.5;
  color: inherit;
}
.ff-ai-chat-interface .ff-ai-chat-stripe-card-container {
  min-height: 52px;
  width: 100%;
  margin-bottom: 12px;
}
.ff-ai-chat-interface .ff-ai-chat-stripe-card-container .StripeElement {
  width: 100%;
}
.ff-ai-chat-interface .ff_card-errors.text-danger {
  margin-top: 6px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #fa755a;
}
.ff-ai-chat-interface .ff-stripe-test-mode {
  display: block;
  margin-top: 8px;
  padding: 0;
  font-style: italic;
  font-size: 12px;
  color: inherit;
}
.ff-ai-chat-interface .ff-ai-chat-stripe-continue-btn {
  margin-top: 12px;
}
.ff-ai-chat-interface .ff-ai-chat-stripe-card-saved {
  margin-top: 8px;
  font-size: 14px;
  color: inherit;
  font-weight: 500;
}

.ff-ai-chat-address-autocomplete {
  width: 100%;
  margin-top: 12px;
}

.ff-ai-chat-address-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ff-ai-chat-address-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
  color: #1f2937;
}
.ff-ai-chat-address-input:focus {
  border-color: var(--ff-ai-primary, #0445AF);
  box-shadow: 0 0 0 2px rgba(4, 69, 175, 0.1);
}

.ff-ai-chat-address-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 8px;
  background-color: var(--ff-ai-primary, #0445AF);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s;
}
.ff-ai-chat-address-submit:hover {
  opacity: 0.9;
}
.ff-ai-chat-address-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ff-ai-chat-address-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: #6b7280;
}

.pac-container {
  z-index: 999999 !important;
}

.ff-ai-chat-fullscreen-background {
  --ff-ai-image-base-transform: translate3d(0, 0, 0);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
  transform: var(--ff-ai-image-base-transform);
  transform-origin: center;
  will-change: opacity, transform, background-position, background-size;
}

.ff-ai-chat-fullscreen-field-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  background-image: var(--ff-field-bg-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: var(--ff-field-bg-opacity, 0.35);
}

.ff-ai-chat-fullscreen-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.ff-ai-chat-fullscreen-video-bg--field {
  z-index: 1;
  opacity: var(--ff-field-bg-opacity, 0.35);
}

.ff-ai-chat-field-bg-placement-default,
.ff-ai-chat-field-bg-placement-shuffle {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.ff-ai-chat-field-bg-placement-media_right {
  --ff-ai-image-base-transform: translateY(-50%);
  left: auto;
  right: 0;
  top: 50%;
  width: 50%;
  height: 70%;
}

.ff-ai-chat-field-bg-placement-media_left {
  --ff-ai-image-base-transform: translateY(-50%);
  right: auto;
  left: 0;
  top: 50%;
  width: 50%;
  height: 70%;
}

.ff-ai-chat-field-bg-placement-media_right_full {
  left: 50%;
  right: 0;
  top: 0;
  bottom: 0;
}

.ff-ai-chat-field-bg-placement-media_left_full {
  left: 0;
  right: 50%;
  top: 0;
  bottom: 0;
}

.ff-ai-chat-image-entrance-fade {
  animation: ffAiImageFadeIn calc(var(--ff-ai-image-entrance-duration, 700ms) / var(--ff-ai-anim-speed, 1)) ease-out both;
}

.ff-ai-chat-image-entrance-zoom_in {
  animation: ffAiImageZoomIn calc(var(--ff-ai-image-entrance-duration, 700ms) / var(--ff-ai-anim-speed, 1)) ease-out both;
}

.ff-ai-chat-image-entrance-slide_left {
  animation: ffAiImageSlideLeft calc(var(--ff-ai-image-entrance-duration, 700ms) / var(--ff-ai-anim-speed, 1)) ease-out both;
}

.ff-ai-chat-image-entrance-slide_right {
  animation: ffAiImageSlideRight calc(var(--ff-ai-image-entrance-duration, 700ms) / var(--ff-ai-anim-speed, 1)) ease-out both;
}

@keyframes ffAiImageFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: var(--ff-field-bg-opacity, 1);
  }
}
@keyframes ffAiImageZoomIn {
  from {
    opacity: 0;
    transform: var(--ff-ai-image-base-transform) scale(1.04);
  }
  to {
    opacity: var(--ff-field-bg-opacity, 1);
    transform: var(--ff-ai-image-base-transform) scale(1);
  }
}
@keyframes ffAiImageSlideLeft {
  from {
    opacity: 0;
    transform: var(--ff-ai-image-base-transform) translateX(24px);
  }
  to {
    opacity: var(--ff-field-bg-opacity, 1);
    transform: var(--ff-ai-image-base-transform) translateX(0);
  }
}
@keyframes ffAiImageSlideRight {
  from {
    opacity: 0;
    transform: var(--ff-ai-image-base-transform) translateX(-24px);
  }
  to {
    opacity: var(--ff-field-bg-opacity, 1);
    transform: var(--ff-ai-image-base-transform) translateX(0);
  }
}
.ff-ai-chat-fullscreen-content {
  position: relative;
  z-index: 2;
}

.ff-ai-chat-fullscreen {
  --ff-ai-fs-bg: var(--ff-ai-chat-bg, #000000);
  --ff-ai-fs-ink: var(--ff-ai-chat-text, #ffffff);
  --ff-ai-fs-ink-muted: color-mix(in srgb, var(--ff-ai-chat-text, #ffffff) 70%, transparent);
  --ff-ai-fs-ink-subtle: color-mix(in srgb, var(--ff-ai-chat-text, #ffffff) 50%, transparent);
  --ff-ai-fs-accent: var(--ff-ai-accent, var(--ff-ai-primary, #1A7EFB));
  --ff-ai-fs-accent-hover: color-mix(in srgb, var(--ff-ai-accent, var(--ff-ai-primary, #1A7EFB)) 82%, #000000);
  --ff-ai-fs-accent-soft: color-mix(in srgb, var(--ff-ai-accent, var(--ff-ai-primary, #1A7EFB)) 16%, transparent);
  --ff-ai-fs-divider: color-mix(in srgb, var(--ff-ai-chat-text, #ffffff) 14%, transparent);
  --ff-ai-fs-input-bg: color-mix(in srgb, var(--ff-ai-chat-text, #ffffff) 6%, transparent);
  --ff-ai-fs-input-border: color-mix(in srgb, var(--ff-ai-chat-text, #ffffff) 20%, transparent);
  --ff-ai-fs-chip-bg: color-mix(in srgb, var(--ff-ai-chat-text, #ffffff) 6%, transparent);
  --ff-ai-fs-chip-border: color-mix(in srgb, var(--ff-ai-chat-text, #ffffff) 20%, transparent);
  background-color: var(--ff-ai-chat-bg, #000000);
  color: var(--ff-ai-chat-text, #ffffff);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  position: relative;
}

.ff-ai-chat-fullscreen > .ff-ai-chat-fullscreen-content {
  width: 100%;
  margin: 0;
  padding: 0;
}

.ff-ai-chat-fullscreen .ff-ai-chat-header {
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  padding: 18px 24px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
}

.ff-ai-chat-fullscreen .ff-ai-chat-title {
  color: var(--ff-ai-header-text, var(--ff-ai-chat-text, var(--ff-ai-fs-ink)));
  font-size: 14px;
  font-weight: 500;
  gap: 0.625rem;
}
.ff-ai-chat-fullscreen .ff-ai-chat-title svg {
  width: 22px;
  height: 22px;
  color: var(--ff-ai-header-text, var(--ff-ai-chat-text, var(--ff-ai-fs-ink)));
}

.ff-ai-chat-fullscreen .ff-ai-chat-custom-logo {
  width: 28px;
  height: 28px;
}

.ff-ai-chat-fullscreen .ff-ai-chat-action-btn {
  background: var(--ff-ai-btn-bg, var(--ff-ai-accent, var(--ff-ai-fs-accent)));
  color: var(--ff-ai-btn-text, var(--ff-ai-chat-text, #ffffff));
  box-shadow: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--ff-ai-radius);
  border: none;
  gap: 0.375rem;
}
.ff-ai-chat-fullscreen .ff-ai-chat-action-btn svg {
  width: 14px;
  height: 14px;
}
.ff-ai-chat-fullscreen .ff-ai-chat-action-btn:hover {
  background: var(--ff-ai-btn-bg, var(--ff-ai-accent, var(--ff-ai-fs-accent)));
  color: var(--ff-ai-btn-text, var(--ff-ai-chat-text, #ffffff));
  filter: brightness(0.92);
  transform: none;
  box-shadow: none;
}
.ff-ai-chat-fullscreen .ff-ai-chat-action-btn:focus {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
}

.ff-ai-chat-fullscreen .ff-ai-chat-progress {
  background: transparent;
  padding: 0;
  gap: 0;
  height: 2px;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 5;
}

.ff-ai-chat-fullscreen.ff-ai-chat-no-header .ff-ai-chat-progress {
  top: 0;
}

.ff-ai-chat-fullscreen .ff-ai-chat-progress-bar {
  height: 2px;
  background: var(--ff-ai-fs-divider);
  border-radius: 0;
  box-shadow: none;
  flex: 1;
}

.ff-ai-chat-fullscreen .ff-ai-chat-progress-fill {
  background: var(--ff-ai-progress-fill, var(--ff-ai-accent, var(--ff-ai-fs-accent)));
  border-radius: 0;
  transition: width 400ms cubic-bezier(0.22, 1, 0.36, 1);
}
.ff-ai-chat-fullscreen .ff-ai-chat-progress-fill::after {
  display: none;
}

.ff-ai-chat-fullscreen .ff-ai-chat-progress-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ff-ai-chat-fullscreen .ff-ai-chat-footer {
  position: fixed;
  bottom: 16px;
  left: 24px;
  right: auto;
  background: transparent;
  border-top: none;
  padding: 0;
  text-align: left;
  z-index: 4;
  pointer-events: none;
}

.ff-ai-chat-fullscreen .ff-ai-chat-footer-text {
  font-size: 11px;
  color: var(--ff-ai-footer-text-color, var(--ff-ai-fs-ink-muted));
  opacity: 0.75;
  margin: 0;
  pointer-events: auto;
}
.ff-ai-chat-fullscreen .ff-ai-chat-footer-text a {
  color: var(--ff-ai-footer-text-color, var(--ff-ai-fs-ink-muted));
  font-weight: 500;
  text-decoration: none;
}
.ff-ai-chat-fullscreen .ff-ai-chat-footer-text a:hover {
  color: var(--ff-ai-footer-text-color, var(--ff-ai-fs-ink));
}

.ff-ai-chat-interface.ff-ai-chat-fullscreen-layout {
  background: transparent;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  color: inherit;
  height: auto;
  max-height: none;
}

.ff-ai-chat-interface.ff-ai-chat-fullscreen-layout > .ff-ai-chat-fullscreen-content {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  flex: 0 0 auto;
  margin: 0 auto;
  padding: 96px 24px;
}

.ff-ai-chat-fullscreen-layout .ff-ai-chat-fullscreen-question {
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  display: block;
  flex: 0 0 auto;
  animation: ffAiFullscreenQuestionEnter calc(280ms / var(--ff-ai-anim-speed, 1)) cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ff-ai-chat-fullscreen-layout .ff-ai-chat-fullscreen-question.ff-ai-chat-message-assistant .ff-ai-chat-message-bubble {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  color: inherit;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.005em;
  font-size: calc(clamp(1.5rem, 2.2vw, 2rem) * var(--ff-ai-chat-font-scale, 1));
  word-spacing: inherit;
  text-decoration: inherit;
  text-transform: inherit;
  width: 100%;
  max-width: 100%;
}

@keyframes ffAiFullscreenQuestionEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ff-ai-chat-fullscreen-layout .ff-ai-chat-fullscreen-question .ff-ai-chat-quick-replies {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  max-width: 520px;
  margin-top: 16px;
}

.ff-ai-chat-fullscreen-layout .ff-ai-chat-fullscreen-question .ff-ai-chat-quick-reply-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--ff-ai-fs-chip-bg);
  color: var(--ff-ai-chat-text, var(--ff-ai-fs-ink));
  border: 1px solid var(--ff-ai-btn-bg, var(--ff-ai-accent, var(--ff-ai-fs-chip-border)));
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.ff-ai-chat-fullscreen-layout .ff-ai-chat-fullscreen-question .ff-ai-chat-quick-reply-btn:hover {
  background: var(--ff-ai-btn-bg, var(--ff-ai-accent, var(--ff-ai-fs-accent-soft)));
  border-color: var(--ff-ai-btn-bg, var(--ff-ai-accent, var(--ff-ai-fs-accent)));
  color: var(--ff-ai-btn-text, var(--ff-ai-chat-text, #ffffff));
}
.ff-ai-chat-fullscreen-layout .ff-ai-chat-fullscreen-question .ff-ai-chat-quick-reply-btn.ff-ai-chat-quick-reply-btn-selected {
  background: var(--ff-ai-btn-bg, var(--ff-ai-accent, var(--ff-ai-fs-accent)));
  border-color: var(--ff-ai-btn-bg, var(--ff-ai-accent, var(--ff-ai-fs-accent)));
  color: var(--ff-ai-btn-text, var(--ff-ai-chat-text, #ffffff));
}
.ff-ai-chat-fullscreen-layout .ff-ai-chat-fullscreen-question .ff-ai-chat-quick-reply-btn.ff-ai-chat-quick-reply-submit {
  background: var(--ff-ai-btn-bg, var(--ff-ai-accent, var(--ff-ai-fs-accent)));
  border-color: var(--ff-ai-btn-bg, var(--ff-ai-accent, var(--ff-ai-fs-accent)));
  color: var(--ff-ai-btn-text, var(--ff-ai-chat-text, #ffffff));
}

.ff-ai-chat-fullscreen-layout .ff-ai-chat-fullscreen-question .ff-ai-chat-skip-btn {
  align-self: flex-start;
  margin: 16px 0 0;
  padding: 8px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--ff-ai-btn-bg, var(--ff-ai-accent, var(--ff-ai-fs-accent)));
  color: var(--ff-ai-btn-text, #ffffff);
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
}
.ff-ai-chat-fullscreen-layout .ff-ai-chat-fullscreen-question .ff-ai-chat-skip-btn:hover {
  filter: brightness(0.92);
}

.ff-ai-chat-fullscreen-layout .ff-ai-chat-fullscreen-question .ff-ai-chat-selection-hint {
  color: var(--ff-ai-fs-ink-muted);
}

.ff-ai-chat-fullscreen-layout .ff-ai-chat-fullscreen-question .ff-ai-chat-validation-error {
  color: #ef4444;
}

.ff-ai-chat-fullscreen-layout .ff-ai-chat-fullscreen-question .ff-ai-chat-loading-dots span {
  background: var(--ff-ai-fs-ink);
}

.ff-ai-chat-fullscreen-layout .ff-ai-chat-fullscreen-question .ff-ai-chat-loading-cursor {
  color: var(--ff-ai-fs-ink);
}

.ff-ai-chat-fullscreen-layout .ff-ai-chat-fullscreen-input {
  width: 100%;
  max-width: 720px;
  flex-shrink: 0;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.ff-ai-chat-fullscreen-layout .ff-ai-chat-input-wrapper {
  padding: 0;
  background: transparent;
  border: none;
  border-top: none;
  box-shadow: none;
}

.ff-ai-chat-fullscreen-layout .ff-ai-chat-fullscreen-input .ff-ai-chat-input-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.ff-ai-chat-fullscreen-layout .ff-ai-chat-fullscreen-input .ff-ai-chat-input-form {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ff-ai-fs-input-border);
  border-radius: 0;
  box-shadow: none;
  padding: 0 0 8px;
  transition: border-color 150ms ease;
}
.ff-ai-chat-fullscreen-layout .ff-ai-chat-fullscreen-input .ff-ai-chat-input-form:focus-within {
  border-bottom-color: var(--ff-ai-chat-text, var(--ff-ai-fs-ink));
  box-shadow: none;
}

.ff-ai-chat-fullscreen-layout .ff-ai-chat-fullscreen-input .ff-ai-chat-fs-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.ff-ai-chat-fullscreen-layout .ff-ai-chat-fullscreen-input .ff-ai-chat-fs-action-btn {
  flex: 0 0 auto;
  padding: 8px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--ff-ai-btn-bg, var(--ff-ai-accent, var(--ff-ai-fs-accent)));
  color: var(--ff-ai-btn-text, #ffffff);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 150ms ease;
}
.ff-ai-chat-fullscreen-layout .ff-ai-chat-fullscreen-input .ff-ai-chat-fs-action-btn:hover:not(:disabled) {
  filter: brightness(0.92);
}
.ff-ai-chat-fullscreen-layout .ff-ai-chat-fullscreen-input .ff-ai-chat-fs-action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ff-ai-chat-fullscreen-layout .ff-ai-chat-fullscreen-input .ff-ai-chat-fs-enter-hint {
  font-size: 13px;
  color: var(--ff-ai-fs-ink-muted);
}

@media (max-width: 640px) {
  .ff-ai-chat-fullscreen-layout .ff-ai-chat-fullscreen-input .ff-ai-chat-fs-enter-hint {
    display: none;
  }
}
.ff-ai-chat-fullscreen-layout .ff-ai-chat-fullscreen-input .ff-ai-chat-input-action-btn {
  color: var(--ff-ai-fs-ink-muted);
}
.ff-ai-chat-fullscreen-layout .ff-ai-chat-fullscreen-input .ff-ai-chat-input-action-btn:hover {
  color: var(--ff-ai-fs-ink);
  background: var(--ff-ai-fs-chip-bg);
}

.ff-ai-chat-fullscreen-layout .ff-ai-chat-fullscreen-input .ff-ai-chat-input-field {
  padding: 0;
  color: var(--ff-ai-chat-text, var(--ff-ai-fs-ink));
  font-family: inherit;
  font-size: calc(clamp(1.5rem, 2.2vw, 2rem) * var(--ff-ai-chat-font-scale, 1));
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.ff-ai-chat-fullscreen-layout .ff-ai-chat-fullscreen-input .ff-ai-chat-input-field::-moz-placeholder {
  color: var(--ff-ai-chat-text, var(--ff-ai-fs-ink-muted));
  opacity: 0.55;
}
.ff-ai-chat-fullscreen-layout .ff-ai-chat-fullscreen-input .ff-ai-chat-input-field::placeholder {
  color: var(--ff-ai-chat-text, var(--ff-ai-fs-ink-muted));
  opacity: 0.55;
}

.ff-ai-chat-fullscreen-layout .ff-ai-chat-fullscreen-input .ff-ai-chat-phone-input-form .iti {
  color: var(--ff-ai-fs-ink);
}
.ff-ai-chat-fullscreen-layout .ff-ai-chat-fullscreen-input .ff-ai-chat-phone-input-form .ff-ai-chat-phone-input-field {
  padding-left: 48px;
  color: var(--ff-ai-fs-ink);
  background: var(--ff-ai-fs-input-bg);
  border-radius: 8px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.ff-ai-chat-fullscreen-layout .ff-ai-chat-fullscreen-input .ff-ai-chat-phone-input-form .ff-ai-chat-phone-input-field::-moz-placeholder {
  color: var(--ff-ai-fs-ink-muted);
  opacity: 1;
}
.ff-ai-chat-fullscreen-layout .ff-ai-chat-fullscreen-input .ff-ai-chat-phone-input-form .ff-ai-chat-phone-input-field::placeholder {
  color: var(--ff-ai-fs-ink-muted);
  opacity: 1;
}

.ff-ai-chat-fullscreen-layout .ff-ai-chat-fullscreen-input .ff-ai-chat-send-btn {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  background: transparent;
}

.ff-ai-chat-fs-show-send .ff-ai-chat-fullscreen-layout .ff-ai-chat-fullscreen-input .ff-ai-chat-send-btn {
  position: static;
  width: 36px;
  height: 36px;
  padding: 8px;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--ff-ai-btn-bg, var(--ff-ai-accent, var(--ff-ai-fs-accent)));
  color: var(--ff-ai-btn-text, var(--ff-ai-chat-text, #ffffff));
  box-shadow: none;
  border-radius: 10px;
}
.ff-ai-chat-fs-show-send .ff-ai-chat-fullscreen-layout .ff-ai-chat-fullscreen-input .ff-ai-chat-send-btn:hover:not(:disabled) {
  background: var(--ff-ai-btn-bg, var(--ff-ai-accent, var(--ff-ai-fs-accent-hover)));
  filter: brightness(0.92);
}

.ff-ai-chat-fullscreen-layout .ff-ai-chat-fullscreen-error {
  text-align: center;
  margin-top: 0.5rem;
  color: #ef4444;
}

.ff-ai-chat-fullscreen-layout .ff-ai-chat-completed {
  background: transparent;
  color: var(--ff-ai-chat-text, var(--ff-ai-fs-ink));
  text-align: center;
}
.ff-ai-chat-fullscreen-layout .ff-ai-chat-completed p {
  color: var(--ff-ai-chat-text, var(--ff-ai-fs-ink));
}

.ff-ai-chat-fullscreen-layout .ff-ai-chat-terms-content {
  color: var(--ff-ai-fs-ink-muted);
  background: var(--ff-ai-fs-chip-bg);
  border-color: var(--ff-ai-fs-chip-border);
}
.ff-ai-chat-fullscreen-layout .ff-ai-chat-terms-content a {
  color: var(--ff-ai-chat-text, var(--ff-ai-fs-ink));
  text-decoration: underline;
}
.ff-ai-chat-fullscreen-layout .ff-ai-chat-terms-content a:hover {
  opacity: 0.7;
}

.ff-ai-chat-fullscreen-layout .ff-ai-chat-rating .ff-ai-chat-star-outline {
  fill: var(--ff-ai-fs-divider);
}
.ff-ai-chat-fullscreen-layout .ff-ai-chat-rating .ff-ai-chat-rating-number {
  color: var(--ff-ai-fs-ink-muted);
}
.ff-ai-chat-fullscreen-layout .ff-ai-chat-rating .ff-ai-chat-rating-text {
  color: var(--ff-ai-fs-ink);
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .ff-ai-chat-fullscreen-layout .ff-ai-chat-fullscreen-question {
    animation: none;
  }
  .ff-ai-chat-fullscreen .ff-ai-chat-progress-fill {
    transition: none;
  }
}
@media (max-width: 640px) {
  .ff-ai-chat-fullscreen .ff-ai-chat-header {
    padding: 14px 16px;
  }
  .ff-ai-chat-fullscreen .ff-ai-chat-title {
    gap: 0;
  }
  .ff-ai-chat-fullscreen .ff-ai-chat-title__label {
    display: none;
  }
  .ff-ai-chat-fullscreen .ff-ai-chat-action-btn {
    padding: 6px 12px;
  }
  .ff-ai-chat-fullscreen .ff-ai-chat-action-btn svg {
    width: 16px;
    height: 16px;
  }
  .ff-ai-chat-interface.ff-ai-chat-fullscreen-layout > .ff-ai-chat-fullscreen-content {
    padding: 80px 20px 40px;
    gap: 14px;
  }
  .ff-ai-chat-fullscreen-layout .ff-ai-chat-fullscreen-question.ff-ai-chat-message-assistant .ff-ai-chat-message-bubble {
    font-size: clamp(1.375rem, 5.6vw, 1.75rem);
    line-height: 1.25;
  }
}
@media (max-width: 768px) {
  .ff-ai-chat-messages {
    padding: 1rem;
  }
  .ff-ai-chat-message {
    padding: 0;
  }
  .ff-ai-chat-message-content {
    max-width: 85%;
  }
  .ff-ai-chat-input-wrapper {
    padding: 1rem;
  }
  .ff-ai-chat-progress {
    padding: 1rem;
  }
  .ff-ai-chat-completed {
    padding: 1.5rem;
  }
  .ff-ai-chat-completed-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }
  .ff-ai-chat-action-btn-primary,
  .ff-ai-chat-action-btn-secondary {
    width: 100%;
  }
  .ff-ai-chat-quick-reply-btn {
    min-height: 44px;
    padding: 0.625rem 1rem;
  }
}
[dir=rtl] .ff-ai-chat-message.ff-ai-chat-message-user {
  flex-direction: row;
}
[dir=rtl] .ff-ai-chat-message.ff-ai-chat-message-assistant {
  flex-direction: row-reverse;
}
[dir=rtl] .ff-ai-chat-message-user .ff-ai-chat-message-content {
  align-items: flex-start;
}
[dir=rtl] .ff-ai-chat-message-assistant .ff-ai-chat-message-content {
  align-items: flex-end;
}
[dir=rtl] .ff-ai-chat-message-bubble ul,
[dir=rtl] .ff-ai-chat-message-bubble ol {
  padding-left: 0;
  padding-right: 1.5rem;
}
[dir=rtl] .ff-ai-chat-scroll-bottom-btn {
  align-self: flex-start;
  margin-right: 0;
  margin-left: 1rem;
}
[dir=rtl] .ff-ai-chat-validation-error {
  border-left: none;
  border-right: 3px solid #dc2626;
}
[dir=rtl] .ff-ai-chat-quick-reply-btn.ff-ai-chat-quick-reply-btn-custom .ff-ai-chat-custom-remove {
  margin-left: 0;
  margin-right: 0.25rem;
}
[dir=rtl] .ff-ai-chat-input-counter {
  text-align: left;
}
[dir=rtl] .ff-ai-chat-input-info {
  justify-content: flex-start;
}
[dir=rtl] .ff-ai-chat-skip-btn {
  margin-left: 0;
  margin-right: auto;
}
[dir=rtl] .ff-ai-chat-error {
  border-left: none;
  border-right: 4px solid #dc2626;
}
[dir=rtl] .ff-ai-chat-progress-fill {
  background: linear-gradient(270deg, var(--ff-ai-primary) 0%, var(--ff-ai-primary-light) 100%);
}
[dir=rtl] .ff-ai-chat-progress-fill::after {
  animation-direction: reverse;
}
[dir=rtl] .ff-ai-chat-field-bg-placement-media_right {
  left: 0;
  right: auto;
}
[dir=rtl] .ff-ai-chat-field-bg-placement-media_left {
  right: 0;
  left: auto;
}
[dir=rtl] .ff-ai-chat-field-bg-placement-media_right_full {
  left: 0;
  right: 50%;
}
[dir=rtl] .ff-ai-chat-field-bg-placement-media_left_full {
  left: 50%;
  right: 0;
}

.ff-ai-chat-recap {
  margin: 12px auto 0;
  padding: 16px;
  width: 100%;
  max-width: 900px;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: var(--ff-ai-chrome-bg, var(--ff-ai-surface, #ffffff));
  color: var(--ff-ai-chat-text, var(--ff-ai-text-primary, #111827));
}

.ff-ai-chat-recap__list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.ff-ai-chat-recap__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.ff-ai-chat-recap__row:last-child {
  border-bottom: 0;
}

.ff-ai-chat-recap__row-text {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

.ff-ai-chat-recap__label {
  font-size: 12px;
  color: var(--ff-ai-chat-text, var(--ff-ai-text-muted, #6b7280));
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ff-ai-chat-recap__value {
  font-size: 14px;
  color: var(--ff-ai-chat-text, var(--ff-ai-text-primary, #111827));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ff-ai-chat-recap__edit {
  flex: 0 0 auto;
  border: 1px solid var(--ff-ai-btn-bg, var(--ff-ai-accent, var(--ff-ai-primary, #4c6fff)));
  background: transparent;
  color: var(--ff-ai-chat-text, var(--ff-ai-text-primary, #111827));
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 150ms ease, filter 150ms ease;
}
.ff-ai-chat-recap__edit:hover {
  background: color-mix(in srgb, var(--ff-ai-btn-bg, var(--ff-ai-accent, var(--ff-ai-primary, #4c6fff))) 12%, transparent);
}

.ff-ai-chat-recap__row--skipped .ff-ai-chat-recap__value {
  color: var(--ff-ai-chat-text, var(--ff-ai-text-muted, #9ca3af));
  opacity: 0.55;
  font-style: italic;
}

.ff-ai-chat-recap__submit {
  width: 100%;
  padding: 10px 16px;
  background: var(--ff-ai-btn-bg, var(--ff-ai-accent, var(--ff-ai-primary, #4c6fff)));
  color: var(--ff-ai-btn-text, #fff);
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 150ms ease;
}
.ff-ai-chat-recap__submit:hover:not(:disabled) {
  filter: brightness(0.92);
}
.ff-ai-chat-recap__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ff-ai-chat-recap--fullscreen {
  display: block;
  box-sizing: border-box;
  margin: 0 auto;
  align-self: center;
  width: 100%;
  max-width: clamp(320px, 90vw, 640px);
  padding: clamp(16px, 3vw, 24px);
  background: color-mix(in srgb, var(--ff-ai-chrome-bg, var(--ff-ai-surface, #ffffff)) 94%, transparent);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
  border-radius: 16px;
  color: var(--ff-ai-chat-text, var(--ff-ai-text-primary, #1e293b));
}
.ff-ai-chat-recap--fullscreen .ff-ai-chat-recap__list {
  width: 100%;
}
.ff-ai-chat-recap--fullscreen .ff-ai-chat-recap__row {
  width: 100%;
  box-sizing: border-box;
}
.ff-ai-chat-recap--fullscreen .ff-ai-chat-recap__row-text {
  flex: 1 1 auto;
  min-width: 0;
}
.ff-ai-chat-recap--fullscreen .ff-ai-chat-recap__edit {
  flex: 0 0 auto;
  margin-left: auto;
}

.ff-ai-chat-consent {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 24px;
}

.ff-ai-chat-consent__card {
  max-width: 480px;
  width: 100%;
  padding: 24px;
  border-radius: 12px;
  background: var(--ff-ai-chat-bg, var(--ff-ai-surface, #ffffff));
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.ff-ai-chat-consent__title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ff-ai-chat-text, var(--ff-ai-text-primary, #111827));
}

.ff-ai-chat-consent__body {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ff-ai-chat-text, var(--ff-ai-text-muted, #4b5563));
  opacity: 0.85;
}

.ff-ai-chat-consent__link {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--ff-ai-link-color, var(--ff-ai-accent, var(--ff-ai-primary, #2563eb)));
  font-size: 13px;
  text-decoration: underline;
}

.ff-ai-chat-consent__accept {
  display: inline-block;
  padding: 10px 20px;
  background: var(--ff-ai-btn-bg, var(--ff-ai-accent, #4c6fff));
  color: var(--ff-ai-btn-text, #fff);
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.ff-ai-chat-consent__accept:hover {
  opacity: 0.92;
}

.ff-ai-chat-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 24px;
}

.ff-ai-chat-fallback__card {
  max-width: 460px;
  width: 100%;
  padding: 24px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: var(--ff-ai-chat-bg, var(--ff-ai-surface, #ffffff));
}

.ff-ai-chat-fallback__icon {
  color: #d97706;
  margin-bottom: 12px;
}

.ff-ai-chat-fallback__message {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ff-ai-chat-text, var(--ff-ai-text-primary, #111827));
}

.ff-ai-chat-fallback__action {
  display: inline-block;
  padding: 10px 20px;
  background: var(--ff-ai-accent, #4c6fff);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.ff-ai-chat-fallback__action:hover {
  opacity: 0.92;
}

.ff-ai-chat-fallback-host {
  width: 100%;
  box-sizing: border-box;
}

.ff-ai-chat-fallback-host__notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px auto;
  padding: 10px 14px;
  max-width: 720px;
  border-radius: 8px;
  background: #fef3c7;
  color: #78350f;
  font-size: 13px;
  line-height: 1.4;
}

.ff-ai-chat-fallback-host__notice-text {
  flex: 1 1 auto;
}

.ff-ai-chat-fallback-host__notice-close {
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.ff-ai-chat-fallback-host__notice-close:hover {
  opacity: 0.75;
}

.ff-ai-chat-fallback-host__form {
  width: 100%;
}

@keyframes ff-ai-chat-message-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ff-ai-chat-messages .ff-ai-chat-message:not([data-from-history]) {
  animation: ff-ai-chat-message-in calc(200ms / var(--ff-ai-anim-speed, 1)) ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  .ff-ai-chat-messages .ff-ai-chat-message:not([data-from-history]) {
    animation: none;
  }
  .ff-ai-chat-recap__edit,
  .ff-ai-chat-fallback__action {
    transition: none;
  }
}
