#aiwc-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 999998;
}

#aiwc-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 340px;
    max-width: 90vw;
    height: 460px;
    max-height: 70vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
#aiwc-window.aiwc-open { display: flex; }

#aiwc-header {
    color: #fff;
    padding: 14px 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#aiwc-close { cursor: pointer; font-size: 20px; line-height: 1; }

#aiwc-messages {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    background: #f7f7f8;
}

.aiwc-msg {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}
.aiwc-user { background: #DCF8C6; margin-left: auto; }
.aiwc-bot { background: #fff; border: 1px solid #eee; }
.aiwc-typing { opacity: 0.6; }

.aiwc-lead-form {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
}
.aiwc-lead-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    margin-bottom: 6px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
}
.aiwc-lead-submit {
    width: 100%;
    border: none;
    color: #fff;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

#aiwc-input-row {
    display: flex;
    padding: 10px;
    border-top: 1px solid #eee;
    gap: 8px;
}
#aiwc-input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
}
#aiwc-send {
    border: none;
    color: #fff;
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}
