html[dir="ltr"] body {
	direction: ltr;
}

html[dir="rtl"] body {
	direction: rtl;
}

html[dir="ltr"] input,
html[dir="ltr"] textarea,
html[dir="ltr"] select,
html[dir="ltr"] .elementor-widget-text-editor,
html[dir="ltr"] .elementor-heading-title,
html[dir="ltr"] .elementor-button-text {
	direction: ltr;
}

html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select,
html[dir="rtl"] .elementor-widget-text-editor,
html[dir="rtl"] .elementor-heading-title,
html[dir="rtl"] .elementor-button-text {
	direction: rtl;
}

body.peet-lang-fa .peet-only-en,
body.peet-lang-en .peet-only-fa {
	display: none !important;
}

.peet-language-switcher {
	display: inline-flex;
	align-items: center;
	gap: 0.65em;
	direction: ltr;
}

.peet-language-switcher--stacked {
	flex-direction: column;
	align-items: flex-start;
}

.peet-language-switcher__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	line-height: 1.2;
	white-space: nowrap;
}

.peet-language-switcher a.peet-language-switcher__item:hover,
.peet-language-switcher a.peet-language-switcher__item:focus {
	text-decoration: underline;
}

.peet-language-switcher__item.is-active {
	font-weight: 700;
}

.peet-language-switcher__item.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
}


/* Automatic floating language switcher. */
.peet-floating-switcher {
	position: fixed;
	z-index: 999999;
	margin: 0;
	font-family: inherit;
}

.peet-floating-switcher--top-left {
	top: 20px;
	left: 20px;
}

.peet-floating-switcher--top-right {
	top: 20px;
	right: 20px;
}

.peet-floating-switcher--bottom-left {
	bottom: 20px;
	left: 20px;
}

.peet-floating-switcher--bottom-right {
	bottom: 20px;
	right: 20px;
}

.peet-language-switcher--floating {
	gap: 4px;
	padding: 5px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
	backdrop-filter: blur(8px);
}

.peet-language-switcher--floating .peet-language-switcher__item {
	min-width: 58px;
	min-height: 36px;
	padding: 7px 12px;
	border-radius: 999px;
	color: #202124;
	font-size: 14px;
	font-weight: 600;
}

.peet-language-switcher--floating .peet-language-switcher__item.is-active {
	background: #202124;
	color: #fff;
}

.peet-language-switcher--floating .peet-language-switcher__item.is-disabled {
	background: transparent;
	color: #777;
}

@media (max-width: 767px) {
	.peet-floating-switcher--top-left,
	.peet-floating-switcher--top-right {
		top: 12px;
	}

	.peet-floating-switcher--bottom-left,
	.peet-floating-switcher--bottom-right {
		bottom: 12px;
	}

	.peet-floating-switcher--top-left,
	.peet-floating-switcher--bottom-left {
		left: 12px;
	}

	.peet-floating-switcher--top-right,
	.peet-floating-switcher--bottom-right {
		right: 12px;
	}

	.peet-language-switcher--floating .peet-language-switcher__item {
		min-width: 48px;
		min-height: 32px;
		padding: 5px 9px;
		font-size: 12px;
	}
}
