* { box-sizing: border-box; margin: 0; padding: 0; }

#bishnoi-chat-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 26px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(26,115,232,0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#bishnoi-chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(26,115,232,0.6);
}

#bishnoi-chat-box {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 28px;
    width: 360px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    z-index: 9999;
    flex-direction: column;
    font-family: 'Segoe UI', sans-serif;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

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

#bishnoi-chat-header {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #fff;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bishnoi-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.bishnoi-header-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.bishnoi-header-info span {
    font-size: 12px;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bishnoi-online-dot {
    width: 7px;
    height: 7px;
    background: #4cff91;
    border-radius: 50%;
    display: inline-block;
}

#bishnoi-chat-close {
    margin-left: auto;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    opacity: 0.8;
    line-height: 1;
}

#bishnoi-chat-close:hover { opacity: 1; }

#bishnoi-chat-messages {
    max-height: 320px;
    min-height: 100px;
    overflow-y: auto;
    padding: 16px;
    background: #f7f9fc;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
}

#bishnoi-chat-messages::-webkit-scrollbar { width: 4px; }
#bishnoi-chat-messages::-webkit-scrollbar-track { background: transparent; }
#bishnoi-chat-messages::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

.bishnoi-msg-user {
    display: flex;
    justify-content: flex-end;
}

.bishnoi-msg-bot {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 8px;
}

.bishnoi-bot-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    color: #fff;
}

.bishnoi-msg-user span {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #fff;
    padding: 10px 14px;
    border-radius: 18px 18px 4px 18px;
    display: inline-block;
    max-width: 75%;
    font-size: 14px;
    line-height: 1.5;
}

.bishnoi-msg-bot span {
    background: #fff;
    color: #222;
    padding: 10px 14px;
    border-radius: 18px 18px 18px 4px;
    display: inline-block;
    max-width: 75%;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.bishnoi-msg-bot span a {
    color: #1a73e8;
    text-decoration: underline;
    font-weight: 500;
}

.bishnoi-msg-bot span a:hover { color: #0d47a1; }

.bishnoi-quick-btns {
    display: flex;
    flex-direction: row;
    gap: 5px;
    padding: 8px 12px;
    background: #f7f9fc;
    border-top: 1px solid #eef0f4;
    overflow-x: auto;
}

.bishnoi-quick-btns::-webkit-scrollbar { display: none; }

.bishnoi-quick-btn {
    background: #fff;
    border: 1.5px solid #1a73e8;
    color: #1a73e8;
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Segoe UI', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}

.bishnoi-quick-btn:hover {
    background: #1a73e8;
    color: #fff;
}

#bishnoi-chat-input-row {
    display: flex;
    padding: 12px 14px;
    border-top: 1px solid #eef0f4;
    gap: 8px;
    background: #fff;
    align-items: center;
}

#bishnoi-chat-input {
    flex: 1;
    border: 1.5px solid #e0e4ea;
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
    transition: border 0.2s;
    font-family: 'Segoe UI', sans-serif;
    background: #f7f9fc;
}

#bishnoi-chat-input:focus {
    border-color: #1a73e8;
    background: #fff;
}

#bishnoi-chat-send {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    flex-shrink: 0;
}

#bishnoi-chat-send:hover { transform: scale(1.1); }

.bishnoi-typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 4px 2px;
}

.bishnoi-typing-dots span {
    width: 7px;
    height: 7px;
    background: #aaa;
    border-radius: 50%;
    animation: bounce 1.2s infinite;
    box-shadow: none !important;
    padding: 0 !important;
}

.bishnoi-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.bishnoi-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

@media (max-width: 480px) {
    #bishnoi-chat-box { width: calc(100vw - 24px); right: 12px; bottom: 90px; }
    #bishnoi-chat-btn { right: 16px; bottom: 20px; }
}