/* ─── DSCHATBOT — Frontend Widget ───────────────────────────────────────────── */

#dschatbot-root {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 99999;
  width: 0;
  height: 0;
  overflow: visible;
  pointer-events: none;
}

#dschatbot-root > * {
  pointer-events: auto;
}

:root {
  --omni-chat-primary:       #4F46E5;
  --omni-chat-primary-dark:  #3730A3;
  --omni-chat-primary-light: #EEF2FF;
  --omni-chat-bg:            #FFFFFF;
  --omni-chat-surface:       #F3F4F6;
  --omni-chat-border:        #E5E7EB;
  --omni-chat-text:          #1F2937;
  --omni-chat-muted:         #6B7280;
  --omni-chat-shadow:        0 4px 24px rgba(0,0,0,.15), 0 2px 8px rgba(0,0,0,.1);
  --omni-chat-radius:        16px;
  --omni-chat-radius-sm:     10px;
  --omni-chat-font:          -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --omni-chat-transition:    .25s cubic-bezier(.4,0,.2,1);
  --omni-chat-gradient:      linear-gradient(135deg, var(--omni-chat-primary) 0%, var(--omni-chat-primary-dark) 100%);
}

@keyframes omni-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.15); opacity: .65; }
}

@keyframes omni-launcher-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}

@keyframes omni-launcher-ring {
  0%   { transform: scale(1); opacity: .55; }
  100% { transform: scale(1.55); opacity: 0; }
}

@keyframes omni-launcher-shimmer {
  0%   { transform: translateX(-120%) skewX(-18deg); }
  100% { transform: translateX(220%) skewX(-18deg); }
}

@keyframes omni-prechat-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Premium "Start Chat" launcher ─────────────────────────────────────── */
#dschatbot-trigger.omni-chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  border: none;
  cursor: pointer;
  padding: 0;
  background: transparent;
  outline: none;
  animation: omni-launcher-float 3.2s ease-in-out infinite;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .3s ease, visibility .3s ease;
}
#dschatbot-trigger.omni-chat-launcher:hover {
  transform: translateY(-3px) scale(1.03);
  animation: none;
}
#dschatbot-trigger.omni-chat-launcher:active {
  transform: translateY(0) scale(0.98);
}
#dschatbot-trigger.omni-chat-launcher.omni-chat-launcher--hidden,
#dschatbot-trigger.omni-chat-launcher.is-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.92);
  animation: none;
}

.omni-chat-launcher__ring {
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--omni-chat-primary) 55%, transparent);
  animation: omni-launcher-ring 2.4s ease-out infinite;
  pointer-events: none;
}
.omni-chat-launcher__ring--delay {
  animation-delay: 1.2s;
}

.omni-chat-launcher__glow {
  position: absolute;
  inset: -12px;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--omni-chat-primary) 40%, transparent) 0%, transparent 70%);
  filter: blur(8px);
  opacity: .9;
  pointer-events: none;
}

.omni-chat-launcher__inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px 14px 16px;
  border-radius: 999px;
  background: var(--omni-chat-gradient);
  color: #fff;
  font-family: var(--omni-chat-font);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow:
    0 10px 28px color-mix(in srgb, var(--omni-chat-primary) 45%, transparent),
    0 2px 8px rgba(0,0,0,.12),
    inset 0 1px 0 rgba(255,255,255,.25);
  overflow: hidden;
  isolation: isolate;
}
.omni-chat-launcher__inner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  animation: omni-launcher-shimmer 3s ease-in-out infinite;
  pointer-events: none;
}

.omni-chat-launcher__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  flex-shrink: 0;
}
.omni-chat-launcher__svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}
.omni-chat-launcher__img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}
.omni-chat-launcher__text {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

#dschatbot-trigger.has-notification .omni-chat-launcher__inner::before {
  content: '';
  position: absolute;
  top: 6px;
  right: 10px;
  width: 10px;
  height: 10px;
  background: #EF4444;
  border-radius: 50%;
  border: 2px solid #fff;
  z-index: 2;
  animation: omni-pulse 1.5s infinite;
}

