/**
 * ElemenTrans - Frontend RTL Stylesheet
 *
 * Comprehensive RTL (Right-to-Left) overrides for Arabic pages.
 * Applied only when the page is served in Arabic via the
 * body.elementrans-arabic class.
 *
 * @package    ElemenTrans
 * @subpackage ElemenTrans/public/css
 * @since      1.0.0
 */

/* ==========================================================================
   Base Direction
   ========================================================================== */

body.elementrans-arabic,
html[dir="rtl"] body.elementrans-arabic {
	direction: rtl;
	text-align: right;
}

/* ==========================================================================
   Generic Text Alignment Overrides
   ========================================================================== */

body.elementrans-arabic [style*="text-align: left"],
body.elementrans-arabic [style*="text-align:left"] {
	text-align: right;
}

body.elementrans-arabic .alignleft {
	float: right;
	margin-left: 1.5em;
	margin-right: 0;
}

body.elementrans-arabic .alignright {
	float: left;
	margin-right: 1.5em;
	margin-left: 0;
}

/* ==========================================================================
   Generic Float Overrides
   ========================================================================== */

body.elementrans-arabic .float-left,
body.elementrans-arabic .pull-left {
	float: right !important;
}

body.elementrans-arabic .float-right,
body.elementrans-arabic .pull-right {
	float: left !important;
}

/* ==========================================================================
   Lists
   ========================================================================== */

body.elementrans-arabic ul,
body.elementrans-arabic ol {
	padding-left: 0;
	padding-right: 2em;
}

body.elementrans-arabic li {
	text-align: right;
}

body.elementrans-arabic ul[style*="list-style-position"],
body.elementrans-arabic ol[style*="list-style-position"] {
	padding-right: 1em;
}

/* ==========================================================================
   Headings & Content
   ========================================================================== */

body.elementrans-arabic h1,
body.elementrans-arabic h2,
body.elementrans-arabic h3,
body.elementrans-arabic h4,
body.elementrans-arabic h5,
body.elementrans-arabic h6,
body.elementrans-arabic p {
	text-align: right;
}

body.elementrans-arabic .entry-content,
body.elementrans-arabic .post-content,
body.elementrans-arabic .page-content {
	text-align: right;
}

/* ==========================================================================
   Blockquotes
   ========================================================================== */

body.elementrans-arabic blockquote {
	border-left: none;
	border-right: 4px solid #e5e7eb;
	padding-left: 0;
	padding-right: 1.5em;
	margin-left: 0;
	margin-right: 0;
}

/* ==========================================================================
   Form Elements
   ========================================================================== */

body.elementrans-arabic input[type="text"],
body.elementrans-arabic input[type="email"],
body.elementrans-arabic input[type="url"],
body.elementrans-arabic input[type="password"],
body.elementrans-arabic input[type="search"],
body.elementrans-arabic input[type="number"],
body.elementrans-arabic input[type="tel"],
body.elementrans-arabic textarea {
	text-align: right;
	direction: rtl;
}

body.elementrans-arabic select {
	text-align: right;
	direction: rtl;
	background-position: left 10px center;
}

body.elementrans-arabic .search-form,
body.elementrans-arabic .search-field {
	text-align: right;
}

/* ==========================================================================
   Tables
   ========================================================================== */

body.elementrans-arabic table th,
body.elementrans-arabic table td {
	text-align: right;
}

body.elementrans-arabic table {
	direction: rtl;
}

/* ==========================================================================
   Navigation / Header
   ========================================================================== */

body.elementrans-arabic .site-header {
	direction: rtl;
}

body.elementrans-arabic .site-navigation,
body.elementrans-arabic .main-navigation,
body.elementrans-arabic .nav-menu,
body.elementrans-arabic .primary-menu {
	direction: rtl;
}

body.elementrans-arabic .site-navigation ul,
body.elementrans-arabic .main-navigation ul,
body.elementrans-arabic .nav-menu ul {
	padding-left: 0;
	padding-right: 0;
}

