/* Floating Chat Button */
#rental-chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #1e3a8a; /* Deep professional rental blue */
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    font-size: 24px;
    z-index: 999997;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chat Window Box */
#rental-chat-box {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 450px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    display: none; /* Hidden by default until clicked */
    flex-direction: column;
    overflow: hidden;
    z-index: 999998;
    font-family: sans-serif;
}

/* Chat Header */
.chat-header {
    background-color: #1e3a8a;
    color: white;
    padding: 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Chat Message Area */
.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f8fafc;
}

.message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 80%;
    font-size: 14px;
    line-height: 1.4;
}

.bot-message {
    background-color: #e2e8f0;
    color: #1e293b;
    align-self: flex-start;
}

.user-message {
    background-color: #1e3a8a;
    color: white;
    align-self: flex-end;
    margin-left: auto;
}

/* Chat Input Bar */
.chat-input-area {
    display: flex;
    padding: 10px;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.chat-input-area input {
    flex: 1;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px;
    outline: none;
}

.chat-input-area button {
    background-color: #1e3a8a;
    color: white;
    border: none;
    padding: 0 15px;
    margin-left: 8px;
    border-radius: 6px;
    cursor: pointer;
}
