﻿
/* ===== CHAT BOX LỄ TÂN SỐ ===== */

#concierge-widget {
    font-family: Arial, Helvetica, sans-serif;
    position: relative;
    z-index: 9999;
}

/* Nút mở chat */
#concierge-toggle {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 62px;
    height: 62px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #176b55, #269879);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

    #concierge-toggle:hover {
        transform: translateY(-3px);
        box-shadow: 0 9px 25px rgba(0, 0, 0, 0.3);
    }

/* Khung chat */
#concierge-panel {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 370px;
    height: 540px;
    max-height: calc(100vh - 40px);
    background: #fff;
    border: 1px solid #e2e8e5;
    border-radius: 18px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
}

/* Đầu khung chat */
.concierge-chat-header {
    flex-shrink: 0;
    background: linear-gradient(135deg, #123c35, #218368);
    color: white;
    padding: 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

    .concierge-chat-header strong {
        font-size: 16px;
    }

.concierge-chat-subtitle {
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.9;
}

#concierge-close {
    border: none;
    background: transparent;
    color: white;
    font-size: 29px;
    line-height: 1;
    cursor: pointer;
}

/* Khu vực hội thoại */
#concierge-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 16px;
    background: #f5f8f6;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

/* Tin nhắn */
.concierge-message {
    max-width: 88%;
    padding: 11px 14px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.concierge-bot {
    align-self: flex-start;
    color: #25332e;
    background: #fff;
    border: 1px solid #e4eae6;
    border-bottom-left-radius: 5px;
}

.concierge-user {
    align-self: flex-end;
    color: #fff;
    background: #176b55;
    border-bottom-right-radius: 5px;
}

/* Câu hỏi gợi ý */
.concierge-quick-questions {
    flex-shrink: 0;
    display: flex;
    gap: 7px;
    padding: 10px;
    overflow-x: auto;
    background: #fff;
    border-top: 1px solid #edf0ee;
}

    .concierge-quick-questions button {
        flex-shrink: 0;
        border: 1px solid #b9d9ce;
        border-radius: 20px;
        background: #fff;
        color: #176b55;
        padding: 7px 11px;
        font-size: 12px;
        cursor: pointer;
        transition: background 0.2s;
    }

        .concierge-quick-questions button:hover {
            background: #e8f5ef;
        }

/* Ô nhập câu hỏi */
#concierge-form {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px;
    background: #fff;
    border-top: 1px solid #e7ece9;
}

#concierge-input {
    flex: 1;
    min-width: 0;
    height: 42px;
    border: 1px solid #d7e0db;
    border-radius: 24px;
    padding: 0 15px;
    outline: none;
    font-size: 14px;
    background: #fff;
    color: #26332e;
}

    #concierge-input:focus {
        border-color: #218368;
        box-shadow: 0 0 0 3px rgba(33, 131, 104, 0.1);
    }

    #concierge-input:disabled {
        background: #f0f2f1;
    }

#concierge-send {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #176b55;
    color: white;
    font-size: 19px;
    cursor: pointer;
}

    #concierge-send:hover {
        background: #105342;
    }

    #concierge-send:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* Điện thoại */
@media (max-width: 480px) {
    #concierge-panel {
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
        height: min(540px, calc(100dvh - 20px));
        max-height: calc(100dvh - 20px);
    }

    #concierge-toggle {
        right: 16px;
        bottom: 16px;
        width: 56px;
        height: 56px;
    }
}
