/*
* popups
*/

@media (min-width: 768px) {
	.stop-scrolling {
		height: 100%;
		overflow: hidden;
	}
	.ui-dialog {
	 	width: auto !important;
	 	min-width: 400px;
	 	max-width: 600px;
 	}
}

@media (max-width: 767px) {
	.stop-scrolling {
		height: 100%;
		overflow-y: hidden;
		overflow-x: scroll;
	}
	.ui-dialog {
		width: 450px !important;
	 	min-width: 400px;
	 	max-width: 600px;
 	}
}

.popup-glyphicon-question-sign{
	top: -15px;
	left: -5px;
	font-size: 14px;
}

.popup-container {
	display: none;
	margin: auto;
	width: auto !important;
	min-width: 300px;
}
 
.modal-dialog{
	padding:20px;
	width: auto !important;
}
 
.modal {
    position: fixed;
    z-index: 1050;
    background-color: #fff;
    border: 1px solid #999;
    border: 1px solid rgba(0,0,0,0.3);
    -webkit-box-shadow: 0 3px 7px rgba(0,0,0,0.3);
    -moz-box-shadow: 0 3px 7px rgba(0,0,0,0.3);
    box-shadow: 0 3px 7px rgba(0,0,0,0.3);
    -webkit-background-clip: padding-box;
    -moz-background-clip: padding-box;
    background-clip: padding-box;
    outline: 0;
/*     min-width: 300px; */
}

.modal.fade.in {
    top: 10%;
}

.modal.fade {
    -webkit-transition: opacity .3s linear,top .3s ease-out;
    -moz-transition: opacity .3s linear,top .3s ease-out;
    -o-transition: opacity .3s linear,top .3s ease-out;
    transition: opacity .3s linear,top .3s ease-out;
    top: -25%;
}

.modal-header {
    border-bottom: 8px solid #ffcd11;
	padding: 0;
	text-transform: uppercase;
}

.modal-body {
    position: relative;
    overflow-y: auto;
    max-height: 400px;
    padding: 15px;
    padding-bottom: 10px;
}

.modal-body-500px {
    position: relative;
    overflow-y: auto;
    max-height: 500px;
    padding: 15px;
    padding-bottom: 10px;
}

.modal-body .separate-container, .modal-body-500px .separate-container{
	padding-top: 15px;
	padding-left:0;
}

.modal-body-selection {
    position: relative;
    overflow-y: visible;
    max-height: 400px;
    padding: 15px;
}

.modal-footer {
	padding: 20px 15px 15px;
	padding-left:0px;
	margin-top:0;
    margin-bottom: 0;
    text-align: left;
    background-color: #fff;
    -webkit-box-shadow: inset 0 1px 0 #fff;
    -moz-box-shadow: inset 0 1px 0 #fff;
    box-shadow: inset 0 1px 0 #fff;
    zoom: 1;
    border-top:1px solid�#e5e5e5;
}

.modal-header h3 {
    margin: 0;
    line-height: 30px;
}

.ui-dialog {
    position: absolute;
    z-index: 1050;
    background-color: #fff !important;
    border: 1px solid #999;
    border: 1px solid rgba(0,0,0,0.3);
    -webkit-box-shadow: 0 3px 7px rgba(0,0,0,0.3);
    -moz-box-shadow: 0 3px 7px rgba(0,0,0,0.3);
    box-shadow: 0 3px 7px rgba(0,0,0,0.3);
    -webkit-background-clip: padding-box;
    -moz-background-clip: padding-box;
    background-clip: padding-box;
    outline: 0;
} 

.ui-widget-overlay{
	background-color: #000;
	opacity:0.5;
}

.modal-header .close {
    display: inline-block;
    float: right;
    color: #565656;
    font-size: 22px;
    font-weight: bold;
	opacity: 1;
}

.modal-header > a.close:focus, .modal-header > a.close:active {
    border: 0;
    outline: 0;
}

/**
* Buttons popups
**/
.modal-footer .btn,
.modal-footer .btn + .btn{
	margin-top:0;
	margin-bottom: 0;
}

.galeria .closebutton {
	width: 17px;
	height: 16px;
	background: url(../images/icons/modal-x.png) no-repeat top center;
	position: absolute;
	right: -8px;
	top: -8px;
	cursor: pointer;
}