// Sidebar
//--------------------------------------------------
@media #{$min-xl} {
    .pxl-sidebar-sticky {
      position: -webkit-sticky;
      position: sticky;
      top: 40px;
    }
    .admin-bar .pxl-sidebar-sticky  {
      top: 72px;
    }
}

.comments-title {
	@include ft_theme_default($ft_theme_default);
	font-size: 35px;
	font-weight: 500;
	color: $link_color;
	margin-bottom: 33px;
	@media #{$max-sm} {
		font-size: 24px;
	}
}
.comment-reply-title {
	font-size: 35px;
	font-weight: 500;
	@include ft_theme_default($ft_theme_default);
	margin-bottom: 23px;
	display: flex;
  	align-items: center;
	@media #{$max-sm} {
		font-size: 24px;
	}
}

.widget .widget-title, .pxl-widget-title {
	font-size: 24px;
	font-style: normal;
	font-weight: 500;
	letter-spacing: -0.48px;
	margin-bottom: 43px;
	color: $link_color;
	@media (max-width: 575px) {
		margin-bottom: 30px;
	}
}

.pxl-sidebar-area {
	.widget {
		margin-bottom: 49px;
		@include border-radius(0);
		font-size: 0;
		position: relative;
		padding: 14px 13px 15px 12px;
		&:last-child {
			margin-bottom: 0;
		}
		&:before {
			content: "";
			position: absolute;
			inset: 1px;
			background-color: rgb(255, 255, 255);
			clip-path: polygon(95% 0px, 100% 20px, 100% 100%, 0px 100%, 0px 0px);
			z-index: -1;
			transition: 0.3s;
		}
		&:after {
			content: "";
			position: absolute;
			top: 0px;
			left: 0px;
			width: 100%;
			height: 100%;
			background-color: rgb(217, 217, 217);
			clip-path: polygon(95% 0px, 100% 20px, 100% 100%, 0px 100%, 0px 0px);
			z-index: -2;
			transition: 0.3s;
		}
		.widget-title {
			font-size: 23px;
			color: #fff;
			font-weight: 500;
			@include ft_theme_default($ft_theme_default);
			line-height: 1.2;
			background-color: $primary_color;
			padding: 19px 20px 22px 27px;
			margin-bottom: 14px;
			clip-path: polygon(96% 0, 100% 22%, 100% 100%, 0 100%, 0 0);
			letter-spacing: 0.1px;
			@media (max-width: 1024px) {
				font-size: 20px;
			}
		}
	}
}

.pxl-sidebar-left {
	.pxl-sidebar-sticky {
		padding-left: 0px;
		
	}
}

.single-post {
	.pxl-sidebar-sticky {
		margin-top: 7px;
	}
}

.widget_search {
	padding: 14px 13px 40px 12px !important;
	&:before {
		clip-path: polygon(95% 0px, 100% 10%, 100% 100%, 0px 100%, 0px 0px) !important;
	}
	&:after {
		clip-path: polygon(95% 0px, 100% 10%, 100% 100%, 0px 100%, 0px 0px) !important;
	}
	.widget-title {
		margin-bottom: 38px !important;
	}
	.search-form {
		padding: 0 27px;
		@media (max-width: 1280px) {
			padding: 0 15px;
		}
	}
	.searchform-wrap {
		position: relative;
		.search-submit{
			height: 55px;
			width: 65px;
			font-weight: 700;
			@include transition(all 300ms linear 0ms);
			top: 50%;
			right: 0;
			@include border-radius(0);
			padding: 0;
			position: absolute;
			color: $link_color;
			z-index: 1;
			font-size: 18px;
			display: inline-flex;
			align-items: center;
			justify-content: center;
			transform: translateY(-50%);
			background-color: unset;
			&:before, &:after {
				display: none;
			}
			i {
                line-height: 1;
                background-color: unset;
                color: $link_color;
                font-size: 18px;
                width: 18px;
                height: 18px;
                svg {
                    path {
                        fill: $link_color;
                    }
                }
            }
			&:hover {
				i {
					color: $primary_color;
				}
			}
		}
	}
	.search-field, .wp-block-search__input {
		background-color: #fff;
		padding-left: 20px;
		height: 55px;
		@include border-radius(0);
		color: #666;
		border: 1px solid #d9d9d9;
		padding-right: 57px;
		font-size: 16px;
		font-style: normal;
		padding-top: 0;
		&:focus {
			border-color: $link_color;
			+ .search-submit {
				border-color: $link_color;
			}
		}
	}
}

