/*jquery-comments.js 1.4.0

(c) 2017 Joona Tykkyläinen, Viima Solutions Oy
jquery-comments may be freely distributed under the MIT license.
For all details and documentation:
http://viima.github.io/jquery-comments/*/

.jquery-comments * {
    box-sizing: border-box;
    text-shadow: none;
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
}

.jquery-comments a[href] {
    color: #2793e6;
    text-decoration: none;
}

.jquery-comments a[href]:hover {
    text-decoration: underline;
}

.jquery-comments .textarea, .jquery-comments input, .jquery-comments button {
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none;

    vertical-align: top;
    border-radius: 0;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: rgba(0, 0, 0, 0);
}

.jquery-comments button {
    vertical-align: inherit;
}

.jquery-comments .tag {
    color: inherit;
    font-size: 14px;
    line-height: 19px;
    background: #ddd;
    border: 1px solid #ccc;
    padding: 1px 3px;
    cursor: pointer;
    font-weight: normal;
    border-radius: 16px;
    transition: all 0.2s linear;
}

.jquery-comments .tag:hover {
    text-decoration: none;
    background-color: #d8edf8;
    border-color: #2793e6;
}

.jquery-comments [contentEditable=true]:empty:not(:focus):before {
    content: attr(data-placeholder);
    color: #CCC;
    position: inherit;
}

.jquery-comments i.fa {
    width: 16px;
    height: 16px;
    background-size: cover;
}

.jquery-comments i.fa.image:before {
    content: "";
}

.jquery-comments .spinner {
    font-size: 32px;
    text-align: center;
    padding: 8px;
    color: #666;
}

