#rootzz-chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* FAB button */
#rootzz-chat-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #4a7c35;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(74,124,53,0.35);
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
}
#rootzz-chat-fab:hover {
    transform: scale(1.07);
    box-shadow: 0 6px 20px rgba(74,124,53,0.45);
}
#rootzz-chat-fab svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
#rootzz-chat-fab-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: #e07b39;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* Chat box */
#rootzz-chat-box {
    width: 320px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

/* Header */
#rootzz-chat-header {
    background: #4a7c35;
    padding: 13px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
#rootzz-chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #6aab4e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
#rootzz-chat-avatar svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
#rootzz-chat-header-info { flex: 1; }
#rootzz-chat-header-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}
#rootzz-chat-header-status {
    font-size: 11px;
    color: #b8e0a0;
    margin: 2px 0 0;
}
#rootzz-chat-close {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.7);
    font-size: 20px;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
}
#rootzz-chat-close:hover { color: #fff; }

/* Messages */
#rootzz-chat-messages {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    background: #fff;
}
.rootzz-msg {
    max-width: 88%;
    font-size: 13px;
    line-height: 1.5;
    padding: 8px 11px;
    border-radius: 11px;
    word-break: break-word;
    white-space: pre-wrap;
}
.rootzz-msg.bot {
    background: #f5f5f3;
    color: #222;
    align-self: flex-start;
    border-bottom-left-radius: 3px;
}
.rootzz-msg.user {
    background: #4a7c35;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 3px;
}
.rootzz-msg.typing {
    color: #999;
    font-style: italic;
    font-size: 12px;
    background: #f5f5f3;
    align-self: flex-start;
    border-bottom-left-radius: 3px;
}

/* Chips */
#rootzz-chat-chips {
    padding: 0 12px 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.rootzz-chip {
    background: none;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 11px;
    color: #555;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.1s, color 0.1s;
    font-family: inherit;
}
.rootzz-chip:hover {
    background: #f0f0ee;
    color: #222;
}

/* Input row */
#rootzz-chat-input-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border-top: 1px solid #efefef;
    background: #fff;
}
#rootzz-chat-input {
    flex: 1;
    font-size: 13px;
    padding: 7px 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #f9f9f9;
    color: #222;
    outline: none;
    font-family: inherit;
}
#rootzz-chat-input:focus { border-color: #4a7c35; }
#rootzz-chat-send {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #4a7c35;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
}
#rootzz-chat-send:hover { background: #3d6a2c; }
#rootzz-chat-send svg {
    width: 18px !important;
    height: 18px !important;
    fill: none !important;
    stroke: #ffffff !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    color: #ffffff !important;
}
#rootzz-chat-send svg path {
    stroke: #ffffff !important;
    fill: none !important;
    stroke-width: 2 !important;
}

/* WhatsApp bar */
#rootzz-chat-wa-bar {
    background: #f7f3ec;
    border-top: 1px solid #e8e0d4;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
#rootzz-chat-wa-bar span {
    font-size: 11px;
    color: #354e10;
    line-height: 1.4;
}
#rootzz-chat-wa-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #25D366;
    border: none;
    border-radius: 20px;
    padding: 6px 11px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
    text-decoration: none;
}
#rootzz-chat-wa-btn:hover { background: #1ebe5d; }
#rootzz-chat-wa-btn svg {
    width: 14px;
    height: 14px;
    fill: #fff;
}
