/* posts list */
#zfeed{
    margin: 0 auto;
    max-width: 700px;
}
h1{
    margin-top: 20px;
    display: block;
}
.posts{
    background: #F6F7F7;
    padding: 10px;
}
.post{
    margin: 0;
    background: #fff;
    padding: 10px;
    border-radius: 4px;
}
.post + .post{
    margin-top: 10px;
}
.post_header{
    border-bottom: 1px solid #ccc;
    float: left;
    width: 100%;
    padding-bottom: 5px;
}
.post_img{
    border-radius: 50%;
}
.post_image{
    margin-right: 10px;
    position: relative;
    display: block;
}
.online .post_image:after {
    bottom: 3px;
    right: 2px;
    border: 2px solid #fff;
    height: 12px;
    width: 12px;
    content: '';
    position: absolute;
    background-color: #8ac176;
    border-radius: 50%;
}
.post_image, .post_header_info{
    float: left;
}
.post_header_info .author{
    text-decoration: none;
    font-size: 120%;
    margin-top: 10px;
}
.post_header_info .date{
    font-size: 90%;
    color: #909090;
}
.post_content{
    clear: both;
    padding: 0px 30px 0 0;
    position: relative;
}
.post_content h2{
    padding: 0;
    margin: 0;
}
.post_title{
    text-decoration: none;

}
.post_content_info{
    clear: both;
    padding: 10px 0;
}
.post_content_more{
    display: inline-block;
    padding: 3px 5px;
    background: #8AC176;
    color: #fff;
}
.post_text{
    padding: 10px 0;
    word-wrap: break-word;
}
.post_text > div{
    margin: 5px 0;
}
.post_comments{
    border-top: 1px solid #ccc;
}
#posts_get_more{
    display: block;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    padding: 20px;
}
#posts_get_more span{
    border-bottom: 1px dotted;
}
/* post menu */
.post_menu{
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    padding: 10px;
}
.post_menu i{
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ccc;
    margin-bottom: 2px;
}
.post_menu:hover i{
    filter: brightness(.9);
}
.post_menu-list{
    position: absolute;
    top: 40px;
    right: 0;
    z-index: 1;
    display: none;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0px 5px 10px 0px rgba(0,0,0,0.3);
}
.post_menu-list a{
    display: block;
    padding: 5px;
    text-decoration: none;
    white-space: nowrap;
    text-align: right;
}
/* share */
#zfeed_form-share{
    display: none;
}
.post_share{
    display: block;
    position: absolute;
    top: 40px;
    right: 0;
    width: 20px;
    height: 20px;
    background: url(/templates/default/controllers/zfeed/images/share.svg) left center no-repeat;
    filter: opacity(30%);
}
.post_share:hover{
    filter: opacity(60%);
}
#share {
    width: 90%;
    border: 1px solid #eaeaea;
    margin: 0 auto;
    background: #fff;
    text-align: center;
    position: absolute;
    top: 10px;
    right: 30px;
    border-radius: 4px;
}