.jquery-comments ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jquery-comments .profile-picture, .jquery-comments i.profile-picture {
    float: left;
    width: 30px;
    height: 30px;
    max-width: 30px;
    max-height: 30px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.jquery-comments i.profile-picture {
    font-size: 50px;
    text-align: center;
}

.jquery-comments .profile-picture.round {
    border-radius: 50%;
}

.jquery-comments .commenting-field.main {
    margin-bottom: 12px;
}

.jquery-comments .commenting-field.main .profile-picture {
    margin-bottom: 16px;
}

.jquery-comments .textarea-wrapper {
    overflow: hidden;
    padding-left: 15px;
    position: relative;
}

.jquery-comments .textarea-wrapper:before {
    /*content: " ";*/
    /*position: absolute;*/
    /*border: 5px solid #D5D5D5;*/
    /*left: 5px;*/
    /*top: 0;*/
    /*width: 10px;*/
    /*height: 10px;*/
    /*box-sizing: border-box;*/
    /*border-bottom-color: rgba(0, 0, 0, 0);*/
    /*border-left-color: rgba(0, 0, 0, 0);*/
}

.jquery-comments .textarea-wrapper:after {
    /*content: " ";*/
    /*position: absolute;*/
    /*border: 7px solid #FFF;*/
    /*left: 7px;*/
    /*top: 1px;*/
    /*width: 10px;*/
    /*height: 10px;*/
    /*box-sizing: border-box;*/
    /*border-bottom-color: rgba(0, 0, 0, 0);*/
    /*border-left-color: rgba(0, 0, 0, 0);*/
}

.jquery-comments .textarea-wrapper .inline-button {
    cursor: pointer;
    right: 0;
    z-index: 10;
    position: absolute;
    border: 8px solid rgba(0, 0, 0, 0);
    box-sizing: content-box;
    font-size: inherit;
    overflow: hidden;
    opacity: 0.5;

    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.jquery-comments .textarea-wrapper .inline-button:hover {
    opacity: 1;
}

.jquery-comments:not(.mobile) .commenting-field-scrollable .textarea-wrapper .inline-button {
    margin-right: 15px; /* Because of scrollbar */
}

.jquery-comments .textarea-wrapper .upload.inline-button i {
    font-size: 20px;
}

.jquery-comments .textarea-wrapper .upload input {
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
}

.jquery-comments .textarea-wrapper .close {
    width: 16px;
    height: 16px;
}

.jquery-comments .textarea-wrapper .close span {
    width: 25%;
    left: 37.5%;
    height: 100%;
    position: absolute;
    -ms-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.jquery-comments .textarea-wrapper .close .right {
    -ms-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.textarea-wrapper .textarea {
    padding-right: 60px;
    min-height: 50px;
}

.textarea-wrapper .control-row {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
}

.textarea-wrapper .control-row .send {
    background: none !important; /* без фону */
    border: none !important; /* без рамки */
    color: inherit; /* той самий текстовий колір */
    font-size: 14px; /* зменшений розмір */
    padding: 0;
    cursor: pointer;
}

.jquery-comments .textarea-wrapper .textarea {
    margin: 0;
    outline: 0;
    overflow-y: auto;
    overflow-x: hidden;
    cursor: text;

    border: 1px solid #CCC;
    border-radius: 70px;
    font-size: 14px;
    line-height: 18px;
    padding: 15px 20px 15px 10px;
}

.jquery-comments:not(.mobile) .commenting-field-scrollable .textarea-wrapper .textarea {
    padding-right: calc(31px); /* Because of scrollbar */
}

.jquery-comments .textarea-wrapper .control-row > span {
    float: right;

    color: var(--accent);
    padding: 0 16px;
    font-size: 20px;
    line-height: 25px;
    margin-top: 5px;
    border: 1px solid rgba(0, 0, 0, 0);
    opacity: .5;
}

.jquery-comments .textarea-wrapper .control-row > span:not(:first-child) {
    margin-right: 8px;
}

.jquery-comments .textarea-wrapper .control-row > span.enabled {
    opacity: 1;
    cursor: pointer;
}

.jquery-comments .textarea-wrapper .control-row > span:not(.enabled) {
    pointer-events: none;
}

.jquery-comments .textarea-wrapper .control-row > span.enabled:hover {
    opacity: .9;
}

.jquery-comments .textarea-wrapper .control-row > span.upload {
    position: relative;
    overflow: hidden;
    background-color: #999;
}

.jquery-comments ul.navigation {
    clear: both;
    color: #CCC;
    line-height: 18px;
    font-size: 16px;
    margin-bottom: 8px;
}

.jquery-comments ul.navigation .navigation-wrapper {
    position: relative;
}

.jquery-comments ul.navigation li {
    display: inline-block;
    position: relative;
    padding: 0 10px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;

    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.jquery-comments ul.navigation li.title {
    margin-right: 0;
}

.jquery-comments ul.navigation li.active,
.jquery-comments ul.navigation li:hover {
    color: #4a4a4a;
}

.jquery-comments ul.navigation li.active:after {
    content: " ";
    display: block;
    right: 0;
    height: 2px;
    background: #4a4a4a;
    position: absolute;
    bottom: -2px;
    left: 0;
}

.jquery-comments ul.navigation li[data-sort-key="attachments"] {
    float: right;
}

.jquery-comments ul.navigation li[data-sort-key="attachments"] i {
    margin-right: 4px;
}

.jquery-comments ul.navigation .navigation-wrapper.responsive {
    display: none;
}

@media screen and (max-width: 600px) {
    .jquery-comments ul.navigation .navigation-wrapper {
        display: none;
    }

    .jquery-comments ul.navigation .navigation-wrapper.responsive {
        display: inline;
    }
}

.jquery-comments.responsive ul.navigation .navigation-wrapper {
    display: none;
}

.jquery-comments.responsive ul.navigation .navigation-wrapper.responsive {
    display: inline;
}

.jquery-comments ul.navigation .navigation-wrapper.responsive li.title header:after {
    display: inline-block;
    content: "";
    border-left: 5px solid rgba(0, 0, 0, 0) !important;
    border-right: 5px solid rgba(0, 0, 0, 0) !important;
    border-top: 5px solid #CCC;
    margin-left: 8px;
    position: relative;
    top: -0.16px;
}

.jquery-comments ul.navigation .navigation-wrapper.responsive li.title.active header:after,
.jquery-comments ul.navigation .navigation-wrapper.responsive li.title:hover header:after {
    border-top-color: #4a4a4a;
}

.jquery-comments ul.dropdown {
    display: none;
    position: absolute;
    background: #FFF;
    z-index: 99;
    line-height: 19px;

    border: 1px solid #CCC;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    -moz-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    -ms-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}

.jquery-comments ul.dropdown.autocomplete {
    margin-top: 4px;
}

.jquery-comments ul.dropdown li {
    display: block;
    white-space: nowrap;
    clear: both;
    padding: 10px;
    font-weight: normal;
    cursor: pointer;
}

.jquery-comments ul.dropdown li.active {
    background: #EEE;
}

.jquery-comments ul.dropdown li a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.jquery-comments ul.dropdown li .profile-picture {
    float: left;
    width: 38px;
    height: 38px;
    margin-right: 8px;
}

.jquery-comments ul.dropdown li .details {
    display: inline-block;
}

.jquery-comments ul.dropdown li .name {
    font-weight: bold;
}

.jquery-comments ul.dropdown li .details.no-email {
    line-height: 38px;
}

.jquery-comments ul.dropdown li .email {
    color: #999;
    font-size: 15px;
    margin-top: 0.16px;
}

.jquery-comments ul.navigation .navigation-wrapper.responsive ul.dropdown {
    left: 0;
    width: 100%;
}

.jquery-comments ul.navigation .navigation-wrapper.responsive ul.dropdown li {
    color: #4a4a4a;
}

.jquery-comments ul.navigation .navigation-wrapper.responsive ul.dropdown li.active {
    color: #FFF;
}

.jquery-comments ul.navigation .navigation-wrapper.responsive ul.dropdown li:hover:not(.active) {
    background: #F5F5F5;
}

.jquery-comments ul.navigation .navigation-wrapper.responsive ul.dropdown li:after {
    display: none;
}

.jquery-comments .no-data {
    display: none;
    margin: 16px;
    text-align: center;
    font-size: 24px;
    color: #CCC;
}

.jquery-comments ul.main:empty ~ .no-comments {
    display: inherit;
}

.jquery-comments ul#attachment-list:empty ~ .no-attachments {
    display: inherit;
}

.jquery-comments ul.main li.comment {
    clear: both;
}

.jquery-comments ul.main li.comment .comment-wrapper,
.jquery-comments ul.main li.toggle-all,
.jquery-comments ul.main li.comment .commenting-field {
    padding: 8px;
}

.jquery-comments ul.main li.comment .comment-wrapper {
    margin-top: 5px;
    overflow: hidden;
}

.jquery-comments ul.main > li.comment:first-child > .comment-wrapper {
    border-top: none;
}

.jquery-comments ul.main li.comment .comment-wrapper > .profile-picture {
    margin-right: 16px;
}

.jquery-comments ul.main li.comment time {
    float: right;
    line-height: 22px;
    margin-left: 8px;
    font-size: 14px;
    color: var(--muted);
}

.jquery-comments ul.main li.comment .name {
    line-height: 18px;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 9px;
    font-size: 16px;
}

.jquery-comments ul.main li.comment .name a {
    color: inherit;
}

.jquery-comments ul.main li.comment .name .reply-to {
    color: #999;
    font-size: 13px;
    font-weight: normal;
    vertical-align: top;
}

.jquery-comments ul.main li.comment .name .reply-to i {
    margin-left: 8px;
    margin-right: 4px;
}

.jquery-comments ul.main li.comment .name .new {
    margin-left: 8px;
    background: #2793e6;
    font-size: 0.8em;
    padding: 3px 9px;
    color: #fff;
    font-weight: normal;
    border-radius: 16px;
    vertical-align: bottom;
}

.jquery-comments ul.main li.comment .comments-wrapper {
    line-height: 22px;
    overflow: hidden;
    padding: 0;
    max-width: 100%;
    font-size: 14px;
    color: var(--text);
}

.jquery-comments.mobile ul.main li.comment .child-comments li.comment .comments-wrapper {
    overflow: visible;
}

.data-container[data-container="comments"] .comment-wrapper .comments-wrapper .content {
    opacity: 0.5;
}

.login-to-comment {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    margin: 10px 0;
    color: #9b9b9b;
    text-align: center;
}

/* Content */
.jquery-comments ul.main li.comment .comments-wrapper .content {
    white-space: pre-line;
    word-break: break-word;
    font-size: 14px;
}

.jquery-comments ul.main li.comment .comments-wrapper .content a.attachment i {
    margin-right: 8px;
}

.jquery-comments ul.main li.comment .comments-wrapper .content a.attachment > * {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
    margin-top: 4px;
    margin-bottom: 4px;
}

.jquery-comments ul.main li.comment .comments-wrapper .content time.edited {
    float: inherit;
    margin: 0;
    font-size: 11px;
    font-style: italic;
    color: #999;
}

.jquery-comments ul.main li.comment .comments-wrapper .content time.edited:before {
    content: " - ";
}


/* Actions */
.jquery-comments.mobile ul.main li.comment .actions {
    font-size: 14px;
}

.jquery-comments ul.main li.comment .actions > * {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: var(--reply-text);
}

.jquery-comments ul.main li.comment .actions .action {
    display: inline-block;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

.jquery-comments ul.main li.comment .actions .action:first-child {
    margin-left: 0;
}

.jquery-comments ul.main li.comment .actions .action.upvote {
    cursor: inherit;
}

.jquery-comments ul.main li.comment .actions .action.upvote .upvote-count {
    margin-right: 8px;
}

.jquery-comments ul.main li.comment .actions .action.upvote .upvote-count:empty {
    display: none;
}

.jquery-comments ul.main li.comment .actions .action.upvote i {
    cursor: pointer;
}

.jquery-comments ul.main li.comment .actions .action:not(.upvote):hover,
.jquery-comments ul.main li.comment .actions .action.upvote:not(.highlight-font) i:hover {
    color: #666;
}

.jquery-comments ul.main li.comment .actions .action.delete {
    opacity: 0.5;
    pointer-events: none;
}

.jquery-comments ul.main li.comment .actions .action.delete.enabled {
    opacity: 1;
    pointer-events: auto;
}

.jquery-comments ul#attachment-list li.comment .actions .action:not(.delete) {
    display: none;
}

.jquery-comments ul#attachment-list li.comment .actions .action.delete {
    margin: 0;
}

.jquery-comments ul#attachment-list li.comment .actions .separator {
    display: none;
}


/* Child comments */
.jquery-comments ul.main li.comment .child-comments > *:before { /* Margin for second level content */
    content: "";
    height: 1px;
    float: left;

    width: 65px; /* Profile picture width plus margin */
    max-width: 58px; /* Profile picture max width plus margin */
}

.jquery-comments ul.main li.comment .child-comments .profile-picture {
    width: 38px;
    height: 38px;
}

.jquery-comments ul.main li.comment .child-comments i.profile-picture {
    font-size: 38px;
}

.jquery-comments ul.main li.comment .child-comments li.toggle-all {
    padding-top: 0;
}

.jquery-comments ul.main li.comment .child-comments li.toggle-all span:first-child {
    vertical-align: middle;
}

.jquery-comments ul.main li.comment .child-comments li.toggle-all span:first-child:hover {
    cursor: pointer;
    text-decoration: underline;
}

.jquery-comments ul.main li.comment .child-comments li.toggle-all .caret {
    display: inline-block;
    vertical-align: middle;
    width: 0;
    height: 0;

    margin-left: 8px;
    border: 4px solid;
    margin-top: 5px;

    border-left-color: rgba(0, 0, 0, 0);
    border-bottom-color: rgba(0, 0, 0, 0);
    border-right-color: rgba(0, 0, 0, 0);
}

.jquery-comments ul.main li.comment .child-comments li.toggle-all .caret.up {
    border-top-color: rgba(0, 0, 0, 0);
    border-bottom-color: inherit;
    margin-top: -3px;
}

.jquery-comments ul.main li.comment .child-comments .togglable-reply {
    display: none;
}

.jquery-comments ul.main li.comment .child-comments .visible {
    display: inherit;
}

.jquery-comments ul.main li.comment.hidden {
    display: none;
}

/* Editing comment */
.jquery-comments ul.main li.comment.edit > .comment-wrapper > *:not(.commenting-field) {
    display: none;
}

.jquery-comments ul.main li.comment.edit > .comment-wrapper .commenting-field {
    padding: 0 !important; /* Parent element has the padding */
}

/* Drag & drop attachments */
.jquery-comments.drag-ongoing {
    overflow-y: hidden !important;
}

.jquery-comments .droppable-overlay {
    display: table;
    position: fixed;
    z-index: 99;

    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3)
}

.jquery-comments .droppable-overlay .droppable-container {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}

.jquery-comments .droppable-overlay .droppable-container .droppable {
    background: #FFF;
    color: #CCC;
    padding: 96px;
}

.jquery-comments .droppable-overlay .droppable-container .droppable.drag-over {
    color: #999;
}

.jquery-comments .droppable-overlay .droppable-container .droppable i {
    margin-bottom: 5px;
}

/* Read-only mode */
.jquery-comments.read-only .commenting-field {
    display: none;
}

.jquery-comments.read-only .actions {
    display: none;
}

#comments-container {
    margin-bottom: 20px;
    text-align: left;
}

/* POPUPS */
.comments-popup .popup-holder {
    width: 575px;
    min-height: 148px;
    background-color: #ffffff;
    box-shadow: 0 4px 9px 2px rgba(0, 0, 0, 0.25);
    margin: 0 auto;
    position: relative;
    margin-top: 15%;
    overflow: hidden;
}

#blocked-comment-popup.comments-popup .popup-holder {
    min-height: 120px;
}