/* ── Chat window ────────────────────────────────────────────────────────── */
#dschatbot-window {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 99998;
  width: 380px;
  height: 580px;
  max-height: 90vh;
  background: var(--omni-chat-bg);
  border-radius: var(--omni-chat-radius);
  box-shadow: var(--omni-chat-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--omni-chat-font);
  font-size: 14px;
  color: var(--omni-chat-text);

  opacity: 0;
  transform: translateY(16px) scale(.97);
  pointer-events: none;
  transition: opacity var(--omni-chat-transition), transform var(--omni-chat-transition);
}
/* Isolate widget from theme: ensure our styles win on customer sites */
#dschatbot-window,
#dschatbot-window * {
  box-sizing: border-box;
}
#dschatbot-window input,
#dschatbot-window button,
#dschatbot-window select,
#dschatbot-window textarea {
  font-family: var(--omni-chat-font);
  font-size: inherit;
}
#dschatbot-window.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
#dschatbot-window #dschatbot-header {
  background: var(--omni-chat-gradient);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 12px color-mix(in srgb, var(--omni-chat-primary) 25%, transparent);
}
#dschatbot-window .omni-chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#dschatbot-window .omni-chat-avatar svg { width: 18px; height: 18px; fill: #fff; }
#dschatbot-window .omni-chat-header-info   { flex: 1; }
#dschatbot-window .omni-chat-header-title  { font-size: 0.95rem; font-weight: 600; color: #fff; line-height: 1.2; }
#dschatbot-window .omni-chat-header-status {
  font-size: 0.72rem;
  color: rgba(255,255,255,.75);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}
#dschatbot-window .omni-chat-online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  animation: omni-pulse 2s infinite;
}
#dschatbot-window #dschatbot-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,.75);
  padding: 4px;
  border-radius: 6px;
  line-height: 1;
  transition: color var(--omni-chat-transition), background var(--omni-chat-transition);
  -webkit-appearance: none;
  appearance: none;
}
#dschatbot-window #dschatbot-close-btn:hover { color: #fff; background: rgba(255,255,255,.15); }
#dschatbot-window #dschatbot-close-btn svg { width: 18px; height: 18px; fill: currentColor; display: block; }

/* ── Pre-chat form (premium) ─────────────────────────────────────────────── */
#dschatbot-window .omni-chat-prechat {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px 20px;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, color-mix(in srgb, var(--omni-chat-primary) 18%, transparent), transparent),
    linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 45%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: omni-prechat-in .45s ease both;
}

#dschatbot-window .omni-prechat-hero {
  text-align: center;
  padding: 8px 8px 4px;
}
#dschatbot-window .omni-prechat-hero__orb {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--omni-chat-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--omni-chat-primary) 35%, transparent);
  animation: omni-launcher-float 4s ease-in-out infinite;
}
#dschatbot-window .omni-prechat-hero__orb svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}
#dschatbot-window .omni-prechat-hero__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--omni-chat-text);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
#dschatbot-window .omni-prechat-hero__subtitle {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--omni-chat-muted);
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

#dschatbot-window .omni-prechat-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow:
    0 4px 24px rgba(15,23,42,.06),
    0 1px 3px rgba(15,23,42,.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#dschatbot-window .omni-prechat-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: omni-prechat-in .5s ease both;
}
#dschatbot-window .omni-prechat-field:nth-child(1) { animation-delay: .05s; }
#dschatbot-window .omni-prechat-field:nth-child(2) { animation-delay: .1s; }
#dschatbot-window .omni-prechat-field:nth-child(3) { animation-delay: .15s; }

#dschatbot-window .omni-prechat-field__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--omni-chat-muted);
}

#dschatbot-window .omni-prechat-field__wrap {
  position: relative;
  display: block;
}
#dschatbot-window .omni-prechat-field__wrap input {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--omni-chat-border);
  border-radius: 12px;
  font-size: 0.92rem;
  font-family: var(--omni-chat-font);
  font-weight: 500;
  background: #fff;
  color: var(--omni-chat-text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}
#dschatbot-window .omni-prechat-field__wrap input:hover {
  border-color: color-mix(in srgb, var(--omni-chat-primary) 35%, var(--omni-chat-border));
}
#dschatbot-window .omni-prechat-field__wrap input:focus {
  border-color: var(--omni-chat-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--omni-chat-primary) 18%, transparent);
  transform: translateY(-1px);
}
#dschatbot-window .omni-prechat-field__wrap input::placeholder {
  color: transparent;
}

