#bmhouse-comments
{
    width: 100%;
    margin-top: 20px;
    font-size: 14px;
    color: #111;
}

#bmhouse-comments .bmhouse-comment-header {
    display: flex;
    justify-content: space-between;
}

#bmhouse-comments .bmhouse-comments-title
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 24px;
}

#bmhouse-comments .bmhouse-comments-rating 
{
    display: flex;
    align-items: center;
}

.bmhouse-comments-form-item--licence .field--licence {
    width: auto;
    margin-right: 5px;
}

.bmhouse-comments-form-item--licence a {
    color: var(--main-color);
    text-decoration: none;
}

#bmhouse-comments .bmhouse-comments-count
{
    display: inline-block;
    font-size: 13px;
    margin-left: 5px;
}

#bmhouse-comments .bmhouse-comments-rating-background,
#bmhouse-comments .bmhouse-comments-rating-foreground
{
    height: 22px;
    width: 96px;
}

#bmhouse-comments .bmhouse-comments-rating-background
{
    background: url( '/local/templates/simpleIT/components/bmhouse/comments/custom/img/star_empty.svg' ) repeat-x;
    background-size: 19px 22px;
}

#bmhouse-comments .bmhouse-comments-rating-foreground
{
    background: url( '/local/templates/simpleIT/components/bmhouse/comments/custom/img/star_full.svg' ) repeat-x;
    background-size: 19px 22px;
}

#bmhouse-comments .bmhouse-comments-stats
{
    margin-top: 20px;
    display: inline-block;
}

#bmhouse-comments .bmhouse-comments-stat
{
    margin-bottom: 10px;
    padding: 1px 5px;
    cursor: pointer;
    position: relative;
}

#bmhouse-comments .bmhouse-comments-stat-only-rating
{
    position: absolute;
    left: 200px;
    top: -22px;
    background-color: #77bbee;
    border: 1px solid #5599cc;
    color: #fff;
    width: 255px;
    padding: 2px 6px;
    display: none;
    transition: display 0.3s;
    z-index: 1;
}

#bmhouse-comments .bmhouse-comments-stat:hover
{
    padding: 0 4px;
    border: 1px solid #ddd;
}

#bmhouse-comments .bmhouse-comments-stat.active
{
    padding: 0 4px;
    border: 1px solid #ccc;
}

#bmhouse-comments .bmhouse-comments-stat:hover .bmhouse-comments-stat-only-rating
{
    display: block;
}

#bmhouse-comments .bmhouse-comments-stat-title,
#bmhouse-comments .bmhouse-comments-stat-line,
#bmhouse-comments .bmhouse-comments-stat-count
{
    display: inline-block;
}

#bmhouse-comments .bmhouse-comments-stat-title
{
    width: 100px;
}

#bmhouse-comments .bmhouse-comments-stat-line
{
    width: 200px;
    height: 7px;
    border: 1px solid #5599cc;
    background-color: #f7f7f7;
    border-radius: 3px;
    margin-right: 20px;
}

#bmhouse-comments .bmhouse-comments-stat-line-fill
{
    background-color: #5599cc;
    height: 7px;
    border-radius: 3px;
}

#bmhouse-comments .bmhouse-comments-button
{
    display: inline-block;
}


#bmhouse-comments .bmhouse-comments-block
{
    margin-top: 30px;
}

#bmhouse-comments .bmhouse-comment
{
    width: 100%;
    margin-bottom: 30px;
    border-bottom: 1px solid #e2e2e2;
    padding-bottom: 20px;
    box-sizing: border-box;
}
#bmhouse-comments .bmhouse-comment:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

#bmhouse-comments .bmhouse-comment.hidden
{
    display: none;
}

#bmhouse-comments .bmhouse-comment-left
{
    display: inline-block;
    width: 50px;
    vertical-align: top;
}

#bmhouse-comments .bmhouse-comment-left > div
{
    width: 50px;
    height: 50px;
    background-color: #f7f7f7;
    border: 2px solid #5599cc;
    color: #5599cc;
    text-align: center;
    border-radius: 30px;
    font-weight: bold;
    overflow: hidden;
}

#bmhouse-comments .bmhouse-comment-left .bmhouse-comment-userletter span
{
    position: relative;
    top: 14px;
}

#bmhouse-comments .bmhouse-comment-right
{
    display: inline-block;
    width: 100%;
}

