.widget {
    @include card();
    background-color: #FFF;
    border-radius: $border-radius;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .1);
    margin-bottom: 20px;
    padding: 15px;
    overflow: hidden;

    .header {
        .title {
            font-weight: bold;
            font-size: 16px;
            line-height: 32px;
        }
    }
}

.sidebar {
    .widget {
        .header {
            padding-bottom: 10px;
            margin-bottom: 10px;
            position: relative;
            text-align: center;

            &:before {
                content: '';
                height: 1px;
                background: $primary;
                position: absolute;
                left: -15px;
                top: 50%;
                width: 44px;
            }
        }
    }

    .theiaStickySidebar .widget:last-of-type {
        margin-bottom: 0;
    }
}

.widget_calendar {
    #wp-calendar {
        text-align: center;
    }
}

.woocommerce .widget_shopping_cart .cart_list li,
.woocommerce.widget_shopping_cart .cart_list li {
    padding: 0;
}

.widget_product_search, .widget_search {
    .woocommerce-product-search, #searchform {
        position: relative;

        &:before {
            font-family: IRANKala;
            content: "\E131\00FE0E";
            left: 8px;
            top: 9px;
            position: absolute;
            z-index: 52;
            color: #A1A3A8;
            font-size: 24px;
            width: 36px;
            height: 36px;
        }

        .search-field, input[type=text] {
            color: #555;
            background: #f8f8f8;
            border-color: transparent;
            transition: $transition;
            padding-left: 36px;

            &:focus {
                background: transparent;
                border-color: $primary;
            }
        }

        button, input[type=submit] {
            display: none;
        }
    }
}

.widget_product_tag_cloud,
.widget_tag_cloud {
    .tagcloud {
        a {
            color: #7F7F7F;
            background: #f8f8f8;
            padding: 0 7px;
            border-radius: $border-radius;
            margin-bottom: 2px;
        }
    }
}

.widget_media_image {
    text-align: center;
}

.woocommerce ul.product_list_widget {
    li {
        padding: 15px 0;

        img {
            float: left;
            margin-left: 0;
            margin-right: 5px;
            width: 64px;
            margin-bottom: 15px;
        }

        .price {
            font-weight: normal;
            font-size: $font-size;
            height: auto;

            .discount-percent,
            del {
                display: none;
            }

            ins {
                font-size: $font-size;
                font-weight: normal;
            }
        }

        .cover-outofstock {
            height: auto;

            span {
                font-size: $font-size;
            }
        }
    }

    li:not(:last-child) {
        border-bottom: 1px solid #eee;
    }
}