/* STPL Live Chat & Intelligent Chatbot Styles */
.stpl-chat-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99999;
    font-family: 'Montserrat', sans-serif;
}

.stpl-chat-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f9bc01 0%, #d49f00 100%);
    color: #111;
    border: none;
    box-shadow: 0 8px 25px rgba(249, 188, 1, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: all 0.3s ease;
}

.stpl-chat-btn:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 10px 30px rgba(249, 188, 1, 0.6);
}

.stpl-chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.stpl-chat-window {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 380px;
    max-width: 90vw;
    height: 520px;
    max-height: 80vh;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 99999;
    border: 1px solid #eee;
    animation: fadeInUp 0.3s ease forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stpl-chat-header {
    background: #191c24;
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid #f9bc01;
}

.stpl-chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stpl-chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f9bc01;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stpl-chat-title h5 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.stpl-chat-title span {
    font-size: 12px;
    color: #27ae60;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stpl-chat-title span::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #27ae60;
    border-radius: 50%;
}

.stpl-chat-close {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s;
}

.stpl-chat-close:hover {
    color: #fff;
}

.stpl-chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stpl-msg {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}

.stpl-msg-bot, .stpl-msg-admin {
    background: #ffffff;
    color: #2c3e50;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-left: 3px solid #f9bc01;
}

.stpl-msg-visitor {
    background: #191c24;
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.stpl-chat-quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.stpl-chip {
    background: #fff;
    border: 1px solid #f9bc01;
    color: #333;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.stpl-chip:hover {
    background: #f9bc01;
    color: #111;
}

.stpl-chat-footer {
    padding: 10px 15px;
    background: #ffffff;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stpl-chat-input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.stpl-chat-input:focus {
    border-color: #f9bc01;
}

.stpl-chat-send {
    background: #f9bc01;
    color: #111;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.2s;
}

.stpl-chat-send:hover {
    background: #d49f00;
}
