/*
 * Front-end guard for every Iran Legal calculator.
 * data-illt-tool is the stable root marker for current and future modules.
 */
html body [data-illt-tool][data-illt-tool][data-illt-tool] {
    display: block !important;
    position: relative !important;
    float: none !important;
    clear: both !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    contain: none !important;
    isolation: isolate;
}

html body [data-illt-tool][data-illt-tool][data-illt-tool]::before,
html body [data-illt-tool][data-illt-tool][data-illt-tool]::after,
html body [data-illt-tool][data-illt-tool][data-illt-tool] :is(p, h1, h2, h3, h4, h5, h6, label, form, header, section, article, fieldset, legend, button)::before,
html body [data-illt-tool][data-illt-tool][data-illt-tool] :is(p, h1, h2, h3, h4, h5, h6, label, form, header, section, article, fieldset, legend, button)::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

html body [data-illt-tool][data-illt-tool][data-illt-tool] > :first-child {
    margin-top: 0 !important;
}

html body [data-illt-tool][data-illt-tool][data-illt-tool] > :last-child {
    margin-bottom: 0 !important;
}

.illt-shortcode-artifact {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}

/* Astra styles code tags; Elementor can wrap a shortcode in code. */
html body [data-illt-tool-root="1"] code,
html body [data-illt-tool] code {
    display: contents !important;
    background: transparent !important;
    color: inherit !important;
    font: inherit !important;
    line-height: inherit !important;
    white-space: normal !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

html body .elementor-widget-container:has(> [data-illt-tool-root="1"]) > code:empty,
html body .elementor-widget-container:has(> [data-illt-tool-root="1"]) > p:has(> code:empty),
html body .elementor-widget-container:has(> [data-illt-tool]) > code:empty,
html body .elementor-widget-container:has(> [data-illt-tool]) > p:has(> code:empty) {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}