#dschatbot-window .omni-prechat-cta {
  margin-top: 4px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  background: var(--omni-chat-gradient);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--omni-chat-font);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--omni-chat-primary) 38%, transparent);
  transition: transform .25s ease, box-shadow .25s ease;
  -webkit-appearance: none;
  appearance: none;
  animation: omni-prechat-in .55s ease both;
  animation-delay: .2s;
}
#dschatbot-window .omni-prechat-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transform: translateX(-100%);
  transition: transform .5s ease;
}
#dschatbot-window .omni-prechat-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--omni-chat-primary) 45%, transparent);
}
#dschatbot-window .omni-prechat-cta:hover::after {
  transform: translateX(100%);
}
#dschatbot-window .omni-prechat-cta:active {
  transform: translateY(0) scale(0.98);
}
#dschatbot-window .omni-prechat-cta__icon {
  display: flex;
  align-items: center;
  transition: transform .25s ease;
}
#dschatbot-window .omni-prechat-cta__icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
#dschatbot-window .omni-prechat-cta:hover .omni-prechat-cta__icon {
  transform: translateX(3px);
}

/* ── Chat body (messages + input, shown after prechat submit) ───────────────── */
#dschatbot-window .omni-chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

/* ── Messages area (scrollable when chat grows) ────────────────────────────── */
#dschatbot-window #dschatbot-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
  background:
    radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--omni-chat-primary) 6%, transparent), transparent 45%),
    linear-gradient(180deg, #F8FAFC 0%, #FAFAFA 100%);
}
#dschatbot-window #dschatbot-messages::-webkit-scrollbar { width: 6px; }
#dschatbot-window #dschatbot-messages::-webkit-scrollbar-track { background: rgba(0,0,0,.04); border-radius: 3px; }
#dschatbot-window #dschatbot-messages::-webkit-scrollbar-thumb { background: var(--omni-chat-border); border-radius: 3px; }
#dschatbot-window #dschatbot-messages::-webkit-scrollbar-thumb:hover { background: var(--omni-chat-muted); }

/* ── Message bubbles ─────────────────────────────────────────────────────── */
#dschatbot-window .omni-msg {
  display: flex;
  flex-direction: column;
  max-width: 88%;
  animation: omni-msg-in .25s ease;
}
@keyframes omni-msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

#dschatbot-window .omni-msg--bot,
#dschatbot-window .omni-msg--admin {
  flex-direction: row;
  align-items: flex-end;
  gap: 8px;
  align-self: flex-start;
  max-width: 92%;
}
#dschatbot-window .omni-msg--user { align-self: flex-end; }

#dschatbot-window .omni-msg__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--omni-chat-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--omni-chat-primary) 30%, transparent);
}
#dschatbot-window .omni-msg__avatar svg {
  width: 14px;
  height: 14px;
  fill: #fff;
}
#dschatbot-window .omni-msg__avatar--img {
  background: #fff;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--omni-chat-primary) 20%, #fff);
}
#dschatbot-window .omni-msg__avatar--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#dschatbot-window .omni-msg__content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

#dschatbot-window .omni-msg__bubble {
  padding: 11px 14px;
  border-radius: 16px;
  line-height: 1.55;
  word-break: break-word;
  white-space: pre-wrap;
  font-size: 0.9rem;
}
#dschatbot-window .omni-msg__bubble strong {
  font-weight: 700;
  color: inherit;
}
#dschatbot-window .omni-msg--bot .omni-msg__bubble {
  background: #fff;
  border: 1px solid var(--omni-chat-border);
  border-bottom-left-radius: 6px;
  color: var(--omni-chat-text);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
#dschatbot-window .omni-msg--user .omni-msg__bubble {
  background: var(--omni-chat-gradient);
  color: #fff;
  border-bottom-right-radius: 6px;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--omni-chat-primary) 35%, transparent);
}

#dschatbot-window .omni-msg__time { font-size: 0.68rem; color: var(--omni-chat-muted); margin-top: 4px; }
#dschatbot-window .omni-msg--user .omni-msg__time { text-align: right; }

