.hange_modal *,
.hange_modal *::before,
.hange_modal *::after {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.hange_modal_clearfix::before,
.hange_modal_clearfix::after {
	content: '';
	display: table;
}

.hange_modal_clearfix::after {
	clear: both;
}

.hange_modal_clearfix {
	zoom: 1;
}

.hange_modal a {
	color: #1b1c20;
	text-decoration: none;
}

.hange_modal a:hover {
	color: #b4211f;
}

.hange_modal {
	width: 550px;
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 90;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.hange_modal.nogallery {
	width: 350px;
}

.hange_modal,
.hange_modal * {
	font-family: 'Lato', arial, sans-serif;
	color: #000;
	line-height: 18px;
}

.hange_modal_header {
	background-color: #3C5168;
	padding: 5px 15px;
	border-radius: 4px 4px 0 0;
}

.hange_modal_header .hange_logo {
	float: left;
	display: inline-block;
	width: 100px;
	height: 40px;
	text-indent: -9000px;
	background: url('https://www.hange.ee/static/general/script/gfx/logo.svg') no-repeat 0 center;
	background-size: contain;
}

.hange_modal_header .client_name {
	float: left;
	display: inline-block;
	margin: 0 0 0 20px;
	font-size: 14px;
	line-height: 40px;
	color: #fff;
	font-weight: 700;
	max-width: 80%;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
	width: calc(100% - 150px);
}


.minim_modal {
	display: block;
	position: absolute;
	top: 20px;
	right: 14px;
	width: 20px;
	height: 12px;
	text-indent: -9000px;
	background: url('https://www.hange.ee/static/general/script/gfx/arrow-down-user.svg') no-repeat 0 0;
	background-size: contain;
	z-index: 99
}

.minim_modal.active {
	background: url('https://www.hange.ee/static/general/script/gfx/arrow-up-user.svg') no-repeat 0 0;
}

.hange_modal_content {
	background-color: #FCFBFA;
	padding: 15px;
	display: block;
	border-radius: 0 0 4px 4px;
}

.hange_modal_content.active {
	display: none
}

.hange_modal_content_heading {
	font-weight: 700;
	font-size: 16px;
	margin-bottom: 10px
}

.hange_modal_fifty {
	float: left;
	width: 50%;
}

.hange_modal_fifty.hange_modal_wider {
	float: none;
	width: 100%
}

.hange_modal_pull-left {
	float: left
}

.hange_modal_pull-right {
	float: right
}

.hange_modal_align-right {
	text-align: right;
}

.hange_modal_border_link a {
	border-bottom: 1px solid #bfbfbf;
	font-size: 14px;
}

.hange_modal_border_link a:hover {
	color: #b4211f;
	border-bottom: 1px solid #b4211f;
}

.hange_modal_rating {
	position: relative;
	margin: 5px 0 8px;
}

.hange_modal_rating_left {
	float: left;
	width: 70px;
	text-align: center;
}

.hange_modal_rating_left div {
	width: 70px;
	border-radius: 3px;
	background-color: #b4211f;
	padding: 4px 8px;
	font-size: 32px;
	line-height: 43px;
	color: #fff;
	font-weight: 700;
}

.hange_modal_rating-right {
	float: left;
	width: 170px;
}

.hange_modal_rating table {
	position: relative;
	font-size: 12px;
	border: 0;
}

.hange_modal_rating table td {
	padding: 0;
	vertical-align: top;
	border: 0
}

.hange_modal_rating table td img {
	margin: 0
}

.hange_modal_rating table td a.rating_link {
	border: 0
}

.hange_modal_work_thumbs {
	position: relative;
	margin-bottom: 5px;
}

.hange_modal_work_thumbs img {
	display: inline-block;
	width: 76px;
	height: 58px;
	margin: 0 1px;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	-ms-transition: all 0.3s;
	-o-transition: all 0.3s;
	transition: all 0.3s;
}

.hange_modal_work_thumbs img:hover {
	transform: scale(1.05)
}

@media screen and (max-width: 540px) {
	.hange_modal {
		width: 100%;
		right: auto;
		bottom: 0
	}
	.hange_modal_rating {
		margin: 5px 0 15px;
	}
	.hange_modal_rating-right {
		display: none
	}
	.hange_modal_header .hange_modal_client_name {
		font-size: 18px;
	}
	.hange_modal_fifty {
		width: 60%;
	}
	.hange_modal_fifty:first-child {
		width: 40%;
	}
}

@media screen and (max-width: 440px) {
	.hange_modal_fifty {
		width: 65%;
	}
	.hange_modal_fifty:first-child {
		width: 35%;
	}
	.hange_modal_content_heading {
		font-size: 12px;
	}
}

@media screen and (max-width: 420px) {
	.hange_modal_fifty,
	.hange_modal_fifty:first-child {
		width: 50%;
	}
	.hange_modal_work_thumbs img:last-child {
		display: none
	}
}

@media screen and (max-width: 360px) {
	.hange_modal_header .hange_modal_client_name {
		font-size: 15px;
	}
	.hange_modal_work_thumbs img {
		width: 67px;
		height: 50px;
	}
	.hange_modal_rating_left div {
		line-height: 38px;
	}
}

.hange_modal.samplemodal {
	transform: scale(.7);
	position: relative;
	bottom: auto;
	right: auto;
}


/* Effects */
.waves-effect {
	position: relative;
	cursor: pointer;
	/*display: inline-block;*/
	overflow: hidden;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	z-index: 1;
	will-change: opacity, transform;
	-webkit-transition: all .1s ease-out;
	-moz-transition: all .1s ease-out;
	-o-transition: all .1s ease-out;
	-ms-transition: all .1s ease-out;
	transition: all .1s ease-out
}

.waves-effect .waves-ripple {
	position: absolute;
	border-radius: 50%;
	width: 20px;
	height: 20px;
	margin-top: -10px;
	margin-left: -10px;
	opacity: 0;
	background: rgba(0, 0, 0, .2);
	-webkit-transition: all .7s ease-out;
	-moz-transition: all .7s ease-out;
	-o-transition: all .7s ease-out;
	-ms-transition: all .7s ease-out;
	transition: all .7s ease-out;
	-webkit-transition-property: -webkit-transform, opacity;
	-moz-transition-property: -moz-transform, opacity;
	-o-transition-property: -o-transform, opacity;
	transition-property: transform, opacity;
	-webkit-transform: scale(0);
	-moz-transform: scale(0);
	-ms-transform: scale(0);
	-o-transform: scale(0);
	transform: scale(0);
	pointer-events: none
}

.waves-effect.waves-light .waves-ripple {
	background-color: rgba(255, 255, 255, .45)
}

.waves-effect.waves-red .waves-ripple {
	background-color: rgba(244, 67, 54, .7)
}

.waves-effect.waves-yellow .waves-ripple {
	background-color: rgba(255, 235, 59, .7)
}

.waves-effect.waves-orange .waves-ripple {
	background-color: rgba(255, 152, 0, .7)
}

.waves-effect.waves-purple .waves-ripple {
	background-color: rgba(156, 39, 176, .7)
}

.waves-effect.waves-green .waves-ripple {
	background-color: rgba(76, 175, 80, .7)
}

.waves-effect.waves-teal .waves-ripple {
	background-color: rgba(0, 150, 136, .7)
}