.widget_product_categories,
.widget_categories,
.widget_nav_menu,
.widget_pages,
.widget_archive,
.widget_meta,
.widget_recent_entries {
	ul {
		list-style: none;
        margin-bottom: 0;
        padding: 0;
        padding: 0px 26px;
        @media (max-width: 1280px) {
        	padding: 0 15px;
        }
        li {
        	a {
				font-size: 18px;
				font-weight: 500;
				color: $link_color;
				position: relative;
				line-height: 1.2;
				border-bottom: 1px solid #d9d9d9;
				display: block;
				padding: 20.9px 0;
				display: flex;
				align-items: center;
				@include transition(all 0.3s);
				padding-left: 0;
				@media (max-width: 575px) {
					font-size: 16px;
				}
        		&:before {
        			content: '';
        			position: absolute;
        			top: 50%;
        			left: 0;
        			width: 5px;
        			height: 5px;
        			background-color: $primary_color;
        			transform: translateY(-50%);
        			opacity: 0;
        			@include transition(all 0.3s);
        		}
        		&:after {
        			content: '';
        			position: absolute;
        			top: 50%;
        			left: 14px;
        			width: 5px;
        			height: 5px;
        			background-color: $primary_color;
        			transform: translateY(-50%);
        			@include transition(all 0.3s);
        			opacity: 0;
        		}
        		&:hover {
        			padding-left: 30px;
        			&:before, &:after {
        				opacity: 1 !important;
        			}
        		}
        	}
        	.pxl-count {
				font-size: 14px;
				font-style: normal;
				font-weight: 400;
        		position: absolute;
				text-align: center;
				color: #666;
				right: 0;
				top: 50%;
				transform: translate(0, -50%);
				@include transition(all 300ms linear 0ms);
				@media (max-width: 1199px) {
        			font-size: 16px;
        		}
        		@media (max-width: 480px) {
        			font-size: 14px;
        		}
			}
			&:first-child > a {
				border-top: none;
			}
        	&.current-menu-item > a, &.current-cat > a, &.current-cat-parent > a, > a:hover {
        		color: $link_color;
        		&:before {
        			opacity: 0;
        		}
        		&:after {
        			opacity: 1;
        		}
        		.pxl-count {
        			color: $link_color;
        		}
            }
            .sub-menu, .children {
            	margin-top: 15px;
            }
            .children {
            	border: none;
            	padding: 0;
            	padding-left: 15px;
            }
            > .sub-menu {
            	border: none;
            	padding: 0;
            	padding-left: 15px;
            	> li {
            		> a {
            			padding-left: 30px;
            		}
            		> .sub-menu > li {
            			> a {
            				padding-left: 30px;
            			}
            			> .sub-menu > li {
	            			> a {
	            				padding-left: 30px;
	            			}
	            			> .sub-menu > li {
		            			> a {
		            				padding-left: 30px;
		            			}
		            			> .sub-menu > li {
			            			> a {
			            				padding-left: 30px;
			            			}
			            			> .sub-menu > li {
				            			> a {
				            				padding-left: 30px;
				            			}
				            			> .sub-menu > li {
					            			> a {
					            				padding-left: 30px;
					            			}
					            			> .sub-menu > li {
						            			> a {
						            				padding-left: 30px;
						            			}
						            			> .sub-menu > li {
							            			> a {
							            				padding-left: 30px;
							            			}
							            			> .sub-menu > li {
								            			> a {
								            				padding-left: 30px;
								            			}
								            		}
							            		}
						            		}
					            		}
				            		}
			            		}
		            		}
	            		}
            		}
            	}
            }
        }
        > li:last-child {
        	margin-bottom: 0;
        	a {
        		border-bottom: none;
        	}
        }
	}
}