body.elementrans-arabic .site-navigation ul ul,
body.elementrans-arabic .main-navigation ul ul {
	left: auto;
	right: 0;
}

body.elementrans-arabic .menu-item-has-children > a::after {
	margin-left: 0;
	margin-right: 5px;
}

/* ==========================================================================
   Sidebar / Widget Areas
   ========================================================================== */

body.elementrans-arabic .widget-area,
body.elementrans-arabic .sidebar,
body.elementrans-arabic aside {
	text-align: right;
}

body.elementrans-arabic .widget ul {
	padding-left: 0;
	padding-right: 1em;
}

/* ==========================================================================
   Footer
   ========================================================================== */

body.elementrans-arabic .site-footer,
body.elementrans-arabic footer,
body.elementrans-arabic .footer,
body.elementrans-arabic #footer,
body.elementrans-arabic .elementor-location-footer {
	direction: rtl;
	text-align: right;
}

body.elementrans-arabic footer .elementor-row,
body.elementrans-arabic .elementor-location-footer .elementor-row {
	flex-direction: row-reverse;
}

body.elementrans-arabic footer .elementor-widget-wrap,
body.elementrans-arabic .elementor-location-footer .elementor-widget-wrap {
	direction: rtl;
	text-align: right;
}

/* Footer icon lists */
body.elementrans-arabic footer .elementor-icon-list-item,
body.elementrans-arabic .elementor-location-footer .elementor-icon-list-item {
	flex-direction: row-reverse;
	justify-content: flex-start;
}

/* Footer social icons */
body.elementrans-arabic footer .elementor-social-icons-wrapper,
body.elementrans-arabic .elementor-location-footer .elementor-social-icons-wrapper {
	flex-direction: row-reverse;
	justify-content: flex-start;
}

/* Footer headings */
body.elementrans-arabic footer .elementor-heading-title,
body.elementrans-arabic .elementor-location-footer .elementor-heading-title {
	text-align: right;
}

/* ==========================================================================
   Common Margin/Padding Flips
   ========================================================================== */

/* Common spacing patterns used in themes */
body.elementrans-arabic .entry-meta > span {
	margin-right: 0;
	margin-left: 15px;
}

body.elementrans-arabic .entry-meta .dashicons,
body.elementrans-arabic .entry-meta .icon {
	margin-right: 0;
	margin-left: 4px;
}

body.elementrans-arabic .post-navigation .nav-previous {
	float: right;
	text-align: right;
}

body.elementrans-arabic .post-navigation .nav-next {
	float: left;
	text-align: left;
}

/* ==========================================================================
   Elementor Specific RTL
   Only apply when Elementor itself does not handle RTL properly.
   These are targeted fixes rather than broad overrides.
   ========================================================================== */

/* --- Legacy Elementor (pre-v3.15 sections/columns) --- */

body.elementrans-arabic .elementor-section {
	direction: rtl;
}

body.elementrans-arabic .elementor-widget-wrap {
	direction: rtl;
}

body.elementrans-arabic .elementor-widget-text-editor {
	text-align: right;
}

body.elementrans-arabic .elementor-widget-heading .elementor-heading-title {
	text-align: right;
}

body.elementrans-arabic .elementor-icon-list-items {
	padding-right: 0;
}

body.elementrans-arabic .elementor-icon-list-item .elementor-icon-list-icon {
	margin-right: 0;
	margin-left: 10px;
}

body.elementrans-arabic .elementor-button-content-wrapper {
	flex-direction: row-reverse;
}

body.elementrans-arabic .elementor-button-icon {
	margin-left: 0;
	margin-right: 8px;
}

/* Elementor columns - reverse order for RTL */
body.elementrans-arabic .elementor-row {
	flex-direction: row-reverse;
}

/* Elementor tabs and accordion */
body.elementrans-arabic .elementor-tab-title {
	text-align: right;
}

body.elementrans-arabic .elementor-tab-content {
	text-align: right;
}

body.elementrans-arabic .elementor-accordion-title {
	text-align: right;
}

/* --- Modern Elementor Containers (v3.15+ Flex/Grid) --- */

