/* Public ID card verification modal + footer / floating WhatsApp */

/* Hide theme scroll-to-top; WhatsApp float takes its place */
#toTop {
	display: none !important;
}

.priston-float-whatsapp {
	position: fixed;
	bottom: 10px;
	right: 10px;
	z-index: 9999;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 3px;
	background: #25d366;
	color: #fff !important;
	font-size: 28px;
	line-height: 1;
	text-decoration: none !important;
	box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
	transition: background .2s ease, transform .2s ease, bottom .2s linear;
}

.priston-float-whatsapp:hover,
.priston-float-whatsapp:focus {
	background: #1ebe57;
	color: #fff !important;
	bottom: 15px;
}

.modal-open .priston-float-whatsapp {
	visibility: hidden;
}

@media (min-width: 768px) {
	.priston-float-whatsapp {
		bottom: 30px;
		right: 30px;
	}

	.priston-float-whatsapp:hover,
	.priston-float-whatsapp:focus {
		bottom: 35px;
	}
}

@media (min-width: 992px) {
	.priston-float-whatsapp {
		width: 60px;
		height: 60px;
		bottom: 60px;
		right: 60px;
		font-size: 32px;
	}

	.priston-float-whatsapp:hover,
	.priston-float-whatsapp:focus {
		bottom: 65px;
	}
}

.priston-footer-whatsapp {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #25d366;
	color: #fff !important;
	font-size: 22px;
	line-height: 1;
	text-decoration: none !important;
	transition: background .2s ease, transform .2s ease;
}

.priston-footer-whatsapp:hover,
.priston-footer-whatsapp:focus {
	background: #1ebe57;
	color: #fff !important;
	transform: translateY(-2px);
}

.priston-idv-link {
	display: inline-block;
}

#id_card_verify_modal .modal-dialog {
	width: auto;
	max-width: 760px;
	margin: 30px auto;
}

.priston-idv-modal {
	overflow: visible;
}

.priston-idv-modal .modal-header {
	position: relative;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	padding: 16px 48px 16px 20px;
}

/* Theme .close uses right:-21px which can sit outside the clickable area */
#id_card_verify_modal .priston-idv-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 5;
	float: none;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	opacity: 1;
	color: #0b3d4a;
	font-size: 28px;
	font-weight: 700;
	line-height: 32px;
	text-shadow: none;
	background: transparent;
	border: 0;
	cursor: pointer;
}

#id_card_verify_modal .priston-idv-close:hover,
#id_card_verify_modal .priston-idv-close:focus {
	color: #ec5c42;
	opacity: 1;
	outline: none;
}

.priston-idv-modal .modal-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0;
	color: #0b3d4a;
}

.priston-idv-modal .modal-body {
	padding: 20px;
}

.priston-idv-intro {
	margin: 0 0 16px;
	font-size: 14px;
	color: #555;
}

.priston-idv-modal .form-group label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #666;
}

.priston-idv-modal .form-group .required {
	color: #c0392b;
}

.priston-idv-modal .form-group .optional {
	text-transform: none;
	letter-spacing: 0;
	font-weight: 400;
	color: #999;
}

.priston-idv-modal .form-control {
	height: 42px;
	border-radius: 6px;
}

.priston-idv-status {
	min-height: 1.4em;
	margin: 8px 0 14px;
	font-size: 13px;
	font-weight: 600;
}

.priston-idv-status.is-error {
	color: #c0392b;
}

.priston-idv-status.is-ok {
	color: #1e7e34;
}

.priston-idv-result {
	margin-top: 18px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.priston-idv-cards {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 20px;
	width: 100%;
}

.priston-idv-side {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	flex: 0 1 280px;
	width: min(280px, 100%);
}

.priston-idv-side-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6b7c85;
}

.priston-idv-card.idc-card-template {
	width: 100%;
	margin: 0;
}

.priston-idv-reset {
	margin-top: 14px;
	text-align: center;
}

@media (max-width: 640px) {
	#id_card_verify_modal .modal-dialog {
		max-width: 94%;
		margin: 16px auto;
	}

	.priston-idv-side {
		flex-basis: 240px;
		width: min(240px, 100%);
	}
}
