/* 聊天按钮和徽章样式已移至 fixed-buttons.css 统一管理 */

/* 聊天窗口样式 */
.bbk-chat-container {
    position: fixed;
    bottom: 275px; /* 匹配新的客服按钮位置(200px + 50px按钮高度 + 25px间距) */
    right: 20px;
    width: 400px;
    height: 500px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.bbk-chat-container.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.bbk-chat-header {
    padding: 15px;
    background-color: #f58220;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bbk-chat-header-title {
    display: flex;
    align-items: center;
}

.bbk-chat-header-title img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
    background-color: #fff;
}

.bbk-chat-header-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.bbk-chat-header-info p {
    margin: 3px 0 0;
    font-size: 12px;
    opacity: 0.8;
}

.bbk-chat-close {
    cursor: pointer;
    font-size: 18px;
}

.bbk-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: #f9f9f9;
}

.bbk-chat-message {
    margin-bottom: 15px;
    max-width: 80%;
}

.bbk-chat-message.user {
    margin-left: auto;
}

.bbk-chat-message.agent {
    margin-right: auto;
}

.bbk-chat-bubble {
    padding: 10px 15px;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
}

.bbk-chat-message.user .bbk-chat-bubble {
    background-color: #f58220;
    color: white;
    border-bottom-right-radius: 5px;
}

.bbk-chat-message.agent .bbk-chat-bubble {
    background-color: #e6e6e6;
    color: #333;
    border-bottom-left-radius: 5px;
}

.bbk-chat-time {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    text-align: right;
}

.bbk-chat-message.agent .bbk-chat-time {
    text-align: left;
}

.bbk-chat-footer {
    padding: 10px 15px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
}

.bbk-chat-input-container {
    flex: 1;
    position: relative;
}

.bbk-chat-input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 40px 8px 15px;
    font-size: 14px;
    outline: none;
}

.bbk-chat-input:focus {
    border-color: #f58220;
}

.bbk-chat-send {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #f58220;
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
    outline: none;
}

.bbk-chat-send:hover {
    color: #e57310;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .bbk-chat-container {
        width: calc(100% - 30px);
        height: 450px;
        bottom: 105px; /* 匹配新的平板端按钮位置 */
        right: 15px;
    }
}

@media (max-width: 480px) {
    .bbk-chat-container {
        width: calc(100% - 24px);
        height: 400px;
        bottom: 90px; /* 匹配新的移动端按钮位置 */
        right: 12px;
    }
    
    .bbk-chat-prompt {
        width: calc(100% - 30px) !important;
        bottom: 105px !important; /* 调整自动弹窗位置 */
        right: 15px !important;
    }
}

/* 聊天按钮动画 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 130, 32, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(245, 130, 32, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 130, 32, 0);
    }
} 

/* 按钮动画和flash效果已移至 fixed-buttons.css 统一管理 */ 