/**
 * Qwest Popups - front-end styles.
 */

.qwp-overlay[hidden] {
	display: none !important;
}

.qwp-overlay {
	position: fixed;
	inset: 0;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba( 0, 0, 0, 0.65 );
	overflow-y: auto;
	opacity: 0;
	transition: opacity 0.2s ease;
	-webkit-overflow-scrolling: touch;
}

.qwp-overlay.qwp-is-visible {
	opacity: 1;
}

.qwp-modal {
	position: relative;
	width: 100%;
	max-width: 620px;
	max-height: calc( 100vh - 40px );
	overflow-y: auto;
	padding: 32px;
	border-radius: 6px;
	background: #fff;
	color: inherit;
	box-shadow: 0 12px 40px rgba( 0, 0, 0, 0.3 );
	transform: translateY( 12px );
	transition: transform 0.2s ease;
}

.qwp-overlay.qwp-is-visible .qwp-modal {
	transform: translateY( 0 );
}

.qwp-close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: none;
	color: #666;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.qwp-close:hover,
.qwp-close:focus {
	color: #000;
}

.qwp-title {
	margin: 0 0 16px;
	padding-right: 32px;
	font-size: 1.5em;
	line-height: 1.25;
}

.qwp-content {
	margin-bottom: 20px;
}

.qwp-content > *:last-child {
	margin-bottom: 0;
}

.qwp-form {
	margin: 0;
	padding-top: 16px;
	border-top: 1px solid #e5e5e5;
}

.qwp-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 16px;
	cursor: pointer;
	line-height: 1.45;
}

.qwp-consent__input {
	flex: 0 0 auto;
	margin: 2px 0 0;
	width: 18px;
	height: 18px;
}

.qwp-consent__text {
	flex: 1 1 auto;
}

.qwp-error {
	margin: -8px 0 14px;
	color: #b32d2e;
	font-size: 0.9em;
}

.qwp-error[hidden] {
	display: none;
}

.qwp-submit {
	display: inline-block;
	padding: 12px 26px;
	border: 0;
	border-radius: 4px;
	background: #14477d;
	color: #fff;
	font-size: 1em;
	line-height: 1.2;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.qwp-submit:hover,
.qwp-submit:focus {
	opacity: 0.88;
}

.qwp-submit[disabled] {
	opacity: 0.45;
	cursor: not-allowed;
}

body.qwp-scroll-locked {
	overflow: hidden;
}

@media ( max-width: 600px ) {
	.qwp-overlay {
		padding: 12px;
		align-items: flex-start;
	}

	.qwp-modal {
		padding: 24px 20px;
		max-height: calc( 100vh - 24px );
	}
}