.widget_tag_cloud {
	&:before, &:after {
		clip-path: polygon(95% 0px, 100% 10%, 100% 100%, 0px 100%, 0px 0px) !important;
	}
	.tagcloud {
		display: flex;
		flex-wrap: wrap;
		padding: 7px 20px 20px 21px;
		@media (max-width: 1280px) {
			padding: 7px 15px 20px 15px;
		}
	}
	a {
		font-size: 16px !important;
		color: #666666;
		margin: 5px;
		position: relative;
		margin-bottom: 0px;
		padding-right: 15px;
		&:before {
			content: '';
			position: absolute;
			height: 1px;
			width: 0;
			background-color: $link_color;
			bottom: 0;
			left: 0;
			transform-origin: left;
		}
		&:after {
			content: '/';
			position: absolute;
			right: 0;
			top: 52%;
			transform: translate(0,-50%);
		}
		&:last-child {
			margin-right: 0;
			&:after {
				display: none;
			}
		}
		&:hover {
			color: $link_color;
			&:before {
				width: 85%;
			}
		}
	}
}

.widget_pxl_recent_posts {
	.pxl--items {
		padding: 23px 27px 26px 27px;
		@media (max-width: 1280px) {
			padding: 20px 15px 25px 15px;
		}
        .pxl--item {
        	display: inline-flex;
  			align-items: center;
        	margin-bottom: 25px;
        	@include transition(all 0.3s);
        	width: 100%;
        	position: relative;
        	border-bottom: 1px solid #d9d9d9;
        	padding-bottom: 26px;
        	&:last-child {
        		margin-bottom: 0;
        		padding-bottom: 0;
        		border-bottom: none;
        	}
        	.pxl-item--img {
        		width: 76px;
        		min-width: 76px;
				height: 82px;
        		margin-right: 20px;
        		@include transition(all 0.3s);
        		position: relative;
        		overflow: hidden;
        		img {
					transform: scale(1);
					@include transition(all 0.3s);
    			}
        	}
        	.pxl-item--holder {
        		.pxl-item--date {
					font-size: 14px;
					margin-bottom: 7px;
					color: #666666;
        		}
        		.pxl-item--title {
					font-size: 16px;
					font-style: normal;
					font-weight: 500;
        			margin-bottom: 0;
        			overflow: hidden;
					text-overflow: ellipsis;
					-webkit-line-clamp: 2;
					display: -webkit-box;
					-webkit-box-orient: vertical;
        			a {
        				@include transition(all 0.3s);
        				color: $link_color;
        				line-height: 1.5;
        				display: block;
        				&:hover {
        					color: $primary_color;
        				}
        			}
        		}
        	}
        	&:hover {
        		.pxl-item--img {
        			img {
        				transform: scale(1.1);
        			}
        		}
        	}
        }
	}
}

#pxl_elementor_box-3 {
	&:before, &:after {
		clip-path: polygon(95% 0px, 100% 8%, 100% 100%, 0px 100%, 0px 0px) !important;
	}
}

.widget_pxl_elementor_box {
	position: relative;
	overflow: hidden;
	.elementor {
		position: relative;
		z-index: 1;
	}
	.widget-title {
		display: none;
	}
	.pxl-image-single {
		.pxl-item--inner {
			clip-path: polygon(95% 0, 100% 7%, 100% 100%, 0 100%, 0 0) !important;
		}
	}
	.pxl-list {
		&.style1 {
			.pxl-item-link {
				position: relative;
				&:before {
					content: '';
					height: 1px;
					background-color: $link_color;
					width: 0;
					bottom: 0;
					left: 0;
					transform-origin: left;
					position: absolute;
				}
				&:hover {
					&:before {
						width: 100%;
					}
				}
			}
		}
	}
}

.gallery {
    margin: -10px -5px 0 -5px !important;
    display: flex;
    flex-wrap: wrap;
    .gallery-item {
        padding: 0 5px !important;
        margin: 24px 0 0 !important;
        img {
        	border: none !important;
        }
    }
    &.gallery-columns-2 .gallery-item {
        width: 50% !important;
    }
    &.gallery-columns-3 .gallery-item {
        width: 33.33% !important;
    }
    &.gallery-columns-4 .gallery-item {
        width: 25% !important;
    }
    &.gallery-columns-5 .gallery-item {
        width: 20% !important;
    }
}
#pxl-content-main {
	.gallery {
		margin: -5px -12px 38px -12px !important;
		.gallery-item {
			padding: 0 12px !important;
			margin: 24px 0 0 !important;
		}
	}
}

