.flowordr-chat-widget{
  --flowordr-primary:#3B82F6;
  --flowordr-primary-hover:#2563EB;
  --flowordr-bg:#f1f5f9;
  --flowordr-window-bg:#f1f5f9;
  --flowordr-surface:#ffffff;
  --flowordr-surface-2:#f8fafc;
  --flowordr-bg-secondary:#f8fafc;
  --flowordr-text:#0f172a;
  --flowordr-text-secondary:#64748b;
  --flowordr-border:#e2e8f0;
  --flowordr-border-weak:rgba(15,23,42,0.08);
  --flowordr-border-strong:rgba(15,23,42,0.12);
  --flowordr-header-bg:rgba(255,255,255,0.9);
  --flowordr-header-text:#0f172a;
  --flowordr-success:#16a34a;
  --flowordr-shadow:0 30px 60px -18px rgba(15,23,42,0.25);
  --flowordr-avatar-bg:#e2e8f0;
  --flowordr-avatar-border:rgba(15,23,42,0.12);
  --flowordr-close-bg:rgba(15,23,42,0.08);
  --flowordr-close-bg-hover:rgba(15,23,42,0.12);
  --flowordr-message-assistant-bg:rgba(15,23,42,0.04);
  --flowordr-message-assistant-border:rgba(15,23,42,0.08);
  --flowordr-message-welcome-bg:#ffffff;
  --flowordr-message-welcome-border:rgba(15,23,42,0.08);
  --flowordr-input-bg:rgba(148,163,184,0.2);
  --flowordr-input-border:rgba(15,23,42,0.12);
  --flowordr-send-shadow:0 8px 18px -8px rgba(37,99,235,0.45);
  --flowordr-send-shadow-hover:0 10px 15px -3px rgba(37,99,235,0.4);
  --flowordr-quick-reply-bg:#ffffff;
  --flowordr-quick-reply-bg-hover:#f8fafc;
  --flowordr-quick-reply-border:rgba(15,23,42,0.08);
  --flowordr-quick-reply-border-hover:rgba(15,23,42,0.12);
  --flowordr-quick-reply-shadow:0 10px 20px -18px rgba(15,23,42,0.2);
  --flowordr-quick-reply-shadow-hover:0 12px 24px -18px rgba(15,23,42,0.25);
  --flowordr-quick-reply-icon:#2563eb;
  --flowordr-quick-replies-icon:#f59e0b;
  --flowordr-chip-fresh-color:#2563eb;
  --flowordr-chip-fresh-bg:rgba(37,99,235,0.1);
  --flowordr-chip-fresh-border:rgba(37,99,235,0.25);
  --flowordr-chip-cache-color:#64748b;
  --flowordr-chip-cache-bg:rgba(15,23,42,0.04);
  --flowordr-chip-cache-border:rgba(15,23,42,0.08);
  --flowordr-regenerate-color:#2563eb;
  --flowordr-regenerate-bg:rgba(37,99,235,0.12);
  --flowordr-regenerate-border:rgba(37,99,235,0.25);
  --flowordr-regenerate-bg-hover:rgba(37,99,235,0.15);
  --flowordr-offset-x:20px;
  --flowordr-offset-y:20px;
  --flowordr-z-index:999999;
  position:fixed;
  right:var(--flowordr-offset-x);
  bottom:var(--flowordr-offset-y);
  z-index:var(--flowordr-z-index);
  font-family:"Inter","Space Grotesk","DM Sans","SF Pro Display","Segoe UI",sans-serif;
}

.flowordr-chat-widget[data-custom-button="true"]{
  bottom:24px !important;
  right:16px !important;
  z-index:40 !important;
}

.flowordr-chat-widget[data-position="bottom-left"]{
  left:var(--flowordr-offset-x);
  right:auto;
}

