/**
 * American Mutual — Global RTL enforcement (Arabic-only site).
 * Overrides Elementor/LTR defaults. Loads after all theme + plugin styles.
 */

html {
	direction: rtl !important;
}

html[dir="rtl"],
html[lang="ar"] {
	direction: rtl !important;
}

body.american-mutual-site,
body.is-rtl {
	direction: rtl !important;
	text-align: right !important;
	unicode-bidi: embed;
}

body.american-mutual-site h1,
body.american-mutual-site h2,
body.american-mutual-site h3,
body.american-mutual-site h4,
body.american-mutual-site h5,
body.american-mutual-site h6,
body.american-mutual-site p,
body.american-mutual-site li,
body.american-mutual-site td,
body.american-mutual-site th,
body.american-mutual-site label,
.amf-rtl-root,
.amf-rtl-root h1,
.amf-rtl-root h2,
.amf-rtl-root h3,
.amf-rtl-root h4,
.amf-rtl-root p,
.amf-rtl-root li,
.amf-rtl-root td,
.amf-rtl-root th {
	text-align: right !important;
	direction: rtl !important;
}

html[dir="rtl"] ul,
html[dir="rtl"] ol,
.amf-rtl-root ul,
.amf-rtl-root ol,
.amf-list,
.amf-breadcrumbs ol,
.amf-toc__list,
.amf-related-articles ul,
.amf-faq-search__results,
.amf-glossary-term-list,
.amf-knowledge-articles__list,
.amf-faq-list ul,
.amf-faq-categories__list {
	direction: rtl !important;
	text-align: right !important;
	padding-right: 1.5rem !important;
	padding-left: 0 !important;
	margin-right: 0 !important;
	list-style-position: outside !important;
}

html[dir="rtl"] ol,
.amf-rtl-root ol {
	list-style-type: arabic-indic;
}

html[dir="rtl"] ul,
.amf-rtl-root ul {
	list-style-type: disc;
}

.amf-breadcrumbs ol,
.american-mutual-breadcrumbs ol {
	list-style: none !important;
	padding: 0 !important;
}

.elementor,
.elementor-location-header,
.elementor-location-footer,
.e-con,
.e-con-inner,
.elementor-element,
.elementor-widget,
.elementor-widget-container,
.elementor-widget-theme-post-content,
.elementor-widget-text-editor,
.elementor-widget-heading,
.amf-elementor-page-shell,
.amf-elementor-state-shell {
	direction: rtl !important;
	text-align: right !important;
}

.elementor-widget-text-editor p,
.elementor-widget-text-editor ul,
.elementor-widget-text-editor ol,
.elementor-widget-text-editor h1,
.elementor-widget-text-editor h2,
.elementor-widget-text-editor h3 {
	text-align: right !important;
	direction: rtl !important;
}

.amf-page-content,
.amf-page-content--comparison,
.amf-page-content--knowledge,
.amf-page-content--faq-hub,
.amf-page-content--glossary-hub,
.american-mutual-page__content,
.american-mutual-page,
#amf-main-content,
#main-content,
#primary {
	direction: rtl !important;
	text-align: right !important;
}

.amf-comparison-table {
	direction: rtl !important;
}

.amf-comparison-table th,
.amf-comparison-table td {
	text-align: right !important;
}

.amf-comparison-table-scroll {
	direction: rtl !important;
}

.amf-faq__item summary,
.amf-faq__answer,
.american-mutual-faq details,
.american-mutual-faq summary {
	direction: rtl !important;
	text-align: right !important;
}

.amf-quote-form,
.american-mutual-quote-form,
.amf-quote-form__grid,
.american-mutual-quote-form label {
	direction: rtl !important;
	text-align: right !important;
}

.amf-quote-form label,
.american-mutual-quote-form label {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	text-align: right !important;
}

.amf-comparison-card,
.amf-knowledge-cluster-card,
.amf-faq-category-card,
.amf-state-card,
.american-mutual-service-card,
.american-mutual-blog-card {
	direction: rtl !important;
	text-align: right !important;
}

.amf-comparison-pros-cons,
.amf-comparison-cost,
.amf-comparison-who,
.amf-comparison-pros-cons__col {
	direction: rtl !important;
	text-align: right !important;
}

.american-mutual-nav,
.american-mutual-nav .sub-menu,
.american-mutual-footer__links,
.elementor-nav-menu {
	direction: rtl !important;
	text-align: right !important;
}

.amf-cta-band,
.american-mutual-cta-band {
	direction: rtl !important;
	text-align: center !important;
}

.american-mutual-ltr,
.american-mutual-footer__contact-value--ltr,
.amf-ltr-en,
.american-mutual-input--ltr,
input.american-mutual-ltr,
input[type="email"],
input[type="tel"],
input[type="url"] {
	direction: ltr !important;
	text-align: left !important;
	unicode-bidi: embed;
}

[dir="ltr"]:not(.american-mutual-ltr):not(.amf-ltr-en):not(.american-mutual-footer__contact-value--ltr):not(input):not(textarea) {
	direction: rtl !important;
	text-align: right !important;
}

.amf-skip-link:focus,
.american-mutual-skip-link:focus {
	inset-inline-start: auto !important;
	inset-inline-end: var(--american-mutual-space-md, 1rem) !important;
	right: var(--american-mutual-space-md, 1rem) !important;
	left: auto !important;
}
