
/* Widget */
.widget {
    margin-bottom: 30px;
    margin-top: 30px;

    &:first-child {
        margin-top: 0;
    }
    .widget-title, .widgettitle {
        margin-bottom: 15px;
        font-size: 1em;
        margin-top: 0;

        &,
        a {
            line-height: 1.4;
            font-weight: $font-weight-bold;
            text-transform: uppercase;
            text-decoration: none;
        }

        img {
            margin-#{$right}: 3px;
            margin-top: -2px;
        }
    }

    > div > ul,
    > ul {
        font-size: .9286em;
        border-bottom: 1px solid;
        margin-top: -8px;
        margin-bottom: 0;

        > li:first-child {
            border-top-width: 0;
        }

        li {
            position: relative;
            margin: 0;
            padding: 5px 0;
            border-top: 1px solid;
            @include transition (all 0.3s);

            p {
                margin-bottom: 0;
            }

            > a {
                text-decoration: none;
            }

            > ul,
            > ol {
                margin-top: 8px;
                margin-bottom: -8px;
                /*margin-#{$left}: -5px;*/
                margin-#{$left}: 10px;
            }
        }
    }

    ul,
    ol {
        list-style: none;
        padding: 0;
    }

    select {
        max-width: 100%;
        font-size: .9em;
    }

    .rss-date,
    .post-date,
    .comment-author-link {
        display: inline;
        font-size: .9em;
    }
    .rss-date,
    .post-date {
        display: block;
    }
    .rss-date {
        margin-bottom: 3px;
    }

    .rssSummary {
        font-size: .95em;
        line-height: 1.42857;
    }

    cite {
        display: block;
        font-size: .9em;
        text-align: $right;
    }

    .view-more {
        padding: 12px;
    }

    .owl-carousel .owl-dots {
        margin-bottom: -10px;
    }

    .slick-dots {
        margin-bottom: -5px;
    }

    li.current-cat,
    li.current-cat-parent,
    li.current-menu-item {
        > a {
            font-weight: 700;
        }
    }
}


.widget_recent_entries > ul li,
.widget_recent_comments > ul li,
.widget_pages > ul li,
.widget_meta > ul li,
.widget_nav_menu > div > ul li,
.widget_archive > ul li,
.widget_categories > ul li,
.widget_rss > ul li,
.wp-block-categories-list li,
.wp-block-archives-list li,
.wp-block-latest-posts li {
    padding: side-values(6px 0 6px 15px);
    &:before {
        content: $fa-var-chevron-right;
        font-family: 'Font Awesome 5 Free'; font-weight: 900;
        margin-#{$left}: -11px;
        margin-#{$right}: 6px;
        font-size: .45rem;
        opacity: .7;
        vertical-align: middle;
    }
    &:hover:before {
        @include animation(navItemArrow .6s linear infinite);
    }
}


.widget_calendar {
    caption {
        font-weight: 700;
        text-align: center;
        margin-bottom: 8px;
    }
    table {
        width: 100%;
        font-size: .9286em;
        th,
        td {
            text-align: center;
            vertical-align: middle;
        }
        td#prev {
            text-align: $left;
            padding: 8px 0;
        }
        td#next {
            text-align: $right;
            padding: 8px 0;
        }
    }
}

// Widget text
.widget.widget_text {
    ul,
    li {
        border-width: 0;
        padding: 0;
        margin: 0;

        p {
            margin-bottom: 10px;
        }
    }
}

// Widget tag cloud
.widget {
    .tagcloud {
        margin-top: -.3846em;
        margin-bottom: -.3846em;
        a {
            margin: side-values(.3846em .3846em .3846em 0);
            padding: .25rem .5rem;
            line-height: 1;
            display: inline-block;
            text-decoration: none;
            font-size: .75em !important;
            text-transform: uppercase;
            font-weight: 700;
            border-radius: 10px;
        }
    }
}

/* Flickr Widget */
.flickr_badge_image {
    &,
    .wpb_content_element & {
        float: none;
        margin: 10px 5px 20px;
        display: inline-block;
        border: none;
        padding: 0;
        width: auto;
        height: auto;
        @include transition($image-transition);

        img {
            width: 75px;
            height: 75px;
        }
    }
}