.flowordr-chat-widget[data-theme="dark"]{
  --flowordr-bg:#0f172a;
  --flowordr-window-bg:#1e293b;
  --flowordr-surface:#1e293b;
  --flowordr-surface-2:#334155;
  --flowordr-bg-secondary:#334155;
  --flowordr-text:#f8fafc;
  --flowordr-text-secondary:#94a3b8;
  --flowordr-border:#475569;
  --flowordr-border-weak:rgba(255,255,255,0.06);
  --flowordr-border-strong:rgba(255,255,255,0.12);
  --flowordr-header-bg:rgba(30,41,59,0.85);
  --flowordr-header-text:#e2e8f0;
  --flowordr-success:#22c55e;
  --flowordr-shadow:0 30px 60px -20px rgba(0,0,0,0.6);
  --flowordr-avatar-bg:#334155;
  --flowordr-avatar-border:rgba(255,255,255,0.12);
  --flowordr-close-bg:rgba(255,255,255,0.08);
  --flowordr-close-bg-hover:rgba(255,255,255,0.18);
  --flowordr-message-assistant-bg:rgba(255,255,255,0.05);
  --flowordr-message-assistant-border:rgba(255,255,255,0.06);
  --flowordr-message-welcome-bg:rgba(51,65,85,0.4);
  --flowordr-message-welcome-border:rgba(255,255,255,0.06);
  --flowordr-input-bg:rgba(15,23,42,0.45);
  --flowordr-input-border:rgba(255,255,255,0.08);
  --flowordr-send-shadow:0 8px 18px -8px rgba(37,99,235,0.8);
  --flowordr-send-shadow-hover:0 10px 15px -3px rgba(37,99,235,0.6);
  --flowordr-quick-reply-bg:rgba(51,65,85,0.4);
  --flowordr-quick-reply-bg-hover:rgba(51,65,85,0.6);
  --flowordr-quick-reply-border:rgba(255,255,255,0.06);
  --flowordr-quick-reply-border-hover:rgba(255,255,255,0.12);
  --flowordr-quick-reply-shadow:0 10px 20px -18px rgba(0,0,0,0.6);
  --flowordr-quick-reply-shadow-hover:0 12px 24px -18px rgba(0,0,0,0.7);
  --flowordr-quick-reply-icon:#60a5fa;
  --flowordr-quick-replies-icon:#facc15;
  --flowordr-chip-fresh-color:#60a5fa;
  --flowordr-chip-fresh-bg:rgba(37,99,235,0.15);
  --flowordr-chip-fresh-border:rgba(37,99,235,0.35);
  --flowordr-chip-cache-color:#94a3b8;
  --flowordr-chip-cache-bg:rgba(255,255,255,0.06);
  --flowordr-chip-cache-border:rgba(255,255,255,0.12);
  --flowordr-regenerate-color:#60a5fa;
  --flowordr-regenerate-bg:rgba(37,99,235,0.18);
  --flowordr-regenerate-border:rgba(37,99,235,0.35);
  --flowordr-regenerate-bg-hover:rgba(59,130,246,0.25);
}