#blocked-comment-popup.comments-popup .content-area {
    font-size: 14px;
}

.comments-popup .text-center {
    text-align: center;
}

.comments-popup {
    display: none;
    display: block;
    position: fixed;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    z-index: 1001;
}

.comments-popup .content-area {
    position: absolute;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    color: #4a4a4a;
    top: 27px;
    left: 31px;
    right: 31px;
    text-align: left;
    margin-bottom: 31px;
    line-height: 1.67;
}

#delete-comment-popup.comments-popup .content-area {
    font-size: 14px;
}

.comments-popup .content-area a {
    font-family: 'Open Sans', sans-serif;
    color: #2f4b6a;
    font-weight: bold;
    text-decoration: none;
}

.comments-popup .content-area a:hover {
    text-decoration: underline;
}

.comments-popup .close {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 15px;
    height: 15px;
    opacity: 0.3;
}

.comments-popup .close:hover {
    opacity: 1;
}

.comments-popup .close:before, .close:after {
    position: absolute;
    left: 8px;
    content: ' ';
    height: 15px;
    width: 2px;
    background-color: #4a4a4a;
}

.comments-popup .close:before {
    transform: rotate(45deg);
}

.comments-popup .close:after {
    transform: rotate(-45deg);
}

.comments-popup .gotit-btn {
    background-color: #603813;
    width: 100px;
    color: #fff;
    padding: 5px 15px;
    text-align: center;
    float: right;
    cursor: pointer;
}

