/* Easy Breezy Chat widget */
#ebz-chat, #ebz-chat * { box-sizing: border-box; }
#ebz-chat { --ebz-p: #6E79F9; --ebz-p2: #5561EE; --ebz-ink: #141a4d; --ebz-soft: #EEF0FF; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }

/* launcher: sits above the floating call cloud */
#ebz-chat .ebz-launch { position: fixed; right: 34px; bottom: 140px; z-index: 99991; width: 64px; height: 64px; border: 0; border-radius: 50%; cursor: pointer; background: linear-gradient(145deg, var(--ebz-p), var(--ebz-p2)); box-shadow: 0 10px 24px rgba(60,70,200,.35); display: grid; place-items: center; transition: transform .2s ease; padding: 0; }
#ebz-chat .ebz-launch:hover { transform: scale(1.08); }
#ebz-chat .ebz-launch:focus-visible { outline: 3px solid var(--ebz-ink); outline-offset: 3px; }
#ebz-chat .ebz-launch svg { width: 32px; height: 32px; }
#ebz-chat .ebz-launch .ebz-tip { position: absolute; right: 74px; top: 50%; transform: translateY(-50%); background: var(--ebz-ink); color: #fff; font-size: 13px; font-weight: 700; padding: 7px 11px; border-radius: 10px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
#ebz-chat .ebz-launch:hover .ebz-tip { opacity: 1; }
#ebz-chat .ebz-dot { position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: #2ecc71; border: 2px solid #fff; }

/* panel */
#ebz-chat .ebz-panel { position: fixed; right: 22px; bottom: 22px; z-index: 99995; width: 380px; height: min(620px, calc(100vh - 44px)); background: #fff; border-radius: 22px; box-shadow: 0 24px 60px rgba(20,26,77,.28); display: flex; flex-direction: column; overflow: hidden; border: 2px solid var(--ebz-p); opacity: 0; transform: translateY(16px) scale(.97); transform-origin: bottom right; pointer-events: none; transition: opacity .22s ease, transform .22s ease; }
#ebz-chat.ebz-open .ebz-panel { opacity: 1; transform: none; pointer-events: auto; }
#ebz-chat.ebz-open .ebz-launch { display: none; }
body.ebz-chat-open #ebz-call { display: none !important; }

#ebz-chat .ebz-head { background: linear-gradient(135deg, var(--ebz-p), var(--ebz-p2)); color: #fff; padding: 14px 14px 14px 16px; display: flex; align-items: center; gap: 12px; }
#ebz-chat .ebz-avatar { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
#ebz-chat .ebz-avatar svg { width: 38px; height: 30px; }
#ebz-chat .ebz-title { flex: 1; min-width: 0; line-height: 1.2; }
#ebz-chat .ebz-title strong { display: block; font-size: 17px; font-weight: 800; }
#ebz-chat .ebz-title span { font-size: 12.5px; opacity: .92; }
#ebz-chat .ebz-title span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; margin-right: 6px; vertical-align: 1px; }
#ebz-chat .ebz-x { background: rgba(255,255,255,.18); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 20px; line-height: 1; display: grid; place-items: center; padding: 0; }
#ebz-chat .ebz-x:hover { background: rgba(255,255,255,.3); }

#ebz-chat .ebz-log { flex: 1; overflow-y: auto; padding: 16px 14px 8px; background: var(--ebz-soft); display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
#ebz-chat .ebz-msg { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; color: var(--ebz-ink); word-wrap: break-word; white-space: normal; }
#ebz-chat .ebz-bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 5px; box-shadow: 0 1px 2px rgba(20,26,77,.08); }
#ebz-chat .ebz-me { align-self: flex-end; background: var(--ebz-p); color: #fff; border-bottom-right-radius: 5px; }
#ebz-chat .ebz-msg a { color: var(--ebz-p2); font-weight: 700; }
#ebz-chat .ebz-me a { color: #fff; }
#ebz-chat .ebz-typing { display: inline-flex; gap: 4px; align-items: center; }
#ebz-chat .ebz-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ebz-p); animation: ebz-dots 1.2s infinite ease-in-out; }
#ebz-chat .ebz-typing i:nth-child(2) { animation-delay: .15s; }
#ebz-chat .ebz-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ebz-dots { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }

#ebz-chat .ebz-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; background: var(--ebz-soft); }
#ebz-chat .ebz-chip { border: 1.5px solid var(--ebz-p); background: #fff; color: var(--ebz-p2); font: inherit; font-size: 13px; font-weight: 700; padding: 6px 11px; border-radius: 999px; cursor: pointer; }
#ebz-chat .ebz-chip:hover { background: var(--ebz-p); color: #fff; }

#ebz-chat .ebz-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid #e3e6ff; background: #fff; }
#ebz-chat .ebz-input { flex: 1; resize: none; border: 1.5px solid #d5d9ff; border-radius: 14px; padding: 10px 12px; font: inherit; font-size: 15px; color: var(--ebz-ink); max-height: 110px; min-height: 44px; line-height: 1.35; background: #fff; margin: 0; }
#ebz-chat .ebz-input:focus { outline: none; border-color: var(--ebz-p); }
#ebz-chat .ebz-send { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--ebz-p); cursor: pointer; display: grid; place-items: center; padding: 0; align-self: flex-end; }
#ebz-chat .ebz-send:disabled { opacity: .5; cursor: default; }
#ebz-chat .ebz-send svg { width: 20px; height: 20px; }
#ebz-chat .ebz-foot { font-size: 11px; color: #6b7095; text-align: center; padding: 0 12px 9px; background: #fff; }
#ebz-chat .ebz-foot a { color: inherit; font-weight: 700; white-space: nowrap; }

@media (max-width: 767px) {
  #ebz-chat .ebz-launch { right: 22px; bottom: 102px; width: 56px; height: 56px; }
  #ebz-chat .ebz-launch .ebz-tip { display: none; }
  #ebz-chat .ebz-panel { right: 0; bottom: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0; }
  #ebz-chat .ebz-input { font-size: 16px; } /* prevents iOS zoom */
}
@media (prefers-reduced-motion: reduce) { #ebz-chat * { animation: none !important; transition: none !important; } }