body.elementrans-arabic .e-con,
body.elementrans-arabic .e-con-inner {
	direction: rtl;
	text-align: right;
}

/* Row-direction containers: reverse child order for RTL */
body.elementrans-arabic .e-con--row > .e-con-inner {
	flex-direction: row-reverse;
}

/* Containers with explicit row direction in settings */
body.elementrans-arabic .e-con[data-settings*="\"flex_direction\":\"row\""] > .e-con-inner {
	flex-direction: row-reverse;
}

/* Column containers keep normal direction */
body.elementrans-arabic .e-con--column > .e-con-inner {
	flex-direction: column;
}

/* Nested containers inherit RTL */
body.elementrans-arabic .e-con .e-con {
	direction: rtl;
	text-align: right;
}

/* Widget containers inside modern containers */
body.elementrans-arabic .e-con .elementor-widget-container {
	text-align: right;
}

/* Modern container heading/text widgets */
body.elementrans-arabic .e-con .elementor-widget-heading .elementor-heading-title {
	text-align: right;
}

body.elementrans-arabic .e-con .elementor-widget-text-editor {
	text-align: right;
}

/* Modern container icon lists */
body.elementrans-arabic .e-con .elementor-icon-list-item {
	flex-direction: row-reverse;
}

body.elementrans-arabic .e-con .elementor-icon-list-item .elementor-icon-list-icon {
	margin-right: 0;
	margin-left: 10px;
}

/* Modern container image boxes */
body.elementrans-arabic .e-con .elementor-widget-image-box .elementor-image-box-wrapper {
	flex-direction: row-reverse;
}

body.elementrans-arabic .e-con .elementor-image-box-content {
	text-align: right;
}

/* Modern container icon boxes */
body.elementrans-arabic .e-con .elementor-widget-icon-box .elementor-icon-box-wrapper {
	flex-direction: row-reverse;
}

body.elementrans-arabic .e-con .elementor-icon-box-content {
	text-align: right;
}

/* Elementor form widgets */
body.elementrans-arabic .elementor-form .elementor-field-group {
	direction: rtl;
	text-align: right;
}

body.elementrans-arabic .elementor-form .elementor-field-label {
	text-align: right;
}

body.elementrans-arabic .elementor-form .elementor-field-textual {
	text-align: right;
	direction: rtl;
}

/* Elementor social icons in container */
body.elementrans-arabic .e-con .elementor-social-icons-wrapper {
	flex-direction: row-reverse;
}

/* Footer-specific: Elementor footer template containers */
body.elementrans-arabic footer .e-con--row > .e-con-inner,
body.elementrans-arabic .elementor-location-footer .e-con--row > .e-con-inner {
	flex-direction: row-reverse;
}

body.elementrans-arabic footer .e-con,
body.elementrans-arabic .elementor-location-footer .e-con {
	direction: rtl;
	text-align: right;
}

/* Header-specific: Elementor header template containers */
body.elementrans-arabic header .e-con--row > .e-con-inner,
body.elementrans-arabic .elementor-location-header .e-con--row > .e-con-inner {
	flex-direction: row-reverse;
}

body.elementrans-arabic header .e-con,
body.elementrans-arabic .elementor-location-header .e-con {
	direction: rtl;
	text-align: right;
}

/* ==========================================================================
   Elementor Pro Posts Widget RTL
   Targets the Posts widget (classic skin) used in sidebars/page layouts.
   Widget class: .elementor-widget-posts
   Read More class: .elementor-post__read-more
   ========================================================================== */

body.elementrans-arabic .elementor-widget-posts {
	direction: rtl;
}

body.elementrans-arabic .elementor-widget-posts .elementor-posts-container {
	direction: rtl;
}

body.elementrans-arabic .elementor-widget-posts .elementor-post__text {
	text-align: right !important;
	direction: rtl !important;
}

body.elementrans-arabic .elementor-widget-posts .elementor-post__title {
	text-align: right !important;
}

body.elementrans-arabic .elementor-widget-posts .elementor-post__excerpt {
	text-align: right !important;
	direction: rtl !important;
}

