.ai-chatbox {
    position: fixed;
    bottom: 10px;
    right: 20px;
    width: 340px;
    height: 480px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
}


.ai-header {
    background: linear-gradient(90deg,#B3864B,#8C6A3A);
    color: #fff;
    padding: 12px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}

.ai-actions span {
    margin-left: 10px;
    cursor: pointer;
}


.ai-body {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background: #f8f6f2;
}


.message {
    margin-bottom: 10px;
    display: flex;
}

.message.user {
    justify-content: flex-end;
}

.bubble {
    padding: 10px;
    border-radius: 10px;
    max-width: 80%;
}

.message.user .bubble {
    background: #B3864B;
    color: #fff;
}

.message.ai {
    align-items: flex-start;
}

.ai-avatar {
    width: 35px;
    height: 35px;
    min-width: 35px;
    min-height: 35px;
    border-radius: 50%;
    background: #B3864B;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    font-size: 12px;
    flex-shrink: 0;
    overflow: hidden;
}

.ai-content {
    background: #f1ece5;
    padding: 10px;
    border-radius: 10px;
    color: #333;
}


.ai-footer {
    display: flex;
    border-top: 1px solid #e0d8cc;
}

.ai-footer textarea {
    flex: 1;
    border: none;
    padding: 10px;
    resize: none;
    outline: none;
    background: #fff;
}

.ai-footer button {
    width: 50px;
    border: none;
    background: #B3864B;
    color: #fff;
    font-size: 18px;
}


.ai-open-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #B3864B;
    color: #fff;
    padding: 14px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9998;
}


.ai-footer button:hover,
.ai-open-btn:hover {
    background: #8C6A3A;
}