/* ==========================================
   NAVYA FLOATING CONTACT BUTTONS
========================================== */

.navya-contact-widget {
    position: fixed;
    right: 15px;
    bottom: 40px;

    z-index: 99990;

    display: flex;
    flex-direction: column;
    gap: 12px;
}


.navya-float-btn {
    width: 40px;
    height: 40px;

    border-radius: 50%;

    border: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    cursor: pointer;

    text-decoration: none;

    box-shadow:
        0 8px 25px rgba(0,0,0,.18);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}


.navya-float-btn:hover {
    transform: translateY(-3px);

    box-shadow:
        0 12px 30px rgba(0,0,0,.25);
}


.navya-float-btn svg {
    width: 25px;
    height: 25px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}


/* CHAT */

.navya-chat-btn {
    background: #c8a45e;
    color: #fff;
}


/* WHATSAPP */

.navya-whatsapp-btn {
    background: #25D366;
    color: #fff;
}


/* CALL */

.navya-call-btn {
    background: #222;
    color: #fff;
}


/* TOOLTIP */

.navya-tooltip {
    position: absolute;

    right: 65px;

    top: 50%;

    transform: translateY(-50%) translateX(5px);

    background: #222;
    color: #fff;

    padding: 7px 11px;

    font-size: 11px;

    white-space: nowrap;

    opacity: 0;
    visibility: hidden;

    transition: .2s ease;
}


.navya-float-btn:hover .navya-tooltip {
    opacity: 1;
    visibility: visible;

    transform: translateY(-50%) translateX(0);
}


/* ==========================================
   CHAT WINDOW
========================================== */

.navya-chat-window {
    position: fixed;

    right: 25px;
    bottom: 92px;

    width: 370px;

    max-width: calc(100vw - 30px);

    height: 570px;

    max-height: calc(100vh - 120px);

    background: #fff;

    z-index: 99991;

    display: flex;
    flex-direction: column;

    box-shadow:
        0 20px 60px rgba(0,0,0,.22);

    border: 1px solid #eee;

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(20px)
        scale(.97);

    transform-origin: bottom right;

    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .25s ease;
}


.navya-chat-window.active {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(0)
        scale(1);
}


/* ==========================================
   CHAT HEADER
========================================== */

.navya-chat-header {
    background: #222;

    color: #fff;

    padding: 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


.navya-chat-agent {
    display: flex;
    align-items: center;
    gap: 11px;
}


.navya-chat-avatar {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    background: #c8a45e;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 17px;
    font-weight: 600;

    position: relative;
}


.navya-chat-avatar span {
    position: absolute;

    width: 9px;
    height: 9px;

    background: #42d66b;

    border: 2px solid #222;

    border-radius: 50%;

    right: 0;
    bottom: 1px;
}


.navya-chat-agent strong {
    display: block;

    font-size: 14px;
}


.navya-chat-agent small {
    display: block;

    margin-top: 3px;

    color: #ccc;

    font-size: 11px;
}


.navya-chat-close {
    background: transparent;

    border: 0;

    color: #fff;

    font-size: 28px;

    line-height: 1;

    cursor: pointer;
}


/* ==========================================
   MESSAGES
========================================== */

.navya-chat-body {
    flex: 1;

    overflow-y: auto;

    padding: 18px;

    background: #f8f7f4;
}


.navya-message {
    display: flex;

    margin-bottom: 12px;
}


.navya-message.bot-message {
    justify-content: flex-start;
}


.navya-message.user-message {
    justify-content: flex-end;
}


.navya-message-bubble {
    max-width: 82%;

    padding: 11px 13px;

    font-size: 13px;

    line-height: 1.5;

    border-radius: 12px;
}


.bot-message .navya-message-bubble {
    background: #fff;

    border: 1px solid #eee;

    color: #333;

    border-bottom-left-radius: 3px;
}


.user-message .navya-message-bubble {
    background: #c8a45e;

    color: #fff;

    border-bottom-right-radius: 3px;
}


/* QUICK OPTIONS */

.navya-quick-options {
    display: flex;
    flex-direction: column;
    gap: 7px;

    margin-top: 10px;
}


.navya-quick-options button {
    background: #fff;

    border: 1px solid #ddd;

    padding: 9px 12px;

    text-align: left;

    cursor: pointer;

    font-size: 12px;

    transition: .2s;
}


.navya-quick-options button:hover {
    border-color: #c8a45e;

    color: #a07f3e;
}


/* ==========================================
   LEAD FORM
========================================== */

.navya-chat-lead {
    padding: 15px;

    border-top: 1px solid #eee;

    background: #fff;
}


.navya-chat-lead p {
    margin: 0 0 10px;

    font-size: 12px;

    color: #555;
}


.navya-chat-lead input {
    width: 100%;

    height: 40px;

    border: 1px solid #ddd;

    padding: 0 11px;

    margin-bottom: 7px;

    font-family: inherit;

    font-size: 12px;

    outline: none;
}


.navya-chat-lead input:focus {
    border-color: #c8a45e;
}


.navya-chat-lead button {
    width: 100%;

    height: 42px;

    border: 0;

    background: #c8a45e;

    color: #fff;

    cursor: pointer;

    font-size: 12px;

    font-weight: 600;
}


/* ==========================================
   MESSAGE INPUT
========================================== */

.navya-chat-input {
    display: none;

    padding: 10px;

    border-top: 1px solid #eee;

    background: #fff;

    gap: 7px;
}


.navya-chat-input.active {
    display: flex;
}


.navya-chat-input input {
    flex: 1;

    height: 42px;

    border: 1px solid #ddd;

    padding: 0 12px;

    outline: none;

    font-family: inherit;
}


.navya-chat-input input:focus {
    border-color: #c8a45e;
}


.navya-chat-input button {
    width: 42px;
    height: 42px;

    border: 0;

    background: #c8a45e;

    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}


.navya-chat-input svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}


/* ==========================================
   TYPING
========================================== */

.navya-typing {
    font-size: 11px;

    color: #888;

    margin-bottom: 10px;
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {

    .navya-contact-widget {
        right: 15px;
        bottom: 15px;

        gap: 9px;
    }

    .navya-float-btn {
        width: 50px;
        height: 50px;
    }

    .navya-float-btn svg {
        width: 22px;
        height: 22px;
    }

    .navya-tooltip {
        display: none;
    }

    .navya-chat-window {
        right: 15px;
        bottom: 75px;

        width: calc(100vw - 30px);

        height: min(570px, calc(100vh - 100px));
    }

}