body.elementrans-arabic .elementor-post__read-more,
body.elementrans-arabic .elementor-widget-posts .elementor-post__read-more {
	text-align: right !important;
	direction: rtl !important;
	display: block !important;
}

/* Elementor Pro Archive Posts widget (same structure on archive pages) */
body.elementrans-arabic .elementor-widget-archive-posts .elementor-post__text {
	text-align: right !important;
	direction: rtl !important;
}

body.elementrans-arabic .elementor-widget-archive-posts .elementor-post__read-more {
	text-align: right !important;
	direction: rtl !important;
	display: block !important;
}

/* Elementor Posts widget card skin */
body.elementrans-arabic .elementor-widget-posts .elementor-post__card {
	direction: rtl;
}

/* Elementor Posts widget meta (author, date, etc.) */
body.elementrans-arabic .elementor-widget-posts .elementor-post__meta-data,
body.elementrans-arabic .elementor-widget-archive-posts .elementor-post__meta-data {
	text-align: right !important;
	direction: rtl !important;
}

/* Elementor Loop Grid widget (used for main blog grid) */
body.elementrans-arabic .elementor-widget-loop-grid {
	direction: rtl;
}

/* ==========================================================================
   Number Handling - Keep Numbers LTR
   ========================================================================== */

.elementrans-ltr-number {
	direction: ltr;
	unicode-bidi: embed;
	display: inline-block;
}

/* Phone numbers, dates, times */
body.elementrans-arabic [dir="ltr"],
body.elementrans-arabic .ltr {
	direction: ltr;
	unicode-bidi: embed;
}

body.elementrans-arabic time,
body.elementrans-arabic .date,
body.elementrans-arabic .timestamp {
	direction: ltr;
	unicode-bidi: embed;
	display: inline-block;
}

/* ==========================================================================
   Mixed Content Handling
   ========================================================================== */

.elementrans-mixed-content {
	unicode-bidi: plaintext;
}

/* URLs and code should remain LTR */
body.elementrans-arabic code,
body.elementrans-arabic pre,
body.elementrans-arabic kbd,
body.elementrans-arabic samp {
	direction: ltr;
	unicode-bidi: embed;
	text-align: left;
}

/* Email addresses */
body.elementrans-arabic a[href^="mailto:"] {
	direction: ltr;
	unicode-bidi: embed;
}

/* ==========================================================================
   Border Radius Flips
   ========================================================================== */

/* Common classes that use asymmetric border-radius */
body.elementrans-arabic .rounded-left {
	border-radius: 0 8px 8px 0;
}

body.elementrans-arabic .rounded-right {
	border-radius: 8px 0 0 8px;
}

/* ==========================================================================
   Language Switcher RTL Adjustments
   ========================================================================== */

body.elementrans-arabic .elementrans-floating-switcher--bottom-right,
body.elementrans-arabic .elementrans-floating-switcher.position-bottom-right {
	right: auto;
	left: 20px;
}

body.elementrans-arabic .elementrans-floating-switcher--bottom-left,
body.elementrans-arabic .elementrans-floating-switcher.position-bottom-left {
	left: auto;
	right: 20px;
}

body.elementrans-arabic .elementrans-floating-switcher--top-right,
body.elementrans-arabic .elementrans-floating-switcher.position-top-right {
	right: auto;
	left: 20px;
}

body.elementrans-arabic .elementrans-floating-switcher--top-left,
body.elementrans-arabic .elementrans-floating-switcher.position-top-left {
	left: auto;
	right: 20px;
}

body.elementrans-arabic .elementrans-floating-switcher--bottom-right .elementrans-floating-switcher__label,
body.elementrans-arabic .elementrans-floating-switcher--top-right .elementrans-floating-switcher__label,
body.elementrans-arabic .position-bottom-right .elementrans-float-label,
body.elementrans-arabic .position-top-right .elementrans-float-label {
	right: auto;
	left: calc(100% + 12px);
	transform: translateY(-50%) translateX(-8px);
}

