
/* MODAL */

.leggat-modal {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	margin-bottom: 0 !important;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	visibility: hidden;
	opacity: 0;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	overflow: hidden;
	z-index: 1030;
	-webkit-transition: opacity .2s,visibility 0s .2s;
	transition: opacity .2s,visibility 0s .2s
}

@media (max-width: 767px) {
	.leggat-modal {
		-webkit-box-align: start;
		-ms-flex-align: start;
		align-items: flex-start
	}
}

.leggat-modal--active {
	visibility: visible;
	opacity: 1;
	-webkit-transition: opacity .2s,visibility 0s;
	transition: opacity .2s,visibility 0s
}

.leggat-modal-trigger {
	cursor: pointer
}

.leggat-modal-content {
	position: relative;
	z-index: 1;
	background: #fff;
	padding: 3rem 2rem;
	-webkit-box-shadow: 0 .6rem 3.6rem rgba(0,0,0,.15);
	box-shadow: 0 .6rem 3.6rem rgba(0,0,0,.15);
	border-top: .5rem solid #ec1a2e;
	border-radius: 5px;
	width: 100%;
	max-width: 1100px;
	max-height: 90vh;
	overflow-y: auto
}

.medium .leggat-modal-content {
	max-width: 85rem
}

.small .leggat-modal-content {
	max-width: 70rem
}

@media (max-width: 1199px) {
	.leggat-modal-content {
		margin: 0 1.6rem
	}
}

@media (max-width: 767px) {
	.leggat-modal-content {
		margin-top: 20px;
		overflow: auto
	}

	.leggat-modal-content {
		max-height: 85vh !important;
	}
}

.leggat-modal-close {
	cursor: pointer;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	font-size: 35px;
	color: #fff;
	background: none;
	border: 0;
	position: absolute;
	z-index: 1;
	top: 2rem;
	right: 2rem;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%
}

	.leggat-modal-close:hover {
		background: rgba(0,0,0,.2)
	}

.leggat-modal-backdrop {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0,0,0,.6)
}

.updated-modal-ui:not(.srp-calculator) .leggat-modal-content {
	border-top: none;
	max-width: 430px;
	max-height: 100vh;
	min-height: 100vh;
	margin: 5rem 0 0;
	padding: 32px 32px 24px;
	border-radius: 8px 8px 0 0
}

.updated-modal-ui:not(.srp-calculator) .leggat-modal-close {
	color: #292929;
	top: 10px;
	right: 16px;
	width: auto;
	height: auto;
	border-radius: unset
}

	.updated-modal-ui:not(.srp-calculator) .leggat-modal-close .far {
		font-weight: 100
	}

@media (min-width: 768px) {
	.updated-modal-ui:not(.srp-calculator) .leggat-modal-content {
		max-height: 80vh;
		min-height: auto;
		border-radius: 0
	}
}

.leggat-modal.updated-ui .leggat-modal-content {
	max-width: 380px;
	max-height: 90vh;
	padding: 0;
	border-radius: 0
}

@media (max-width: 767px) {
	.leggat-modal.updated-ui .leggat-modal-content {
		margin-top: 3rem
	}

	.leggat-modal-close {
		font-size: 28px;
	}
}

.leggat-modal.updated-ui .leggat-modal-content > h3 {
	display: none
}

.leggat-modal.updated-ui .leggat-modal-close {
	color: #000;
	top: 0;
	right: 0
}

	.leggat-modal.updated-ui .leggat-modal-close .far {
		font-weight: 100
	}

@media only screen and (min-width: 480px) {
	.leggat-modal.updated-ui .leggat-modal-content {
		max-height: 100vh
	}
}

.leggat-modal-backdrop {
	z-index: unset;
}
/* MODAL END */
