/* Digitara chat widget */
.dc-launcher { position: fixed; right: 24px; bottom: 24px; z-index: 9998; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; background: #10b981; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgb(15 23 42 / .35); transition: transform .2s ease, background .2s ease; }
.dc-launcher:hover { transform: translateY(-2px); background: #059669; }
.dc-launcher svg { width: 26px; height: 26px; }
.dc-launcher .dc-ico-close { display: none; }
.dc-open .dc-launcher .dc-ico-chat { display: none; }
.dc-open .dc-launcher .dc-ico-close { display: block; }
.dc-dot { position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%; background: #f59e0b; border: 2px solid #fff; }
.dc-open .dc-dot, .dc-seen .dc-dot { display: none; }

.dc-panel { position: fixed; right: 24px; bottom: 96px; z-index: 9999; width: 370px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 120px); display: flex; flex-direction: column; background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; box-shadow: 0 24px 60px -16px rgb(15 23 42 / .35); overflow: hidden; font-family: 'Inter', system-ui, sans-serif; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.dc-open .dc-panel { opacity: 1; transform: none; pointer-events: auto; }

.dc-head { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.1rem; border-bottom: 1px solid #e2e8f0; }
.dc-head img { width: 36px; height: 36px; border-radius: 10px; }
.dc-head strong { display: block; font-family: 'Poppins', sans-serif; font-size: .98rem; color: #0f172a; line-height: 1.2; }
.dc-head small { display: flex; align-items: center; gap: .35rem; font-size: .78rem; color: #64748b; }
.dc-head small::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #10b981; }
.dc-x { margin-left: auto; width: 34px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: #64748b; cursor: pointer; display: grid; place-items: center; }
.dc-x:hover { background: #f1f5f9; color: #0f172a; }
.dc-x svg { width: 18px; height: 18px; }

.dc-body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: #f8fafc; }
.dc-msg { max-width: 85%; padding: .65rem .85rem; border-radius: 14px; font-size: .93rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.dc-msg--bot { align-self: flex-start; background: #fff; border: 1px solid #e2e8f0; color: #1e293b; border-bottom-left-radius: 4px; }
.dc-msg--user { align-self: flex-end; background: #10b981; color: #fff; border-bottom-right-radius: 4px; }
.dc-msg a { color: inherit; text-decoration: underline; }
.dc-typing { align-self: flex-start; display: flex; gap: 4px; padding: .8rem .9rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; }
.dc-typing i { width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; animation: dcBlink 1.2s infinite; }
.dc-typing i:nth-child(2) { animation-delay: .2s; } .dc-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes dcBlink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

.dc-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.dc-chip { border: 1px solid #a7f3d0; background: #ecfdf5; color: #047857; font-size: .82rem; font-weight: 600; padding: .4rem .75rem; border-radius: 999px; cursor: pointer; font-family: inherit; }
.dc-chip:hover { background: #d1fae5; }

.dc-handoff { align-self: stretch; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: .85rem; display: grid; gap: .5rem; }
.dc-handoff p { margin: 0 0 .15rem; font-size: .88rem; color: #334155; }
.dc-btn { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .65rem .8rem; border-radius: 10px; font-size: .9rem; font-weight: 600; text-decoration: none; font-family: inherit; }
.dc-btn svg { width: 18px; height: 18px; }
.dc-btn--wa { background: #25d366; color: #fff; }
.dc-btn--wa:hover { background: #1fb457; }
.dc-btn--mail { background: #fff; color: #0f172a; border: 1px solid #e2e8f0; }
.dc-btn--mail:hover { border-color: #0f172a; }

.dc-form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid #e2e8f0; background: #fff; }
.dc-input { flex: 1; resize: none; border: 1px solid #e2e8f0; border-radius: 12px; padding: .65rem .8rem; font-family: inherit; font-size: .93rem; line-height: 1.4; max-height: 110px; color: #0f172a; }
.dc-input:focus { outline: none; border-color: #10b981; box-shadow: 0 0 0 3px rgb(16 185 129 / .15); }
.dc-send { width: 44px; height: 44px; flex-shrink: 0; align-self: flex-end; border: 0; border-radius: 12px; background: #10b981; color: #fff; cursor: pointer; display: grid; place-items: center; }
.dc-send:hover { background: #059669; }
.dc-send:disabled { background: #cbd5e1; cursor: default; }
.dc-send svg { width: 18px; height: 18px; }
.dc-foot { padding: 0 .9rem .6rem; background: #fff; font-size: .72rem; color: #94a3b8; text-align: center; }
.dc-foot a { color: #64748b; text-decoration: underline; cursor: pointer; }

@media (max-width: 480px) {
  .dc-launcher { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  .dc-panel { right: 0; left: 0; bottom: 0; width: 100%; max-width: none; height: 85vh; max-height: none; border-radius: 18px 18px 0 0; }
  .dc-open .dc-launcher { display: none; }
  .dc-input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .dc-panel, .dc-launcher { transition: none; } .dc-typing i { animation: none; } }
