/* Theme the existing widget; retain its controls and accessibility modes. */
html {
    --muneer-font-family: "IBM Plex Sans Arabic", sans-serif;
    --muneer-color: #1b8354;
    --muneer-color-dark: #75e0a7;
    --muneer-color-accent: #067647;
    --muneer-color-transparent: #f0f9f4;
    --muneer-color-transparent-dark: rgba(117, 224, 167, .12);
    --muneer-btn-bg: #1b8354;
    --muneer-btn-bg-hover: #166a45;
    --muneer-btn-color: #fff;
    --muneer-btn-color-hover: #fff;
    --muneer-overlay: rgba(16, 24, 40, .35);
}

#muneer-sidebar,
#muneer-popup {
    --muneer-font-family: "IBM Plex Sans Arabic", sans-serif;
    --muneer-color: #1b8354;
    --muneer-color-dark: #75e0a7;
    --muneer-color-accent: #067647;
    --muneer-color-transparent: #f0f9f4;
    --muneer-color-transparent-dark: rgba(117, 224, 167, .12);
    font-family: var(--muneer-font-family);
}

#muneer-sidebar #muneer-popup-header {
    padding: 20px 20px 16px;
}

#muneer-sidebar #muneer-popup-header--title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;
}

#muneer-sidebar .muneer-subheader {
    font-size: 14px;
    line-height: 1.6;
}

#muneer-sidebar :is(.muneer-toggle-box, .muneer-multi-toggle-box) {
    border-radius: 10px;
    border: 1px solid var(--muneer-color-transparent);
}

#muneer-sidebar .muneer-action-box-content .muneer-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
}

#muneer-sidebar #muneer-popup-buttons {
    gap: 10px;
}

#muneer-sidebar #muneer-popup-buttons button {
    min-height: 44px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

#muneer-sidebar :is(button, select, [role="button"]):focus-visible {
    outline: 3px solid var(--muneer-color);
    outline-offset: 3px;
}

/* Restore the assistant automatically when Muneer closes. */
body.muneer-aside-is-open .vg-widget-controls-container,
body.muneer-off-canvas-is-open-left .vg-widget-controls-container,
body.muneer-off-canvas-is-open-right .vg-widget-controls-container {
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 575px) {
    #muneer-sidebar #muneer-popup-header { padding: 16px 16px 12px; }
}
#muneer-sidebar #muneer-popup-footer,
#muneer-popup #muneer-popup-footer {
    display: none !important;
}