.eac { --eac: #0057FF; position: fixed; z-index: 300; right: 20px; bottom: 20px; font-family: var(--font, "Montserrat", system-ui, sans-serif); }
.eac[hidden] { display: none; }
.eac svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.eac-launch { position: relative; display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 8px 0 22px; border: 0; border-radius: 99px; background: var(--eac); color: #fff; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 0 12px 30px color-mix(in srgb, var(--eac) 40%, transparent), 0 2px 8px rgba(10, 20, 51, .18); transition: transform .2s cubic-bezier(.34, 1.56, .64, 1); }
.eac-launch:hover { transform: translateY(-2px); }
.eac-launch-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .18); }
.eac.open .eac-launch { display: none; }
.eac-count { position: absolute; top: -4px; right: -2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: #F04438; color: #fff; font-style: normal; font-size: 12px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.eac-count[hidden] { display: none; }
.eac-panel { width: 370px; height: min(600px, calc(100dvh - 40px)); display: flex; flex-direction: column; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 70px rgba(10, 20, 51, .28), 0 2px 10px rgba(10, 20, 51, .12); animation: eac-in .28s cubic-bezier(.2, .7, .2, 1); }
.eac-panel[hidden] { display: none; }
@keyframes eac-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.eac-head { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--eac); color: #fff; }
.eac-logo { width: 44px; height: 44px; flex: none; border-radius: 14px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; overflow: hidden; font-weight: 800; font-size: 15px; }
.eac-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.eac-title { flex: 1; min-width: 0; display: grid; }
.eac-title b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eac-title small { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: .9; }
.eac-title small i { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .3); }
.eac-close { width: 38px; height: 38px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .16); color: #fff; display: grid; place-items: center; cursor: pointer; }
.eac-body { flex: 1; overflow-y: auto; background: #F4F6FB; }
.eac-intro { display: grid; gap: 12px; padding: 16px; }
.eac-hello p { background: #fff; padding: 12px 14px; border-radius: 16px 16px 16px 6px; font-size: 14px; line-height: 1.5; color: #1F2A44; box-shadow: 0 1px 2px rgba(16, 30, 70, .06); }
.eac-intro label { display: grid; gap: 6px; }
.eac-intro label span { font-size: 13px; font-weight: 600; color: #2A3555; }
.eac-intro input, .eac-intro textarea, .eac-compose textarea { width: 100%; font: inherit; font-size: 15px; color: #111B3A; border: 1.5px solid #E1E7F2; background: #fff; border-radius: 14px; padding: 11px 13px; outline: 0; resize: none; transition: border-color .15s, box-shadow .15s; }
.eac-intro input:focus, .eac-intro textarea:focus, .eac-compose textarea:focus { border-color: var(--eac); box-shadow: 0 0 0 4px color-mix(in srgb, var(--eac) 15%, transparent); }
.eac-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.eac-btn { height: 50px; border: 0; border-radius: 14px; background: var(--eac); color: #fff; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.eac-btn:disabled { opacity: .6; }
.eac-note { font-size: 11.5px; color: #8A94AD; text-align: center; }
.eac-error { font-size: 13px; color: #B42318; background: #FEF1F0; padding: 9px 12px; border-radius: 12px; }
.eac-error[hidden], .eac-intro[hidden], .eac-list[hidden], .eac-compose[hidden] { display: none; }
.eac-list { display: flex; flex-direction: column; gap: 6px; padding: 16px 14px; }
.eac-msg { display: flex; }
.eac-msg.me { justify-content: flex-end; }
.eac-bubble { max-width: 82%; padding: 9px 12px 5px; border-radius: 16px; background: #fff; color: #1F2A44; box-shadow: 0 1px 2px rgba(16, 30, 70, .06); }
.eac-msg.them .eac-bubble { border-bottom-left-radius: 6px; }
.eac-msg.me .eac-bubble { background: var(--eac); color: #fff; border-bottom-right-radius: 6px; }
.eac-bubble p { margin: 0; white-space: pre-wrap; word-wrap: break-word; font-size: 14.5px; line-height: 1.45; }
.eac-bubble.media { padding: 4px 4px 5px; }
.eac-bubble.media p { padding: 6px 8px 0; }
.eac-bubble img { display: block; max-width: 100%; height: auto; max-height: 300px; border-radius: 12px; object-fit: cover; }
.eac-bubble audio { display: block; width: 240px; max-width: 100%; height: 40px; }
.eac-time { display: block; text-align: right; font-size: 10.5px; opacity: .65; margin-top: 2px; padding: 0 4px; }
.eac-msg.pending .eac-bubble { opacity: .6; }
.eac-msg.failed .eac-bubble { background: #FEF1F0; color: #B42318; }
.eac-compose { display: flex; align-items: flex-end; gap: 8px; padding: 10px; border-top: 1px solid #EEF2F8; background: #fff; }
.eac-compose textarea { min-height: 46px; max-height: 120px; }
.eac-compose button { width: 46px; height: 46px; flex: none; border: 0; border-radius: 14px; background: var(--eac); color: #fff; display: grid; place-items: center; cursor: pointer; }
@media (max-width: 700px) {
  .eac { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .eac.raised { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .eac-launch { height: 56px; padding: 0 6px; }
  .eac-launch-label { display: none; }
  .eac.eac-desktop-only { display: none; }
  .eac.open { inset: 0; }
  .eac-panel { width: 100%; height: 100dvh; border-radius: 0; }
  .eac-head { padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
  .eac-compose { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
}
