// Sidebar
//--------------------------------------------------
@media #{$min-xl} {
    .pxl-sidebar-sticky, .pxl-sidebar-shop .sidebar-sticky {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
    }
    .admin-bar .pxl-sidebar-sticky, .admin-bar .pxl-sidebar-shop .sidebar-sticky  {
        top: 32px;
    }
}

.pxl-sidebar-area .widget {
    margin-bottom: 30px;
    padding: 19px 29px 29px;
    border: 1px solid #{'rgba(var(--heading-color-rgb),0.1)'};
    @include border-radius(30px);
    @media #{$max-xs} {
        padding: 19px 20px 29px;
    }
    &:last-child {
        margin-bottom: 0;
    }
    &.widget_media_gallery {
        .gallery {
            margin: -5px !important;
        }
    }
    &.widget_text {
        font-size: 16px;
        .textwidget {
            p {
                margin: 0;
            }
            strong {
                display: inline-block;
                margin-bottom: 5px;
            }
            .wp-caption {
                margin-bottom: 0;
            }
        }
        .nice-select {
            white-space: break-spaces;
        }
    }
}
.widget-title, .wp-block-group__inner-container > h2 {
    position: relative;
    margin-bottom: 20px;
    @extend h4;
    span {
        position: relative;
        display: inline-block;
        color: inherit;
    }
}
.pxl-widget-liststyle {
    ul li, ol li {
        padding: 10px 0;
        margin: 0;
        &:first-child {
            padding-top: 0;
        }
        &:last-child {
            padding-bottom: 0;
        }
        &:not(:last-child) {
            border-bottom: 1px solid #{'rgba(var(--heading-color-rgb),0.1)'};
        }
        a {
            color: inherit;
            @include transition(none);
            &:hover {
                color: $primary_color;
            }
        }
        ul.children {
            > li {
                border-top: 1px solid #{'rgba(var(--heading-color-rgb),0.1)'};
                border-bottom: none;
                &:last-child {
                    padding-bottom: 0;
                    border-top: 1px solid 1px solid #{'rgba(var(--heading-color-rgb),0.1)'} !important;
                }
            }
            li + li {
                border-bottom: none;
            }
        }
    }
}
.widget {
    &:not(.widget_categories, .widget_pages, .widget_nav_menu) {
        .nice-select {
            ul li {
                padding: 10px 20px !important;
            }
        }
        @extend .pxl-widget-liststyle;
    }
    &.widget_categories, &.widget_pages, &.widget_nav_menu {
        ul li, ol li {
            a {
                color: inherit;
                padding: 12px 30px;
                background-color: rgba(#0D0C0E, 0.05);
                @include border-radius(100px);
                @include transition(all 300ms ease-in-out);
                &:hover {
                    color: $secondary_color;
                    background-color: $heading_color;
                }
            }
            + li {
                margin-top: 20px;
            }
        }
        .nice-select {
            @extend .pxl-widget-liststyle;
            ul li {
                padding: 10px 20px !important;
            }
        }
    }
}
.widget_search, .wp-block-search, .no-results.not-found {
    .widget-title, .wp-block-search__label {
        display: block;
        margin-bottom: 23px;
        border: none;
    }
    .searchform-wrap, .wp-block-search__inside-wrapper {
        position: relative;
        display: -webkit-box;display: -ms-flexbox;display: flex;
    }
    .search-field, .wp-block-search__input {
        padding: 7px 60px 13px 0;
    }
    .search-submit, .wp-block-search__button {
        position: absolute;
        right: 15px;
        top: 50%;
        line-height: 44px;
        font-size: 0;
        padding: 0;
        margin: 0;
        border: none;
        overflow: hidden;
        cursor: pointer;
        color: $heading_color;
        background-color: transparent;
        @include border-radius(0px);
        @include transform(translate(-50%, -50%));
        &:after {
            content: '\f4a5';
            font-family: 'Ionicons';
            position: relative;
            font-size: 22px;
            font-weight: 500;
            z-index: 1;
        }
    }
}

.wp-block-rss {
    margin-bottom: 0;
    a {
        font-weight: 600;
    }
}

.widget_tag_cloud .tagcloud, .wp-block-tag-cloud, .widget_product_tag_cloud .tagcloud {
    @extend .pxl-item--flex;
    gap: 5px;
    a {
        color: $secondary_color;
        font-size: 13px !important;
        background-color: $heading_color;
        padding: 5px 15px;
        @include border-radius(30px);
    }
}
.pxl--tags {
    @extend .pxl-item--flex;
    a {
        position: relative;
        display: inline-block;
        font-size: 16px !important;
        font-weight: 400;
        line-height: 1.625;
        color: $body_color;
        @extend .pxl-font-secondary;
        &.active, &:hover {
            color: $heading_color;
        }
    }
}

.widget_pxl_recent_posts, .widget_recent_entries {
    .pxl-item--date, .post-date {
        font-size: 12px;
        font-weight: 400;
        line-height: 1.9833;
        letter-spacing: 1.2px;
        color: #ABABAB;
        text-transform: uppercase;
        @extend .pxl-font-secondary;
    }
}

.widget_pxl_recent_posts {
    .pxl-item--img {
        width: 125px;
        min-width: 125px;
        margin-right: 20px;
        @media #{$max-xs} {
            width: 90px;
            min-width: 90px;
        }
        img {
            @include border-radius(5px);
        }
    }
    .pxl--item {
        padding-bottom: 15px;
        margin-bottom: 15px;
        border-bottom: 1px solid #EEE6E2;
        @extend .pxl-item--flexnw;
        &:last-child {
            padding-bottom: 0;
            margin-bottom: 0;
            border: none;
        }
        .pxl-item--meta {
            .pxl-item--title {
                width: 100%;
                font-weight: 600;
                margin-bottom: 0;
            }
        }
    }
}
/* Sidebar Form Custom */
.wpcf7-form {
    .wp-sidebar-form {
        padding: 35px 25px;
        background-color: #000000;
        text-align: center;
        .ct-form-title {
            color: #fff;
            font-size: 16px;
            font-weight: 700;
            line-height: 1.625;
            margin-bottom: 35px;
        }
        .input-filled {
            margin-bottom: 35px;
        }
        .wpcf7-submit {
            background-color: #000;
            color: #fff;
            border: 1px solid #fff;
            position: relative;
            z-index: 1;
            &:before {
                top: 0px;
                width: 0px;
                left: auto;
                right: 0px;
                z-index: -1;
                bottom: 0px;
                content: "";
                position: absolute;
                background: #fff;
                @include transition(all .3s cubic-bezier(.645,.045,.355,1));
            }
            &:hover {
                color: $primary_color;
                &:before {
                    left: 0px;
                    width: 100%;
                    right: auto;
                }
            }
        }
        p {
            margin-bottom: 10px;
        }
    }
}

