@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=DM+Serif+Display&display=swap');

/* The Modal (background) */
.mitid-modal-overlay {
	display: flex;
	align-items: center;
	justify-content: center;
	position: fixed; /* Stay in place */
	z-index: 9999; /* Ensure it sits on top of everything */
	left: 0;
	top: 0;
	width: 100%; /* Full width */
	height: 100%; /* Full height */
	overflow: hidden; /* Hide overflow */
	background-color: rgba(0, 0, 0, 0.8); /* Dark background with opacity */
}

/* Modal Content */
.mitid-modal-content {
	background-color: #fefefe;
	margin: 15% auto;
	padding: 40px;
	border: 1px solid #888;
	width: 60%;
	position: relative;
	max-width: 690px;
	box-sizing: border-box;
}

.mitid-modal-content h2 {
	font-family: 'DM Serif Display', serif;
	font-size: 30px;
	line-height: 34.5px;
	font-weight: 400;
	font-style: normal;
	text-transform: none;
	margin-top: 0;
}
.mitid-modal-content h3 {
	font-family: 'DM Serif Display', serif;
	font-size: 20px;
	line-height: 25px;
	font-weight: 400;
	font-style: normal;
	text-transform: none;
	margin-bottom: 0;
	margin-top: 12px;
}

.mitid-modal-content p {
	font-family: 'DM Sans', sans-serif;
	font-size: 18px;
	line-height: 23.4px;
	font-weight: 400;
	margin-bottom: 0;
}

.mitid-modal-content p strong {
	font-family: 'DM Sans', sans-serif;
	font-size: 18px;
	line-height: 23.4px;
	font-weight: 700;
}

.mitid-modal-content p span {
	font-family: 'DM Sans', sans-serif;
	font-size: 16px;
	line-height: 20.8px;
	font-weight: 400;
	margin-top: 40px;
	display: block;
}

.wpnordic-woocheck-small {
	font-style: italic;
	font-size: 13px;
	margin-block: 5px;
}

#mitid-authenticate-wrapper.block-wrapper ~ span.wpnordic-woocheck-small {
	margin-top: -15px;
}

.mitid-modal-content a.button {
	margin-top: 32px;
	background-color: #0060e6;
	height: 39px;
	width: fit-content;
	font-family: 'DM Sans';
	font-weight: 400;
	font-size: 16px;
	line-height: 20.8px;
	color: #fff;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	column-gap: 10px;
	padding-inline: 1rem;
	box-sizing: border-box;
}

.mitid-modal-content a.button img {
	width: 57px;
	height: 15px;
}

.mitid-modal-content a.button:hover {
	color: #fff;
	background-color: #0060e6;
}

#mitid-checkout-message {
	background-color: white !important;
	color: #161616 !important;
	border-left: unset;
	font-size: 16px;
	padding: 24px;
}

#mitid-checkout-message p {
	margin-top: 10px;
}

#mitid-checkout-message::before,
#validated-message::before {
	content: unset;
}

#validated-message {
	background-color: #d0d0d0;
	color: #161616;
	border-left: unset;
	display: flex;
	gap: 16px;
	padding: 24px;
	align-items: center;
	font-size: 18px;
}

.woocommerce-message#validated-message {
	border-top: 0;
}

#remove-validation-button {
	background-color: #d0d0d0;
	padding: 14px 24px;
	color: #161616;
	font-weight: 700;
}

.mitid-authenticate-wrapper {
	height: 39px;
	margin-top: 20px;
}

#mitid-authenticate-wrapper {
	margin-bottom: 20px;
	margin-top: 20px;
}

#mitid-authenticate-wrapper.block-wrapper {
	width: 100%;
	margin-block: 0;
}

#mitid-authenticate-wrapper p {
	margin-bottom: 5px;
}

#mitid-button {
	background-color: #0060e6 !important;
	border: 1px solid #0060e6;
	font-size: 16px;
	color: white;
	padding: 12px 1rem;
	width: 100%;
	text-align: center;
	text-decoration: none;
	box-sizing: border-box;
	display: block;
}

#mitid-button.block-button {
	border-radius: 0.33rem;
}

#mitid-button.block-button img {
	padding-left: 5px;
}

#mitid-button:visited,
#mitid-button:hover,
#mitid-button:active {
	opacity: 0.85;
	text-decoration: none;
	color: white !important;
}

#mitid-button img {
	padding-left: 2px;
}

.wc-block-components-checkout-place-order-button.disabled,
button#place_order[name='woocommerce_checkout_place_order'].disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

.woocommerce-message#mitid-checkout-message {
	border-top: none;
	box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1), 0px 2px 4px rgba(0, 0, 0, 0.06);
}

@media only screen and (max-width: 768px) {
	.mitid-modal-content {
		width: 85%;
		padding: 25px;
	}

	.mitid-modal-content h2 {
		font-size: 25px;
		line-height: 29.5px;
	}
	.mitid-modal-content h3 {
		font-size: 18px;
		line-height: 23px;
	}

	.mitid-modal-content p {
		font-size: 16px;
		line-height: 21.4px;
	}

	.mitid-modal-content p strong {
		font-size: 16px;
		line-height: 21.4px;
	}

	.mitid-modal-content p span {
		font-size: 14px;
		line-height: 18.8px;
	}
}

@media only screen and (max-width: 350px) {
	.mitid-modal-content a.button {
		width: 100%;
		font-size: 14px;
		line-height: 18.8px;
	}

	.mitid-modal-content a.button img {
		width: 45px;
		height: auto;
	}
}
