/*
 * Enfold frontend RTL enhancements
 */

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

html[dir="rtl"] .container,
html[dir="rtl"] .template-page,
html[dir="rtl"] .entry-content,
body.rtl .container,
body.rtl .template-page,
body.rtl .entry-content {
	direction: rtl;
}

html[dir="rtl"] .flex_column,
html[dir="rtl"] .av_one_full,
html[dir="rtl"] .av_one_half,
html[dir="rtl"] .av_one_third,
html[dir="rtl"] .av_two_third,
html[dir="rtl"] .av_one_fourth,
html[dir="rtl"] .av_three_fourth,
body.rtl_columns .flex_column {
	text-align: right;
}

html[dir="rtl"] #top .input-text,
html[dir="rtl"] #top input[type="text"],
html[dir="rtl"] #top input[type="email"],
html[dir="rtl"] #top input[type="password"],
html[dir="rtl"] #top textarea,
html[dir="rtl"] #top select {
	text-align: right;
	direction: rtl;
}

html[dir="rtl"] .avia_textblock,
html[dir="rtl"] .av-special-heading,
html[dir="rtl"] .av_textblock_section {
	text-align: right;
}

html[dir="rtl"] .av-special-heading.modern-centered,
html[dir="rtl"] .av-special-heading.elegant-centered,
html[dir="rtl"] .av-special-heading.classic-quote:not(.classic-quote-left):not(.classic-quote-right) {
	text-align: center;
}

html[dir="rtl"] .av-special-heading.modern-right,
html[dir="rtl"] .av-special-heading.classic-quote-right {
	text-align: right;
}

html[dir="rtl"] .av-special-heading.classic-quote-left,
html[dir="rtl"] .av-special-heading.modern-quote:not(.modern-centered):not(.modern-right) {
	text-align: left;
}

html[dir="rtl"] .av-special-heading.modern-centered .av-special-heading-tag,
html[dir="rtl"] .av-special-heading.modern-right .av-special-heading-tag,
html[dir="rtl"] .av-special-heading.elegant-centered .av-special-heading-tag,
html[dir="rtl"] .av-special-heading.classic-quote .av-special-heading-tag,
html[dir="rtl"] .av-special-heading.blockquote .av-special-heading-tag {
	float: none;
}

html[dir="rtl"] .av-masonry-entry,
html[dir="rtl"] .av-catalogue-item,
html[dir="rtl"] .avia-content-slider,
html[dir="rtl"] .avia-testimonial,
html[dir="rtl"] .avia-icon-list-item {
	direction: rtl;
	text-align: right;
}

html[dir="rtl"] .avia-button,
html[dir="rtl"] .avia-button-wrap {
	direction: rtl;
}

html[dir="rtl"] .avia-button-wrap.avia-button-left {
	text-align: left;
}

html[dir="rtl"] .avia-button-wrap.avia-button-center {
	text-align: center;
}

html[dir="rtl"] .avia-button-wrap.avia-button-right {
	text-align: right;
}

/* ALB element alignment — override column-level text-align inheritance */
html[dir="rtl"] body .av-align-left {
	text-align: left;
}

html[dir="rtl"] body .av-align-center {
	text-align: center;
}

html[dir="rtl"] body .av-align-right {
	text-align: right;
}

html[dir="rtl"] .avia-image-container.avia-align-left {
	float: left;
}

html[dir="rtl"] .avia-image-container.avia-align-right {
	float: right;
}

html[dir="rtl"] .avia-image-container.avia-align-center {
	display: block;
	float: none;
	clear: both;
	width: 100%;
	text-align: center;
}

html[dir="rtl"] .av_font_icon.avia-icon-pos-left {
	text-align: left;
}

html[dir="rtl"] .av_font_icon.avia-icon-pos-center {
	text-align: center;
}

html[dir="rtl"] .av_font_icon.avia-icon-pos-right {
	text-align: right;
}

html[dir="rtl"] .av-lottie-animation-container.avia-align-left {
	text-align: left;
}

html[dir="rtl"] .av-lottie-animation-container.avia-align-center {
	text-align: center;
}

html[dir="rtl"] .av-lottie-animation-container.avia-align-right {
	text-align: right;
}

html[dir="rtl"] .avia-buttonrow-wrap.avia-buttonrow-left {
	text-align: left;
}

html[dir="rtl"] .avia-buttonrow-wrap.avia-buttonrow-center {
	text-align: center;
}

html[dir="rtl"] .avia-buttonrow-wrap.avia-buttonrow-right {
	text-align: right;
}

html[dir="rtl"] .sidebar,
html[dir="rtl"] #main {
	direction: rtl;
}

html[dir="rtl"] .pagination,
html[dir="rtl"] .page-nav {
	direction: rtl;
}

html[dir="rtl"] .breadcrumb,
html[dir="rtl"] .avia-breadcrumbs {
	direction: rtl;
	text-align: right;
}

