/*
 * List
 *****************************************************************************/

.ec-message {
    min-height: 20px;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #E5E5E5;
}

.ec-message p {
    margin-bottom: 10px !important;
}

.ec-message p:last-child {
    margin-bottom: 0;
}
.ec-message__meta {
    margin: 0 0 6px 0;
    line-height: 32px;
}
.ec-message__meta .ec-message__author {
    float: left;
    font-weight: bold;
}
.ec-message__meta .ec-message__date {
    float: left;
}
.ec-message__meta .ec-message__votes {
    float: right;
}
.ec-message__date {
    font-size: 12px;
    color: #999;
    padding-left: 20px;
}

.ec-message__reply {
    margin-left: 20px;
}
.ec-message__reply p:last-child {
    margin-bottom: 0;
}
/*
 * Votes
 *****************************************************************************/
.ec-message__votes {
    position: relative;
    padding: 5px 15px;
    background: #ffffff;
    border-radius: 5px 5px 0 0;
}
.ec-message__votes-item {
    float: left;
    display: block;
}
.ec-message__votes-item + .ec-message__votes-item {
    margin-left: 15px;
}
.ec-message__votes-button {
    display: block;
    height: 22px;
    line-height: 22px;
    padding-left: 20px;
    cursor: default;

    color: #8b8b8b;
    text-decoration: none;
}
.ec-message__votes-button:hover,
.ec-message__votes-button:active,
.ec-message__votes-button:focus {
    text-decoration: none;
}
.ec-message__votes-button:hover,
.ec-message__votes-button:active,
.ec-message__votes-button:focus {
    color: #8b8b8b;
}
.ec-message__votes-button.enabled {
    cursor: pointer;
}
.ec-message__votes-button.enabled:hover,
.ec-message__votes-button.enabled:active,
.ec-message__votes-button.enabled:focus {
    color: #337ab7;
}
.ec-message__votes-button.active {
    color: #337ab7;
}
.ec-message__votes-button-like {
    background: url(../../img/web/ec-votes.png) 0 0 no-repeat;
}
.ec-message__votes-button-dislike {
    background: url(../../img/web/ec-votes.png) 0 -22px no-repeat;
}
.ec-message__votes-button-like.enabled:hover {
    background-position: 0 -88px;
}
.ec-message__votes-button-dislike.enabled:hover {
    background-position: 0 -110px;
}
.ec-message__votes-button-like.active {
    background-position: 0 -88px;
}
.ec-message__votes-button-dislike.active {
    background-position: 0 -110px;
}
.ec-message__votes-bar {
    display: block;
    position: absolute;
    height: 2px;
    bottom: -2px;
    left: 0;
    right: 0;
    background: #dddddd;
}
.ec-message__votes-bar span {
    display: block;
    width: 0;
    height: 2px;
    background: #337ab7;
}
/*
 * Form
 *****************************************************************************/
.ec-error {
    display: none;
}

.ec-antispam {
    display: none;
}

/*
 * Common, stars image
 *****************************************************************************/
.ec-rating-stars span,
.ec-stars,
.ec-stars span {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAyMCAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzFfNCkiPgo8cGF0aCBkPSJNMTYgMjIuMTExMkwxMC4xODk2IDIxLjcxNDNMOCAxNkw1LjgxMDQxIDIxLjcxNDNMMCAyMi4xMTEzTDQuNDU4MDYgMjYuMDM3MUwyLjk5NTUgMzJMOCAyOC43MTQyTDEzLjAwNDUgMzJMMTEuNTQyIDI2LjAzNzRMMTYgMjIuMTExMlpNOCAyNy41NjJMNC40ODU1IDI5Ljg2OTZMNS41MTEzNCAyNS42ODcyTDIuMzY5NjYgMjIuOTI1MUw2LjQ2MjUgMjIuNjQ1OEw4IDE4LjYzMzNMOS41Mzc1IDIyLjY0NThMMTMuNjM1MSAyMi45MjUxTDEwLjQ4ODYgMjUuNjg3TDExLjUxNDUgMjkuODY5Nkw4IDI3LjU2MloiIGZpbGw9IiM4QjhCOEIiLz4KPHBhdGggZD0iTTE2IDYuMTExMTVMMTAuMTg2MyA1LjcxNDA5TDcuOTk2ODEgMEw1LjgwNzM0IDUuNzE0MDlMMCA2LjExMTE1TDQuNDU0MTkgMTAuMDQwMUwyLjk5MjU2IDE2TDcuOTk2ODEgMTIuNzE0TDEzLjAwMTEgMTZMMTEuNTM5NSAxMC4wNDAxTDE2IDYuMTExMTVaIiBmaWxsPSJibGFjayIvPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzFfNCI+CjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIzMiIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K")
}


