/* Dhru Dhani Assistant chat widget — v20261008a */
.ddc { --ddc-primary: var(--primary, #0B2A4A); --ddc-accent: var(--accent, #0D9488); --ddc-accent-h: var(--accent-hover, #0f766e);
  --ddc-wa: #128C7E; font-family: "Inter", "Noto Sans Tamil", "Latha", "Tamil MN", system-ui, sans-serif; }
.ddc-panel, .ddc-launcher, .ddc-opt, .ddc-title, .ddc-sub, .ddc-foot { font-family: inherit; }
.ddc-launcher { position: fixed; right: 20px; bottom: 20px; z-index: 900; display: inline-flex; align-items: center; gap: 8px;
  height: 58px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, var(--ddc-accent), var(--ddc-primary)); box-shadow: 0 10px 28px rgba(11,42,74,.30);
  font-weight: 600; font-size: 15px; line-height: 1; transition: transform .2s ease, box-shadow .2s ease; }
.ddc-launcher:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(11,42,74,.36); }
.ddc-launcher:focus-visible { outline: none; box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--ddc-accent); }
.ddc-open .ddc-launcher { padding: 0 16px; }
.ddc-open .ddc-launcher-label { display: none; }
.ddc-panel { position: fixed; right: 20px; bottom: 90px; z-index: 901; width: 380px; max-width: calc(100vw - 32px);
  height: min(600px, calc(100vh - 120px)); display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border-radius: 18px; border: 1px solid var(--border, rgba(11,42,74,.12));
  box-shadow: 0 24px 60px rgba(11,42,74,.28); animation: ddc-in .22s ease-out; }
.ddc-panel[hidden] { display: none; }
@keyframes ddc-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.ddc-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; color: #fff;
  background: linear-gradient(135deg, var(--ddc-primary), #0f4c5c 70%, var(--ddc-accent)); }
.ddc-avatar { width: 40px; height: 40px; border-radius: 50%; background: #fff; object-fit: contain; padding: 3px; flex: none; }
.ddc-head-text { flex: 1; min-width: 0; }
.ddc-title { font-weight: 700; font-size: 16px; line-height: 1.3; font-family: var(--font-ta, sans-serif); }
.ddc-sub { font-size: 12px; opacity: .85; font-family: var(--font-ta, sans-serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ddc-close { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; }
.ddc-close:hover { background: rgba(255,255,255,.26); }
.ddc-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ddc-log { flex: 1; overflow-y: auto; padding: 16px 14px 8px; background: var(--surface, #F4F7FA); overscroll-behavior: contain; }
.ddc-log:focus { outline: none; }
.ddc-row { display: flex; gap: 8px; margin: 0 0 10px; align-items: flex-end; }
.ddc-mini { width: 26px; height: 26px; border-radius: 50%; background: #fff; object-fit: contain; padding: 2px; flex: none; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.ddc-bubble { max-width: 84%; padding: 10px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; color: var(--text, #0F172A); word-wrap: break-word; }
.ddc-bot .ddc-bubble { background: #fff; border: 1px solid var(--border, rgba(11,42,74,.12)); border-bottom-left-radius: 4px; }
.ddc-user { justify-content: flex-end; }
.ddc-user .ddc-bubble { background: var(--ddc-primary); color: #fff; border-bottom-right-radius: 4px; }
.ddc-svc-title { display: block; font-size: 15.5px; color: var(--ddc-primary); }
.ddc-svc-en { display: block; font-size: 12px; color: var(--muted, #64748b); }
.ddc-svc-desc { margin: 6px 0 0; }
.ddc-docs-h { margin-top: 10px; font-weight: 600; font-size: 13.5px; color: var(--ddc-primary); }
.ddc-docs { margin: 4px 0 0; padding-left: 20px; font-size: 13.5px; }
.ddc-docs li { margin: 2px 0; }
.ddc-options { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px 34px; }
.ddc-opt { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--ddc-accent); background: #fff; color: var(--ddc-accent-h); font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1.35; text-align: left;
  text-decoration: none; transition: background .15s ease, color .15s ease, transform .15s ease; }
.ddc-opt:hover { background: var(--accent-soft, #ccfbf1); text-decoration: none; }
.ddc-opt:focus-visible { outline: none; box-shadow: var(--focus, 0 0 0 3px rgba(13,148,136,.45)); }
.ddc-opt:active { transform: scale(.97); }
.ddc-alt { border-color: var(--ddc-primary); color: var(--ddc-primary); }
.ddc-alt:hover { background: #e6edf5; }
.ddc-primary { background: var(--ddc-accent); color: #fff; }
.ddc-primary:hover { background: var(--ddc-accent-h); color: #fff; }
.ddc-wa { background: var(--ddc-wa); border-color: var(--ddc-wa); color: #fff; }
.ddc-wa:hover { background: #0e6f64; color: #fff; }
.ddc-ghost { border-color: #cbd5e1; color: #475569; font-weight: 500; }
.ddc-ghost:hover { background: #f1f5f9; }
.ddc-foot { padding: 8px 14px; font-size: 12px; line-height: 1.45; color: var(--muted, #64748b); background: #fff;
  border-top: 1px solid var(--border, rgba(11,42,74,.12)); font-family: var(--font-ta, sans-serif); }
@media (max-width: 480px) {
  .ddc-launcher { right: 14px; bottom: 14px; height: 54px; }
  .ddc-panel { left: 0; right: 0; bottom: 0; width: 100%; max-width: 100%; height: 88vh; height: 88dvh; border-radius: 18px 18px 0 0; border-bottom: 0; }
  .ddc-open .ddc-launcher { display: none; }
  .ddc-options { margin-left: 0; }
  .ddc-bubble { max-width: 88%; }
}
@media (prefers-reduced-motion: reduce) {
  .ddc-panel { animation: none; }
  .ddc-launcher, .ddc-opt { transition: none; }
  .ddc-launcher:hover, .ddc-opt:active { transform: none; }
}
@media print { .ddc { display: none !important; } }
