.tua-modal-backdrop {
	background-color: rgba(0, 0, 0, 0.75);
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	z-index: 999;
}

.tua-modal {
	width: 500px;
	min-height: 500px;
	position: fixed;
	left: calc(50% - 250px);
	top: calc(50vh - 250px);
	background-color: #fff;
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	color: #000;
	z-index: 1000;

	@media only screen and (max-width: 600px) {
		width: 100%;
		height: auto;
		min-height: 30px;
		left: 0;
		top: 0;
		bottom: 0;
		right: 0;
	}

	.tua-modal-close {
		position: absolute;
		right: -20px;
		top: -20px;
		background-color: #e0e0e0 !important;
		border: 0;
		cursor: pointer;
		font-size: 20px;
		width: 40px;
		height: 40px;
		padding: 0;
		display: block;
		border-radius: 40px;
		border: 1px solid #000;
		box-sizing: border-box;
		outline: none !important;

		@media only screen and (max-width: 600px) {
			right: 0;
			top: 0;
			border-radius: 0;
			border: 0;
		}

		&:hover,
		&:focus {
			background-color: #f5f5f5 !important;
		}

		.tua-close-button {
			&::after {
				content: "\002716";
				color: #000;
				width: 40px;
				height: 40px;
				position: absolute;
				left: -1px;
				right: 0;
				top: -2px;
				bottom: 0;
				line-height: 40px;

				@media only screen and (max-width: 600px) {
					left: 0;
				}
			}
		}
	}

	.tua-modal-content {
		padding: 20px;
		box-sizing: border-box;
		min-height: 500px;
		overflow: hidden;

		@media only screen and (max-width: 600px) {
			min-height: 30px;
		}
	}

	.tua-modal-header {
		margin-bottom: 10px;
	}
}

.tua-modal-cta {
	margin-top: 30px;

	a {
		text-decoration: none;
		padding-left: 25px;
		padding-right: 25px;
		padding-top: 10px;
		padding-bottom: 10px;
		border: 2px solid #000;
		background-color: #e0e0e0;
		color: #000;
		transition: all 0.5s ease-in-out;
	}
}

.tua-overflow-hidden {
	overflow: hidden;
}

body.admin-bar {
	.tua-modal {
		@media only screen and (max-width: 600px) {
			top: 47px;
		}
	}
}