body.elementrans-arabic .elementrans-floating-switcher--bottom-left .elementrans-floating-switcher__label,
body.elementrans-arabic .elementrans-floating-switcher--top-left .elementrans-floating-switcher__label,
body.elementrans-arabic .position-bottom-left .elementrans-float-label,
body.elementrans-arabic .position-top-left .elementrans-float-label {
	left: auto;
	right: calc(100% + 12px);
	transform: translateY(-50%) translateX(8px);
}

body.elementrans-arabic .elementrans-switcher--dropdown .elementrans-switcher__menu,
body.elementrans-arabic .elementrans-dropdown-menu {
	left: auto;
	right: 0;
}

body.elementrans-arabic .elementrans-switcher__arrow,
body.elementrans-arabic .elementrans-dropdown-arrow {
	margin-left: 0;
	margin-right: 4px;
}

body.elementrans-arabic .elementrans-switcher--flags {
	flex-direction: row-reverse;
}

/* ==========================================================================
   WooCommerce RTL Support (if WooCommerce is active)
   ========================================================================== */

body.elementrans-arabic .woocommerce .products {
	direction: rtl;
}

body.elementrans-arabic .woocommerce .product .price {
	direction: ltr;
	unicode-bidi: embed;
}

body.elementrans-arabic .woocommerce .quantity .qty {
	text-align: center;
}

body.elementrans-arabic .woocommerce-cart-form .product-name {
	text-align: right;
}

body.elementrans-arabic .woocommerce table.shop_table th,
body.elementrans-arabic .woocommerce table.shop_table td {
	text-align: right;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
	body.elementrans-arabic {
		direction: rtl;
		text-align: right;
	}
}

/* ==========================================================================
   Responsive RTL Adjustments
   ========================================================================== */

@media (max-width: 768px) {
	body.elementrans-arabic .elementrans-floating-switcher--bottom-right,
	body.elementrans-arabic .elementrans-floating-switcher.position-bottom-right {
		left: 16px;
	}

	body.elementrans-arabic .elementrans-floating-switcher--bottom-left,
	body.elementrans-arabic .elementrans-floating-switcher.position-bottom-left {
		right: 16px;
	}

	body.elementrans-arabic .elementrans-floating-switcher--top-right,
	body.elementrans-arabic .elementrans-floating-switcher.position-top-right {
		left: 16px;
	}

	body.elementrans-arabic .elementrans-floating-switcher--top-left,
	body.elementrans-arabic .elementrans-floating-switcher.position-top-left {
		right: 16px;
	}

	/* Ensure content stays RTL on mobile */
	body.elementrans-arabic .entry-content,
	body.elementrans-arabic .post-content {
		text-align: right;
		direction: rtl;
	}
}

/* ==========================================================================
   Widget-Specific RTL Fixes
   ========================================================================== */

/* Categories Widget */
body.elementrans-arabic .widget_categories ul,
body.elementrans-arabic .widget_categories ol {
	direction: rtl;
	text-align: right;
	padding-left: 0;
	padding-right: 1em;
}

body.elementrans-arabic .widget_categories li {
	text-align: right;
}

body.elementrans-arabic .widget_categories .children {
	padding-left: 0;
	padding-right: 1.5em;
	margin-left: 0;
	margin-right: 0;
}

body.elementrans-arabic .widget_categories li .count,
body.elementrans-arabic .widget_categories li .post-count {
	direction: ltr;
	unicode-bidi: embed;
	float: left;
	margin-left: 0;
	margin-right: 5px;
}

/* Tag Cloud Widget */
body.elementrans-arabic .widget_tag_cloud .tagcloud,
body.elementrans-arabic .wp-block-tag-cloud {
	direction: rtl;
	text-align: right;
}

body.elementrans-arabic .widget_tag_cloud .tagcloud a {
	float: right;
	margin-left: 5px;
	margin-right: 0;
}

/* Recent Posts Widget */
body.elementrans-arabic .widget_recent_entries ul {
	direction: rtl;
	text-align: right;
	padding-left: 0;
	padding-right: 0;
	list-style-position: inside;
}