@media (prefers-color-scheme: dark){
  .flowordr-chat-widget[data-theme="auto"]{
    --flowordr-bg:#0f172a;
    --flowordr-window-bg:#1e293b;
    --flowordr-surface:#1e293b;
    --flowordr-surface-2:#334155;
    --flowordr-bg-secondary:#334155;
    --flowordr-text:#f8fafc;
    --flowordr-text-secondary:#94a3b8;
    --flowordr-border:#475569;
    --flowordr-border-weak:rgba(255,255,255,0.06);
    --flowordr-border-strong:rgba(255,255,255,0.12);
    --flowordr-header-bg:rgba(30,41,59,0.85);
    --flowordr-header-text:#e2e8f0;
    --flowordr-success:#22c55e;
    --flowordr-shadow:0 30px 60px -20px rgba(0,0,0,0.6);
    --flowordr-avatar-bg:#334155;
    --flowordr-avatar-border:rgba(255,255,255,0.12);
    --flowordr-close-bg:rgba(255,255,255,0.08);
    --flowordr-close-bg-hover:rgba(255,255,255,0.18);
    --flowordr-message-assistant-bg:rgba(255,255,255,0.05);
    --flowordr-message-assistant-border:rgba(255,255,255,0.06);
    --flowordr-message-welcome-bg:rgba(51,65,85,0.4);
    --flowordr-message-welcome-border:rgba(255,255,255,0.06);
    --flowordr-input-bg:rgba(15,23,42,0.45);
    --flowordr-input-border:rgba(255,255,255,0.08);
    --flowordr-send-shadow:0 8px 18px -8px rgba(37,99,235,0.8);
    --flowordr-send-shadow-hover:0 10px 15px -3px rgba(37,99,235,0.6);
    --flowordr-quick-reply-bg:rgba(51,65,85,0.4);
    --flowordr-quick-reply-bg-hover:rgba(51,65,85,0.6);
    --flowordr-quick-reply-border:rgba(255,255,255,0.06);
    --flowordr-quick-reply-border-hover:rgba(255,255,255,0.12);
    --flowordr-quick-reply-shadow:0 10px 20px -18px rgba(0,0,0,0.6);
    --flowordr-quick-reply-shadow-hover:0 12px 24px -18px rgba(0,0,0,0.7);
    --flowordr-quick-reply-icon:#60a5fa;
    --flowordr-quick-replies-icon:#facc15;
    --flowordr-chip-fresh-color:#60a5fa;
    --flowordr-chip-fresh-bg:rgba(37,99,235,0.15);
    --flowordr-chip-fresh-border:rgba(37,99,235,0.35);
    --flowordr-chip-cache-color:#94a3b8;
    --flowordr-chip-cache-bg:rgba(255,255,255,0.06);
    --flowordr-chip-cache-border:rgba(255,255,255,0.12);
    --flowordr-regenerate-color:#60a5fa;
    --flowordr-regenerate-bg:rgba(37,99,235,0.18);
    --flowordr-regenerate-border:rgba(37,99,235,0.35);
    --flowordr-regenerate-bg-hover:rgba(59,130,246,0.25);
  }
}

.flowordr-chat-widget:not([data-custom-button="true"]) .flowordr-chat-button{
  width:60px;
  height:60px;
  border-radius:50%;
  background:var(--flowordr-primary);
  border:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 4px 14px rgba(0,0,0,0.25);
  transition:all 0.3s ease;
}

.flowordr-chat-widget[data-custom-button="true"] .flowordr-chat-button{
  width:56px;
  height:56px;
  border-radius:50%;
  background:#22c55e;
  border:1px solid rgba(34,197,94,0.4);
  color:white;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 25px -5px rgba(34,197,94,0.5),0 8px 10px -6px rgba(34,197,94,0.5);
  transition:all 0.2s cubic-bezier(0.4,0,0.2,1);
  backdrop-filter:blur(8px);
}

.flowordr-chat-widget[data-custom-button="true"] .flowordr-chat-button:hover{
  background:#16a34a;
  border-color:rgba(22,163,74,0.4);
  transform:scale(1.1);
  box-shadow:0 20px 35px -10px rgba(34,197,94,0.6),0 10px 15px -8px rgba(34,197,94,0.6);
}

.flowordr-chat-widget[data-custom-button="true"] .flowordr-chat-button:active{
  transform:scale(0.95);
}

.flowordr-chat-widget[data-custom-button="true"] .flowordr-chat-button:focus-visible{
  outline:none;
  box-shadow:0 0 0 2px rgba(34,197,94,0.6),0 0 0 4px rgba(17,24,39,1);
}

.flowordr-chat-widget[data-custom-button="true"] .flowordr-chat-button svg{
  width:28px;
  height:28px;
  fill:currentColor;
}

.flowordr-chat-widget:not([data-custom-button="true"]) .flowordr-chat-button:hover{
  background:var(--flowordr-primary-hover);
  transform:scale(1.05);
}

