.nk-widget {
    overflow: hidden;

    ~ .nk-widget {
        margin-top: 65px;
    }

    .nk-widget-title {
        margin-bottom: 35px;
        font-size: 1.25rem;
    }
}

// Posts
.nk-widget-post {
    padding-left: 130px;

    + .nk-widget-post {
        margin-top: 35px;
    }

    &::after {
        content: "";
        display: table;
        clear: both;
    }

    a {
        text-decoration: none;
    }

    .nk-post-image {
        float: left;
        width: 100px;
        margin-left: -130px;
        overflow: hidden;

        img {
            width: 100%;
            height: auto;
        }
    }

    .nk-post-title {
        display: inline-block;
        width: 100%;
        margin-top: 6px;
        margin-bottom: 5px;
        font-size: 1.15rem;

        a {
            color: inherit;
            transition: .3s opacity;

            &:hover,
            &:focus {
                opacity: .7;
            }
        }
    }

    .nk-post-meta-date {
        margin-right: 10px;
        font-size: .9rem;
        opacity: .6;

        a {
            color: inherit;
            transition: .3s opacity;

            &:hover,
            &:focus {
                opacity: .7;
            }
        }
    }

    .nk-post-meta-comments {
        i {
            font-size: 1.2rem;
            line-height: 1.2rem;
            vertical-align: middle;
        }

        span {
            font-size: .8rem;
            line-height: .8rem;
            vertical-align: middle;
        }
    }

    // store
    .nk-product-price {
        margin-top: 20px;
    }
}

// Categories
.nk-widget-categories {
    font-size: .9rem;
    &,
    ul {
        padding: 0;
        margin: 0;
        margin-top: -14px;
        list-style-type: none;
    }

    // next level categories
    .nk-widget-categories {
        margin-top: 0;
        margin-left: 25px;

        li {
            border-top: 1px solid rgba($color_gray_4, .3);
        }
    }

    li {
        display: block;

        + li {
            border-top: 1px solid rgba($color_gray_4, .3);
        }

        a {
            display: block;
            padding: 16px 0;
            color: inherit;
            text-decoration: none;
            transition: .3s opacity;

            &:hover,
            &:focus {
                opacity: .7;
            }

            &::before {
                content: "";
                display: inline-block;
                width: 4px;
                height: 4px;
                margin-right: 15px;
                vertical-align: middle;
                background-color: #fff;
                border-radius: 2px;
            }
        }

        .nk-widget-categories-count {
            float: right;
            color: inherit;
            opacity: .5;
        }
    }
}

// Tags Cloud
.nk-widget-tags,
.nk-post-tags {
    margin-bottom: -5px;
    font-size: .9rem;
    font-style: normal;

    > a {
        position: relative;
        display: inline-block;
        padding: 5px 25px;
        margin-right: 3px;
        margin-bottom: 8px;
        margin-left: 3px;
        font-size: .8rem;
        color: inherit;
        text-decoration: none;
        border-radius: 2px;
        transition: .3s background-color, .3s color;
        z-index: 1;

        &::before {
            content: "";
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            border: 1px solid;
            border-radius: 2px;
            opacity: .6;
            transition: .3s opacity;
            z-index: -1;
        }

        &:hover,
        &.hover {
            color: $color_dark_1;
            background-color: #fff;

            &::before {
                opacity: 0;
            }
        }
    }
}

// Contact
.nk-widget-contact {
    padding: 0;
    margin: 0;
    list-style-type: none;

    > li {
        position: relative;
        padding-left: 25px;

        + li {
            margin-top: 15px;
        }
    }

    .nk-widget-contact-icon {
        position: absolute;
        left: 0;
        font-size: 1.1rem;
    }
}

// social
.nk-widget-social {
    text-align: center;

    > a {
        display: inline-block;
        width: 40px;
        height: 40px;
        margin: 6px 4px;
        font-size: 1.15rem;
        line-height: 40px;
        color: inherit;
        text-align: center;
        border: 1px solid;
        border-radius: 20px;
        transition: .3s color, .3s background-color, .3s border-color;
        will-change: color, background-color;

        &:hover,
        &.hover {
            color: $color_dark_1;
            background-color: #fff;
            border-color: #fff;
        }
    }
    &.nk-widget-social-inverted {
        > a {
            &:hover,
            &.hover {
                color: #fff;
                background-color: $color_dark_1;
                border-color: $color_dark_1;
            }
        }
    }
}

// Twitter
.nk-twitter {
    position: relative;
    padding-left: 40px;

    + .nk-twitter {
        margin-top: 30px;
    }

    .nk-twitter-date {
        margin-top: 5px;
        font-size: .9rem;
        line-height: 1.4;
        opacity: .6;
    }

    .nk-twitter-icon {
        position: absolute;
        top: 12px;
        left: 0;
        font-size: 1.6rem;
    }
}

// Cart
.nk-widget-store-cart {
    .nk-nav & {
        width: 354px;
        padding-top: 5px;
        padding-right: 25px;
        padding-bottom: 5px;
        padding-left: 25px;
    }

    .nk-widget-store-cart-actions {
        margin-top: 25px;

        a + a {
            margin-left: 15px;
        }
    }

    .nk-widget-store-cart-total {
        margin-top: 25px;
        margin-bottom: 25px;

        &::before,
        &::after {
            content: "";
            display: table;
            width: 100%;
            clear: both;
            border-top: 1px dotted #777;
        }
        &::before {
            margin-bottom: 15px;
        }
        &::after {
            margin-top: 15px;
        }

        > a {
            color: inherit;
            text-decoration: none;
            transition: .3s opacity;

            &:hover,
            &:focus {
                opacity: .7;
            }
        }

        > span {
            float: right;
        }
    }
}

/* Sidebars */
.nk-sidebar {
    padding-left: 40px;

    // fluid
    .container-fluid > .row > div > &.nk-sidebar-left {
        padding-left: 25px;
    }
    .container-fluid > .row > div > &.nk-sidebar-right {
        padding-right: 25px;
    }

    // left
    &.nk-sidebar-left {
        padding-right: 40px;
        padding-left: 0;
    }

    @media #{$media_smaller_sm} {
        &,
        &.nk-sidebar-left {
            padding-right: 0 !important; // stylelint-disable-line
            padding-left: 0 !important; // stylelint-disable-line
        }
    }
}
