/* B40606 */
@keyframes slide-right {
	from {
		margin-left: -100%;

	}
	to {
		margin-left: 0%;
	}
}
@keyframes slide-left {
	from {
		margin-left: 100%;
	}
	to {
		margin-left: 0%;
	}
}


@keyframes fadeIn{
	0% {
		opacity:0;
	}
	100% {
		opacity:1;
	}
}


#modal-ajax {
	display:none;
	position:fixed;
	top:5vh;
	bottom:5vh; 
	left:15px;
	right:15px; 
	background: #fff; /*#0F0F0F;*/
	z-index: 9999;
	max-width: 980px;
	margin: auto auto;
    border: 3px solid #5b5a5a;
	animation: fadeIn ease 0.5s;
}

#modal-ajax .modal-container{  
	height:calc(90vh - 10px);
    position: relative;
/*	animation: slide-right .3s;*/
}
#modal-ajax .modal-container header{  
    position: absolute;
    top:0;
    left:0;
    right:0;
    background-color: #B40606;
    color: #fff;
    font-size: 1.4rem;
    padding: 5px 15px; 
}

#modal-ajax .modal-container main{
	overflow-y:auto;
	overflow-x: hidden;
    top: 52px;
    position: relative;
    padding:15px;
	max-height: calc(90vh - 62px);
} 
#modal-ajax .fa-window-close{ color: #fff; font-size:1.6rem; cursor: pointer }
#modal-ajax .fa-window-close:hover{ color: #000 }
 
.btn-modal{ cursor: pointer}

/* ****************************/


#modal-cart {
	display: none;
	position:fixed;
	top:0;
	bottom:0;
	left: calc(100vw - 360px);
	right:0px;
	max-width: 360px;
	background: #0F0F0F;
	z-index: 8999;
	border-left: 1px solid #000;
	box-shadow: 12px 12px 12px 12px rgba(0, 0, 0, .5);
	animation: slide-left ease 0.5s;
}
/*
.slide-left {
	display: block;
	animation: slide-left ease 0.5s;
}

.slide-right {
	display: none;
	animation: slide-right ease 0.5s;
}
*/


/*
#modal-ajax {

	position:fixed;
	top:0vh;
	bottom:0vh;
	left:15px;
	right:15px;
	background: #fff;
	z-index: 2001;
	max-width: 360px;
	margin: 0 0;
	border: 3px solid #5b5a5a;
	animation: fadeIn ease 0.5s;
}
*/
#modal-cart .modal-container{
	height:100%;
	position: relative;

}
#modal-cart .modal-container header{
	position: absolute;
	top:0;
	left:0;
	right:0;
	background-color: #B40606;
	color: #fff;
	font-size: 1.4rem;
	padding: 5px 15px;
}

#modal-cart .modal-container main{
	overflow-y:auto;
	overflow-x: hidden;
	top: 52px;
	position: relative;
	padding:15px;
	max-height: calc(100vh - 62px);
}
#modal-cart .fa-window-close{ color: #fff; font-size:1.6rem; cursor: pointer }
#modal-cart .fa-window-close:hover{ color: #000 }

/* ****************************/

@media (max-width: 1024px) { 
	#modal-ajax {
		top:0;
		bottom:0; 
		left:0px;
		right:0px;  
	}

	
	#modal-ajax .modal-container main
	#modal-cart .modal-container main{
		max-height: 100%;
	} 
}

