/*
 * Modal
 */


/* Base class */
.b-modal {
    display: none;
    margin: 50px auto;
    width: 500px;
    color: #333;
    border: 1px solid #666;
    background-color: #fff;
	-webkit-box-shadow: 0 0 15px rgba(0,0,0,.5);
	   -moz-box-shadow: 0 0 15px rgba(0,0,0,.5);
	        box-shadow: 0 0 15px rgba(0,0,0,.5);
	overflow: hidden;
	z-index: 1100;
	position: relative;
}

/* Close button */
/*.b-modal-close:before { display: block;  content: "×"; }*/
.b-modal-close {
	position: absolute;
	top: 9px;
	right: 14px;
	font-weight: bold;
	font-size: 24px;
	line-height: 1em;
	color: #000;
	opacity: .3;
	filter: alpha(opacity=30);
    height: 30px;
    border: none;
    background: transparent;
}
.b-modal-close:hover { opacity: .7; filter: alpha(opacity=70); }

/* Header */
.b-modal-header    {
	background: #f6f6f6;
	border-bottom: 1px solid #f0f0f0;
	padding: 5px 20px;
	position: relative;
	min-height: 10px;
}

/* Nav */
.b-modal-nav { padding: 20px 20px 0; }

/* Content */
.b-modal-content   { padding: 20px; }

/* Lock */
.b-modal-lock {
	position: absolute; 
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #000;
	opacity: .2;
	filter: alpha(opacity=20);
	-webkit-border-radius: 3px;
	   -moz-border-radius: 3px;
	        border-radius: 3px;
}

/* Footer */
.b-modal-footer    { background: #fafafa; border-top: 1px solid #f7f7f7; padding: 15px 20px; }

/* Loader */
.b-modal-loader {
	display: none;
	width: 100px; height: 50px;
	margin: -25px 0 0 -50px;
	position: absolute;
	top: 50%; left: 50%;
	border-radius: 5px;
	background-color: #000;
	background: rgba(0,0,0,.8) url(../img/modal-loader.gif) 50% 50% no-repeat;
	z-index: 1101;
}
.b-modal-loader-text {
	background-image: none;
	color: #eee;
	text-align: center;
	font-size: 13px;
	line-height: 1.2em;
	padding: 15px;
	width: 300px;
	margin-left: -150px;
	height: auto;
}


/* Overlay */
.b-modal-overlay {
	display: none;
	position: fixed;
	top: 0; left: 0;
	width: 100%;
	background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA9JREFUeNpiYmBgaAAIMAAAjwCD5Hc2/AAAAABJRU5ErkJggg==);
	background: rgba(0,0,0,.5);
	z-index: 1050;
	overflow: auto;
}