﻿/* ===== e-Saathi Chat Window ===== */

.esaathi-chat-window {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 999999;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 560px;
    max-height: calc(100vh - 100px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: "Cabin", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

    .esaathi-chat-window.open {
        display: flex;
        animation: esaathiSlideUp 0.3s ease;
    }

@keyframes esaathiSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.esaathi-header {
    background: linear-gradient(135deg, #052963 0%, #0a1f4d 100%);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.esaathi-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.esaathi-header-logo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    padding: 3px;
}

.esaathi-header-title {
    font-size: 15px;
    font-weight: 700;
}

.esaathi-header-status {
    font-size: 11px;
    color: #cbac6f;
    display: flex;
    align-items: center;
    gap: 5px;
}

.esaathi-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    display: inline-block;
}

.esaathi-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

    .esaathi-close-btn:hover {
        color: #cbac6f;
    }

.esaathi-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f4f6fb;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.esaathi-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.45;
}

    .esaathi-msg.bot {
        align-self: flex-start;
        background: #fff;
        color: #202b5d;
        border: 1px solid #e5e5e5;
        border-bottom-left-radius: 4px;
    }

    .esaathi-msg.user {
        align-self: flex-end;
        background: #052963;
        color: #fff;
        border-bottom-right-radius: 4px;
    }

    .esaathi-msg.bot a {
        color: #0067da;
        font-weight: 600;
    }

.esaathi-typing {
    align-self: flex-start;
    display: flex;
    gap: 4px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    border-bottom-left-radius: 4px;
}

    .esaathi-typing span {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #9ca3af;
        animation: esaathiBlinkDot 1.2s infinite ease-in-out;
    }

        .esaathi-typing span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .esaathi-typing span:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes esaathiBlinkDot {
    0%, 80%, 100% {
        opacity: 0.3;
    }

    40% {
        opacity: 1;
    }
}

.esaathi-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 14px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.esaathi-chip {
    border: 1px solid #052963;
    color: #052963;
    background: #fff;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

    .esaathi-chip:hover {
        background: #052963;
        color: #fff;
    }

.esaathi-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
    background: #fff;
}

.esaathi-input {
    flex: 1;
    height: 40px;
    border: 1.5px solid #d1d5db;
    border-radius: 20px;
    padding: 0 16px;
    font-size: 13.5px;
    outline: none;
}

    .esaathi-input:focus {
        border-color: #052963;
    }

.esaathi-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #052963;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

    .esaathi-send-btn:hover {
        background: #0a1f4d;
    }

@media (max-width: 480px) {
    .esaathi-chat-window {
        right: 10px;
        left: 10px;
        width: auto;
        bottom: 10px;
        height: calc(100vh - 90px);
    }
}

.sho-contact-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 5px;
}

.sho-contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border-radius: 5px;
    text-decoration: none !important;
    font-size: 12px;
    line-height: 1.3;
}

    .sho-contact-item i {
        width: 15px;
        text-align: center;
        font-size: 13px;
    }

.sho-mobile {
    color: #198754 !important;
}

.sho-phone {
    color: #0d6efd !important;
}

.sho-email {
    color: #dc3545 !important;
}

.sho-contact-item:hover {
    background: #f1f3f5;
}

.sho-contact {
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}

.sho-name {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f2937;
}

.sho-contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

    .sho-contact-row a {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 5px 8px;
        border-radius: 6px;
        background: #f5f7fa;
        text-decoration: none;
        font-size: 12px;
        color: #374151;
        transition: all 0.2s ease;
    }

        .sho-contact-row a:hover {
            background: #e8eef5;
            text-decoration: none;
        }

.sho-mobile {
    color: #16a34a !important;
}

.sho-phone {
    color: #2563eb !important;
}

.sho-email {
    color: #dc2626 !important;
}

.sho-contact-row i {
    font-size: 13px;
}
