.minimog-modal {
	--modal-rounded: 5px;
	--modal-width: 500px;
	--modal-spacing: 2rem;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100001;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	@include LightCloseCursor();

	&.open {
		display: flex;
		pointer-events: auto;

		.modal-overlay {
			opacity: 1;
		}

		.modal-content {
			display: block;
			animation: fade-in-up .5s;
		}
	}

	.modal-overlay {
		@extend %NormalTransition;
		position: absolute;
		top: 0;
		left: 0;
		bottom: 0;
		right: 0;
		background: rgba(0,0,0,0.5);
		opacity: 0;
	}

	.button-close-modal {
		@extend %FontAwesomeLight;
		@extend %NormalTransition;
		position: absolute;
		top: 0;
		right: 0;
		font-size: 20px;
		width: 40px;
		height: 40px;
		line-height: 40px;
		border-radius: 50%;
		background: #fff;
		box-shadow: 0 4px 10px rgba(0, 0, 0, 0.17);
		transform: translate(50%, -50%);
		cursor: pointer;
		text-align: center;
		color: $heading-color;
		z-index: 1;

		&:before {
			content: $fa-times;
		}

		&:hover {
			background: $heading-color;
			color: #fff;
		}
	}

	.modal-content {
		display: none;
		position: relative;
		width: var(--modal-width);
		max-width: calc(100vw - 50px);
		cursor: auto;
	}

	.modal-content-header {
		position: relative;
		text-align: center;
		margin: 0 0 32px;
	}

	.modal-title {
		position: relative;
		z-index: 1;
		font-size: 36px;
		line-height: 1.44;
		margin: 0;
	}

	.modal-description {
		position: relative;
		z-index: 1;
		font-size: 15px;
		line-height: 26px;
		margin: 10px 0 0;
	}

	.modal-content-wrap {
		position: relative;
		overflow-y: auto;
		border-radius: var(--modal-rounded);
		background: $box-white-background;
		max-height: calc(100vh - 60px);

		.handheld & {
			overflow-y: scroll;
		}
	}

	.modal-content-inner {
		padding: var(--modal-spacing);
	}

	.form-group {
		margin-bottom: 15px;
	}

	.form-label {
		display: none;
	}

	.form-label-checkbox {
		display: block;

		input[type='checkbox'] {
			margin: 0 8px 0 2px;
		}
	}

	.form-submit-wrap {
		margin: 19px 0 18px;

		.button {
			width: 100%;
		}
	}

	 form {
		  .row-flex,
		  .row {
				margin-left: -8px;
				margin-right: -8px;
		  }

		  [class*=col-] {
				padding-left: 8px;
				padding-right: 8px;
		  }
	 }

	.form-submit {
		width: 100%;
	}

	.form-description {
		margin: 0 0 7px;
	}

	 .form-input-help {
		  font-size: .9em;
		  margin: 4px 0 0;
	 }

	.forgot-password {
		font-size: 15px;
		padding-bottom: 2px;
	}

	.h-captcha:not([data-size="invisible"]) {
		line-height: 0;
		margin-bottom: 12px !important;
	}

	.form-response-messages {
		display: none;
		margin-bottom: 20px;
		margin-top: 20px;

		ul {
			margin: 0;
		}

		&.error {
			color: $error-color;
		}

		&.success {
			color: $success-color;
		}

		 .showlogin {
			  display: none;
		 }
	}
}

.form-input-group {
	position: relative;

	&.form-input-password {
		.btn-pw-toggle {
			@extend %FontAwesomeRegular;
			position: absolute;
			top: 0;
			right: 0;
			left: auto;
			background: none !important;
			box-shadow: none !important;
			padding: 0 15px !important;
			border: 0;
			font-size: 16px;
			color: $text-color;

			&:hover {
				color: $heading-color;
			}

			&:before {
				content: $fa-eye;
			}
		}

		&.show-pw {
			.btn-pw-toggle {
				&:before {
					content: $fa-eye-slash;
				}
			}
		}
	}
}

.page-blocks-style-border-block-03 {
	.modal-title {
		font-size: 26px;
	}
}

@include media-breakpoint-down(xs) {
	.minimog-modal {
		--modal-spacing: 2rem 20px;
		.modal-content-header {
			margin: 0 0 20px;
		}

		.modal-title {
			font-size: 22px;
		}
	}
}
