.balloon {
	position: absolute;
	z-index: 1000;
	height: auto;
	background: white;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
	font-size: 80%;
	padding: 12px 18px;
	border: 1px solid #aaa;
	line-height: 1.4em;
}

.assist-view .balloon {
	font-size: 100%;
	color: inherit;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
	border: 1px solid black;
}

.assist-invert .balloon {
	background: black;
	box-shadow: 0 0 30px rgba(254, 254, 254, 0.5);
}

.assist-blue .balloon {
	background: #9dd1ff;
	box-shadow: 0 0 30px rgba(20, 48, 94, 0.5);
}

.adopt-mobile .balloon {
	border-left: 0;
	border-right: 0;
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

/* Язычок баллуна */
.balloon:after,
.balloon:before {
	content: '';
	display: block;
	background-image: url('balloon.png');
	position: relative;
}

/* Язычок прилеплен к горизонтальной грани баллуна */
.balloon.bottom.right:after,
.balloon.bottom.left:after,
.balloon.top.left:before,
.balloon.top.right:before {
	width: 43px;
	height: 30px;
	margin-bottom: -30px;
}

.balloon.bottom.right:after {
	top: 12px;
	left: 100%;
	margin-left: -22px;
}

.balloon.bottom.left:after {
	background-position: 0 -30px;
	top: 12px;
	left: -21px;
}

.balloon.top.left:before {
	background-position: 0 -90px;
	top: -42px;
	left: -21px;
}

.balloon.top.right:before {
	background-position: 0 -60px;
	top: -42px;
	left: 100%;
	margin-left: -22px;
}

/* Язычок прилеплен к вертикальной грани баллуна */
.balloon.left-side,
.balloon.right-side {
	min-height: 15px;
}

.balloon.bottom.left-side:after,
.balloon.top.left-side:before,
.balloon.bottom.right-side:after,
.balloon.top.right-side:before {
	width: 30px;
	height: 43px;
	margin-bottom: -43px;
}

.balloon.bottom.left-side:after {
	background-position: -133px 0;
	left: -48px;
	top: -21px;
}

.balloon.top.left-side:before {
	background-position: -103px 0;
	left: -48px;
	top: -21px;
}

.balloon.bottom.right-side:after {
	background-position: -72px 0;
	left: 100%;
	margin-left: 17px;
	top: -21px;
}

.balloon.top.right-side:before {
	background-position: -43px 0;
	left: 100%;
	margin-left: 18px;
	top: -21px;
}

.balloon .blue-button {
	text-align: center;
	clear: both;
	margin-top: 1em;
}

.balloon .close-balloon {
	width: 18px;
	height: 18px;
	background: url('balloon.png') -144px -98px;
	margin-bottom: -18px;
	position: relative;
	left: 100%;
	top: -11px;
	margin-left: -1px;
	cursor: pointer;
}

.assist-view .balloon .close-balloon {
	background: url('balloon.png') -112px -89px;
	width: 26px;
	height: 26px;
	margin-bottom: -26px;
	margin-left: -3px;
	top: -17px;
}

.assist-invert .balloon .close-balloon {
	background-position: -85px -89px;
}

.assist-blue .balloon .close-balloon {
	background-position: -58px -89px;
}

.balloon.no-triangle:after,
.balloon.no-triangle:before,
.assist-view .balloon:after,
.assist-view .balloon:before,
.adopt-mobile .balloon:after,
.adopt-mobile .balloon:before {
	display: none !important;
}
