
/* DhivehiFont RTL spacing fixes v34.1 */
/* 1) Avoid custom bullets inside forms (commonly used in widgets) */
:where(html[dir="rtl"], body.dhf-rtl) .widget form li::before { content:none !important; }
:where(html[dir="rtl"], body.dhf-rtl) .widget form li { padding-inline-start: 0 !important; padding-inline-end: 0 !important; }

/* 2) Add logical space between controls/icons and text in RTL and LTR */
/* inputs inside labels */
:where(html[dir="rtl"], body.dhf-rtl) label :is(input[type="checkbox"], input[type="radio"]) { margin-inline: .45rem !important; }
/* inputs adjacent to labels (input before label) */
:where(html[dir="rtl"], body.dhf-rtl) :is(input[type="checkbox"], input[type="radio"]) + label { margin-inline: .45rem !important; }
/* label before input */
:where(html[dir="rtl"], body.dhf-rtl) label + :is(input[type="checkbox"], input[type="radio"]) { margin-inline: .45rem !important; }

/* icons inside labels near text */
:where(html[dir="rtl"], body.dhf-rtl) label :is(svg, i, .dashicons, .icon) { margin-inline: .35rem !important; }

/* mirror behavior for LTR just in case */
html[dir="ltr"] label :is(input[type="checkbox"], input[type="radio"]) { margin-inline: .45rem !important; }
html[dir="ltr"] :is(input[type="checkbox"], input[type="radio"]) + label { margin-inline: .45rem !important; }
html[dir="ltr"] label + :is(input[type="checkbox"], input[type="radio"]) { margin-inline: .45rem !important; }
html[dir="ltr"] label :is(svg, i, .dashicons, .icon) { margin-inline: .35rem !important; }
