#modal-editorInsertLink,
#modal-editorInsertPhoto,
#modal-editorInsertObject,
#modal-editorInsertCite,
#modal-changePasswordForm,
#modal-deletePhotoForm,
#modal-deleteLikeForm,
#modal-loginForm,
#modal-alreadyAuthorized,
#modal-designAdded,
#modal-registrationComplete,
#modal-avaError,
#modal-orderSuccess,
#modal-submitProgress,
#modal-checkOldPasswordForm,
#modal-subscribeEmailForm,
#modal-subscribeUserForm,
#modal-storePhotos,
#modal-choosePhotos,
#modal-buyRightNow{
	display: none
}

body.modal {
	background: white;
	color: black;
}

body.modal #modal {
	padding: 45px
}

.modalWindow,
.modalPadding {
	background: white;
	color: black;
}

.modalPadding {
	padding: 45px;
}

#mc-restorePasswordForm{
	padding-bottom: 0;
}

h1.small-modal-title{
	margin-bottom: 20px;
	font: bold .875em Georgia, "Times New Roman", Times, serif;
}

h1.small-modal-title-error{
	color: #fe0101;
}

h1.modal-editorInsertLink,
h1.modal-editorInsertPhoto,
h1.modal-editorInsertObject,
h1.modal-editorInsertCite {
	display: block;

	margin: 0 0 20px 0;
	padding: 0;

	background-image: url('/img/text/modal-editor-headers.png');
}

h1.modal-editorInsertLink {
	width: 262px;
	height: 35px;

	background-position: 0 0
	}

h1.modal-editorInsertPhoto {
	width: 218px;
	height: 44px;

	background-position: 0 -35px
	}

h1.modal-editorInsertObject {
	width: 269px;
	height: 35px;

	background-position: 0 -79px
	}

h1.modal-editorInsertCite {
	width: 258px;
	height: 39px;

	background-position: 0 -114px
	}



.modalPadding h1.loginForm,
.modalPadding h1.restorePasswordForm,
.modalPadding h1.error,
.modalPadding h1.so-silly-error,
.modalPadding h1.choose-error,
.modalPadding h1.deletePhotoForm,
.modalPadding h1.deleteLikeForm,
.modalPadding h1.modal-alreadyAuthorized,
.modalPadding h1.designAdded,
.modalPadding h1.modal-registrationComplete,
.modalPadding h1.modal-activationFailed,
.modalPadding h1.modal-activationSuccess,
.modalPadding h1.modal-activationExpires-form,
.modalPadding h1.modal-activationExpires-email-invalid,
.modalPadding h1.modal-activationExpires-email-not-own,
.modalPadding h1.modal-activationExpires-sended,
.modalPadding h1.modal-orderSuccess-header,
.modalPadding h1.modal-submitProgress-header,
.modalPadding h1.modal-submitProgress-header,
.modalPadding h1.modal-checkOldPasswordForm-header,
.modalPadding h1.comments-error,
.modalPadding h1.modal-subscribeEmailForm-header,
.modalPadding h1.modal-subscribeEmailForm-exist-user {

	display: block;

	margin: 0 0 20px 0;
	padding: 0;

	background-image: url('/img/text/modal-headers.png');
}


.modalPadding h1.loginForm {
	width: 74px;
	height: 39px;

	background-position: 0 0
}

.modalPadding h1.restorePasswordForm {
	width: 390px;
	height: 44px;

	background-position: 0 -39px
	}

.modalPadding h1.createNewPassword {
	width: 400px;
	
	background-position: 0 -651px
	}
.modalPadding h1.newPasswordCreated {
	width: 400px;
	
	background-position: 0 -695px
	}

.modalPadding h1.error {
	width: 124px;
	height: 35px;

	background-position: 0 -83px
	}

.modalPadding h1.so-silly-error {
	width: 400px;
	height: 45px;

	background-position: 0 -606px
	}

.modalPadding h1.choose-error {
	width: 433px;
	height: 44px;

	background-position: 0 -827px
	}

.modalPadding h1.deletePhotoForm {
	width: 367px;
	height: 44px;

	background-position: 0 -118px
	}

.modalPadding h1.deleteLikeForm {
	width: 263px;
	height: 44px;

	background-position: 0 -783px
	}

.modalPadding h1.modal-alreadyAuthorized {
	width: 367px;
	height: 44px;

	background-position: 0 -206px
	}

.modalPadding h1.designAdded {
	width: 279px;
	height: 44px;

	background-position: 0 -250px
	}

.modalPadding h1.modal-registrationComplete {
	width: 544px;
	height: 92px;

	background-position: 0 -294px
	}

/**/
.modalPadding h1.modal-activationFailed {
	width: 366px;
	height: 44px;

	background-position: 0 -430px
	}
/**/
.modalPadding h1.modal-activationSuccess {
	width: 462px;
	height: 44px;

	background-position: 0 -386px
	}
/**/
.modalPadding h1.modal-activationExpires-form {
	width: 544px;
	height: 44px;

	background-position: 0 -474px
	}
/**/
.modalPadding h1.modal-activationExpires-email-invalid {
	width: 253px;
	height: 44px;

	background-position: 0 -518px
	}
.modalPadding h1.modal-activationExpires-email-not-own {
	width: 423px;
	height: 44px;

	background-position: 0 -959px
	}
/**/
.modalPadding h1.modal-activationExpires-sended {
	width: 408px;
	height: 44px;

	background-position: 0 -562px;
	}
.modalPadding h1.modal-orderSuccess-header {
	width: 408px;
	height: 44px;
	
	background-position: 0 -739px
	}
.modalPadding h1.modal-submitProgress-header {
	width: 144px;
	height: 44px;
	margin-bottom: 40px;
	
	background-position: 0 -871px
	}