/* Wysija Widget */
.widget.widget_wysija {
    h3 {
        margin-bottom: 10px;
    }
    .wysija-paragraph,
    .wysija-checkbox-label,
    .wysija-checkbox-paragraph {
        font-size: 1em;
    }
    .wysija-paragraph label,
    .wysija-checkbox-label {
        font-size: .9286em;
    }
    .wysija-checkbox-label {
        margin-bottom: 0;
    }
    .formError {
        position: static !important;
        display: none !important;
        .formErrorContent {
            width: 100%;
            line-height: 1.4;
            padding: 5px 0;
            background: none;
            border: none;
            color: #eb340e;
        }
        + .wysija-input {
            border-color: #a94442;
        }
    }
    .wysija-paragraph {
        .formError {
            .formErrorContent {
                padding: 5px 0 10px;
            }
        }
    }
    .widget_wysija_cont {
        .updated,
        .message,
        .error,
        .xdetailed-errors {
            border: none;
            background: transparent;
            padding: 0;
            margin: 0;
            color: inherit;
            line-height: inherit;
        }
        .updated,
        .message {
            color: #3c763d;
        }
        .error,
        .xdetailed-errors {
            color: #eb340e;
        }
        .showerrors {
            display: block;
        }
    }
    .wysija-input {
        width: 100%;
    }
}
.widget_wysija .wysija-paragraph {
    margin-bottom: 10px;
}
.sidebar-content .widget:last-child { margin-bottom: 0; }
.sidebar-content .widget.widget_wysija {
    margin-bottom: 30px;
    min-height: 100px;
    position: relative;
}
.sidebar-content .widget_wysija {
    .box-content {
        position: relative;
        padding: 30px 36px 45px 36px;
    }
    .wysija-input {
        border-radius: 3px;
        padding: 12px;
    }

    .wysija-submit {
        margin: 0;
        width: 100%;
        border-radius: 3px;
        padding: 12px 0;
    }
}
#footer .widget .widget_wysija {
    position: relative;
    display: table;
    border-collapse: separate;
    max-width: 550px;
    > p:not(.wysija-paragraph) {
        display: table-caption;
    }
}
#footer .row > div:not(:last-child ) .widget_wysija {
    @media (min-width: 768px) {
        margin-#{$right}: 1.5rem;
    }
}

#footer .widget_wysija_cont {
    .wysija-paragraph {
        display: table-cell;
        vertical-align: top;
        width: 100%;
    }
    label {
        display: none;
    }
    .wysija-input,
    .wysija-submit {
        height: 44px;
        font-size: 0.75rem;
        border-width: 0;
        background-clip: border-box;
    }
    .wysija-input {
        border-top-#{$right}-radius: 0;
        border-bottom-#{$right}-radius: 0;
        border-#{$right}-width: 1px;
        width: 100%;
    }
    .wysija-submit {
        border-#{$left}: none;
        display: table-cell;
        vertical-align: top;
        margin: side-values(0 0 0 -1px);
        border-top-#{$left}-radius: 0;
        border-bottom-#{$left}-radius: 0;
    }
    .d-table-cell > .wysija-submit {
        display: block;
    }
}

.wysija-msg {
    .updated,
    .message {
        color: #3c763d;
    }
    .error,
    .xdetailed-errors {
        color: #eb340e;
    }
    ul {
        list-style: none;
        padding-#{$left}: 0;
        margin-bottom: 10px;
        font-weight: 600;
    }
}

// Widget Twitter Tweets
.widget.twitter-tweets {
    .fa-twitter {
        clear: both;
        font-size: 1.5em;
        position: relative;
        top: 3px;
        margin-#{$right}: -22px;
        #{$left}: -30px;
    }
    .meta {
        color: #999;
        display: block;
        font-size: 0.9em;
        padding-top: 3px;
        margin-bottom: 20px;
        &:last-child {
            margin-bottom: 0;
        }
    }
    ul {
        list-style: none;
        margin: 0;
        padding: 0;
        border-width: 0;

        li {
            border-width: 0;
            padding: side-values(20px 0 0 30px);

            &:first-child {
                padding-top: 0;
            }
        }
    }
}
.twitter-account {
    color: #FFF;
    display: block;
    font-size: 0.9em;
    margin: -15px 0 5px;
    opacity: 0.55;
    &:hover {
        opacity: 1;
    }
}

// Widget Contact Info
.widget.contact-info {
    ul,
    li {
        border-width: 0;
        margin: 0;
        padding: 0;
    }
    li {
        a:hover {
            text-decoration: underline;
        }
        &:not(:last-child) {
            margin-bottom: 10px;
        }
    }
    p {
        margin-bottom: 10px;
    }
    i {
        clear: both;
        float: $left;
        text-align: center;
        width: 16px;
        top: -2px;
        margin: side-values(4px 9px 10px 0);
        font-size: 1.3em;
        position: static !important;
    }
    .contact-info-block {
        .contact-details {
            strong, span {
                display: block;
                padding-#{$left}: 25px;
            }
        }
    }
}

// Widget Follow Us
/*#footer .widget.follow-us,*/
.widget.follow-us {
    .share-links {
        a {
            width: 30px;
            height: 30px;
            border-radius: 30px;
            margin: 2px;
            overflow: hidden;
            box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.3);
            @include transition(all .2s);
            font-size: 14px;

            &:hover {
                color: #fff;
            }
        }
    }
}

.footer-top .widget.follow-us .share-links a:hover {
    color: #fff;
}

#footer .footer-bottom .widget.follow-us {
    .share-links {
        a {
            box-shadow: none;
        }
    }
}

#footer .twitter-tweets .meta {
    opacity: .5;
}

#mailpoet_checkout_field {
    input[type="checkbox"],
    input[type="radio"] {
        position: static;
        margin-#{$left}: 0;
    }
}

.widget-recent-posts,
.widget-recent-portfolios {
    overflow: hidden;
}

.sidebar-content .filter-title {
    font-size: 1em;
    text-transform: uppercase;
    line-height: 1.4;
}