.widget_media_gallery, .elementor-widget-wp-widget-media_gallery, .elementor-widget-image-gallery {
    .gallery {
        margin: -10px -5px 0 -5px;
        .gallery-item {
            padding: 0 5px;
            margin-top: 10px !important;
            margin-bottom: 0;
            img {
                @include border-radius(0px);
                width: 100%;
                border: none !important;
            }
            a {
                display: block;
				position: relative;
                &:before {
                    content: '';
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    background-color: rgba(#000, 0.67);
                    @include transition(all 250ms linear 0ms);
                    opacity: 0;
                    z-index: 1;
                }
                &:after {
                    content: "\f12c";
                    font-size: 15px;
                    font-family: "Caseicon";
                    color: rgba(#fff, 1);
                    z-index: 2;
                    position: absolute;
                    left: 50%;
                    top: 50%;
                    @include transform(translate(-50%, -50%));
                    @include transition(all 250ms linear 0ms);
                    opacity: 0;
                    font-weight: 400;
                }
                &:hover {
                    &:before, &:after {
                        opacity: 1;
                    }
                }
            }
        }
    }
}

.elementor-lightbox {
	.swiper-container {
		.elementor-lightbox-image {
			width: auto;
			height: auto;
		}
		.swiper-slide {
			background-color: transparent;
		}
	}
}

.pxl-gallery {
	margin: -8px -15px 30px -15px;
	display: flex;
	flex-wrap: wrap;
	img {
		width: 100%;
	}
	.pxl--item {
		padding: 30px 15px 0 15px;
	}
	.pxl--item-inner {
		@include border-radius(6px);
		overflow: hidden;
		position: relative;
		&.video-active:before {
			@extend .pxl-spill;
			background-color: rgba(#1b1b1b, 0.5);
		}
		.pxl-btn-video {
			position: absolute;
			top: 50%;
			left: 50%;
			@include transform(translate(-50%, -50%));
			z-index: 99;
		}
	}
	&.gallery-2-columns .pxl--item {
        width: 50%;
        @media #{$max-xs} {
        	width: 100%;
        }
    }
    &.gallery-3-columns .pxl--item {
        width: 33.33%;
        @media #{$max-xs} {
        	width: 100%;
        }
    }
    &.gallery-4-columns .pxl--item {
        width: 25%;
        @media #{$max-sm} {
        	width: 50%;
        }
        @media #{$max-xs} {
        	width: 100%;
        }
    }
    &.gallery-5-columns .pxl--item {
        width: 20%;
        @media #{$max-sm} {
        	width: 50%;
        }
        @media #{$max-xs} {
        	width: 100%;
        }
    }
    &.masonry-style1 {
    	.pxl--item-inner {
    		@include border-radius(0px);
    	}
    }
}

.calendar_wrap {
	caption {
		margin-bottom: 10px;
	}
}

.widget_recent_comments {
	ul, ol {
		list-style: none;
		font-size: 14px;
		line-height: 24px;
		color: #080808;
		font-weight: 500;
		
		@extend .ft-theme-default;
		a {
			color: inherit;
			&:hover {
				color: $primary_color;
			}
		}
		li + li {
			margin-top: 18px;
		}
	}
}

.widget_rss {
	.rss-widget-title {
		color: inherit;
	}
	ul, ol {
		margin: 0;
		list-style: none;
	}
	.rsswidget {
		display: block;
		font-size: 14px;
		line-height: 24px;
		color: $link_color;
		font-weight: 500;
		
		@extend .ft-theme-default;
		&:hover {
			color: $primary_color;
		}
	}
	.rss-date {
		font-size: 12px;
		display: block;
		margin-top: 4px;
		margin-bottom: 10px;
	}
	li + li {
		margin-top: 5px;
	}
	cite {
		display: block;
		margin-top: 4px;
		color: $primary_color;
	}
}