/* Support (admin) messages — distinct from bot */
#dschatbot-window .omni-msg--admin .omni-msg__bubble {
  border-left: 3px solid #059669;
  background: #ECFDF5;
}
#dschatbot-window .omni-msg__support-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #059669;
  margin-bottom: 4px;
}

/* Source links */
#dschatbot-window .omni-msg__sources {
  margin-top: 8px;
  padding: 8px 10px;
  background: var(--omni-chat-primary-light);
  border-radius: var(--omni-chat-radius-sm);
  border-left: 3px solid var(--omni-chat-primary);
}
#dschatbot-window .omni-msg__sources-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--omni-chat-primary);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
}
#dschatbot-window .omni-msg__sources a {
  display: block;
  font-size: 0.78rem;
  color: var(--omni-chat-primary);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.6;
}
#dschatbot-window .omni-msg__sources a:hover { text-decoration: underline; }

#dschatbot-window .omni-msg__bubble .omni-msg-link {
  color: var(--omni-chat-primary);
  font-weight: 600;
  text-decoration: none;
}
#dschatbot-window .omni-msg__bubble .omni-msg-link:hover { text-decoration: underline; }

/* ── Typing indicator ────────────────────────────────────────────────────── */
#dschatbot-window .omni-typing {
  display: flex;
  align-self: flex-start;
  padding: 10px 14px;
  background: var(--omni-chat-bg);
  border: 1px solid var(--omni-chat-border);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  gap: 5px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
#dschatbot-window .omni-typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--omni-chat-muted);
  animation: omni-bounce .9s infinite;
}
#dschatbot-window .omni-typing-dot:nth-child(2) { animation-delay: .15s; }
#dschatbot-window .omni-typing-dot:nth-child(3) { animation-delay: .3s;  }
@keyframes omni-bounce {
  0%, 60%, 100% { transform: translateY(0);   opacity: .4; }
  30%           { transform: translateY(-6px); opacity: 1; }
}

/* ── Takeover notice (admin has joined; AI no longer replies) ───────────────── */
#dschatbot-window .omni-chat-takenover-notice {
  padding: 8px 14px;
  font-size: 0.8rem;
  color: var(--omni-chat-muted);
  background: var(--omni-chat-primary-light);
  border-top: 1px solid var(--omni-chat-border);
  border-bottom: 1px solid var(--omni-chat-border);
  line-height: 1.35;
}

/* ── Input area ──────────────────────────────────────────────────────────── */
#dschatbot-window #dschatbot-input-area {
  padding: 12px 14px;
  border-top: 1px solid var(--omni-chat-border);
  background: var(--omni-chat-bg);
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-shrink: 0;
}
#dschatbot-window #dschatbot-input {
  flex: 1;
  border: 1px solid var(--omni-chat-border);
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 0.88rem;
  font-family: var(--omni-chat-font);
  resize: none;
  outline: none;
  max-height: 100px;
  min-height: 38px;
  overflow-y: auto;
  transition: border-color var(--omni-chat-transition), box-shadow var(--omni-chat-transition);
  background: var(--omni-chat-surface);
  color: var(--omni-chat-text);
  line-height: 1.4;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}
#dschatbot-window #dschatbot-input:focus {
  border-color: var(--omni-chat-primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.15);
  background: var(--omni-chat-bg);
}
#dschatbot-window #dschatbot-input::placeholder { color: var(--omni-chat-muted); }

#dschatbot-window #dschatbot-send {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 50%;
  background: var(--omni-chat-primary-dark, #1a1a1a);
  background: linear-gradient(145deg, var(--omni-chat-primary-dark) 0%, var(--omni-chat-primary) 100%);
  border: 2px solid rgba(255, 255, 255, 0.45);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
  color: #fff;
  line-height: 0;
  transition: transform var(--omni-chat-transition), box-shadow var(--omni-chat-transition), opacity var(--omni-chat-transition);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--omni-chat-primary-dark, #000) 40%, transparent);
  -webkit-appearance: none;
  appearance: none;
}
#dschatbot-window #dschatbot-send .dschatbot-send-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  pointer-events: none;
}
#dschatbot-window #dschatbot-send svg,
#dschatbot-window #dschatbot-send svg path {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  fill: #ffffff !important;
  color: #ffffff !important;
}
#dschatbot-window #dschatbot-send:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--omni-chat-primary-dark, #000) 50%, transparent);
}
#dschatbot-window #dschatbot-send:active:not(:disabled) { transform: scale(0.94); }
#dschatbot-window #dschatbot-send:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