/*
 * Rating input
 *****************************************************************************/
.ec-rating {

}
.ec-rating-stars {
    float:left;
    margin-right: 20px;
}
.ec-rating-stars span {
    background-position: 0 -16px;
    background-repeat: no-repeat;
    width: 20px;
    height: 16px;
    float:left;
    display:block;
    margin: 0;
    cursor:pointer;
}
.ec-rating-stars span.active {
    background-position: 0 0;
}
.ec-rating-stars span.active2 {
    background-position: 0 0;
}
.ec-rating-stars span.active-disabled {
    background-position: 0 -16px;
}
.ec-rating-description {
    float:left;
    padding-top: 1px;
    color:#999;
}

/*
 * Stars
 *****************************************************************************/
.ec-stars {
    background-position: 0 -16px;
    background-repeat: repeat-x;
    margin: 10px 0;
    width: 96px;
    height: 16px;
}
.ec-stars span{
    background-position: 0 0;
    background-repeat: repeat-x;
    display: block;
    height: 16px;
    width: 0;
}

.ec-stars span.rating-0{width: 0;}
.ec-stars span.rating-1{width: 16px;}
.ec-stars span.rating-2{width: 36px;}
.ec-stars span.rating-3{width: 56px;}
.ec-stars span.rating-4{width: 76px;}
.ec-stars span.rating-5{width: 96px;}

/*
 * Detailed Rating
 *****************************************************************************/
.ec-d-rating {
    width: 100%;
    max-width: 500px;
    display: flex;
}
.ec-d-rating:after {
    content: "";
    clear: both;
    display: table;
}
.ec-d-rating__col-info {
    width: 130px;
    padding-top: 12px;
}
.ec-d-rating__col-lines {
    width: 250px;
    width: calc(100% - 130px);
}
.ec-d-rating__value {
    font-size: 50px;
    line-height: 1;
    color: #333333;
}
.ec-d-rating__stars {

}
.ec-d-rating__desc {
    margin-top: 12px;
    color: #8b8b8b;
}

.ec-d-rating__line {
    position: relative;
    line-height: 1;
    color: #8b8b8b;
    margin: 10px 0;
}
.ec-d-rating__line:after {
    content: "";
    clear: both;
    display: table;
}
.ec-d-rating__line-rate {
    float: left;
    text-align: left;
    padding-left: 5px;
}
.ec-d-rating__line-progress {
    position: absolute;
    left: 30px;
    right: 60px;
    top: 50%;
    margin-top: -2px;
    background-color: #ECECEC;
}
.ec-d-rating__line-progress > span {
    display: block;
    height: 4px;
    background-color: #000;
}
.ec-d-rating__line-volume {
    float: right;
    width: 60px;
    text-align: right;
}


/* More */

.ec-form__desc {
    font-size: 0.9em !important;
    line-height: 1.5em !important;
}
.ec-form__desc a {
    text-decoration: underline !important;
}


/*
* Photos
*/

.ec-message__files {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 10px;
}

.ec-message__files-item {
    border: 2px solid transparent;
    transition: border-color .2s ease-in-out;
    
    overflow: hidden;
}

.ec-message__files-item img {
    transition: transform .5s ease-in-out;
    object-fit: cover;
}

.ec-message__files-item:hover {
     border: 2px solid #000;
}

.ec-message__files-item:hover img {
    transform: scale(1.1);
}

.ec-photo-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 10px;
}

.ec-photo-container__item {
    position: relative;
}

.ec-photo-container__delete {
    position: absolute;
    top: 5px;
    right: 5px;
    
    width: 28px;
    height: 28px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    cursor: pointer;
    
    background-color: #000;
}

.ec-photo-container__delete svg {
    fill: #FFF !important;
}

@media screen and (min-width: 1026px) {
    .ec-message__files {
        grid-template-columns: repeat(6, 1fr);
    }  
}

/*
 * Clearfix
 *****************************************************************************/
.ec-clearfix:before,
.ec-clearfix:after {
    content: " ";
    display: table;
}
.ec-clearfix:after {
    clear: both;
}
.ec-clearfix {
    *zoom: 1;
}