﻿/* =========================
   Chat Button
   (the round picture and labels are styled inside _ChatBot.cshtml)
========================= */
#chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #c9a227; /* gold theme for jewelry brand */
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    z-index: 9999;
}

/* =========================
   Chat Window
========================= */
#chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: min(370px, calc(100vw - 24px)); /* never wider than the phone screen */
    height: min(560px, calc(100vh - 140px)); /* tall enough for long answers */
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    display: none; /* hidden by default; chatbot.js shows it */
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    font-family: var(--font-body, Arial, sans-serif);
}

/* Header */
#chat-header {
    flex: 0 0 auto;
    background: #6B0F1A;
    color: #fff;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #b8860b;
}

/* Close button */
#close-chat {
    cursor: pointer;
    font-size: 16px;
}

/* Messages area fills the space between header and footer */
#chat-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 12px;
    overflow-y: auto;
    background: #fbf7f1;
}

/* Bot message */
.bot-message {
    background: #fff;
    border: 1px solid #f0e2b8;
    padding: 10px 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    max-width: 88%;
}

/* Both kinds of message: same readable size, line breaks kept (lists in answers) */
#chat-body .bot-message,
#chat-body .user-message {
    font-size: 14px !important;
    line-height: 1.5;
    white-space: pre-line;
}

/* Footer */
#chat-footer {
    flex: 0 0 auto;
    display: flex;
    border-top: 1px solid #e6d9c0;
    background: #fff;
}

#user-message {
    flex: 1;
    border: none;
    padding: 14px;
    outline: none;
    font-size: 14px;
}

#send-btn {
    background: #c9a227;
    border: none;
    color: white;
    font-weight: 600;
    padding: 0 20px;
    cursor: pointer;
}

    /* Hover effects */
    #send-btn:hover,
    #chat-button:hover {
        opacity: 0.9;
    }