.modalPadding h1.modal-checkOldPasswordForm-header {
	width: 305px;
	height: 44px;
	
	background-position: 0 -915px
	}
.modalPadding h1.comments-error {
	width: 516px;
	height: 44px;
	
	background-position: 0 -1003px
	}
.modalPadding h1.modal-subscribeEmailForm-header {
	width: 376px;
	height: 44px;
	
	background-position: 0 -1047px
	}
.modalPadding h1.modal-subscribeEmailForm-exist-user {
	width: 331px;
	height: 39px;
	
	background-position: 0 -1091px
	}

body.modal h1.error,
.modalPadding h1.error{
	text-indent: -9999px;
	width: 123px;
	height: 35px;
	background: url(/img/text/error.gif) no-repeat top left;
	margin-bottom: 30px;
}
body.modal h1.restore-pass,
.modalPadding h1.restore-pass{
	text-indent: -9999px;
	width: 377px;
	height: 44px;
	background: url(/img/text/restore-pass.gif) no-repeat top left;
	margin-bottom: 20px;
}
body.modal h1.login,
.modalPadding h1.login{
	text-indent: -9999px;
	width: 76px;
	height: 39px;
	background: url(/img/text/login.gif) no-repeat top left;
	margin-bottom: 30px;
}

body.modal p,
.modalPadding p{
	font-size: 0.8em;
}

body.modal p.compact,
.modalPadding p.compact{
	margin-bottom: 1.2em;
	padding: 0 !important;
	font-size: 0.75em;
	line-height: 1.2;
}

body.modal .mt30,
.modalPadding .mt30{
	margin-top: 30px;
}

body.modal .mt50,
.modalPadding .mt50{
	margin-top: 50px;
}

body.modal .mb50,
.modalPadding .mb50{
	margin-bottom: 50px;
}

body.modal .pl80,
.modalPadding .pl80{
	padding-left: 80px;
}

body.modal .pl110,
.modalPadding .pl110{
	padding-left: 110px;
}


body.modal #mfrp-form,
.modalPadding #mfrp-form{
	margin-top: 25px;
}

body.modal #mfrp-form label,
.modalPadding #mfrp-form label{
	font-size: 0.9em;
	float: left;
	display: block;
	width: 70px;
	padding-top: 2px;
	text-align: right;
}

body.modal #mfrp-form input,
.modalPadding #mfrp-form input{
	width: 300px;
	margin-left: 7px;
}

body.modal a.link,
.modalPadding a.link{
	display: block;
	float: left;
	margin-top: 7px;
	margin-left: 15px;
	font-size: 0.9em;
	line-height: 1.2;
	color: black;
}

/* всё ниже относится к форме логина, скорее всего :) */
body.modal #mfl-form,
.modalPadding #mfl-form{
	margin-bottom: 30px;
}

body.modal #mfl-form label,
.modalPadding #mfl-form label{
	width: 110px;
	padding-left: 0;
	float: left;
	font-size: 0.9em;
	display: block;
}

body.modal label,
.modalPadding  label{
	width: 130px;
	padding-left: 10px;
	float: left;
	font-size: 0.9em;
	display: block;
}

body.modal .field,
body.modal .field,
.modalPadding .field,
.modalPadding .field{
	clear: left;
	height: 40px;
}

body.modal .text,
body.modal .text,
.modalPadding .text,
.modalPadding .text{
	float: left;
	width: 300px;
}

body.modal #mfl-form #modal-restorePasswordForm-input-email-link,
.modalPadding #mfl-form #modal-restorePasswordForm-input-email-link{
	margin-left: 10px;
	color: #ff0101;
	font-size: 0.8em;
}

body.modal #mfl-form input.checkbox,
.modalPadding #mfl-form input.checkbox{
	margin-left: 110px;
	float: left;
}

body.modal #mfl-form label.checkbox,
.modalPadding #mfl-form label.checkbox{
	width: auto;
	font-size: 0.8em;
}

body.modal #mfl-form #rememberMe,
.modalPadding #flogin #rememberMe {
	padding-left: 10px ! important
}

body.modal #mfl-form #rememberMe label.checkbox,
.modalPadding #mfl-form #rememberMe label.checkbox {
	position: relative;
	left: 2px;
	top: -2px
}

body.modal #mfsei-form,
.modalPadding #mfsei-form{
	margin-bottom: 30px;
}

body.modal #mfsei-form label,
.modalPadding #mfsei-form label{
	width: auto;
	padding: 0 10px 0 0;
	text-align: right;
}

/* Изменения в общей схеме вёрстки модалов */

#mc-loginForm{
	padding: 25px 45px;
	}
	#mc-loginForm h1{
		margin-bottom: 30px;
		}
#rememberMe{
	height: 50px;
	}
#mc-storePhotos,
#mc-choosePhotos,
#mc-buyRightNow-confirm,
#mc-buyRightNow-success,
#mc-buyRightNow-fail{
	padding: 5px 25px 25px 25px;
	}

/* Сетки в модальных окнах */

.photos-layout .previews{
	float: left;
	width: 114px;
	}
	.photos-layout .previews li{
		margin-bottom: 2px;
		list-style: none;
		}
		.photos-layout .previews a{
			position: relative;
			display: block;
			line-height: 0;
			outline: none;
			border: none;
			}
			.photos-layout .previews span{
				position: absolute;
				top: 0;
				left: 0;
				display: block;
				width: 100%;
				height: 100%;
				opacity: .6;
				filter: alpha(opacity=60);
				background: #fff;
				}
			.photos-layout .previews .selected span{
				display: none;
				}
.photos-layout .photo{
	margin-left: 114px;
	}
	.photos-layout .photo a{
		outline: 0;
		border: none;
		}
.photos-layout .one-photo{
	text-align: center;
	}