#wpaicc-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #1a73e8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
    z-index: 999999;
    font-size: 26px;
}

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

#wpaicc-window.open { display: flex; }

#wpaicc-header {
    background: #1a73e8;
    color: #fff;
    padding: 12px 15px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#wpaicc-close { cursor: pointer; font-size: 18px; }

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

.wpaicc-msg {
    margin-bottom: 10px;
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
    white-space: pre-wrap;
}

.wpaicc-msg.user {
    background: #1a73e8;
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

.wpaicc-msg.bot {
    background: #fff;
    border: 1px solid #e0e0e0;
    margin-right: auto;
    border-bottom-left-radius: 2px;
}

.wpaicc-sources {
    font-size: 12px;
    margin-top: 6px;
}
.wpaicc-sources a { color: #1a73e8; text-decoration: none; }

#wpaicc-input-row {
    display: flex;
    border-top: 1px solid #e0e0e0;
    padding: 8px;
    gap: 6px;
}

#wpaicc-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 14px;
    outline: none;
}

#wpaicc-send {
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 0 16px;
    height: 38px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}
#wpaicc-send:hover { background: #1558b0; }

.wpaicc-typing { font-style: italic; color: #888; font-size: 13px; }