/* ── Feedback on exit (star rating + optional text) ──────────────────────── */
#dschatbot-window .omni-chat-feedback {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 16px;
  background: #FAFAFA;
  min-height: 0;
  overflow-y: auto;
}
#dschatbot-window .omni-chat-feedback-title {
  margin: 0 0 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--omni-chat-text);
  line-height: 1.35;
}
#dschatbot-window .omni-chat-feedback-stars {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
#dschatbot-window .omni-feedback-star {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--omni-chat-border);
  transition: color var(--omni-chat-transition), transform var(--omni-chat-transition);
  -webkit-appearance: none;
  appearance: none;
}
#dschatbot-window .omni-feedback-star:hover,
#dschatbot-window .omni-feedback-star.selected {
  color: #EAB308;
}
#dschatbot-window .omni-feedback-star.selected { transform: scale(1.1); }
#dschatbot-window .omni-chat-feedback-text {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--omni-chat-border);
  border-radius: var(--omni-chat-radius-sm);
  font-size: 0.85rem;
  font-family: var(--omni-chat-font);
  resize: none;
  outline: none;
  min-height: 56px;
  box-sizing: border-box;
  background: var(--omni-chat-bg);
  color: var(--omni-chat-text);
}
#dschatbot-window .omni-chat-feedback-text:focus {
  border-color: var(--omni-chat-primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
#dschatbot-window .omni-chat-feedback-text::placeholder { color: var(--omni-chat-muted); }
#dschatbot-window .omni-chat-feedback-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
#dschatbot-window .omni-chat-feedback-btn {
  padding: 8px 16px;
  border-radius: var(--omni-chat-radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--omni-chat-font);
  cursor: pointer;
  transition: background var(--omni-chat-transition), border-color var(--omni-chat-transition);
  -webkit-appearance: none;
  appearance: none;
}
#dschatbot-window .omni-chat-feedback-skip {
  background: transparent;
  border: 1px solid var(--omni-chat-border);
  color: var(--omni-chat-muted);
}
#dschatbot-window .omni-chat-feedback-skip:hover {
  border-color: var(--omni-chat-text);
  color: var(--omni-chat-text);
}
#dschatbot-window .omni-chat-feedback-submit {
  background: var(--omni-chat-primary);
  border: none;
  color: #fff;
}
#dschatbot-window .omni-chat-feedback-submit:hover {
  background: var(--omni-chat-primary-dark);
}

/* ── Powered-by footer ───────────────────────────────────────────────────── */
#dschatbot-window #dschatbot-footer {
  text-align: center;
  font-size: 0.68rem;
  color: var(--omni-chat-muted);
  padding: 6px 0 8px;
  border-top: 1px solid var(--omni-chat-border);
  flex-shrink: 0;
  background: var(--omni-chat-bg);
}
#dschatbot-window .omni-chat-footer-link {
  color: var(--omni-chat-primary);
  text-decoration: none;
  font-weight: 600;
  transition: opacity .15s;
}
#dschatbot-window .omni-chat-footer-link:hover { opacity: .75; text-decoration: underline; }

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 460px) {
  #dschatbot-window {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: min(92vh, 100dvh);
    max-height: 100dvh;
    border-radius: 20px 20px 0 0;
  }
  #dschatbot-trigger.omni-chat-launcher {
    bottom: 16px;
    right: 16px;
  }
  .omni-chat-launcher__inner {
    padding: 12px 18px 12px 14px;
    font-size: 0.88rem;
  }
  #dschatbot-window.is-open {
    bottom: 0;
  }
  #dschatbot-window:not(.is-open) {
    bottom: 88px;
  }
}

/* ── Accessibility: reduce motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  #dschatbot-window,
  #dschatbot-trigger.omni-chat-launcher,
  .omni-chat-launcher__ring,
  .omni-chat-launcher__inner::after,
  .omni-prechat-hero__orb,
  .omni-prechat-field,
  .omni-prechat-cta,
  .omni-chat-prechat,
  .omni-msg,
  .omni-typing-dot {
    animation: none !important;
    transition: none !important;
  }
}
