/* Website chat widget */
.zchat { position: fixed; right: 20px; bottom: 20px; z-index: 60; font: 15px/1.5 Inter, system-ui, sans-serif; }
.zchat-fab { display: flex; align-items: center; gap: 8px; border: 0; cursor: pointer; background: #c6f95c; color: #18232d; font: 700 15px Inter, sans-serif; padding: 14px 20px; border-radius: 999px; box-shadow: 0 14px 34px rgba(13, 31, 45, .35); }
.zchat-fab:hover { background: #b4eb43; }
.zchat.is-open .zchat-fab { display: none; }
.zchat-panel { width: min(380px, calc(100vw - 24px)); height: min(600px, calc(100vh - 40px)); display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(13, 31, 45, .4); border: 1px solid #e1e7ee; }
.zchat-panel[hidden] { display: none; }
.zchat-panel header { display: flex; align-items: center; gap: 6px; padding: 16px 16px 16px 20px; background: #142b3d; color: #fff; }
.zchat-panel header div { flex: 1; display: flex; flex-direction: column; }
.zchat-panel header small { color: #c9d5e0; font-size: 12px; }
.zchat-panel header button { width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 18px; cursor: pointer; }
.zchat-panel header button:hover { background: rgba(255, 255, 255, .2); }
.zchat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #f4f7fa; }
.zmsg { max-width: 86%; padding: 10px 14px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; color: #18232d; }
.zmsg.bot { background: #fff; border: 1px solid #e1e7ee; border-bottom-left-radius: 6px; align-self: flex-start; }
.zmsg.me { background: #142b3d; color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.zmsg a { color: #142b3d; font-weight: 600; }
.zmsg.me a { color: #c6f95c; }
.zmsg.typing { display: flex; gap: 4px; padding: 14px; }
.zmsg.typing span { width: 7px; height: 7px; border-radius: 50%; background: #93a5b5; animation: zdot 1s infinite ease-in-out; }
.zmsg.typing span:nth-child(2) { animation-delay: .15s; } .zmsg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes zdot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.zchat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; background: #f4f7fa; }
.zchat-quick[hidden] { display: none; }
.zchat-quick button { border: 1px solid #cbd5df; background: #fff; color: #18232d; border-radius: 999px; padding: 6px 12px; font: 600 13px Inter, sans-serif; cursor: pointer; }
.zchat-quick button:hover { border-color: #142b3d; }
.zchat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #e1e7ee; }
.zchat-form textarea { flex: 1; resize: none; border: 1px solid #cbd5df; border-radius: 14px; padding: 10px 12px; font: 15px Inter, sans-serif; color: #18232d; max-height: 120px; }
.zchat-form textarea:focus { outline: none; border-color: #142b3d; }
.zchat-form button { width: 44px; border: 0; border-radius: 14px; background: #c6f95c; color: #18232d; font-size: 16px; cursor: pointer; }
.zchat-foot { margin: 0; padding: 0 14px 12px; font-size: 12px; color: #4d5d6b; text-align: center; }
.zchat-foot a { color: #142b3d; font-weight: 600; }
@media (max-width: 480px) { .zchat { right: 12px; bottom: 12px; } .zchat-fab span { display: none; } .zchat-fab { padding: 14px; } }
@media (prefers-reduced-motion: reduce) { .zmsg.typing span { animation: none; } }
