/* ===================== AWT Chatbot Widget ===================== */
#awt-chatbot-launcher {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b51b41, #8e1533);
    box-shadow: 0 6px 20px rgba(181,27,65,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99998;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#awt-chatbot-launcher:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 24px rgba(181,27,65,0.5);
}
#awt-chatbot-launcher svg { width: 28px; height: 28px; }
#awt-chatbot-launcher .awt-chat-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 12px;
    height: 12px;
    background: #f6a440;
    border-radius: 50%;
    border: 2px solid #fff;
}

#awt-chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 350px;
    max-width: calc(100vw - 32px);
    height: 480px;
    max-height: calc(100vh - 140px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.22);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 99999;
    font-family: inherit;
}
#awt-chatbot-window.awt-open { display: flex; }

.awt-chat-header {
    background: linear-gradient(135deg, #b51b41, #8e1533);
    color: #fff;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.awt-chat-header-info { display: flex; align-items: center; gap: 10px; }
.awt-chat-header-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: #f6a440; color: #1c1c1c;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.awt-chat-header-title { font-size: 15px; font-weight: 600; line-height: 1.2; margin:0; color:#fff; }
.awt-chat-header-sub { font-size: 11.5px; opacity: 0.85; display:flex; align-items:center; gap:5px; margin-top:2px; }
.awt-chat-header-sub::before {
    content:''; width:7px; height:7px; border-radius:50%; background:#3ddc84; display:inline-block;
}
.awt-chat-close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 28px; height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items:center; justify-content:center;
    font-size: 16px;
    flex-shrink: 0;
}
.awt-chat-close:hover { background: rgba(255,255,255,0.28); }

.awt-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.awt-chat-body::-webkit-scrollbar { width: 5px; }
.awt-chat-body::-webkit-scrollbar-thumb { background: #ddd; border-radius: 10px; }

.awt-msg { max-width: 84%; font-size: 13.5px; line-height: 1.5; }
.awt-msg-bot {
    align-self: flex-start;
    background: #fff;
    color: #1c1c1c;
    border: 1px solid #ececec;
    padding: 10px 13px;
    border-radius: 12px 12px 12px 3px;
}
.awt-msg-user {
    align-self: flex-end;
    background: #b51b41;
    color: #fff;
    padding: 10px 13px;
    border-radius: 12px 12px 3px 12px;
}
.awt-msg-bot a { color: #b51b41; font-weight: 600; }

.awt-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-self: flex-start;
    max-width: 100%;
}
.awt-quick-btn {
    background: #fff;
    border: 1.5px solid #b51b41;
    color: #b51b41;
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.awt-quick-btn:hover { background: #b51b41; color: #fff; }

.awt-typing {
    align-self: flex-start;
    background: #fff;
    border: 1px solid #ececec;
    padding: 10px 14px;
    border-radius: 12px 12px 12px 3px;
    display: flex;
    gap: 4px;
}
.awt-typing span {
    width: 6px; height: 6px; border-radius: 50%;
    background: #c9c9c9;
    animation: awt-bounce 1.2s infinite;
}
.awt-typing span:nth-child(2) { animation-delay: 0.15s; }
.awt-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes awt-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-4px); opacity: 1; }
}

.awt-chat-lead-form {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 12px;
    align-self: flex-start;
    width: 100%;
    box-sizing: border-box;
}
.awt-chat-lead-form input, .awt-chat-lead-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    margin-bottom: 8px;
    font-family: inherit;
}
.awt-chat-lead-form textarea { resize: none; height: 56px; }
.awt-chat-lead-submit {
    width: 100%;
    background: #b51b41;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.awt-chat-lead-submit:hover { background: #8e1533; }

.awt-chat-footer {
    padding: 10px 12px;
    border-top: 1px solid #ececec;
    display: flex;
    gap: 8px;
    background: #fff;
    flex-shrink: 0;
}
.awt-chat-footer input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 9px 14px;
    font-size: 13px;
    outline: none;
    font-family: inherit;
}
.awt-chat-footer input:focus { border-color: #b51b41; }
.awt-chat-footer button {
    background: #b51b41;
    color: #fff;
    border: none;
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items:center; justify-content:center;
    cursor: pointer;
    flex-shrink: 0;
}
.awt-chat-footer button:hover { background: #8e1533; }
.awt-chat-footer button svg { width: 16px; height:16px; }

@media screen and (max-width: 480px) {
    #awt-chatbot-window {
        right: 12px;
        left: 12px;
        width: auto;
        bottom: 92px;
    }
    #awt-chatbot-launcher { right: 16px; bottom: 16px; }
}