#bmhouse-comments .bmhouse-comment-left + .bmhouse-comment-right
{
    margin-left: 20px;
    width: calc( 100% - 80px );
}

#bmhouse-comments .bmhouse-comment-name
{
    font-weight: bold;
    font-size: 15px;
    display: inline-block;
    color: #111;
}

#bmhouse-comments .bmhouse-comment-date
{
    display: inline-block;
    color: #aaa;
    font-size: 13px;
    margin-left: 3px;
}

#bmhouse-comments .bmhouse-comment-image
{
    margin-top: 15px;
    display: flex;
    align-items: center;
}

#bmhouse-comments .bmhouse-comment-image img
{
    max-width: 150px;
    max-height: 150px;
    cursor: pointer;
    margin: 0;
}

#bmhouse-comments .bmhouse-comment-image img + img
{
    margin-left: 10px;
}

#bmhouse-comments .bmhouse-comment-image img.active
{
    max-width: 90vw;
    max-height: 400px;
}

#bmhouse-comments .bmhouse-comment-rating
{
    margin-bottom: 15px;
}

#bmhouse-comments .bmhouse-comment-rating-background,
#bmhouse-comments .bmhouse-comment-rating-foreground
{
    height: 22px;
    width: 96px;
}

#bmhouse-comments .bmhouse-comment-rating-background
{
    background: url( '/local/templates/simpleIT/components/bmhouse/comments/custom/img/star_empty.svg' ) repeat-x;
    background-size: 19px 22px;
}

#bmhouse-comments .bmhouse-comment-rating-foreground
{
    background: url( '/local/templates/simpleIT/components/bmhouse/comments/custom/img/star_full.svg' ) repeat-x;
    background-size: 19px 22px;
}

#bmhouse-comments .bmhouse-comments-form__wrap {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(0,0,0,.4);
    z-index: 15;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all .2s linear;
    transition-behavior: allow-discrete;
    opacity: 0;
}

#bmhouse-comments .bmhouse-comments-form__wrap.bmhouse-comments-form__wrap-visible {
    display: flex;
    opacity: 1;

    @starting-style {
        opacity: 0;
    }
}

#bmhouse-comments .bmhouse-comments-form {
    box-sizing: border-box;
    padding: 15px;
    border-radius: 15px;
    background: var(--color-white);
    max-width: 90svw;
    max-height: 90svh;
    overflow: auto;
}

#bmhouse-comments .bmhouse-comments-form-title {
    margin-bottom: 30px;
    position: relative;
    user-select: none;
    font-size: 16px;
    margin-top: 22px;
    text-align: center;
    font-weight: 700;
}

#bmhouse-comments .bmhouse-comments-form-title svg {
    fill: #A0A0A0;
    position: absolute;
    right: 0;
    top: -22px;
    width: 17px;
    height: auto;
    aspect-ratio: 1 / 1;
    transition: all .2s linear;
    cursor: pointer;
}

#bmhouse-comments .bmhouse-comments-form-title svg:hover {
    fill: var(--main-color);
}

#bmhouse-comments .bmhouse-comments-form-item {
    display: grid;
}
#bmhouse-comments .bmhouse-comments-form-item:not(:last-of-type)
{
    margin-bottom: 20px;
}

#bmhouse-comments .bmhouse-comments-form-item > label
{
    display: block;
    font-weight: 300;
}

.bmhouse-comment-image-add {
    display: flex;
    align-items: center;
    font-weight: 300;
    cursor: pointer;
}

