/* Consensi pagamento — modal e pagina e-learning */

.sharenow-ar-dashboard__payments-consent-note {
	margin: 0 0 1.25rem;
	color: #666;
	font-size: 0.95rem;
	line-height: 1.5;
	max-width: none;
	width: 100%;
}

body.sharenow-consent-modal-open {
	overflow: hidden;
}

.sharenow-consent-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483647;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
}

/* Sopra eventuali popup Stripe ASP (.asp-popup-iframe-cont) */
body.sharenow-consent-modal-open .asp-popup-iframe-cont {
	display: none !important;
}

.sharenow-consent-modal[hidden] {
	display: none !important;
}

.sharenow-consent-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.sharenow-consent-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(560px, 100%);
	max-height: min(90vh, 720px);
	overflow: auto;
	background: #fff;
	padding: 1.5rem 1.5rem 1.25rem;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.sharenow-consent-modal__title {
	margin: 0 0 1rem;
	font-size: 1.25rem;
	line-height: 1.3;
	color: #111;
}

.sharenow-consent-modal__error {
	margin: 0 0 1rem;
	padding: 0.65rem 0.85rem;
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.sharenow-consent-modal__form,
.sharenow-elearning-consent__form {
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}

.sharenow-consent-modal__check {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	font-size: 0.95rem;
	line-height: 1.45;
	color: #333;
	cursor: pointer;
}

.sharenow-consent-modal__check input {
	margin-top: 0.25rem;
	flex: 0 0 auto;
}

.sharenow-consent-modal__check a {
	color: #017acc;
	text-decoration: underline;
}

.sharenow-consent-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: flex-end;
	margin-top: 0.5rem;
}

.sharenow-consent-modal__btn,
.sharenow-elearning-consent__form .sharenow-consent-modal__btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	align-self: flex-start;
	min-width: 140px;
	margin: 0;
	padding: 12px 22px;
	border: 0;
	border-radius: 999px;
	font-family: "Encode Sans Semi Condensed", "Open Sans", Arial, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	box-shadow: none;
	transition: background-color 0.2s ease;
}

.sharenow-consent-modal__btn--primary,
.sharenow-elearning-consent__form .sharenow-consent-modal__btn--primary {
	background: #017acc;
	background-color: #017acc;
	color: #fff;
}

.sharenow-consent-modal__btn--primary:hover,
.sharenow-consent-modal__btn--primary:focus,
.sharenow-consent-modal__btn--primary:active,
.sharenow-elearning-consent__form .sharenow-consent-modal__btn--primary:hover,
.sharenow-elearning-consent__form .sharenow-consent-modal__btn--primary:focus,
.sharenow-elearning-consent__form .sharenow-consent-modal__btn--primary:active {
	background: #0169b0;
	background-color: #0169b0;
	color: #fff;
	box-shadow: none;
	filter: none;
	opacity: 1;
	transform: none;
}

.sharenow-consent-modal__btn--ghost {
	background: #fff;
	border: 1px solid #ccc;
	color: #333;
}

.sharenow-consent-modal__btn--ghost:hover,
.sharenow-consent-modal__btn--ghost:focus {
	background: #f5f5f5;
	color: #333;
}

.sharenow-elearning-consent {
	max-width: 42rem;
	margin: 2rem 0;
	padding: 0;
}

.sharenow-elearning-consent__title {
	margin: 0 0 0.75rem;
	font-size: 1.5rem;
}

.sharenow-elearning-consent__lead {
	margin: 0 0 1.25rem;
	color: #555;
	line-height: 1.5;
}

.sharenow-elearning-consent__error {
	margin: 0 0 1rem;
	padding: 0.65rem 0.85rem;
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.sharenow-elearning-consent--error {
	color: #721c24;
}
