#mwp-wrapper { 
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
    z-index: 99999; /* Higher z-index taaki themes ke upar rahe */
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* --- Main Floating Button --- */
#mwp-main { 
    background: #25d366; 
    color: #fff; 
    padding: 0 20px;
    height: 55px; 
    border-radius: 50px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); 
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
}

#mwp-main:hover { transform: scale(1.05); background: #20ba5a; }
#mwp-main.open { background: #128c7e; } /* Change color when menu is open */

#mwp-main .dashicons { font-size: 26px; margin-right: 8px; width: 26px; height: 26px; line-height: 26px; }
#mwp-main .mwp-text { font-weight: 600; font-size: 16px; white-space: nowrap; }

/* --- Menu & Buttons Stack --- */
#mwp-menu { 
    display: flex; 
    flex-direction: column; 
    align-items: flex-end; 
    gap: 12px; 
    margin-bottom: 15px; 
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mwp-menu.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* Individual Items */
.mwp-item { display: flex; align-items: center; text-decoration: none; transition: transform 0.2s; cursor: pointer; }
.mwp-item:hover { transform: translateX(-5px); }

.mwp-item .dashicons {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    line-height: 48px;
}

.mwp-label-text {
    background: #fff;
    color: #333;
    padding: 6px 14px;
    border-radius: 8px;
    margin-right: 12px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    white-space: nowrap;
}

/* Colors for Different Buttons */
.whatsapp-primary .dashicons { background: #25d366; }
.whatsapp-secondary .dashicons { background: #128c7e; }
.whatsapp-extra .dashicons { background: #075e54; }
.call .dashicons { background: #007bff; }

/* --- Lead Form Popup --- */
#mwp-lead-form {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 100001;
}

.mwp-hide { display: none !important; }

.mwp-form-header {
    background: #25d366;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mwp-form-header span { font-weight: 600; font-size: 16px; }
#mwp-close-form { cursor: pointer; font-size: 20px; width: 20px; height: 20px; line-height: 20px; }

.mwp-form-body { padding: 20px; }
.mwp-intro { font-size: 13px; color: #666; margin-bottom: 15px; line-height: 1.4; }

.mwp-form-body input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 12px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    display: block;
}

.mwp-form-body input:focus { border-color: #25d366; outline: none; box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1); }

/* Submit & Spinner */
#mwp-submit-lead {
    width: 100%;
    background: #25d366;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#mwp-submit-lead:hover { background: #20ba5a; }

#mwp-submit-lead.loading { opacity: 0.8; pointer-events: none; }
.mwp-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: mwp-spin 0.8s linear infinite;
}
#mwp-submit-lead.loading .mwp-spinner { display: inline-block; }

@keyframes mwp-spin { to { transform: rotate(360deg); } }

/* Mobile Optimization */
@media (max-width: 480px) {
    #mwp-wrapper { bottom: 15px; right: 15px; }
    #mwp-lead-form { 
        width: calc(100vw - 40px); /* Full width minus padding */
        max-width: 320px;
        right: 0; 
        bottom: 70px; 
    }
    .mwp-label-text { font-size: 12px; padding: 5px 10px; margin-right: 8px; }
    #mwp-main .mwp-text { font-size: 14px; }
}