#bmhouse-comments .bmhouse-comments-form-item-group
{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bmhouse-comments-form-item-group .bmhouse-comments-form-item {
    flex-grow: 1;
}

.bmhouse-comments-form-item input, .bmhouse-comments-form-item textarea {
    padding: 9px 13px;
    outline: 0;
    box-shadow: none;
    color: #383838;
    font-size: inherit;
    border-radius: 10px;
    background: #fafafa;
    transition: all .2s linear;
    width: 100%;
    border: 1px solid #eaeaea;
}


.bmhouse-comments-form-input-group label {
    position: relative;
    bottom: -8px;
    left: 12px;
    transition: all .2s linear;
    color: #aaa;
    pointer-events: none;
    height: 0;
}

.bmhouse-comments-form-input-group:has(input:focus) label,
.bmhouse-comments-form-input-group:has(input:not(:placeholder-shown)) label,
.bmhouse-comments-form-input-group:has(textarea:focus) label,
.bmhouse-comments-form-input-group:has(textarea:not(:placeholder-shown)) label {
    bottom: 0;
    left: 0;
    color: #323232;
    height: 19px;
}

.bmhouse-comments-form-item-group .bmhouse-comments-form-item + .bmhouse-comments-form-item {
    margin-left: 15px;
}

#bmhouse-comments .bmhouse-comments-form-item > textarea
{
    height: 100px;
}

#bmhouse-comments .bmhouse-comments-form-rating
{
    display: inline-block;
    border-radius: 8px;
    padding: 2px;
}

#bmhouse-comments .bmhouse-comments-form-rating.field--error
{
    border-color: var(--bs-red);
}

#bmhouse-comments .bmhouse-comments-form-rating-star
{
    display: inline-block;
    height: 22px;
    width: 19px;
    background: url( '/local/templates/simpleIT/components/bmhouse/comments/custom/img/star_empty.svg' ) repeat-x;
    background-size: 19px 22px;
    cursor: pointer;
}

#bmhouse-comments .bmhouse-comments-form-rating-star.bmhouse-comments-form-rating-star-hover
{
    background: url( '/local/templates/simpleIT/components/bmhouse/comments/custom/img/star_full.svg' ) repeat-x;
    background-size: 19px 22px;
}

#bmhouse-comments .bmhouse-comments-form-item .bmhouse-comments-button
{
    margin-left: 0;
    margin-top: 20px;
    width: 100%;
}

#bmhouse-comments .bmhouse-comments-form-item .bmhouse-comments-button a
{
    /*bottom: 0;*/
    /*display: block;*/
}

#bmhouse-comments .bmhouse-comments-form-item > .bmhouse-comment-image-input {
    display: none;
}

#hidden-frame
{
    width: 0;
    height: 0;
    display: none;
}

#bmhouse-comments-show-more-comments
{
    background-color: #f9f9fb;
    text-decoration: none;
    padding: 10px 10px;
    border-radius: 4px;
    text-align: center;
    position: relative;
    margin-bottom: 30px;
    display: block;
    text-decoration-style: dotted;
    text-decoration-line: underline;
    color: #8f8f8f;
    transition: all .3s;
}

#bmhouse-comments-show-more-comments:hover {
    cursor: pointer;
    text-decoration-line: none;
    color: #444444;
}

.bmhouse-comment-voting
{
    margin-top: 20px;
}

.bmhouse-comment-voting a
{
    text-decoration: none;
    color: #333;
    display: inline-block;
    padding: 0 5px;
    line-height: 30px;
    box-sizing: border-box;
}

.bmhouse-comment-voting a:first-child
{
    margin-right: 10px;
}

.bmhouse-comment-voting a span
{
    display: inline-block;
    margin-right: 4px;
}

.bmhouse-comment-vote-up
{
    border: 1px solid #afd6af;
}

.bmhouse-comment-vote-up:hover
{
    background-color: #cff6cf;
}

.bmhouse-comment-vote-down
{
    border: 1px solid #d8b9b9;
}

.bmhouse-comment-vote-down:hover
{
    background-color: #f8d9d9;
}

.bmhouse-comment-vote-up.disabled,
.bmhouse-comment-vote-down.disabled
{
    border: 1px solid #ccc;
    background-color: #ddd;
}

.bmhouse-comment-answer
{
    background-color: #e3e7f5;
    margin-top: 20px;
    padding: 10px 20px;
}

.bmhouse-comment-moderation
{
    margin-top: 20px;
    color: red;
}

.bmhouse-comment-moderation a
{
    background-color: #5599cc;
    color: #fff;
    text-decoration: none;
    padding: 5px 15px 7px;
    border-radius: 6px;
    margin-left: 20px;
}

.bmhouse-comment-moderation a[data-action="DELETE"]
{
    background-color: #ff0000;
}

.bmhouse-comment-moderation a:hover
{
    background-color: #4488bb;
}

.bmhouse-comment-moderation a[data-action="DELETE"]:hover
{
    background-color: #ee0000;
}

#bmhouse-comments .bmhouse-comment-answer-add
{
    margin-top: 30px;
}

#bmhouse-comments .bmhouse-comment-answer-add textarea
{
    height: 100px;
    min-height: 100px;
    background-color: #f8f8f8;
    font-size: 14px;
    font-family: Verdana;
}

