/**
 * @package Helix Ultimate Framework
 * @author JoomShaper https://www.joomshaper.com
 * @copyright Copyright (c) 2010 - 2019 JoomShaper
 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or Later
*/

@import 'bs4-rtl';

body.rtl {
	text-align: right;

	.sp-scroll-up {
		right: auto;
		left: 30px;
	}

	.article-details {
		.link-edit-article {
			right: auto;
			left: 0;
		}
	}

	// Menu
	.sp-megamenu-parent {
		float: left;

		>li {

			&.sp-has-child>a:before,
			&.sp-has-child>span:before {
				font-family: "Font Awesome 5 Free";
    			font-weight: 900;
				content: "\f107";
				float: left;
				margin-right: 7px;
			}

			.sp-menu-badge {
				&.sp-menu-badge-right {
					margin-right: 7px;
				}

				&.sp-menu-badge-left {
					margin-left: 7px;
				}
			}
		}

		.sp-dropdown {
			.sp-dropdown-items {
				.sp-has-child>a:after {
					font-family: "Font Awesome 5 Free";
    				font-weight: 900;
					content: "\f104";
					float: left;
					margin-right: 7px;
				}
			}

			&.sp-menu-center {
				margin-right: 45px;
			}

			&.sp-dropdown-main {
				&.sp-menu-right {
					right: 0;
				}

				&.sp-menu-full {
					right: auto;
					left: 0;
				}

				&.sp-menu-left {
					left: 0;
				}
			}

			&.sp-dropdown-sub {
				right: 100%;
			}
		}
	}

	#offcanvas-toggler {
		&.offcanvas-toggler-right {
			float: left;
			margin-right: 20px;
		}

		&.offcanvas-toggler-left {
			float: right;
			margin-left: 20px;
		}
	}

	&.offcanvs-position-left {
		.body-wrapper {
			right: 0;
		}

		.offcanvas-menu {
			right: -$offcanvas_width;
		}

		&.offcanvas-active {
			.offcanvas-menu {
				right: 0;
			}

			.body-wrapper {
				right: $offcanvas_width;
			}
		}
	}

	&.offcanvs-position-right {
		.body-wrapper {
			left: 0;
		}

		.offcanvas-menu {
			left: -$offcanvas_width;
		}

		&.offcanvas-active {
			.offcanvas-menu {
				left: 0;
			}

			.body-wrapper {
				left: $offcanvas_width;
			}
		}
	}

	.close-offcanvas {
		left: 15px;
	}

	.offcanvas-menu {
		.offcanvas-inner {
			.sp-module {

				ul {
					>li {
						&.menu-parent {

							>a,
							>.menu-separator {
								>.menu-toggler {
									left: 0;
								}
							}
						}

						ul {
							margin-right: 10px;
						}
					}
				}
			}
		}
	}

	/***************************************************************************/
	/*****************************    Themis    *******************************/
	/*************************************************************************/

	//Global Start
	.sppb-text-left {
		text-align: right;
	}

	.sppb-text-right {
		text-align: left;
	}

	.sppb-nav-custom {
		float: right;
	}

	.sp-select .sp-select-result {
		text-align: right;
	}

	.sp-select .sp-select-result i.fa {
		float: left;
	}

	.pull-left {
		float: right !important;
	}

	.sppb-media>.pull-left {
		margin-right: 0;
		margin-left: 15px;
	}

	.speasyimagegallery-album-meta>span {
		float: right;
	}

	.form-check {
		padding-left: 0;
		padding-right: 1.25rem;
	}

	.login .btn-secondary,
	.logout .btn-secondary,
	.registration .btn-secondary {
		margin-left: 0;
		margin-right: 10px;
	}

	.sp-slider-content-align-left,
	.sp-slider-image-align-left {
		text-align: right;
	}

	.sppb-addon-sp-slider .sp-slider-content-align-left .sppb-sp-slider-image,
	.sppb-addon-sp-slider .sp-slider-content-align-left .sppb-sp-slider-text,
	.sppb-addon-sp-slider .sp-slider-content-align-left .sppb-sp-slider-title {
		margin-right: 0 !important;
		margin-left: auto !important;
	}

	.fa-long-arrow-right:before {
		content: "\f177";
	}

	.owl-carousel {
		direction: ltr;
	}

	.fn-next:before {
		content: "\e936";
	}

	.fa-angle-double-right:before {
		content: "\f100";
	}

	.pull-right {
		float: left !important;
	}

	//Global End

	.icon-top-wrapper {
		margin: 0 25px 0 0;
	}

	.top-search-wrapper i.search-open-icon {
		text-align: left;
	}

	.hero-contact-info {
		.pull-left {
			margin-right: 5px;
			margin-left: 15px;
		}
	}

	.help-list .sppb-icon {
		left: inherit;
		right: 0;
	}

	.help-list .sppb-feature-box-title {
		padding-left: 0;
		padding-right: 33px;
	}

	.fun-fact-inner:after {
		right: inherit;
		left: -15px;
	}

	.top-search-input-wrap .search-bottom-part h3:before {
		padding-right: 0;
		padding-left: 20px;
		content: "\f177";
	}

	.portfolio-item-summary .sppb-addon-content {
		padding-left: 0;
		padding-right: 15px;
		border-left: 0;
		border-right: 1px solid $link_color;
	}

	.blockquote {
		border-left: 0;
		border-right: 5px solid $link_color;
	}

	.portfolio-details-progress .sppb-progress-label {
		text-align: left;
	}

	.sppb-progress-bar {
		float: right;
	}

	.portfolio-details-list .list ul li:after {
		left: inherit;
		right: 0;
	}

	.portfolio-details-list .list ul li {
		padding-left: 0;
		padding-right: 25px;
	}

	.sppb-addon-form-builder .sppb-form-check-label::before {
		left: inherit;
		right: 0;
	}

	.sppb-form-check {
		padding-left: 0;
		padding-right: 18px;
	}

	.sppb-addon-form-builder .sppb-form-check .sppb-form-check-label {
		margin-left: 0;
		margin-right: 5px;
	}

	.sppb-accordion-icon-position-right .sppb-accordion-icon-wrap {
		float: left;
	}

	.sppb-panel-heading {
		padding: 10px 15px 10px 30px;
	}

	.sppb-nav-custom {
		padding-right: 0 !important;
		;
		padding-left: 30px;
	}

	.sppb-section .service-tab .custom-tab .sppb-nav li {
		border-right: 0;
		border-left: 1px solid rgba(200, 205, 220, 0.3);
	}

	.sppb-nav-custom>li.active>a {
		border-width: 0 0 0 3px !important;
	}

	.sppb-tab-icon {
		margin: 0px 0px 0px 15px !important;
	}

	.sppb-tab-custom-content {
		padding-left: 0px !important;
		padding-right: 30px;
	}

	.sppb-section .price-list-item .sppb-addon-title:before {
		left: inherit;
		right: 10px;
	}

	.sppb-section .price-list-item .sppb-addon-title {
		padding-right: 0;
		padding-left: 10px;
	}

	.sppb-section .price-box .sppb-pricing-features li:before {
		float: right;
		margin-right: 0;
		margin-left: 10px;
	}

	.appointment-step .sppb-addon-content {
		border-left: 0;
		border-right: 1px solid #c8cddc;
	}

	.article-info>span.published {
		left: inherit;
		right: 25px;
	}
	.sppb-pricing-box .sppb-pricing-header .sppb-pricing-title {
		text-align:left;
	}
	#sp-left .sp-module .sppb-icons-group-list li:not(:last-child), #sp-right .sp-module .sppb-icons-group-list li:not(:last-child) {
		margin-left: 30px;
		margin-right: 0px;
	}

	#sp-bottom .sp-module .sppb-icons-group-list li:last-child a{
		padding-right: 30px !important;
	}
	.fun-fact-inner:after, .number-item:after {
		left: -15px;
		right: auto;
	}
	#users-profile-core, #users-profile-params {
		.list-group{
			padding-right: 0px;
		}
	}
	&.blog-v2 .blog .article-list .article .article-body {
		padding: 0px 0px 0px 70px;
	}
}

@media (max-width: 991px){
	body.rtl .sppb-section .service-tab .custom-tab .sppb-nav li {
    display: inline-block;
	border-left:0px;
	}
	body.rtl.blog-v2 .blog .article-list .article .article-body {
		padding: 0px 0px 0px 0px;
	}
}

@media(max-width:767px) {

	//offcanvas menu 
	body.rtl.offcanvs-position-left .offcanvas-menu {
		right: -100%;
	}

	body.rtl.offcanvs-position-left.offcanvas-active .body-wrapper {
		right: 0px;
	}
}