/**
 * KWMPress RTL support.
 */

body {
	direction: rtl;
	font-family: var(--kwm-rtl-font, Vazirmatn, Tahoma, sans-serif);
}

.kwm-header__inner,
.kwm-footer__top,
.kwm-footer__middle,
.kwm-footer__bottom,
.kwm-layout,
.kwm-menu,
.kwm-footer-menu,
.kwm-mobile-menu,
.kwm-post-card,
.kwm-single-post__article,
.kwm-comments {
	direction: rtl;
}

.kwm-menu,
.kwm-footer-menu,
.kwm-mobile-menu,
.kwm-comments__list {
	padding-inline-start: 0;
}

.kwm-header__nav,
.kwm-footer__nav,
.kwm-mobile-drawer__nav,
.kwm-widget {
	text-align: start;
}

.kwm-mobile-drawer__panel {
	inset-inline-start: auto;
	inset-inline-end: 0;
	transform: translateX(100%);
}

.kwm-mobile-drawer.is-open .kwm-mobile-drawer__panel {
	transform: translateX(0);
}

.kwm-layout--sidebar-left {
	grid-template-columns: minmax(0, 1fr) 320px;
}

.kwm-layout--sidebar-left .kwm-sidebar {
	order: 2;
}

.kwm-layout--sidebar-left .kwm-layout__content {
	order: 1;
}

.kwm-layout--sidebar-right {
	grid-template-columns: 320px minmax(0, 1fr);
}

.kwm-layout--sidebar-right .kwm-sidebar {
	order: 1;
}

.kwm-layout--sidebar-right .kwm-layout__content {
	order: 2;
}
