.modal {
	&.fade {
		.modal-dialog {
			@include transition(all 0.2s ease-out); 
			 @include transform(translateX(0%) translateY(0%));
		}
		
		&.slide-in-right {
			
			.modal-dialog {
				@include transform(translateX(100%));	
			}
			
			&.show,
			&.in {
				.modal-dialog {
					@include transform(translateX(0%));
				}
				
			}
		}
		
		&.slide-in-left {
			
			.modal-dialog {
				@include transform(translateX(-100%));	
			}
			
			&.show,
			&.in {
				.modal-dialog {
					@include transform(translateX(0%));
				}
				
			}
		}
		
		&.modal-fs {
			.modal-dialog {
				@include transform(translateY(0%));
			}
			
			&.show {
				.modal-dialog {
					@include transform(translateY(0%));
				}
				
			}
		}
	}
}

.modal-header {
	padding: 15px 20px;
	padding-bottom: 5px;
    border-bottom: 0px;
	
	h1,
	h2,
	h3,
	h4,
	h5,
	h6 {
		margin-bottom: 0px;
	}
}

.modal-body {
	padding: 15px 20px;
}

.modal-footer {
	padding: 15px 20px;
	border-top: 1px solid $border-color;
	text-align: left;
	
	.btn {
		margin-bottom: 0px;
		
		+.btn {
			margin-left: 0px;
		}
	}
}

.modal-content {
    position: relative;
    background-color: $default-white;
    border: 0px;
    border-radius: 5px;
    outline: 0;
    -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
    box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
}

.modal-right,
.modal-left {

	.modal-dialog {
		width: 400px;
		height: 100%;
		margin: 0px auto 0px 0px ;
		
		@include screen-mobile {
			width: 260px;
		} 
		
		.modal-content {
			height: 100%;
			border-radius: 0px;
			
			.side-modal-wrapper {
				height: 100%;
				padding-left: 15px;
				padding-right: 15px;
				position: relative;
			}
			
			.modal-footer {
				position: absolute;
				bottom: 0px;
				width: calc(100% - 30px);
				left: 15px;
			}
		}
	}
}


.modal-right {
	.modal-dialog {
		margin: 0px 0px 0px auto;
	}
}

.modal-backdrop {
	z-index: 1040;
	background-color: $default-dark;

	&.show,
	&.in {
		opacity: 0.5;
	}
}

@include screen-mobile-above {
	.modal-sm {
		width: 350px;
	}
} 

.modal-fs {
	.modal-dialog {
		width: 100%;
		margin: 0px auto;
		height: 100%;
		max-width: none;
		
		.modal-content {
			height: 100%;
			border-radius: 0px;
			@include background-opacity($default-white, 0.9); 
		}
	}
	
	.modal-close {
		position: absolute;
		top: 20px;
		right: 20px;
		padding: 7px 10px;
		border: 1px solid lighten($default-dark, 30%);
		border-radius: 50px;
		color: lighten($default-dark, 30%);
		
		&:hover,
		&:focus {
			color: $default-dark;
			text-decoration: none;
			border: 1px solid $default-dark;
		} 
	}
}

