.hds-chat-bubble {
    position: fixed;
    bottom: 20px;
    z-index: 998;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ec6a1f;
    color: #fff;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,.3);
    font-size: 26px;
    cursor: pointer;
}
.hds-chat-bubble.hds-chat-left { left: 20px; }
.hds-chat-bubble.hds-chat-right { right: 20px; }

.hds-chat-window {
    position: fixed;
    bottom: 90px;
    z-index: 999;
    width: 320px;
    max-width: calc(100vw - 40px);
    height: 420px;
    max-height: 70vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,.35);
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: inherit;
}
.hds-chat-window.hds-chat-left { left: 20px; }
.hds-chat-window.hds-chat-right { right: 20px; }
.hds-chat-window.hds-chat-open { display: flex; }

.hds-chat-header {
    background: #ec6a1f;
    color: #fff;
    padding: 12px 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hds-chat-header button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}
.hds-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background: #f7f7f7;
}
.hds-chat-msg {
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 85%;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.4;
}
.hds-chat-msg.hds-chat-user {
    background: #ec6a1f;
    color: #fff;
    margin-inline-start: auto;
}
.hds-chat-msg.hds-chat-bot {
    background: #e9e9e9;
    color: #222;
    margin-inline-end: auto;
}
.hds-chat-form {
    display: flex;
    border-top: 1px solid #ddd;
    padding: 8px;
    gap: 6px;
}
.hds-chat-form input[type=text] {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 14px;
}
.hds-chat-form button {
    background: #ec6a1f;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
}
.hds-chat-lead {
    padding: 12px;
    font-size: 14px;
}
.hds-chat-lead input, .hds-chat-lead textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}
.hds-chat-lead button {
    background: #ec6a1f;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
}

@media (max-width: 480px) {
    .hds-chat-window {
        width: calc(100vw - 24px);
        height: 60vh;
        bottom: 84px;
    }
}