#bmhouse-comments .bmhouse-comment-answer-add a
{
    background-color: #5599cc;
    color: #fff;
    text-decoration: none;
    padding: 5px 15px 7px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 5px;
}

#bmhouse-comments .bmhouse-comment-answer-add a:hover
{
    background-color: #4488bb;
}

.bmhouse-comments-button-show-all {
    text-decoration-style: dotted;
    text-decoration-line: underline;
    color: #8f8f8f;
    transition: all .3s;
}

.bmhouse-comments-button-show-all:hover {
    cursor: pointer;
    text-decoration-line: none;
    color: #444444;
}

.bmhouse-comments-no-comments-text {
    color: #A0A0A0;
}

#bmhouse-comments .bmhouse-comment-text p
{
    margin-top: 10px;
    margin-bottom: 0;
    color: var(--color-gray-80);
}

#bmhouse-comments .bmhouse-comment-text p b
{
    color: #323232;
}


#bmhouse-comments .bmhouse-comment-text-recall--hidden 
{
    display: none;
}

#bmhouse-comments .bmhouse-comment-text-recall--show 
{
    display: inline;
}

#bmhouse-comments .bmhouse-comment-text-ellipsis--show 
{
    display: inline;
}

#bmhouse-comments .bmhouse-comment-text-ellipsis--hidden 
{
    display: none;
}

#bmhouse-comments .bmhouse-comment-text p:first-child
{
    margin-top: 20px;
}

#bmhouse-comments .bmhouse-comments-sort
{
    margin: 10px 0 20px;
}

#bmhouse-comments .bmhouse-comments-sort a
{
    display: inline-block;
    margin-left: 10px;
    text-decoration: none;
}

#bmhouse-comments .bmhouse-comments-sort a.bmhouse-comments-sort-active
{
    font-weight: bold;
    color: #000;
    cursor: default;
}

.bmhouse-comment-image-delete {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #d9d9d9;
    border-radius: 50%;
    right: 0;
    top: 0;
    transform: translate(50%, -50%);
    transition: all .3s;
}

#bmhouse-comments .bmhouse-comments-form-item > .bmhouse-comment-image-add.bmhouse-comment-error {
    border: 1px solid red;
}

.bmhouse-comment-image-delete svg {
    opacity: .8;
    transition: all .3s;
}

.bmhouse-comment-image-delete:hover {
    cursor: pointer;
}

.bmhouse-comment-image-delete:hover svg {
    transform: rotateZ(180deg);
}

.bmhouse-comment-image-wrapper {
    position: relative;
    display: inline-block;
}

.bmhouse-comment-image-wrapper + .bmhouse-comment-image-wrapper {
    margin-left: 10px;
}

.bmhouse-comment-errors-list {
    margin: 0;
    font-size: 12px;
    color: #f44336;
}

.bmhouse-comment-errors-list .bmhouse-comment-errors-item {
    margin: 0;
    padding-left: 15px;
}

.bmhouse-comments-no-comments {
    border-bottom: 1px solid #e2e2e2;
    border-top: 1px solid #e2e2e2;
    padding: 20px 0;
}

.bmhouse-comments-no-comments-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

@media (max-width: 768px)
{
    #bmhouse-comments .bmhouse-comments-title {
        flex-direction: column;
        align-items: flex-start;
    }

    #bmhouse-comments .bmhouse-comments-rating {
        align-items: flex-start;
        margin-top: 15px;
        margin-bottom: 15px;
    }

    #bmhouse-comments .bmhouse-comments-button {
        margin-left: 0;
    }

    #bmhouse-comments .bmhouse-comments-form-item-group {
        flex-direction: column;
    }


    .bmhouse-comments-form-item-group .bmhouse-comments-form-item {
        width: 100%;
    }

    .bmhouse-comment-image-add svg {
        display: none;
    }

    .bmhouse-comments-form-item-group .bmhouse-comments-form-item + .bmhouse-comments-form-item {
        margin: 0;
    }
}

@media screen and (max-width: 700px)
{
    #bmhouse-comments .bmhouse-comments-stats
    {
        display: block;
        margin-bottom: 100px;
    }
}

@media screen and (max-width: 427px)
{
    #bmhouse-comments .bmhouse-comments-button,
    #bmhouse-comments .bmhouse-comments-form-item .bmhouse-comments-button
    {
        margin-left: 0;
    }
}