#share .like {
    font-size: 16px;
    font-weight: 700;
    line-height: 25px;
    padding-top: 10px;
}
#share .social{
    text-align: center;
}
#share .push {
    display: inline-block;
    width: 45%;
    min-width: 100px;
    line-height: 40px;
    margin: 5px 2px 20px 2px;
    font-size: 15px;
    text-align: center;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
}
@media(max-width: 500px){
    #share .push {
        width: 90%;
    }
}
.vkontakte {background-color: #5181b8;}
.vkontakte:hover {background-color: #5b88bd; color: #fff;}

.odnoklassniki {background-color: #ee8208;}
.odnoklassniki:hover {background-color: #ee7808; color: #fff;}
/* posttype4 */
.posttype4 .post_link{
    display: flex;
    text-decoration: none;
    color: #444;
    justify-content: space-between;
}
.posttype4 .post_link .post_link_image{
    flex-basis: 33%;
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: cover;
    min-height: 200px;
}
.posttype4 .post_link .post_content_into{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}
.posttype4 .post_link_image+.post_content_into{
    flex-basis: 60%;
}
.posttype4 .post_link .post_content_text h2{
    padding-bottom: 10px;
    line-height: 25px;
}
.posttype4 .post_link .date{
    margin-top: 10px;
    font-size: 90%;
    color: #909090;
}
/* post_long */
.post_long{
    position: relative;
    height: 300px;
    overflow: hidden;
}
.post_long:after{
    content: attr(data-text);
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    height: 120px;
    line-height: 210px;
    text-align: center;
    background: linear-gradient(transparent 10%, white);
    width: 100%;
    font-weight: bold;
    cursor: pointer;
}
.zfeed_back{
    display: block;
    text-align: center;
    text-decoration: none;
    background: #F6F7F7;
    padding: 10px;
}
.zfeed_back + .posts, .posts + .zfeed_back{
    margin-top: 10px;
}
#zfeed_form{
    background: #F6F7F7;
    padding: 10px;
    margin-bottom: 10px;
    position: relative;
}
#zfeed_form .buttons{
    display: none;
}
.spinner{
    display: none;
}
.show_all_comments{
    padding-top: 10px;
}
.show_all_comments a{
    text-decoration: none;
    border-bottom: 1px dotted;
}
/* types */
#zfeed_types{
    background: #F6F7F7;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    overflow: hidden;
}
#zfeed .spinner{
    display: none;
    position: fixed;
    margin: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%);
    z-index: 99;
}
#zfeed_search{
    position: relative;
    transition: width ease .5s;
    display: flex;
    width: 30px;
}
#zfeed_search span{
    width: 20px;
    height: 30px;
    background: url(/templates/default/controllers/zfeed/images/search.svg) left center no-repeat;
    cursor: pointer;
    transition: background ease 0.5s;
}
#zfeed_search input{
    width: 0;
    visibility: hidden;
}
#zfeed_types.opened span{
    background: url(/templates/default/controllers/zfeed/images/times.svg) left center no-repeat;
    width: 40px;
}
#zfeed_types.opened #zfeed_hmenu{
    margin-left: -150%;
}
#zfeed_types.opened input{
    width: 100%;
    visibility: visible;
}
#zfeed_types.opened #zfeed_search{
    width: 100%;
}
@media(max-width: 576px){
    .posttype4 .post_link{
        flex-direction: column;
    }
    .post_link_image{
        margin-bottom: 10px;
    }
    #controller_wrap{
        margin: -10px;
    }
}
#zfeed_options{
    background: #F6F7F7;
    padding: 10px;
    margin-bottom: 10px;
    transition: all ease .3s;
}
.zfeed_options-item{
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}
.zfeed_options-btn{
    margin-right: 10px;
}
#zfeed_options .switch-btn {
    display: inline-block;
    width: 45px;
    height: 20px;
    border-radius: 10px;
    background: #bfbfbf;
    z-index: 0;
    margin: 0;
    padding: 0;
    border: none;
    cursor: pointer;
    position: relative;
    transition-duration: 300ms;
}
#zfeed_options .switch-btn::after {
    content: "";
    height: 16px;
    width: 16px;
    border-radius: 8px;
    background: #fff;
    top: 2px;
    left: 2px;
    transition-duration: 300ms;
    position: absolute;
    z-index: 1;
}
#zfeed_options .switch-on {
    background: #2980B9;
}
#zfeed_options .switch-on::after {
    left: auto;
    right: 2px;
}
.zfeed_options-hidden{
    height: 0;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
}
#zfeed_hmenu{
    width: 30px;
    height: 30px;
    padding: 5px 0;
    box-sizing: border-box;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative;
}
#zfeed_hmenu:after{
    content: attr(data-title);
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    display: block;
    border-bottom: 1px dashed;
    white-space: nowrap;
}
#zfeed_hmenu i{
    width: 20px;
    height: 4px;
    border-radius: 2px;
    background: #000;
}
/* edit */
#zfeed_form-edit{
    display: none;
}
#zfeed_form-edit{
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
}
/* attaches first */
.posts .imini-views .imini-view:first-child{
    display: block;
}
.posts .imini-views .imini-view:first-child img{
    max-height: 500px;
    max-width: 100%;
}
.imini-video-preview{
    display: inline-block;
    position: relative;
}
/* info block */
#zfeed_info{
    display: none;
    background: #F6F7F7;
    padding: 10px;
    margin-bottom: 10px;

}
#zfeed_info>div{
    display: flex;
}
.zfeed_info-text{
    flex-grow: 1;
}
.zfeed_info-text form{
    padding: 10px 0;
}
.zfeed_info-text .button{
    margin-top: 10px;
}
.zfeed_info-close{
    width: 20px;
    min-height: 20px;
    background: url(/templates/default/controllers/zfeed/images/times.svg) center center no-repeat;
    cursor: pointer;
    margin: 0 10px 0 20px;
}
/* comment */
/* Comments Widget ========================================================== */
.comments_widget .bad {
    transition: all 0.5s ease;
}
.comments_widget .bad:hover {
    opacity: 1;
}
.comments_widget {
    margin: 20px 0 0 0;
}
.no_comments {
    margin: 15px 0;
}
.comments_add_link {
    margin: 0 0 10px 0;
    clear: both;
    padding-left:20px;
    background: url("/templates/default/images/icons/comment.png") no-repeat left center;/* убрать default */
}
#comments_add_link:first-child {
    margin-top: 15px;
}
#comments_add_link a { font-size:14px; }