.flowordr-chat-widget:not([data-custom-button="true"]) .flowordr-chat-button svg{
  width:28px;
  height:28px;
  fill:white;
}

.flowordr-chat-window{
  position:absolute;
  right:0;
  bottom:calc(72px + env(safe-area-inset-bottom, 0px));
  width:380px;
  max-width:calc(100vw - 32px);
  height:min(820px, calc(100vh - 90px));
  max-height:calc(100vh - 90px);
  background:var(--flowordr-window-bg);
  border-radius:28px;
  box-shadow:var(--flowordr-shadow);
  border:1px solid var(--flowordr-border-weak);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  opacity:0;
  transform:translateY(20px) scale(0.95);
  pointer-events:none;
  transition:all 0.3s cubic-bezier(0.4,0,0.2,1);
}

.flowordr-chat-widget[data-position="bottom-left"] .flowordr-chat-window{
  left:0;
  right:auto;
}

.flowordr-chat-window.open{
  opacity:1;
  transform:translateY(0) scale(1);
  pointer-events:auto;
}

.flowordr-chat-header{
  padding:20px 18px 12px;
  background:var(--flowordr-header-bg);
  color:var(--flowordr-header-text);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  border-bottom:1px solid var(--flowordr-border-weak);
}

.flowordr-chat-header-content{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.flowordr-chat-heading{
  display:flex;
  flex-direction:column;
  min-width:0;
}

.flowordr-chat-avatar{
  width:40px;
  height:40px;
  border-radius:999px;
  background:var(--flowordr-avatar-bg);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  flex-shrink:0;
  border:1px solid var(--flowordr-avatar-border);
}

.flowordr-chat-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:none;
}

.flowordr-chat-avatar-fallback{
  font-size:12px;
  font-weight:700;
  letter-spacing:0.08em;
  color:rgba(255,255,255,0.9);
}

.flowordr-chat-title{
  margin:0;
  font-size:13px;
  font-weight:600;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.flowordr-chat-subtitle-wrapper{
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:2px;
}

.flowordr-chat-status-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--flowordr-success);
  animation:flowordr-pulse 2s cubic-bezier(0.4,0,0.6,1) infinite;
}

@keyframes flowordr-pulse{
  0%,100%{opacity:1;}
  50%{opacity:0.5;}
}

.flowordr-chat-subtitle{
  font-size:10px;
  opacity:0.9;
  text-transform:none;
  letter-spacing:0.02em;
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.flowordr-chat-close{
  background:var(--flowordr-close-bg);
  border:none;
  color:white;
  cursor:pointer;
  padding:6px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  opacity:0.9;
  transition:all 0.2s cubic-bezier(0.4,0,0.2,1);
}

.flowordr-chat-close:hover{
  opacity:1;
  background:var(--flowordr-close-bg-hover);
  transform:none;
}

.flowordr-chat-close .material-icons-round{
  font-size:20px;
}

.flowordr-chat-messages{
  flex:1;
  overflow-y:auto;
  padding:18px 16px 16px;
  display:flex;
  flex-direction:column;
  gap:16px;
  background:var(--flowordr-window-bg);
}

.flowordr-message{
  max-width:85%;
  padding:14px 16px;
  border-radius:20px;
  font-size:13px;
  line-height:1.55;
  animation:flowordr-fade-in 0.3s ease;
  box-shadow:0 10px 20px -14px rgba(15,23,42,0.35);
}

@keyframes flowordr-fade-in{
  from{opacity:0;transform:translateY(10px);}
  to{opacity:1;transform:translateY(0);}
}

.flowordr-message.user{
  align-self:flex-end;
  background:color-mix(in srgb, var(--flowordr-primary) 88%, #1d4ed8);
  color:white;
  border-bottom-right-radius:6px;
}

.flowordr-message.assistant{
  align-self:flex-start;
  background:var(--flowordr-message-assistant-bg);
  color:var(--flowordr-header-text);
  border-bottom-left-radius:6px;
  border:1px solid var(--flowordr-message-assistant-border);
  max-width:95%;
}

#flowordr-welcome-message{
  font-size:13px;
  line-height:1.5;
  padding:14px 16px;
  max-width:98%;
  width:98%;
  box-sizing:border-box;
  border-radius:20px;
  background:var(--flowordr-message-welcome-bg);
  border:1px solid var(--flowordr-message-welcome-border);
}

#flowordr-welcome-quick-replies{
  margin-top:8px;
  margin-left:0;
  margin-right:0;
}