.comments-popup .gotit-btn:hover {
    background-color: #733E0D;
}

.comments-popup .yes-btn {
    background-color: #603813;
    width: 100px;
    color: #fff;
    padding: 5px 15px;
    text-align: center;
    float: right;
    cursor: pointer;
    margin-top: 30px;
    margin-right: 10px;
}

.comments-popup .yes-btn:hover {
    background-color: #733E0D;
}

.comments-popup .no-btn {
    background-color: #0C5C79;
    width: 100px;
    color: #fff;
    padding: 5px 15px;
    text-align: center;
    float: right;
    cursor: pointer;
    margin-top: 30px;
}

.comments-popup .no-btn:hover {
    background-color: #008aac;
}

@media screen and (max-width: 580px) {
    .comments-popup .popup-holder {
        width: 95%;
    }

    .comments-popup .content-area {
        text-align: left;
    }

    .comments-popup .gotit-btn {
        position: relative;
        float: left;
        top: 0px;
        left: 0px;
        margin-left: 25px;
        margin-bottom: 25px;
    }
}

@media screen and (max-width: 500px) {
    .comments-popup .popup-holder {
        min-height: 168px;
    }
}

@media screen and (max-width: 400px) {
    .comments-popup .popup-holder {
        min-height: 185px;
    }
}

#comments-container ul:after {
    border: none !important;
}