.b-popup {
	display:none;
	/*padding:20px;*/
	min-width:400px;
	min-height: 180px;
	max-width: 800px;
    background: #F0EADC;
    opacity: 0.97;
    /*color: #fff;*/
    z-index: 2000;
}
.b-popup .b-close {
    font-size: 300%;
    font-weight: 300;
    cursor: pointer;
    text-decoration: none;
    float: right;
    height: 64px;
    line-height: 64px;
    display: flex;
    align-items: center;
	color: #fff;
	margin-right: 20px;
	width:40px;
	background: url(images/b-close.png) no-repeat center;
}
.b-popup .b-close:hover {
	color: #f8f8f8;
}
.b-popup .b-title {
	font-size: 1.5em;
	font-weight: bold;
	padding: 20px 20px 20px 20px;
}
.b-popup .b-input-block {
	padding-bottom: 1em;
}
.b-popup .b-input-block.required input[type=text],
.b-popup .b-input-block.required textarea {
	background: #FFFCF2;
}
.b-popup .b-input-block.success input[type=text],
.b-popup .b-input-block.success textarea {
	background: #F3FDF5;
	border-color: green;
}
.b-popup .b-input-block.error input[type=text],
.b-popup .b-input-block.error textarea {
	background: #FFEBF6;
	border-color: red;
}
.b-popup .b-result {padding-top: 10px; padding-bottom: 10px;}
.b-popup .b-result.success {color: green;}
.b-popup .b-result.error {color: red;}
.b-popup label {
	display: block;
}
.b-popup input[type=text] {
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    width: 100%;
}
.b-popup textarea {
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
	width: 100%;
}
.b-popup input[required],
.b-popup textarea[required] {
	background: #FFFCF2;
}
.b-popup input.error,
.b-popup textarea.error {
	background: #FFEBF6;
	border-color: red;
}
.b-popup .ajax-content {
	padding: 20px;
}
.b-popup .ajax-content.wait .state-waiting {
	display: block;
}
.b-popup .ajax-content .state-waiting {
	display: none;
}
.b-popup .header {
	height: 64px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	background: #5c4c4e;
}
.b-popup .b-title {
	color: #fff;
	display: inline-block;
}
.b-popup .content,
.b-popup .ajax-content {
	padding: 30px 20px 0px 20px;
}