.flowordr-message-sources{
  margin-top:8px;
  padding-top:8px;
  border-top:1px solid var(--flowordr-border);
  font-size:11px;
  color:var(--flowordr-text-secondary);
}

.flowordr-message-sources span{
  display:inline-block;
  background:var(--flowordr-bg);
  padding:2px 6px;
  border-radius:4px;
  margin:2px;
}

.flowordr-typing-indicator{
  display:flex;
  gap:4px;
  padding:12px 16px;
  background:var(--flowordr-surface-2);
  border-radius:16px;
  border-bottom-left-radius:4px;
  align-self:flex-start;
  max-width:60px;
}

.flowordr-typing-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--flowordr-text-secondary);
  animation:flowordr-typing 1.4s ease-in-out infinite;
}

.flowordr-typing-dot:nth-child(2){
  animation-delay:0.2s;
}

.flowordr-typing-dot:nth-child(3){
  animation-delay:0.4s;
}

@keyframes flowordr-typing{
  0%,60%,100%{transform:translateY(0);}
  30%{transform:translateY(-6px);}
}

.flowordr-chat-input-container{
  padding:12px 14px 16px;
  padding-bottom:calc(16px + env(safe-area-inset-bottom, 0px));
  border-top:1px solid var(--flowordr-border-weak);
  display:flex;
  gap:8px;
  align-items:flex-end;
  background:var(--flowordr-surface-2);
}

.flowordr-chat-input{
  flex:1;
  padding:12px 16px;
  border:1px solid var(--flowordr-input-border);
  border-radius:999px;
  background:var(--flowordr-input-bg);
  color:var(--flowordr-header-text);
  font-size:13px;
  resize:none;
  max-height:120px;
  outline:none;
  transition:border-color 0.2s, box-shadow 0.2s;
}

.flowordr-chat-input:focus{
  border-color:var(--flowordr-primary);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--flowordr-primary) 30%, transparent);
}

.flowordr-chat-input::placeholder{
  color:var(--flowordr-text-secondary);
}

.flowordr-send-button{
  width:42px;
  height:42px;
  border-radius:999px;
  background:var(--flowordr-primary);
  border:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all 0.2s cubic-bezier(0.4,0,0.2,1);
  flex-shrink:0;
  box-shadow:var(--flowordr-send-shadow);
}

.flowordr-send-button:hover:not(:disabled){
  background:var(--flowordr-primary-hover);
  transform:scale(1.05);
  box-shadow:var(--flowordr-send-shadow-hover);
}

.flowordr-send-button:active:not(:disabled){
  transform:scale(0.95);
}

.flowordr-send-button:disabled{
  opacity:0.5;
  cursor:not-allowed;
}

.flowordr-send-button .material-icons-round{
  font-size:18px;
  color:white;
}

.flowordr-powered-by{
  text-align:center;
  padding:8px;
  font-size:10px;
  color:var(--flowordr-text-secondary);
  background:var(--flowordr-window-bg);
}

.flowordr-powered-by a{
  color:var(--flowordr-primary);
  text-decoration:none;
}

.flowordr-error{
  color:#ef4444;
  font-size:12px;
  padding:8px 12px;
  background:#fee2e2;
  border-radius:8px;
  margin:8px 0;
}