body.elementrans-arabic .widget_recent_entries li {
	text-align: right;
}

body.elementrans-arabic .widget_recent_entries li a {
	display: block;
	text-align: right;
}

body.elementrans-arabic .widget_recent_entries li .post-date {
	direction: ltr;
	unicode-bidi: embed;
	display: block;
}

/* "Read More" links in sidebar widgets and post excerpts */
body.elementrans-arabic .widget a.more-link,
body.elementrans-arabic .widget .more-link,
body.elementrans-arabic .widget .read-more,
body.elementrans-arabic .widget a[class*="read-more"],
body.elementrans-arabic .widget a[class*="readmore"],
body.elementrans-arabic .widget .continue-reading,
body.elementrans-arabic .widget .entry-more,
body.elementrans-arabic .more-link,
body.elementrans-arabic a.more-link,
body.elementrans-arabic .entry-content .more-link,
body.elementrans-arabic .entry-summary .more-link,
body.elementrans-arabic article .more-link,
body.elementrans-arabic .post .more-link {
	text-align: right !important;
	direction: rtl !important;
	display: block !important;
	float: none !important;
	clear: both;
}

/* Read More button-style links */
body.elementrans-arabic .widget .wp-block-read-more,
body.elementrans-arabic .wp-block-read-more,
body.elementrans-arabic .entry-content .wp-block-read-more {
	text-align: right !important;
	float: none !important;
	margin-left: auto !important;
	margin-right: 0 !important;
}

/* Ultra-aggressive: Force ALL links inside widget list items to RTL */
body.elementrans-arabic .widget li a,
body.elementrans-arabic .widget_recent_entries li a,
body.elementrans-arabic .sidebar li a,
body.elementrans-arabic aside li a {
	text-align: right !important;
	direction: rtl !important;
}

/* Force ALL widget paragraphs and divs to RTL */
body.elementrans-arabic .widget p,
body.elementrans-arabic .widget div,
body.elementrans-arabic .widget li {
	text-align: right !important;
	direction: rtl !important;
}

/* Theme-specific: target excerpt/summary areas inside widgets */
body.elementrans-arabic .widget .rssSummary,
body.elementrans-arabic .widget .rss-widget-feed,
body.elementrans-arabic .widget .wp-block-latest-posts__post-excerpt,
body.elementrans-arabic .widget .wp-block-latest-posts__post-author,
body.elementrans-arabic .widget .wp-block-latest-posts__post-date,
body.elementrans-arabic .widget .excerpt,
body.elementrans-arabic .widget .post-excerpt,
body.elementrans-arabic .widget .entry-summary {
	text-align: right !important;
	direction: rtl !important;
}

/* WordPress block-based widgets: Latest Posts block */
body.elementrans-arabic .wp-block-latest-posts,
body.elementrans-arabic .wp-block-latest-posts li,
body.elementrans-arabic .wp-block-latest-posts li a,
body.elementrans-arabic .wp-block-latest-posts__post-excerpt,
body.elementrans-arabic .wp-block-latest-posts__post-date {
	text-align: right !important;
	direction: rtl !important;
}

/* Ensure the entire sidebar area and all children respect RTL */
body.elementrans-arabic .widget-area *,
body.elementrans-arabic .sidebar *,
body.elementrans-arabic aside.widget-area * {
	text-align: right;
	direction: rtl;
}

/* Exceptions: keep numbers, dates, and icons LTR */
body.elementrans-arabic .widget .count,
body.elementrans-arabic .widget .post-count,
body.elementrans-arabic .widget .post-date,
body.elementrans-arabic .widget time {
	direction: ltr !important;
	unicode-bidi: embed !important;
}

/* Post content: Read More and Continue Reading patterns */
body.elementrans-arabic .entry-content > p:last-child,
body.elementrans-arabic .entry-summary > p:last-child,
body.elementrans-arabic .post-content > p:last-child {
	text-align: right !important;
}

body.elementrans-arabic .entry-content > p:last-child a,
body.elementrans-arabic .entry-summary > p:last-child a,
body.elementrans-arabic .post-content > p:last-child a {
	direction: rtl !important;
}

