/* Narmada Parikrama AI Chatbot - Restored Floating Bubble Button v13 */
#np-chat-widget-container {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 9999999 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Floating Trigger Button ("Bubble Button") */
#np-chat-toggle-btn {
    background: linear-gradient(135deg, #B85328, #8C3B1A) !important;
    color: #FFFFFF !important;
    border: 1px solid #A0441E !important;
    border-radius: 30px !important;
    padding: 10px 18px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(60, 25, 10, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    transition: all 0.25s ease !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#np-chat-toggle-btn:hover {
    background: linear-gradient(135deg, #A0441E, #7A321A) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(60, 25, 10, 0.4) !important;
}

.np-online-badge {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 3px 8px;
    font-size: 11px;
    color: #81C784 !important;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Outer Window */
#np-chat-window {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 390px;
    max-width: 92vw;
    height: 600px;
    max-height: 82vh;
    background: #FAF7F2;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(40, 20, 10, 0.2);
    flex-direction: column;
    overflow: hidden !important;
    border: 1px solid #E5D9CC;
    touch-action: manipulation;
}

.np-chat-header {
    flex-shrink: 0;
    background: linear-gradient(135deg, #9E4522, #7A321A);
    color: #FFFFFF !important;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #6E2B14;
}

.np-chat-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF !important;
}

.np-hdr-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.np-lang-switch {
    display: flex;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 2px;
}

.np-lang-btn {
    background: transparent;
    border: none;
    color: #E2CFB8;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.np-lang-btn.active {
    background: #FFFFFF;
    color: #7A321A !important;
}

.np-chat-close-btn {
    background: transparent;
    border: none;
    color: #FFFFFF !important;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.np-chat-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden;
    padding: 14px;
    background: #FAF7F2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.np-msg {
    max-width: 86%;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.5;
    word-break: break-word;
}

.np-msg-bot {
    background: #EFE8DE;
    color: #332722;
    align-self: flex-start;
    border: 1px solid #E0D4C5;
}

.np-msg-user {
    background: #B85328;
    color: #FFFFFF !important;
    align-self: flex-end;
}

.np-quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.np-btn-chip {
    background: #FAF7F2;
    border: 1px solid #C4A895;
    color: #7A321A;
    border-radius: 20px;
    padding: 6px 11px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.np-btn-chip:hover {
    background: #B85328;
    color: #FFFFFF !important;
    border-color: #B85328;
}

.np-chat-link-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 12px;
    background: #7A321A;
    color: #FFFFFF !important;
    text-decoration: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.np-chat-link-btn:hover {
    background: #5C2310;
}

.np-chat-site-btn {
    display: inline-block;
    margin-top: 6px;
    padding: 7px 11px;
    background: #5C2310;
    color: #FFFFFF !important;
    text-decoration: none;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    border: 1px solid #7A321A;
    box-shadow: 0 2px 5px rgba(0,0,0,0.12);
    transition: background 0.2s ease, transform 0.1s ease;
}

.np-chat-site-btn:hover {
    background: #3D1508;
    transform: translateY(-1px);
}

.np-contact-card {
    background: #FFFFFF;
    border: 1px solid #E0D4C5;
    border-radius: 12px;
    padding: 12px;
    margin-top: 8px;
}

.np-form-group {
    margin-bottom: 9px;
}

.np-form-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #5C4A42;
    margin-bottom: 3px;
}

.np-form-input, .np-form-textarea {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #D8CBB9;
    border-radius: 6px;
    font-size: 12px;
    background: #FAF8F5;
    box-sizing: border-box;
    color: #2C2523;
}

.np-form-submit {
    width: 100%;
    background: #B85328;
    color: #FFFFFF !important;
    border: none;
    padding: 8px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}

.np-action-bar {
    flex-shrink: 0;
    padding: 6px 12px;
    background: #EAE1D3;
    border-top: 1px solid #E0D4C5;
    display: flex;
    gap: 8px;
}

.np-action-btn {
    flex: 1;
    background: #FAF7F2;
    border: 1px solid #C4A895;
    color: #7A321A;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.np-chat-footer {
    flex-shrink: 0;
    padding: 10px 12px;
    background: #EFE8DE;
    border-top: 1px solid #E0D4C5;
    display: flex;
    gap: 8px;
    align-items: center;
}

.np-chat-input {
    flex: 1;
    border: 1px solid #D8CBB9;
    border-radius: 20px;
    padding: 9px 14px;
    outline: none;
    font-size: 12.5px;
    background: #FAF8F5;
    color: #2C2523;
}

.np-chat-send {
    background: #B85328;
    color: white !important;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media screen and (max-width: 768px) {
    .np-chat-input,
    .np-form-input,
    .np-form-textarea {
        font-size: 16px !important;
    }
}