.flowordr-quick-replies-floating{
  margin-top:10px;
  background:transparent;
  border-radius:16px;
  padding:0;
  border:none;
  box-shadow:none;
  width:100%;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.flowordr-quick-replies-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  flex-wrap:wrap;
  padding-left:2px;
}

.flowordr-quick-replies-header-left{
  display:flex;
  align-items:center;
  gap:6px;
  color:var(--flowordr-text-secondary);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:0.08em;
  font-weight:600;
  flex-shrink:0;
}

.flowordr-quick-replies-icon{
  font-size:14px;
  color:var(--flowordr-quick-replies-icon);
}

.flowordr-quick-replies-header-right{
  display:none;
}

.flowordr-quick-replies-chips{
  display:flex;
  align-items:center;
  gap:8px;
  overflow-x:auto;
  padding-bottom:4px;
  -ms-overflow-style:none;
  scrollbar-width:none;
}

.flowordr-quick-replies-chips::-webkit-scrollbar{
  display:none;
}

.flowordr-quick-replies-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 12px;
  border-radius:999px;
  font-size:10px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:0.04em;
  border:1px solid transparent;
  white-space:nowrap;
  flex-shrink:0;
}

.flowordr-quick-replies-badge .badge-dot{
  width:5px;
  height:5px;
  border-radius:999px;
  background:currentColor;
  animation:flowordr-pulse 2s cubic-bezier(0.4,0,0.6,1) infinite;
}

.flowordr-quick-replies-badge .badge-text{
  line-height:1;
}

.flowordr-quick-replies-badge.fresh{
  color:var(--flowordr-chip-fresh-color);
  background:var(--flowordr-chip-fresh-bg);
  border-color:var(--flowordr-chip-fresh-border);
}

.flowordr-quick-replies-badge.cache{
  color:var(--flowordr-chip-cache-color);
  background:var(--flowordr-chip-cache-bg);
  border-color:var(--flowordr-chip-cache-border);
}

.flowordr-quick-replies-buttons{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  align-items:stretch;
}

.flowordr-quick-reply-btn{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:14px 16px;
  font-size:12px;
  line-height:1.4;
  text-align:left;
  border-radius:20px;
  border:1px solid var(--flowordr-quick-reply-border);
  background:var(--flowordr-quick-reply-bg);
  color:var(--flowordr-header-text);
  cursor:pointer;
  white-space:normal;
  word-wrap:break-word;
  overflow-wrap:break-word;
  transition:all 0.15s ease;
  box-shadow:var(--flowordr-quick-reply-shadow);
  width:100%;
  box-sizing:border-box;
  height:100%;
  min-height:56px;
}

.flowordr-quick-reply-icon{
  flex-shrink:0;
  font-size:18px !important;
  opacity:1;
  margin-top:0;
}

