﻿/* ===========================================
   Chat System
   =========================================== */

.cos-chat-bubble {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 80px;
    height: 80px;
    border: none;
    border-radius: 50%;
    background: #004d99;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,.30);
    z-index: 9998;
    transition: .2s;
}

    .cos-chat-bubble:hover {
        background: #0066cc;
        transform: scale(1.05);
    }

.cos-chat-window {
    position: fixed;
    right: 25px;
    bottom: 95px;
    width: 500px;
    max-width: calc(100vw - 30px);
    height: 600px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,.30);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
}

.cos-chat-header {
    background: #004d99;
    color: #fff;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
}

.cos-chat-close {
    float: right;
    background: none;
    border: none;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    margin-top: -4px;
}

.cos-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f8f8f8;
}

.cos-chat-footer {
    padding: 15px;
    border-top: 1px solid #ddd;
    background: #fff;
}

.cos-chat-intro {
    margin-bottom: 15px;
    color: #555;
}

.cos-chat-faq-button {
    width: 100%;
    display: block;
    margin-bottom: 8px;
    padding: 10px;
    border: 1px solid #d6d6d6;
    border-radius: 5px;
    background: #fff;
    color: #004d99;
    text-align: left;
    text-decoration: none;
    transition: .15s;
}

    .cos-chat-faq-button:hover {
        background: #eef6ff;
        text-decoration: none;
    }

.cos-chat-response {
    margin-bottom: 15px;
    padding: 12px;
    border-left: 4px solid #004d99;
    background: #eef6ff;
}

.cos-chat-status {
    display: block;
    margin-bottom: 10px;
    color: #c00000;
    font-weight: bold;
}

.cos-chat-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.cos-chat-textbox {
    width: 100%;
    margin-bottom: 12px;
}

.cos-chat-send {
    width: 100%;
}

.cos-chat-message-user {
    margin-bottom: 12px;
    padding: 10px;
    background: #d8ecff;
    border-radius: 8px;
}

.cos-chat-message-employee {
    margin-bottom: 12px;
    padding: 10px;
    background: #f2f2f2;
    border-radius: 8px;
}

.cos-chat-time {
    margin-top: 4px;
    color: #888;
    font-size: 11px;
}

@media (max-width:768px) {

    .cos-chat-window {
        left: 10px;
        right: 10px;
        bottom: 80px;
        width: auto;
        height: 75vh;
    }

    .cos-chat-bubble {
        right: 15px;
        bottom: 15px;
    }
}
