/* DOKIMI Tele Chat – khung chat riêng */
.dktg { --dktg-c: #F6C93C; --dktg-tx: #2b2118; position: fixed; right: 18px; bottom: 18px; z-index: 99990; font: 15px/1.45 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--dktg-tx); }
.dktg *, .dktg *::before, .dktg *::after { box-sizing: border-box; }
.dktg-bubble { position: relative; width: 62px; height: 62px; border-radius: 50%; border: 0; background: var(--dktg-c); color: var(--dktg-h-tx, #fff); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 0 rgba(0, 0, 0, .15), 0 12px 28px -8px rgba(0, 0, 0, .45); transition: transform .2s; margin-left: auto; }
.dktg-bubble:hover { transform: scale(1.06); }
.dktg-bubble::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid var(--dktg-c); opacity: .5; animation: dktgPing 2.4s infinite; }
.dktg-bubble.is-open::after { display: none; }
@keyframes dktgPing { 0% { transform: scale(.9); opacity: .6; } 100% { transform: scale(1.35); opacity: 0; } }
.dktg-badge { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; border-radius: 10px; background: #d63638; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.dktg-badge[hidden] { display: none; }
.dktg-panel { position: absolute; right: 0; bottom: 76px; width: 370px; max-width: calc(100vw - 24px); height: 560px; max-height: calc(100vh - 110px); display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .45); border: 1px solid rgba(0, 0, 0, .06); animation: dktgUp .22s ease; }
.dktg-panel[hidden] { display: none; }
@keyframes dktgUp { from { transform: translateY(14px); opacity: 0; } }
.dktg-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--dktg-c); color: var(--dktg-h-tx, #fff); }
.dktg-head div { flex: 1; min-width: 0; display: grid; }
.dktg-head strong { font-size: 16px; }
.dktg-head small { font-size: 12px; opacity: .8; }
.dktg-dot { width: 10px; height: 10px; border-radius: 50%; background: #bbf7d0; box-shadow: 0 0 0 3px rgba(255, 255, 255, .45); }
.dktg-dot.is-human { background: #d63638; animation: dktgBlink 1s infinite; }
@keyframes dktgBlink { 50% { opacity: .3; } }
.dktg-x { border: 0; background: rgba(0, 0, 0, .1); width: 32px; height: 32px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; color: inherit; }
.dktg-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #faf8f4; }
.dktg-m { max-width: 85%; padding: 9px 13px; border-radius: 16px; white-space: pre-wrap; word-wrap: break-word; }
.dktg-me { align-self: flex-end; background: #2b2118; color: #fff; border-bottom-right-radius: 4px; }
.dktg-bot, .dktg-ai { align-self: flex-start; background: #fff; border: 1px solid #eee4d6; border-bottom-left-radius: 4px; }
.dktg-staff { align-self: flex-start; background: #e6f6ec; border: 1px solid #bfe5cc; border-bottom-left-radius: 4px; }
.dktg-by { display: block; font-size: 12px; color: #2f7d46; margin-bottom: 2px; }
.dktg-sys { align-self: center; background: none; color: #7a6f63; font-size: 12.5px; text-align: center; max-width: 95%; }
.dktg-typing { display: flex; gap: 4px; }
.dktg-typing span { width: 7px; height: 7px; border-radius: 50%; background: #b8a58c; animation: dktgDot 1s infinite; }
.dktg-typing span:nth-child(2) { animation-delay: .15s; }
.dktg-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dktgDot { 50% { transform: translateY(-4px); opacity: .5; } }
.dktg-cards { display: grid; gap: 6px; align-self: stretch; }
.dktg-card { display: flex; gap: 10px; align-items: center; padding: 8px; background: #fff; border: 1px solid #eee4d6; border-radius: 14px; text-decoration: none; color: inherit; }
.dktg-card:hover { border-color: var(--dktg-c); }
.dktg-card img { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; background: #fff; flex-shrink: 0; }
.dktg-card span { display: grid; min-width: 0; }
.dktg-card strong { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dktg-card em { font-style: normal; font-weight: 700; color: #0F7A36; font-size: 13px; }
.dktg-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 12px 0; background: #fff; }
.dktg-chips:empty { display: none; }
.dktg-chip { border: 1px solid #e3d6c3; background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; color: inherit; text-decoration: none; }
.dktg-chip:hover { background: var(--dktg-c); border-color: var(--dktg-c); color: var(--dktg-h-tx, #fff); }
.dktg-form { display: flex; gap: 8px; padding: 10px 12px; background: #fff; }
.dktg-form input { flex: 1; min-width: 0; border: 1px solid #e3d6c3; border-radius: 999px; padding: 10px 14px; font: inherit; outline: none; background: #faf8f4; color: inherit; }
.dktg-form input:focus { border-color: var(--dktg-c); box-shadow: 0 0 0 3px rgba(22, 163, 74, .22); }
.dktg-form button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--dktg-c); cursor: pointer; font-size: 16px; color: var(--dktg-h-tx, #fff); }
.dktg-foot { display: flex; gap: 6px; padding: 0 12px 12px; background: #fff; flex-wrap: wrap; }
.dktg-foot > * { flex: 1; text-align: center; border: 0; border-radius: 12px; padding: 8px 6px; font-size: 12.5px; font-weight: 700; background: #f3ede4; color: inherit; text-decoration: none; cursor: pointer; white-space: nowrap; }
.dktg-foot .dktg-human { background: #2b2118; color: #fff; }
@media (max-width: 520px) {
	.dktg { right: 12px; bottom: 12px; }
	.dktg-panel { position: fixed; inset: auto 8px 84px 8px; width: auto; height: calc(100vh - 110px); }
}