.flowordr-quick-reply-text{
  flex:1;
  word-break:break-word;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.flowordr-quick-reply-btn:hover{
  transform:translateY(-1px);
  box-shadow:var(--flowordr-quick-reply-shadow-hover);
  background:var(--flowordr-quick-reply-bg-hover);
  border-color:var(--flowordr-quick-reply-border-hover);
}

.flowordr-quick-reply-btn.primary{
  background:var(--flowordr-quick-reply-bg);
  color:var(--flowordr-header-text);
  border-color:var(--flowordr-quick-reply-border);
  box-shadow:var(--flowordr-quick-reply-shadow);
}

.flowordr-quick-reply-btn.primary:hover{
  background:var(--flowordr-quick-reply-bg-hover);
  transform:translateY(-1px);
  box-shadow:var(--flowordr-quick-reply-shadow-hover);
}

.flowordr-quick-reply-btn.flowordr-quick-reply-selected{
  background:var(--flowordr-primary);
  color:#fff;
  border-color:transparent;
}

.flowordr-quick-reply-btn.flowordr-quick-reply-selected .flowordr-quick-reply-icon{
  color:white;
}

.flowordr-quick-reply-icon{
  font-size:16px;
  color:var(--flowordr-quick-reply-icon);
  transition:color 0.2s;
}

.flowordr-quick-reply-btn.primary .flowordr-quick-reply-icon{
  color:white;
  opacity:0.9;
}

.flowordr-quick-replies-loading{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  overflow:visible;
  padding-bottom:0;
  margin-top:-2px;
  padding:6px 2px 2px;
}

.flowordr-quick-replies-loading .loading-spinner{
  width:16px;
  height:16px;
  border-radius:999px;
  border:2px solid color-mix(in srgb, var(--flowordr-border) 70%, transparent);
  border-top-color:var(--flowordr-primary);
  animation:flowordr-spin 1s linear infinite;
}

.flowordr-quick-replies-regenerate{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid var(--flowordr-regenerate-border);
  background:var(--flowordr-regenerate-bg);
  color:var(--flowordr-regenerate-color);
  font-size:10px;
  font-weight:600;
  cursor:pointer;
  transition:all 0.15s ease;
  white-space:nowrap;
}

.flowordr-quick-replies-regenerate:hover{
  border-color:var(--flowordr-regenerate-color);
  background:var(--flowordr-regenerate-bg-hover);
  transform:translateY(-1px);
}

.flowordr-quick-replies-regenerate .material-icons-round{
  font-size:13px;
}

@keyframes flowordr-spin{
  from{transform:rotate(0);}
  to{transform:rotate(360deg);}
}

.flowordr-chat-messages::-webkit-scrollbar{
  width:6px;
}

.flowordr-chat-messages::-webkit-scrollbar-track{
  background:transparent;
}

.flowordr-chat-messages::-webkit-scrollbar-thumb{
  background:color-mix(in srgb, var(--flowordr-border) 70%, transparent);
  border-radius:999px;
}

@media (max-width:640px){
  .flowordr-chat-window{
    width:calc(100vw - 20px);
    height:calc(100vh - 90px);
    border-radius:20px;
  }

  .flowordr-message{
    max-width:95%;
  }

  .flowordr-chat-title{
    font-size:15px;
  }

  .flowordr-chat-subtitle{
    font-size:10px;
  }

  .flowordr-quick-replies-floating{
    padding:10px 10px 8px;
    border-radius:14px;
  }

  .flowordr-quick-reply-btn{
    padding:8px 10px;
    font-size:12px;
  }

  .flowordr-quick-replies-header-left{
    font-size:10px;
  }

  .flowordr-quick-replies-badge{
    padding:4px 8px;
    font-size:8px;
  }

  .flowordr-quick-replies-regenerate{
    padding:4px 8px;
    font-size:9px;
  }
}

@media (max-height:700px){
  .flowordr-chat-window{
    height:calc(100vh - 80px);
  }

  .flowordr-chat-messages{
    padding:14px 14px 12px;
    gap:12px;
  }
}

@media (prefers-reduced-motion: reduce){
  .flowordr-chat-window,
  .flowordr-message,
  .flowordr-chat-button,
  .flowordr-send-button,
  .flowordr-quick-reply-btn{
    transition:none;
  }

  .flowordr-typing-dot,
  .flowordr-chat-status-dot,
  .flowordr-quick-replies-loading .loading-spinner{
    animation:none;
  }
}

@media (max-width:480px){
  .flowordr-chat-window{
    width:calc(100vw - 24px);
    height:calc(100vh - 100px);
    bottom:calc(68px + env(safe-area-inset-bottom, 0px));
    right:12px;
    border-radius:18px;
  }

  .flowordr-chat-widget[data-position="bottom-left"] .flowordr-chat-window{
    left:12px;
    right:auto;
  }

  .flowordr-chat-widget:not([data-custom-button="true"]) .flowordr-chat-button{
    width:56px;
    height:56px;
  }

  .flowordr-chat-header{
    padding:14px 16px;
  }

  .flowordr-chat-messages{
    padding:16px 14px 12px;
  }

  .flowordr-chat-input-container{
    padding:10px 12px 12px;
  }
}