.gallery {
    margin: -16px -12px 43px -12px;
    display: flex;
    flex-wrap: wrap;
    .gallery-item {
        padding: 0 12px;
        margin-top: 24px;
        margin-bottom: 0;
    }
    &.gallery-columns-2 .gallery-item {
        width: 50%;
    }
    &.gallery-columns-3 .gallery-item {
        width: 33.33%;
    }
    &.gallery-columns-4 .gallery-item {
        width: 25%;
    }
    &.gallery-columns-5 .gallery-item {
        width: 20%;
    }
}

.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: flex;
                position: relative;
                flex-wrap: wrap;
                overflow: hidden;
                &: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;
                    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 50px -15px;
    display: flex;
    flex-wrap: wrap;
    img {
        width: 100%;
    }
    .pxl--item {
        padding: 30px 15px 0 15px;
    }
    .pxl--item-inner {
        @include border-radius(8px);
        overflow: hidden;
        position: relative;
        &.video-active:before {
            @extend .pxl-spill;
            background-color: rgba(#1b1b1b, 0.8);
        }
        .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%;
        }
    }
}
#pxl-main {
    .pxl-select {
        .pxl-select-options {
            max-height: 285px;
            overflow: auto;
            padding: 20px 20px;
            margin-top: 0;
            z-index: 9;
            li {
                padding: 10px 0;
                + li {
                    border-top: 1px solid #e4e4e4;
                }
            }
        }
    }
    .widget_categories,
    .widget_pages,
    .widget_nav_menu,
    .widget_meta,
    .widget_recent_entries {
        ul ul ul ul ul {
            padding-left: 0;
        }
    }

    // Categories widget
    //--------------------------------------------------
    .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;
        }
        ul li {
            a {
                z-index: 1;
                @extend .pxl-item--flex;
                .count {
                    float: right;
                }
                .pxl-count {
                    position: relative;
                    display: inline-block;
                    font-size: 11px;
                    font-weight: 400;
                    line-height: 2.4545;
                    margin-left: auto;
                    z-index: 1;
                    @extend .pxl-font-secondary;
                }
            }
            &.current-menu-item > a, &.current-cat > a, &.current-cat-parent > a {
                color: $primary_color;
            }
            .sub-menu, .children {
                padding: 20px 0 0 15px;
                > li {
                    > a {
                        &:before {
                            left: 0px;
                        }
                    }
                    .sub-menu, .children {
                        > li {
                            > a {
                                &:before {
                                    left: 0px;
                                }
                            }
                            .sub-menu, .children {
                                > li {
                                    > a {
                                        &:before {
                                            left: 0px;
                                        }
                                    }
                                    .sub-menu, .children {
                                        > li {
                                            > a {
                                                &:before {
                                                    left: 0px;
                                                }
                                            }
                                            .sub-menu, .children {
                                                > li {
                                                    > a {
                                                        &:before {
                                                            left: 0px;
                                                        }
                                                    }
                                                    .sub-menu, .children {
                                                        > li {
                                                            > a {
                                                                &:before {
                                                                    left: 0px;
                                                                }
                                                            }
                                                            .sub-menu, .children {
                                                                > li {
                                                                    > a {
                                                                        &:before {
                                                                            left: 0px;
                                                                        }
                                                                    }
                                                                    .sub-menu, .children {
                                                                        > li {
                                                                            > a {
                                                                                &:before {
                                                                                    left: 0px;
                                                                                }
                                                                            }
                                                                            .sub-menu, .children {
                                                                                > li {
                                                                                    > a {
                                                                                        &:before {
                                                                                            left: 0px;
                                                                                        }
                                                                                    }
                                                                                    .sub-menu, .children {
                                                                                        > li {
                                                                                            > a {
                                                                                                &:before {
                                                                                                    left: 0px;
                                                                                                }
                                                                                            }
                                                                                        }
                                                                                    }
                                                                                }
                                                                            }
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
        ul.children li:last-child, ul.sub-menu li:last-child {
            border: none;
        }
    }
}

.widget_recent_entries, .widget_recent_comments {
    .widget-title {
        margin-bottom: 15px;
    }
    ul {
        list-style: none;
        margin: 0;
    }
}

.widget_rss {
    ul {
        list-style: none;
        padding: 0;
        margin-bottom: 0;
    }

    li {
        position: relative;
        padding: 12px 0;
        &:first-child {
            padding-top: 0;
        }
        &:last-child {
            margin-bottom: 0;
        }
    }

    .rsswidget {
        display: inline-block;
        font-weight: 600;
    }

    .rss-date {
        display: block;
        font-size: 0.875em;
        margin: 6px 0 6px;
    }

    .rssSummary {
        font-size: 19px;
    }

    cite {
        font-weight: 700;
        font-size: 0.875em;
        display: block;
        margin: 6px 0 6px;
    }
}

.wp-block-calendar, .widget_calendar {
    th, td {
        text-align: center;
        line-height: normal;
        padding: 6px;
        a {
            font-weight: 700;
        }
    }
    thead th {
        font-size: 16px;
    }
    tbody td {
        font-size: 14px;
    }
    #today {
        color: $secondary_color;
        background-color: $primary_color;
    }
    table {
        margin: 0;
        > caption {
            font-size: 16px;
            border: 1px solid #{'rgba(var(--heading-color-rgb),0.1)'};
            padding: 8.5px 10px;
            margin-bottom: 17px;
            line-height: normal;
            text-align: center;
            text-transform: uppercase;
            @extend .pxl-font-secondary;
        }
    }
    .wp-calendar-nav {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        margin-top: 13px;
        padding-top: 17px;
        border-top: 1px solid #{'rgba(var(--heading-color-rgb),0.1)'};
        a {
            display: inline-block;
            font-size: 14px;
            line-height: 1.42857;
            font-weight: 600;
            text-transform: uppercase;
            @include text-decoration(underline transparent);
            &:hover {
                @include text-decoration(underline $secondary_color);
            }
        }
        .wp-calendar-nav-prev {
            margin-right: 20px;
            flex-grow: 1;
        }
    }
}

.widget_ef_recent_posts {
    li {
        padding-bottom: 14px;
        &:last-child {
            padding-bottom: 0;
        }
    }
    .entry-posted-in a {
        font-size: 15px;
        font-weight: 500;
        color: rgba(#000, 0.66);
        &:hover {
            color: $primary_color;
        }
    }
    .entry-title {
        font-size: 16px;
        line-height: 24px;
        margin-top: 4px;
        font-family: inherit;
        font-weight: 500;
        a {
            color: #fff;
            &:hover {
                color: $primary_color;
            }
        }
        + .entry-meta {
            margin-top: 15px;
        }
    }
}
/* Widget Block */
.widget_block {
    .widget-content {
        .wp-block-search__label {
            position: relative;
            display: block;
            @extend h4;
        }
        ol, ul {
            padding-left: 0;
        }
    }
    .wp-block-latest-posts__list {
        list-style: none;
        margin-bottom: 0;
    }
    .wp-block-categories, .wp-block-archives {
        margin-bottom: 0;
        li {
            font-size: 0px;
            a {
                display: block;
                position: relative;
                z-index: 1;
                .count {
                    float: right;
                }
                &:hover {

                }
            }
            &.current-menu-item > a, &.current-cat > a, &.current-cat-parent > a, > a:hover {
                color: $primary_color;
            }
            .sub-menu, .children {
                padding-left: 15px;
                border-top: 1px solid #e7e7e7;
                > li {
                    > a {
                        &:before {
                            left: 0px;
                        }
                    }
                    .sub-menu, .children {
                        > li {
                            > a {
                                &:before {
                                    left: 0px;
                                }
                            }
                            .sub-menu, .children {
                                > li {
                                    > a {
                                        &:before {
                                            left: 0px;
                                        }
                                    }
                                    .sub-menu, .children {
                                        > li {
                                            > a {
                                                &:before {
                                                    left: 0px;
                                                }
                                            }
                                            .sub-menu, .children {
                                                > li {
                                                    > a {
                                                        &:before {
                                                            left: 0px;
                                                        }
                                                    }
                                                    .sub-menu, .children {
                                                        > li {
                                                            > a {
                                                                &:before {
                                                                    left: 0px;
                                                                }
                                                            }
                                                            .sub-menu, .children {
                                                                > li {
                                                                    > a {
                                                                        &:before {
                                                                            left: 0px;
                                                                        }
                                                                    }
                                                                    .sub-menu, .children {
                                                                        > li {
                                                                            > a {
                                                                                &:before {
                                                                                    left: 0px;
                                                                                }
                                                                            }
                                                                            .sub-menu, .children {
                                                                                > li {
                                                                                    > a {
                                                                                        &:before {
                                                                                            left: 0px;
                                                                                        }
                                                                                    }
                                                                                    .sub-menu, .children {
                                                                                        > li {
                                                                                            > a {
                                                                                                &:before {
                                                                                                    left: 0px;
                                                                                                }
                                                                                            }
                                                                                        }
                                                                                    }
                                                                                }
                                                                            }
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
.widget_archive {
    .pxl-select {
        margin-top: 40px;
    }
}
.widget_meta {
    h2.widget-title {
        margin-bottom: 20px;
    }
}
.wp-block-latest-comments, .widget_recent_comments #recentcomments {
    list-style: none;
    margin: 0;
}