.widget_block {
	ul, ol {
		margin-bottom: 0;
		padding: 0;
		list-style: none;
	}
	.wp-block-search__label, .wp-block-group__inner-container > h2 {
		font-size: 20px;
		font-style: normal;
		font-weight: 500;
		margin-bottom: 29px;
		border-bottom: 1px solid #dedede;
		letter-spacing: 0.03px;
		padding-bottom: 21px;
		position: relative;
		display: block;
		color: $link_color;
		&:before {
			content: '';
			position: absolute;
			width: 30px;
			height: 1px;
			background-color: $primary_color;
			bottom: -1px;
			left: 0;
		}
	}
	.wp-block-latest-posts__list, .wp-block-latest-comments {
		font-size: 14px;
		line-height: 1.4;
		color: #080808;
		font-weight: 500;
		
		@extend .ft-theme-default;
		a {
			color: inherit;
			&:hover {
				color: $primary_color;
			}
		}
		li + li {
			margin-top: 18px;
		}
	}
	.wp-block-latest-comments {
		color: #666;
		a {
			color: #080808;
			&:hover {
				color: $primary_color;
			}
		}
	}
	&.widget_search {
		.wp-block-search__inside-wrapper  {
			position: relative;
			.wp-block-search__button {
				height: 54px;
				width: 54px;
				font-weight: 700;
				background-color: $primary_color;
				top: 50%;
				right: 0;
				padding: 0;
				position: absolute;
				color: #fff;
				z-index: 1;
				font-size: 14px;
				display: inline-flex;
				align-items: center;
				justify-content: center;
				transform: translateY(-50%);
				padding: 0;
				line-height: 54px;
				z-index: 1;
				font-size: 0px;
				@include box-shadow(none);
				&:before {
					content: "\f12c";
					font-family: Caseicon;
					font-size: 14px;
					position: absolute;
					top: 50%;
					left: 50%;
					@include transform(translate(-50%, -50%));
				}
				&:hover {
					border-color: $primary_color;
					background-color: $primary_color;
					color: #fff;
				}
			}
			.wp-block-search__input  {
				border-color: #ececf0;
				color: #222222;
				padding-left: 15px;
			}
		}
	}
}

.widget_archive .nice-select ul.list {
	max-width: 320px;
}

.wp-calendar-table {
	background-color: #fff;
}

.pxl-wg-categories {
	margin: -20px -10px 0 -10px;
	display: flex;
	flex-wrap: wrap;
	.pxl-category {
		padding: 0 10px;
		margin-top: 20px;
	}
	.pxl-category--inner {
		min-height: 90px;
		position: relative;
		z-index: 1;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		overflow: hidden;
		@media #{$max-xs} {
			min-height: 120px;
		}
		&:before {
			content: '';
			@extend .pxl-spill;
			background-color: rgba(#000, 0.36);
			z-index: 12;
		}
		a {
			@extend .pxl-spill;
			z-index: 99;
		}
		span {
			color: #fff;
			font-size: 16px;
			font-weight: 700;
			@extend .ft-theme-default;
			position: relative;
			z-index: 88;
		}
		.pxl-category--img {
			z-index: 11;
			@extend .pxl-spill;
			@include transition(all 0.5s ease);
			transform: scale(1.01,1.01);
		}
		&:hover .pxl-category--img {
			-webkit-transform: scale(1.07,1.07);
			transform: scale(1.07,1.07);
		}
	}
	&.columns-2 .pxl-category {
		width: 50%;
		@media #{$max-xs} {
			width: 100%;
		}
	}
}

.pxl-contact-info-widget {
	border-radius: 5px;
	overflow: hidden;
	position: relative;
	z-index: 1;
	text-align: center;
	padding: 62px 30px;
	font-weight: 500;
	color: rgba(#fff, 0.8);
	.pxl-phone--number {
		margin-bottom: 16px;
		color: #fff;
		font-size: 34px;
		font-weight: 800;
		@extend .ft-theme-default;
		@media #{$max-lg} {
			font-size: 28px;
		}
	}
	.pxl-item--icon {
		height: 62px;
		width: 62px;
		background-color: red;
		border-radius: 62px;
		font-size: 34px;
		display: inline-flex;
		justify-content: center;
		align-items: center;
		position: relative;
		z-index: 1;
		margin-bottom: 23px;
		&:before {
			content: '';
			background-color: #020626;
			position: absolute;
			top: 3px;
			right: 3px;
			bottom: 3px;
			left: 3px;
			border-radius: 100%;
			z-index: -1;
		}
		@extend .bg-gradient;
		i {
			@extend .text-gradient;
			&.active {
				animation: pxl_zigzag 0.8s ease-out infinite;
	            -webkit-animation: pxl_zigzag 0.8s ease-out infinite;
	        }
		}
	}
	.pxl-phone--link {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		z-index: 99;
	}
	&:before {
		z-index: -1;
		@extend .pxl-spill;
		background-color: rgba(#020626, 0.85);
	}
}

body.rtl {
	.widget {
		.widget-title {
			padding-left: 0;
			padding-right: 42px;
			&:before {
				left: auto;
				right: 0;
			}
		}
	}
}