html[dir="rtl"] .av-toggle-title,
html[dir="rtl"] .toggle_content {
	text-align: right;
	direction: rtl;
}

html[dir="rtl"] .av-tab-section-tab-title-container,
html[dir="rtl"] .av-tab-section-outer-container {
	direction: rtl;
}

html[dir="rtl"] .av-magazine-tabs,
html[dir="rtl"] .av-magazine-top-title {
	text-align: right;
}

html[dir="rtl"] .av-form-label,
html[dir="rtl"] .av-form-field {
	text-align: right;
}

html[dir="rtl"] .av-social-sharing-box,
html[dir="rtl"] .av-share-box ul {
	direction: rtl;
}

html[dir="rtl"] .av-share-box ul li {
	float: right;
}

html[dir="rtl"] .comment-entry,
html[dir="rtl"] .comment-meta,
html[dir="rtl"] .comment-text {
	text-align: right;
	direction: rtl;
}

html[dir="rtl"] .template-blog .blog-meta,
html[dir="rtl"] .entry-content-header {
	text-align: right;
}

html[dir="rtl"] .iconbox_top .entry-content-header,
html[dir="rtl"] .iconbox_top .iconbox_content_title,
html[dir="rtl"] .iconbox_top .iconbox_content_container {
	text-align: center;
}

html[dir="rtl"] .av-special-heading-tag,
html[dir="rtl"] .av-subheading {
	text-align: right;
}

html[dir="rtl"] .av-catalogue-content,
html[dir="rtl"] .av-catalogue-title {
	text-align: right;
}

html[dir="rtl"] .av-timeline-entry,
html[dir="rtl"] .av-timeline-content {
	direction: rtl;
	text-align: right;
}

html[dir="rtl"] .av-notification,
html[dir="rtl"] .avia-promocontent {
	text-align: right;
	direction: rtl;
}

html[dir="rtl"] .av-search-form,
html[dir="rtl"] .av-search-result {
	direction: rtl;
	text-align: right;
}

html[dir="rtl"] .av-progressbar-title,
html[dir="rtl"] .av-progressbar-bar {
	direction: rtl;
}

html[dir="rtl"] .av-promobox-content {
	text-align: right;
}

html[dir="rtl"] .av-buttonrow,
html[dir="rtl"] .av-buttonrow-item {
	direction: rtl;
}

html[dir="rtl"] .av-masonry-sort,
html[dir="rtl"] .av-masonry-pagination {
	direction: rtl;
}

html[dir="rtl"] .av-team-member,
html[dir="rtl"] .av-team-member-name,
html[dir="rtl"] .av-team-member-description {
	text-align: right;
}

html[dir="rtl"] .av-testimonial_inner,
html[dir="rtl"] .av-testimonial-name {
	text-align: right;
}

html[dir="rtl"] .av-numbers-content,
html[dir="rtl"] .av-numbers-title {
	text-align: right;
}

html[dir="rtl"] .av-tab-section-tab-title {
	float: right;
}

html[dir="rtl"] .av-tab-section-slides-inner {
	direction: rtl;
}

html[dir="rtl"] .av-table,
html[dir="rtl"] .av-table table {
	direction: rtl;
}

html[dir="rtl"] .av-table th,
html[dir="rtl"] .av-table td {
	text-align: right;
}

/* -------------------------------------------------------------------------
   WooCommerce single product
   ------------------------------------------------------------------------- */

html[dir="rtl"] .single-product-main-image,
body.rtl .single-product-main-image,
body.enfold-force-rtl .single-product-main-image {
	float: right;
	margin-left: 50px;
	margin-right: 0;
}

html[dir="rtl"] .single-product-summary,
body.rtl .single-product-summary,
body.enfold-force-rtl .single-product-summary {
	float: none;
	overflow: hidden;
}

html[dir="rtl"] #top .entry-content .woocommerce .single-product .single-product-summary,
body.rtl #top .entry-content .woocommerce .single-product .single-product-summary {
	margin-left: 0;
	margin-right: 10px;
}

html[dir="rtl"] .single-product .single-product-main-image .avia-wc-30-product-gallery-lightbox,
body.rtl .single-product .single-product-main-image .avia-wc-30-product-gallery-lightbox {
	left: auto;
	right: 15px;
}

html[dir="rtl"] #top .single-product-main-image .onsale,
body.rtl #top .single-product-main-image .onsale {
	left: auto;
	right: 7px;
}

@media only screen and (max-width: 767px) {
	html[dir="rtl"] .responsive .single-product-main-image,
	body.rtl.responsive .single-product-main-image {
		margin: 0 0 0 30px;
	}

	html[dir="rtl"] .responsive .single-product-summary,
	body.rtl.responsive .single-product-summary {
		clear: both;
	}
}
