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

.pxl-sidebar-area .widget {
	margin-bottom: 30px;
	padding: 35px 30px 40px;
	background-color: #fff;
	@include border-radius(10px);
	@include box-shadow(0 10px 60px rgba(#8997BA, 0.15));
	@media #{$max-sm} {
		padding: 30px 22px 30px;
	}
	&:last-child {
		margin-bottom: 0;
	}
}

.widget-title, .comment-reply-title, .comments-title, .pxl-author-info .author-name {
	font-size: 20px;
	margin-bottom: 27px;
	position: relative;
	padding-bottom: 20px;
	&:before {
		content: '';
		position: absolute;
		bottom: 0;
		left: 0;
		width: 30px;
		height: 3px;
		border-radius: 3px;
		background-color: $primary_color;
	}
}
.comment-reply-title {
	margin-bottom: 8px;
}

.comments-title {
	margin-bottom: 38px;
}

.comment-reply-title, .comments-title {
	font-size: 30px;
	&:before {
		width: 50px;
	}
}

.search-form {
	position: relative;
	.search-submit {
		height: 58px;
		width: 58px;
		background: $primary_color;
		top: 0;
		right: 0;
		@include border-radius(5px);
		padding: 0;
		position: absolute;
		color: #fff;
		line-height: 58px;
		z-index: 1;
		font-size: 17px;
		font-weight: 400;
		@include box-shadow(0 10px 20px #{'rgba(var(--primary-color-rgb),0.2)'});
		&:hover {
			background-color: $secondary_color;
			color: #fff;
			box-shadow: none;
		}
	}
	.search-field {
		color: #5D666F;
		border: none;
		background-color: #F6F6F6;
		height: 58px;
		padding: 0 20px;
		@include border-radius(5px);
	}
}

.widget_search {
	&.widget {
		padding: 0;
		box-shadow: none;
	}
	.searchform-wrap {
		position: relative;
	}
}

.widget_product_categories,
.widget_categories,
.widget_nav_menu,
.widget_pages,
.widget_archive,
.widget_meta,
.widget_recent_entries {
	.pxl-count {
		&:before {
			content: "(";
		}
		&:after {
			content: ")";
		}
	}
	&.widget {
		padding-bottom: 31px;
	}
	ul {
		list-style: none;
        margin-bottom: 0;
        padding: 0;
        li {
        	a {
        		background-color: #ffffff;
        		color: #5D666F;
        		display: block;
        		padding: 9px 0;
        		position: relative;
        		font-size: 16px;
        		border-bottom: 1px dotted #{'rgba(var(--primary-color-rgb),0.2)'};
        	}
        	&.current-menu-item > a, &.current-cat > a, &.current-cat-parent > a, > a:hover {
                color: $primary_color;
            }
            > .sub-menu {
            	> li {
            		> a {
            			padding-left: 14px;
            		}
            		> .sub-menu > li {
            			> a {
            				padding-left: 19px;
            			}
            			> .sub-menu > li {
	            			> a {
	            				padding-left: 24px;
	            			}
	            			> .sub-menu > li {
		            			> a {
		            				padding-left: 28px;
		            			}
		            			> .sub-menu > li {
			            			> a {
			            				padding-left: 32px;
			            			}
			            			> .sub-menu > li {
				            			> a {
				            				padding-left: 36px;
				            			}
				            			> .sub-menu > li {
					            			> a {
					            				padding-left: 41px;
					            			}
					            			> .sub-menu > li {
						            			> a {
						            				padding-left: 46px;
						            			}
						            			> .sub-menu > li {
							            			> a {
							            				padding-left: 51px;
							            			}
							            			> .sub-menu > li {
								            			> a {
								            				padding-left: 56px;
								            			}
								            		}
							            		}
						            		}
					            		}
				            		}
			            		}
		            		}
	            		}
            		}
            	}
            }
        }
	}
	.widget-content > ul > li:last-child > a {
		border-bottom: none;
	}
}

.widget_tag_cloud, .widget_product_tag_cloud {
	.tagcloud {
		display: flex;
		flex-wrap: wrap;
	}
	a {
		font-size: 12px !important;
		color: $primary_color;
		padding: 0 12px;
		line-height: 32px;
		position: relative;
		z-index: 1;
		display: inline-block;
		margin-right: 4px;
		margin-bottom: 4px;
		background-color: #{'rgba(var(--primary-color-rgb),0.06)'};
		border: none;
		text-transform: uppercase;
		@include border-radius(5px);
		letter-spacing: 0.06em;
		&:hover {
			color: #fff;
			background-color: $primary_color;
			&:before {
				opacity: 0;
			}
			&:after {
				opacity: 1;
			}
		}
	}
}

.widget_pxl_recent_posts {
	.pxl-item--img {
		width: 130px;
		min-width: 130px;
		@media #{$max-lg} {
			width: 80px;
			min-width: 80px;
		}
		img {
			@include border-radius(5px);
		}
	}
	.pxl-item--title {
		font-size: 16px;
		line-height: 1.125;
		margin-bottom: 0;
		a {
			color: inherit;
			&:hover {
				color: inherit;
			}
		}
	}
	.pxl-item--date {
		font-size: 12px;
		text-transform: uppercase;
		color: $primary_color;
		margin-top: 8px;
	}
	.pxl--item {
		display: flex;
		flex-wrap: nowrap;
		border-bottom: 1px solid rgba(#AEB6C2, 0.15);
		margin-bottom: 24px;
		padding-bottom: 24px;
		&:last-child {
			border-bottom: none;
			margin-bottom: 0;
			padding-bottom: 0;
		}
	}
}

.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: 14px;
                    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;
                }
                &: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 42px -15px;
	display: flex;
	flex-wrap: wrap;
	img {
		width: 100%;
	}
	.pxl--item {
		padding: 30px 15px 0 15px;
	}
	.pxl--item-inner {
		overflow: hidden;
		position: relative;
		&.video-active:before {
			@extend .pxl-spill;
			background-color: rgba(#1b1b1b, 0.5);
		}
		.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: 16px;
		line-height: 24px;
		color: #080808;
		font-weight: 700;
		@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: 16px;
		line-height: 24px;
		color: #080808;
		font-weight: 700;
		@extend .ft-theme-default;
	}
	.rss-date {
		font-size: 14px;
		display: block;
		margin-top: 4px;
		margin-bottom: 10px;
	}
	li + li {
		margin-top: 34px;
	}
	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: 22px;
		margin-bottom: 27px;
		position: relative;
		color: #080808;
		font-weight: 700;
		@extend .ft-theme-default;
		display: block;
	}
	.wp-block-latest-posts__list, .wp-block-latest-comments {
		font-size: 16px;
		line-height: 24px;
		color: #080808;
		font-weight: 600;
		@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: 58px;
				width: 58px;
				top: 0;
				right: 0;
				@include border-radius(5px);
				padding: 0;
				position: absolute;
				border-color: $primary_color;
				background-color: $primary_color;
				color: #fff;
				line-height: 50px;
				z-index: 1;
				font-size: 0px;
				@include box-shadow(none);
				border-color: #ececf0;
				&:before {
					content: "\f104";
					font-family: "Caseicon";
					font-size: 16px;
					position: absolute;
					top: 50%;
					left: 50%;
					@include transform(translate(-50%, -50%));
				}
				&:hover {
					border-color: $secondary_color;
					background-color: $secondary_color;
					color: #fff;
				}
			}
			.wp-block-search__input  {
				border-color: #ececf0;
				color: #222222;
				padding-left: 24px;
			}
		}
	}
}

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

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

.pxl-author-info {
	&.widget {
		padding-bottom: 36px;
	}
	.author-image {
		margin-bottom: 16px;
		img {
			width: 100%;
		}
	}
	.author-desc {
		font-size: 16px;
		line-height: 1.625;
		margin-bottom: 15px;
	}
	.author-social {
		display: inline-flex;
		flex-wrap: wrap;
		margin: 0 -6px;
		a {
			width: 38px;
			height: 38px;
			display: inline-flex;
			align-items: center;
			justify-content: center;
			background-color: #F6F6F6;
			border-radius: 100%;
			color: #1C2539;
			margin: 6px;
			font-size: 15px;
			span {
				display: inline-flex;
			}
			&:hover {
				background-color: #fff;
				color: $primary_color;
				@include box-shadow(0 10px 20px rgba(#8997BA, 0.25));
			}
		}
	}
}

body.rtl {
	.widget-title::before, .comment-reply-title::before, .comments-title::before, .pxl-author-info .author-name::before {
		right: 0;
		left: auto;
	}
}