#comments_add_form {
    display: none;
    margin-top: 10px;
    background: #F6F7F7;
    padding: 10px;
}

#comments_add_form textarea{
    height:100px;
    margin-bottom:4px;
}

#comments_add_form .loading{ display: none; }

#comments_add_form .author_data {
    margin-bottom:8px;
}

#comments_add_form .author_data .field {
    overflow:hidden;
}
#comments_add_form .author_data .field label {
    float:left;
    width:140px;
    height:20px;
    line-height:20px;
}
#comments_add_form .author_data .field .input {
    width:99%;
    max-width: 200px;
    min-width: 50px;
}
.no_approved { display: none; }
.comments_list{
    margin-top: 10px;
}
.comments_list .comment{
    overflow: hidden;
    border-radius:2px;
    padding:10px 0;
    margin:4px 0;
}
.comments_list .comment:first-child {
    margin-top: 0;
}
.comments_list .comment:last-child {
    margin-bottom: 0;
}
.comments_list .comment.selected-comment:first-child {
    margin-top: 13px;
}
.comments_list.striped-list .comment {
    padding-bottom: 15px;
}

.comments_list.striped-list .comment:last-child{
    border:none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.comments_list .selected-comment{
    padding-right: 10px;
    box-shadow: 5px 5px 7px #B3C2C9;
}

.comments_list .comment .info,
.comments_list .comment .body {
    overflow: hidden;
    clear: both;
}

.comments_list .comment .info{
    margin-bottom:6px;
}

.comments_list .comment .info div {
    float: left;
    margin-right: 10px;
    font-size:12px;
}

.comments_list .comment .info .rating{
}

.comments_list .comment .info .rating .buttons{
    float:right;
    margin-left:5px;
}

.comments_list .comment .info .rating a {
    display:inline-block;
    width:13px;
    height:13px;
    background:url("/templates/default/images/comment_vote.png") no-repeat;
}

.comments_list .comment .info .rating .value {
    float:left;
    font-weight: bold;
}

.comments_list .comment .info .rating a.rate-up { background-position: 0 0; }
.comments_list .comment .info .rating a.rate-up:hover { background-position: 0 -13px; }
.comments_list .comment .info .rating a.rate-down { background-position: -13px 0; }
.comments_list .comment .info .rating a.rate-down:hover { background-position: -13px -13px; }

.comments_list .comment .info .name .user{ color:#375D81; }
.comments_list .comment .info .name .user:hover{ color:#d35400; }
.comments_list .comment.is_topic_starter .info .name .user{ color:#d35400; }
.comments_list .comment.is_topic_starter .info .name .user:hover{ color:#e67e22; }

.comments_list .comment .info .name .guest_name{ font-weight: bold; }

.comments_list .comment .info .name .subject{ color:#4096EE; }
.comments_list .comment .info .name .subject:hover{ color:#d35400; }

.comments_list .comment .info .date{ color:#999; }

.comments_list .comment .nav a {
    text-decoration:none;
    margin-right: 3px;
    color:#BDC3C7;
}

.comments_list .comment .nav a:hover {
    color:#d35400;
}

.comments_list .comment .nav .scroll-down { display:none; }

.comments_list .comment .body .avatar{
    float:left;
    position: relative
}

.comments_list .comment .body .avatar a { display:block;border-radius: 50%;overflow: hidden;}

.comments_list .comment .content{
    color:#333;
    padding-left:10px;
    padding-top: 8px;
    position: relative;
    overflow: hidden;
}

.comments_list .comment .content img {
    max-width:100%;
}

.comments_list .comment .content .links{
    padding:10px 0 0 0;
    font-size:12px;
}

.comments_list .comment .content .links a {
    font-size:11px;
    color:#999;
    border-bottom:dashed 1px #999;
    text-decoration: none;
    margin-right:6px;
}
.comments_list .comment .content .links a:hover {
    color:#d35400;
    border-bottom:dashed 1px #d35400;
}

.comments_list .comment .deleted{
    padding:5px 15px;
    background:#F9F9F9;
    color:#666;
    font-style:italic;
    border-radius: 6px;
    margin-right:6px;
}

.comments_widget .login_to_comment{
    margin-top:5px;
    font-size:12px;
    color:#666;
}
.comments_list .content ul li, .comments_list .preview_box ul li {
    list-style-type: disc;
    margin-left:25px;
}
.comments_list .content ol, .comments_list .preview_box ol {
    padding-left: 25px;
}
.comments_list .content ol li, .comments_list .preview_box ol li {
    list-style-type: decimal;
}