.cs-chat {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 10020;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
    margin: 0;
    padding: 0;
    color: #304355;
    font-size: 16px;
    line-height: 1.4;
}
.cs-chat,
.cs-chat * {
    box-sizing: border-box;
}
.cs-chat button,
.cs-chat textarea {
    margin: 0;
    font-family: inherit;
    letter-spacing: 0;
    text-transform: none;
}
.cs-chat strong,
.cs-chat small,
.cs-chat span,
.cs-chat p,
.cs-chat div,
.cs-chat form {
    margin-top: 0;
    margin-bottom: 0;
}
.cs-chat-launcher {
    position: relative;
    min-width: 140px;
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 50px;
    background: #0f766e;
    color: #fff;
    box-shadow: 0 8px 20px rgba(17, 43, 49, .24);
    cursor: pointer;
    transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.cs-chat-launcher:hover { background: #0b625c; box-shadow: 0 12px 25px rgba(17,43,49,.3); transform: translateY(-1px); }
.cs-chat-launcher:focus-visible, .cs-chat-close:focus-visible, .cs-chat-quick button:focus-visible, .cs-chat-form button:focus-visible { outline: 3px solid rgba(56,189,248,.55); outline-offset: 2px; }
.cs-chat-launcher-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.16);
    font-size: 0.85rem;
}
.cs-chat-launcher-copy { min-width: 0; display: block; text-align: left; }
.cs-chat-launcher-copy strong, .cs-chat-launcher-copy small { display: block; }
.cs-chat-launcher-copy strong { font-size: .70rem; line-height: 1.15; }
.cs-chat-launcher-copy small { margin-top: 1px; color: #cce5e1; font-size: .55rem; font-weight: 500; line-height: 1.1; }
.cs-chat-notification {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #dc3545;
    color: #fff;
    font-size: .58rem;
    font-weight: 800;
}
.cs-chat-panel {
    position: absolute;
    right: 0;
    bottom: 76px;
    width: min(394px, calc(100vw - 32px));
    height: min(590px, calc(100dvh - 130px));
    min-height: 470px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #d9e2e6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 35, 46, .27);
}
.cs-chat-panel:not([hidden]) { display: flex; flex-direction: column; animation: csChatOpen .2s ease-out; }
@keyframes csChatOpen { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
.cs-chat-header {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    border-bottom: 1px solid rgba(255,255,255,.09);
    background: #102f3a;
    color: #fff;
    box-shadow: none;
    transform: none;
}
.cs-chat-avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 7px;
    background: #fff;
    color: #0f766e;
    font-size: 1rem;
    font-weight: 800;
}
.cs-chat-avatar img { width: 100%; height: 100%; max-width: none; padding: 5px; object-fit: contain; }
.cs-chat-identity { min-width: 0; flex: 1; }
.cs-chat-identity strong, .cs-chat-identity span { display: block; }
.cs-chat-identity strong { overflow: hidden; font-size: .9rem; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.cs-chat-identity span { margin-top: 5px; color: #bdd2d8; font-size: .67rem; line-height: 1.25; }
.cs-chat-identity span i { width: 7px; height: 7px; display: inline-block; margin-right: 6px; border-radius: 50%; background: #45d49c; box-shadow: 0 0 0 3px rgba(69,212,156,.12); }
.cs-chat-close {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 7px;
    background: rgba(255,255,255,.06);
    color: #dce8eb;
    cursor: pointer;
}
.cs-chat-close:hover { background: rgba(255,255,255,.13); color: #fff; }
.cs-chat-messages {
    flex: 1;
    min-height: 160px;
    overflow-y: auto;
    padding: 20px 16px 12px;
    background: #f4f7f8;
    scrollbar-width: thin;
    scrollbar-color: #c3d0d5 transparent;
    text-align: left;
}
.cs-message { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 15px; }
.cs-message-user { align-items: flex-end; }
.cs-message-meta { margin: 0 3px 5px; color: #7b8b95; font-size: .61rem; font-weight: 600; line-height: 1.2; }
.cs-message-bubble {
    max-width: 86%;
    padding: 11px 13px;
    border: 1px solid #dce5e8;
    border-radius: 8px 8px 8px 2px;
    background: #fff;
    color: #304355;
    box-shadow: 0 3px 10px rgba(26, 50, 62, .035);
    font-size: .78rem;
    line-height: 1.58;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.cs-message-user .cs-message-bubble { border-color: #0f766e; border-radius: 8px 8px 2px 8px; background: #0f766e; color: #fff; box-shadow: none; }
.cs-message-admin .cs-message-bubble { border-color: #9ccfc7; background: #eaf8f5; color: #234d48; }
.cs-message-admin .cs-message-meta { color: #187466; }
.cs-message-bubble a { color: #0b7067; font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }
.cs-message-user .cs-message-bubble a { color: #fff; }
.cs-message-typing .cs-message-meta { display: none; }
.cs-message-typing .cs-message-bubble { display: flex; gap: 5px; padding: 15px; }
.cs-message-typing i { width: 6px; height: 6px; border-radius: 50%; background: #84949d; animation: csDot .9s infinite alternate; }
.cs-message-typing i:nth-child(2) { animation-delay: .18s; }
.cs-message-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes csDot { to { opacity: .28; transform: translateY(-2px); } }
.cs-chat-suggestions { padding: 10px 12px 11px; border-top: 1px solid #e0e8eb; background: #fff; }
.cs-chat-suggestions-label { display: block; margin: 0 2px 7px; color: #71828c; font-size: .61rem; font-weight: 800; text-transform: uppercase; }
.cs-chat-quick { display: grid; grid-template-columns: 1fr; gap: 6px; }
.cs-chat-quick button {
    width: 100%;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 10px;
    border: 1px solid #d7e4e2;
    border-radius: 6px;
    background: #f5faf9;
    color: #315e59;
    font-size: .68rem;
    font-weight: 650;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}
.cs-chat-quick button:hover { border-color: #86beb6; background: #edf7f5; color: #0f766e; }
.cs-chat-quick button i { flex: 0 0 auto; color: #799c98; font-size: .58rem; }
.cs-chat-error { padding: 9px 13px; border-top: 1px solid #f0c7cb; background: #fff1f2; color: #a52d36; font-size: .7rem; line-height: 1.4; }
.cs-chat-form { min-height: 66px; display: flex; align-items: flex-end; gap: 8px; padding: 11px 12px 8px; border-top: 1px solid #e0e8eb; background: #fff; }
.cs-chat-form textarea {
    width: auto;
    min-height: 42px;
    max-height: 96px;
    flex: 1;
    resize: none;
    padding: 11px 12px;
    border: 1px solid #cdd9de;
    border-radius: 7px;
    outline: none;
    background: #fbfcfc;
    color: #263b4c;
    font-size: .77rem;
    line-height: 1.4;
}
.cs-chat-form textarea::placeholder { color: #8a99a2; }
.cs-chat-form textarea:focus { border-color: #66aaa1; background: #fff; box-shadow: 0 0 0 3px rgba(15,118,110,.09); }
.cs-chat-form button { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border: 0; border-radius: 7px; background: #0f766e; color: #fff; cursor: pointer; }
.cs-chat-form button:hover { background: #0b625c; }
.cs-chat-form button:disabled { opacity: .5; cursor: default; }
.cs-chat-footer { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px 10px; background: #fff; color: #7b8992; font-size: .58rem; line-height: 1.35; text-align: center; }
.cs-chat-footer i { color: #579a91; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
@media (max-width: 600px) {
    .cs-chat { right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); }
    .cs-chat-panel { position: fixed; top: max(8px, env(safe-area-inset-top)); right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); left: 8px; width: auto; height: auto; min-height: 0; border-radius: 8px; }
    .cs-chat-launcher { min-width: 0; width: 42px; min-height: 42px; padding: 4px; border-radius: 50%; }
    .cs-chat-launcher-icon { width: 32px; height: 32px; border-radius: 50%; font-size: 0.85rem; }
    .cs-chat-launcher-copy { display: none; }
    .cs-chat-header { min-height: 72px; padding: 12px 13px; }
    .cs-chat-messages { padding: 17px 13px 10px; }
    .cs-chat-suggestions { padding: 9px 10px; }
    .cs-chat-quick { grid-template-columns: 1fr; }
}
@media (max-height: 620px) and (min-width: 601px) {
    .cs-chat-panel { height: calc(100dvh - 30px); bottom: -10px; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .cs-chat-panel:not([hidden]), .cs-message-typing i { animation: none; }
    .cs-chat-launcher { transition: none; }
}
