/* HEIDT popup 745: appearance only, exclusively in the site's dark mode. */
html:is(:root, #hp-site-theme-priority)[data-hp-site-theme="dark"] #elementor-popup-modal-745 {
    --hp-bg: #000 !important;
    --hp-surface: #000 !important;
    --hp-card: #000 !important;
}

/* Match the neutral surfaces targeted by the HEIDT appearance plugin. */
html:is(:root, #hp-site-theme-priority)[data-hp-site-theme="dark"] #elementor-popup-modal-745 :is(
    .dialog-widget-content,
    .dialog-message,
    .elementor-745,
    .elementor-section,
    .elementor-inner-section,
    .e-con,
    .elementor-container,
    .elementor-column,
    .elementor-column-wrap,
    .elementor-widget-wrap,
    .elementor-element-a36bdb5,
    .heidt-popup-nav,
    .elementor-nav-menu--dropdown,
    table,
    thead,
    tbody,
    tfoot,
    tr,
    th,
    td
) {
    background-color: #000 !important;
    background-image: none !important;
}

html:is(:root, #hp-site-theme-priority)[data-hp-site-theme="dark"] #elementor-popup-modal-745 .elementor-background-overlay {
    background-color: transparent !important;
    background-image: none !important;
}

/* Keep table geometry while hiding gray grid lines inside this menu only. */
html:is(:root, #hp-site-theme-priority)[data-hp-site-theme="dark"] #elementor-popup-modal-745 :is(table, thead, tbody, tfoot, tr, th, td) {
    border-color: #000 !important;
}