/* Recent Comments Widget */
body.elementrans-arabic .widget_recent_comments ul {
	direction: rtl;
	text-align: right;
	padding-left: 0;
	padding-right: 0;
}

body.elementrans-arabic .widget_recent_comments li {
	text-align: right;
}

/* Archives Widget */
body.elementrans-arabic .widget_archive ul {
	direction: rtl;
	text-align: right;
	padding-left: 0;
	padding-right: 1em;
}

body.elementrans-arabic .widget_archive li .count,
body.elementrans-arabic .widget_archive li .post-count {
	direction: ltr;
	unicode-bidi: embed;
	float: left;
}

/* Pages Widget */
body.elementrans-arabic .widget_pages ul {
	direction: rtl;
	text-align: right;
	padding-left: 0;
	padding-right: 1em;
}

body.elementrans-arabic .widget_pages .children {
	padding-left: 0;
	padding-right: 1.5em;
}

/* Nav Menu Widget */
body.elementrans-arabic .widget_nav_menu ul {
	direction: rtl;
	text-align: right;
	padding-left: 0;
	padding-right: 0;
}

body.elementrans-arabic .widget_nav_menu .sub-menu {
	padding-left: 0;
	padding-right: 1.5em;
}

/* Search Widget */
body.elementrans-arabic .widget_search .search-form {
	direction: rtl;
}

body.elementrans-arabic .widget_search .search-submit {
	float: left;
	margin-left: 0;
	margin-right: 0;
}

/* ==========================================================================
   Post Meta RTL
   ========================================================================== */

body.elementrans-arabic .post-categories,
body.elementrans-arabic .post-tags,
body.elementrans-arabic .cat-links,
body.elementrans-arabic .tags-links,
body.elementrans-arabic .entry-categories,
body.elementrans-arabic .entry-tags,
body.elementrans-arabic .entry-meta,
body.elementrans-arabic .post-meta,
body.elementrans-arabic .entry-footer {
	text-align: right;
	direction: rtl;
}

body.elementrans-arabic .cat-links a,
body.elementrans-arabic .tags-links a {
	margin-left: 5px;
	margin-right: 0;
}

/* ==========================================================================
   Breadcrumbs RTL
   ========================================================================== */

body.elementrans-arabic .breadcrumb,
body.elementrans-arabic .breadcrumbs,
body.elementrans-arabic nav[aria-label="breadcrumb"],
body.elementrans-arabic .woocommerce-breadcrumb,
body.elementrans-arabic .yoast-breadcrumb,
body.elementrans-arabic .rank-math-breadcrumb {
	direction: rtl;
	text-align: right;
}

body.elementrans-arabic .breadcrumb-separator,
body.elementrans-arabic .breadcrumbs .separator {
	display: inline-block;
	transform: scaleX(-1);
}

/* ==========================================================================
   Pagination RTL
   ========================================================================== */

body.elementrans-arabic .pagination,
body.elementrans-arabic .nav-links {
	direction: rtl;
}

body.elementrans-arabic .nav-previous {
	float: right;
}

body.elementrans-arabic .nav-next {
	float: left;
}

body.elementrans-arabic .pagination .prev::before,
body.elementrans-arabic .nav-previous a::before,
body.elementrans-arabic .pagination .next::after,
body.elementrans-arabic .nav-next a::after {
	display: inline-block;
	transform: scaleX(-1);
}

/* ==========================================================================
   Comments Section RTL
   ========================================================================== */

body.elementrans-arabic .comment-list {
	padding-left: 0;
	padding-right: 0;
}

body.elementrans-arabic .comment-list .children {
	padding-left: 0;
	padding-right: 2em;
	margin-left: 0;
	margin-right: 0;
}

body.elementrans-arabic .comment-author .avatar {
	float: right;
	margin-left: 15px;
	margin-right: 0;
}

body.elementrans-arabic .comment-metadata {
	text-align: right;
}

body.elementrans-arabic .reply {
	text-align: left;
}
