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

#bmhouse-comments .bmhouse-comments-title
{
	margin-top: 10px;
	margin-bottom: 20px;
	font-size: 24px;
}

#bmhouse-comments .bmhouse-comments-rating,
#bmhouse-comments .bmhouse-comments-count
{
	display: inline-block;
}

#bmhouse-comments .bmhouse-comments-count
{
	position: relative;
	top: -5px;
}

#bmhouse-comments .bmhouse-comments-rating-background,
#bmhouse-comments .bmhouse-comments-rating-foreground
{
	height: 22px;
	width: 110px;
	background: url( '/bitrix/components/bmhouse/comments/templates/.default/img/stars.png' ) repeat-x;
}

#bmhouse-comments .bmhouse-comments-rating-foreground
{
	background-position: 0 -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: #f82c44;
    border: 1px solid #f82c44;
    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 #f82c44;
	background-color: #f7f7f7;
	border-radius: 3px;
	margin-right: 20px;
}

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

#bmhouse-comments .bmhouse-comments-button
{
	display: inline-block;
	margin-left: 50px;
}

#bmhouse-comments .bmhouse-comments-button a
{
	background-color: #f82c44;
	color: #fff;
	text-decoration: none;
	padding: 20px 40px;
	border-radius: 6px;	
	position: relative;
	bottom: 52px;
	font-weight: bold;
}

#bmhouse-comments .bmhouse-comments-button a:hover
{
	background-color: #b0b834;
}

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

#bmhouse-comments .bmhouse-comment
{
	width: 100%;
	margin-bottom: 30px;
	border-bottom: 1px solid #f82c44;
	padding-bottom: 20px;
}

#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 #f82c44;
	color: #f82c44;
	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;
	margin-left: 20px;
	width: calc( 100% - 80px );
}

#bmhouse-comments .bmhouse-comment-header
{
	margin-bottom: 14px;
}

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

#bmhouse-comments .bmhouse-comment-date
{
	font-weight: bold;
	display: inline-block;
	color: #aaa;
	font-size: 10px;
	margin-left: 20px;
}

#bmhouse-comments .bmhouse-comment-image
{
	margin-top: 15px;
}

#bmhouse-comments .bmhouse-comment-image img
{
	max-width: 100px;
	max-height: 100px;
	cursor: pointer;
	transition: max-width 0.5s, max-height 0.5s, width 0.5s, height 0.5s;
}

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

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

#bmhouse-comments .bmhouse-comment-rating-background,
#bmhouse-comments .bmhouse-comment-rating-foreground
{
	height: 22px;
	width: 110px;
	background: url( '/bitrix/components/bmhouse/comments/templates/.default/img/stars.png' ) repeat-x;
}

#bmhouse-comments .bmhouse-comment-rating-foreground
{
	background-position: 0 -22px;
}

#bmhouse-comments .bmhouse-comments-form
{
	margin-top: 20px;
}

#bmhouse-comments .bmhouse-comments-form-title
{
	margin-bottom: 30px;
	font-size: 20px;
}

#bmhouse-comments .bmhouse-comments-form-item
{
	margin-bottom: 20px;
}

#bmhouse-comments .bmhouse-comments-form-item > label
{
	width: 100px;
	display: inline-block;
	vertical-align: top;
}

#bmhouse-comments .bmhouse-comments-form-item > input,
#bmhouse-comments .bmhouse-comments-form-item > textarea
{
	width: 275px;
	padding: 5px 10px;
	border-radius: 8px;
	resize: none;
	border: 1px solid #f82c44;
	font-size: 16px;
	font-family: Verdana;
}

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

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

#bmhouse-comments .bmhouse-comments-form-rating-star
{
	display: inline-block;
	height: 22px;
	width: 22px;
	background: url( '/bitrix/components/bmhouse/comments/templates/.default/img/stars.png' ) repeat-x;
	cursor: pointer;
}

#bmhouse-comments .bmhouse-comments-form-item .bmhouse-comments-button
{
	margin-left: 104px;
	margin-top: 20px;
}

#bmhouse-comments .bmhouse-comments-form-item .bmhouse-comments-button a
{
	bottom: 0;
}

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

#bmhouse-comments-show-more-comments
{
	background-color: #f82c44;
    color: #fff;
    text-decoration: none;
    padding: 10px 10px;
    border-radius: 4px;
    position: relative;
	margin-bottom: 30px;
	display: inline-block;
}

#bmhouse-comments-show-more-comments:hover
{
	background-color: #4488bb;
}

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

.bmhouse-comment-voting a
{
	text-decoration: none;
	color: #333;
	display: inline-block;
	padding: 1px 4px 6px;
}

.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 img
{
	position: relative;
	top: 4px;
	margin-top: -4px
}

.bmhouse-comment-vote-down img
{
	position: relative;
	top: 9px;
	margin-top: -4px;
}

.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;
}


@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;
	}
}