.edol-chat { --ec-ink: #111; --ec-bg: #fff; --ec-soft: #f4f4f4; --ec-line: #e2e2e2; --ec-mut: #8a8a8a; position: fixed; right: 24px; bottom: 24px; z-index: 99990; font-family: inherit; font-size: 14px; line-height: 1.5; color: var(--ec-ink); -webkit-font-smoothing: antialiased; }
.edol-chat *, .edol-chat *::before, .edol-chat *::after { box-sizing: border-box; }
.edol-chat button { font: inherit; cursor: pointer; color: inherit; }
.edol-chat svg { display: block; }

.edol-chat-btn { display: grid; place-items: center; width: 54px; height: 54px; padding: 0; border: 1px solid var(--ec-ink); border-radius: 0; background: var(--ec-ink); color: #fff !important; box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.edol-chat-btn:hover { transform: translateY(-2px); }
.edol-chat.is-on-dark .edol-chat-btn { background: #fff; border-color: #fff; color: var(--ec-ink) !important; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.edol-chat button:focus-visible { outline: 1px solid var(--ec-ink); outline-offset: 3px; }
.edol-chat.is-open .edol-chat-btn { display: none; }
.edol-chat.is-away .edol-chat-btn { opacity: 0; transform: translateY(12px); pointer-events: none; }
.edol-chat-btn { transition: transform .3s ease, opacity .3s ease, background-color .35s ease, color .35s ease, border-color .35s ease; }

.edol-chat-panel { position: absolute; right: 0; bottom: 0; width: 360px; height: min(560px, calc(100vh - 48px)); display: flex; flex-direction: column; background: var(--ec-bg); border: 1px solid var(--ec-line); border-radius: 0; box-shadow: 0 20px 60px rgba(0,0,0,.12); animation: edol-chat-in .25s ease-out; }
.edol-chat-panel[hidden] { display: none; }
@keyframes edol-chat-in { from { opacity: 0; transform: translateY(8px); } }

.edol-chat-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--ec-line); }
.edol-chat-title { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ec-mut); }
.edol-chat-x { border: 0; background: none; padding: 2px; color: var(--ec-ink) !important; opacity: .7; }
.edol-chat-x:hover { opacity: 1; }

.edol-chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.edol-chat-msg { max-width: 88%; padding: 10px 13px; border-radius: 0; overflow-wrap: anywhere; }
.edol-chat-msg.is-bot { align-self: flex-start; background: var(--ec-soft); }
.edol-chat-msg.is-user { align-self: flex-end; background: var(--ec-ink); color: #fff; }
.edol-chat-msg.is-new { animation: edol-chat-in .25s ease-out; }
.edol-chat-msg.is-wait { color: var(--ec-mut); }
.edol-chat-msg a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.edol-chat-msg a:hover { text-decoration-thickness: 2px; }

.edol-chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 12px; }
.edol-chat-chips:empty { display: none; }
.edol-chat-chips button { border: 1px solid var(--ec-line); background: var(--ec-bg); border-radius: 0; padding: 7px 11px; font-size: 12.5px !important; line-height: 1.2; transition: border-color .2s; }
.edol-chat-chips button:hover { border-color: var(--ec-ink); }
.edol-chat-chips button.is-main { background: var(--ec-ink); border-color: var(--ec-ink); color: #fff !important; }

.edol-chat-form { display: flex; align-items: stretch; border-top: 1px solid var(--ec-line); }
.edol-chat-in { flex: 1; min-width: 0; border: 0; border-radius: 0; padding: 15px 18px; font: inherit; font-size: 16px; color: var(--ec-ink); background: transparent; }
.edol-chat-in::placeholder { color: var(--ec-mut); }
.edol-chat-in:focus { outline: none; }
.edol-chat-form button { flex: none; width: 54px; border: 0; border-left: 1px solid var(--ec-line); border-radius: 0; background: transparent; display: grid; place-items: center; transition: background .2s, color .2s; }
.edol-chat-form button:hover { background: var(--ec-ink); color: #fff !important; }
.edol-chat-note { margin: 0; padding: 8px 18px 10px; border-top: 1px solid var(--ec-line); font-size: 10.5px; letter-spacing: .02em; color: var(--ec-mut); }

@media (max-width: 520px) {
	.edol-chat { right: 16px; bottom: 16px; }
	.edol-chat.is-open { inset: 0; }
	.edol-chat-panel { position: fixed; inset: 0; width: auto; height: 100%; border: 0; }
}
@media (prefers-reduced-motion: reduce) { .edol-chat * { animation: none !important; transition: none !important; } }
@media print { .edol-chat { display: none; } }
