/* ========================================
   CUSTOM CSS TO REMOVE UNWANTED ELEMENTS
   ======================================== */

/* ===== HIDE "MADE WITH MANUS" BADGE ===== */
/* Hide the Manus badge button in the bottom right corner */
button[aria-label*="Made with Manus"],
button[aria-label*="made with manus"],
a[href*="manus.im"],
[class*="manus-badge"],
#manus-badge,
.manus-watermark,
footer-watermark,
#manus-previewer-root,
[id*="manus-previewer"],
[class*="footer-watermark"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* More specific selector for the Manus branding button */
button:has(svg):has([class*="lucide"]):has(span:contains("Made with Manus")) {
    display: none !important;
}

/* Hide any fixed position elements in bottom right that contain "Manus" */
[style*="position: fixed"][style*="bottom"][style*="right"]:has([aria-label*="Manus"]),
[style*="position: fixed"][style*="bottom"][style*="right"]:has([aria-label*="manus"]) {
    display: none !important;
}

/* Additional catch-all for Manus branding */
*[class*="ManusButton"],
*[class*="manus-button"],
*[id*="manus-button"],
*[class*="ManusWatermark"],
*[class*="manus-watermark"] {
    display: none !important;
}

/* Hide shadow DOM elements */
footer-watermark::part(*) {
    display: none !important;
}

/* ===== HIDE WORKBOOK BUNDLE POPUP/MODAL ===== */
/* If the popup has a specific ID or class, add it here */
/* Common modal/popup selectors */
[role="dialog"],
[role="alertdialog"],
.modal,
.popup,
[class*="modal"],
[class*="popup"],
[class*="overlay"] {
    /* Only hide if it contains workbook text - you may need to adjust this */
    /* For now, this is commented out to avoid hiding other modals */
    /* display: none !important; */
}

/* Specific workbook popup hiding - uncomment and adjust selector as needed */
/* Example: if the popup has a specific class or ID */
/*
#workbook-popup,
.workbook-modal,
[data-popup="workbook"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}
*/

/* Hide any backdrop/overlay that might appear with popups */
.modal-backdrop,
.popup-backdrop,
[class*="backdrop"],
[class*="overlay"] {
    /* Commented out to avoid hiding legitimate overlays */
    /* display: none !important; */
}

/* ===== ADDITIONAL CLEANUP ===== */
/* Remove any Manus-related scripts or iframes */
iframe[src*="manus"],
script[src*="manus"] {
    display: none !important;
}
