/* Salus Familiae – regalo di un videocorso */

/* ---------- Scheda del corso ---------- */

.salus-gift-cta {
	margin-top: 12px;
}

button.salus-gift-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 12px 20px;
	border: 1.5px solid #00808d;
	border-radius: 6px;
	background: #ffffff;
	color: #00808d;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

button.salus-gift-btn:hover,
button.salus-gift-btn:focus {
	background: #e8f4f5;
	color: #006670;
	border-color: #00808d;
}

button.salus-gift-btn:focus-visible {
	outline: 2px solid #00808d;
	outline-offset: 2px;
}

.salus-gift-icon {
	flex: 0 0 auto;
	display: block;
}

.salus-gift-welcome {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 16px;
	padding: 12px 14px;
	border: 1px solid #cfe7ea;
	border-radius: 6px;
	background: #eef8f9;
	color: #04606a;
	font-size: 15px;
	line-height: 1.45;
}

.salus-gift-welcome .salus-gift-icon {
	margin-top: 2px;
}

/* ---------- Riquadro del regalo ---------- */

.salus-regalo-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
}

.salus-regalo-modal.tutor-is-active {
	display: block;
}

.salus-regalo-modal .tutor-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(17, 24, 39, 0.55);
}

.salus-regalo-modal .tutor-modal-window {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 560px;
	margin: 0 auto;
	padding: 4vh 16px;
	pointer-events: none;
}

.salus-regalo-modal .salus-regalo-content {
	position: relative;
	box-sizing: border-box;
	max-height: 92vh;
	overflow-y: auto;
	padding: 32px 32px 26px;
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 24px 64px rgba(17, 24, 39, 0.2);
	pointer-events: auto;
	color: #4a5568;
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
}

.salus-regalo-close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #5b616f;
	cursor: pointer;
}

.salus-regalo-close:hover,
.salus-regalo-close:focus {
	background: #f1f3f6;
	color: #1f2937;
}

.salus-regalo-head {
	text-align: center;
}

.salus-regalo-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #fef6e8;
	color: #c47d00;
}

.salus-regalo-title {
	margin: 12px 0 4px;
	color: #1f2937;
	font-family: "Plus Jakarta Sans", Inter, sans-serif;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

.salus-regalo-course {
	margin: 0;
	color: #037a85;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.salus-regalo-lead {
	margin: 8px 0 0;
	color: #5b616f;
	font-size: 14px;
	line-height: 1.5;
}

.salus-regalo-section {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 22px 0 8px;
	padding: 0;
	color: #1f2937;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.salus-regalo-section label {
	margin: 0;
	color: inherit;
	font: inherit;
}

.salus-regalo-optional {
	color: #8a90a0;
	font-size: 13px;
	font-weight: 400;
}

.salus-regalo-hint {
	margin: 6px 0 0;
	color: #5b616f;
	font-size: 13px;
	line-height: 1.45;
}

.salus-regalo-hint a {
	color: #037a85;
	text-decoration: underline;
}

.salus-regalo-when {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.salus-regalo-when legend {
	float: left;
	width: 100%;
}

.salus-choices {
	clear: both;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.salus-choice {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid #e3e5eb;
	border-radius: 6px;
	background: #f9fafb;
	color: #1f2937;
	font-size: 14px;
	line-height: 1.35;
	cursor: pointer;
}

.salus-choice input {
	flex: 0 0 auto;
	margin: 0;
	accent-color: #00808d;
}

.salus-choice:has(input:checked) {
	border-color: #00808d;
	background: #eef8f9;
}

.salus-regalo-date {
	margin-top: 10px;
}

.salus-regalo-counter {
	margin: 4px 0 0;
	color: #8a90a0;
	font-size: 12px;
	text-align: right;
}

.salus-check {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 14px 0 0;
	color: #1f2937;
	font-size: 14px;
	line-height: 1.45;
	cursor: pointer;
}

.salus-check input {
	flex: 0 0 auto;
	margin: 3px 0 0;
	accent-color: #00808d;
}

.salus-regalo-error {
	margin: 16px 0 0;
	padding: 10px 12px;
	border: 1px solid #f5c2c0;
	border-radius: 6px;
	background: #fdecec;
	color: #b3261e;
	font-size: 14px;
	line-height: 1.45;
}

.salus-regalo-error[hidden] {
	display: none;
}

.salus-regalo-submit.tutor-btn {
	margin-top: 20px;
}

/* «Continua» porta al pagamento: stesso arancione di «Aggiungi al carrello» e «Paga ora». */
.salus-regalo-modal .salus-regalo-submit.tutor-btn.tutor-btn-primary {
	border-color: var(--sf-orange, #f6a320) !important;
	background-color: var(--sf-orange, #f6a320) !important;
	color: var(--sf-ink, #1f2937) !important;
}

.salus-regalo-modal .salus-regalo-submit.tutor-btn.tutor-btn-primary:hover,
.salus-regalo-modal .salus-regalo-submit.tutor-btn.tutor-btn-primary:focus {
	border-color: var(--sf-orange-dark, #e08f12) !important;
	background-color: var(--sf-orange-dark, #e08f12) !important;
	color: var(--sf-ink, #1f2937) !important;
}

.salus-regalo-modal .salus-regalo-submit.tutor-btn.tutor-btn-primary:disabled {
	opacity: 0.75;
	cursor: wait;
}

.salus-regalo-foot {
	margin: 10px 0 0;
	color: #5b616f;
	font-size: 13px;
	line-height: 1.45;
	text-align: center;
}

/* Campi a blocco unico, come nel modulo di acquisto. */
.salus-fields {
	box-sizing: border-box;
	overflow: hidden;
	border: 1px solid #e3e5eb;
	border-radius: 6px;
	background: #f9fafb;
}

.salus-fields .salus-row {
	display: flex;
}

.salus-fields .salus-row + .salus-row {
	border-top: 1px solid #e3e5eb;
}

.salus-fields .salus-cell {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
}

.salus-fields .salus-cell + .salus-cell {
	border-left: 1px solid #e3e5eb;
}

.salus-fields input,
.salus-fields textarea {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 40px;
	margin: 0;
	padding: 0 10px;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #1f2937;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.3;
}

.salus-fields textarea {
	height: auto;
	min-height: 84px;
	padding: 9px 10px;
	resize: vertical;
}

.salus-fields input::placeholder,
.salus-fields textarea::placeholder {
	color: #757c8e;
	opacity: 1;
}

.salus-fields input:focus,
.salus-fields textarea:focus {
	outline: 2px solid #00808d;
	outline-offset: -2px;
}

.salus-fields input.salus-readonly {
	background: #f1f3f6 !important;
	color: #5b616f;
	cursor: default;
}

.salus-fields .salus-password input {
	padding-right: 48px;
}

.salus-eye {
	position: absolute;
	top: 50%;
	right: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 32px;
	margin: -16px 0 0;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: #5b616f;
	cursor: pointer;
}

.salus-eye:hover,
.salus-eye:focus {
	background: #eceff3;
	color: #1f2937;
}

.salus-eye .salus-eye-off,
.salus-eye.is-visible .salus-eye-on {
	display: none;
}

.salus-eye.is-visible .salus-eye-off {
	display: block;
}

@media (max-width: 480px) {
	.salus-regalo-modal .tutor-modal-window {
		padding: 12px 10px;
	}

	.salus-regalo-modal .salus-regalo-content {
		max-height: calc(100vh - 24px);
		padding: 28px 18px 22px;
	}

	.salus-choices {
		grid-template-columns: 1fr;
	}

	.salus-fields .salus-row.salus-split {
		flex-direction: column;
	}

	.salus-fields .salus-split .salus-cell + .salus-cell {
		border-left: 0;
		border-top: 1px solid #e3e5eb;
	}
}

/* ---------- Carrello e pagamento ---------- */

.tutor-checkout-gift-course-badge {
	display: none !important;
}

.salus-gift-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 9px 2px 7px;
	border: 1px solid #f6e2be;
	border-radius: 999px;
	background: #fef6e8;
	color: #8a5a00;
	font-size: 12px;
	font-weight: 700;
	line-height: 18px;
	white-space: nowrap;
}

.salus-gift-for {
	color: #5b616f;
	font-size: 13px;
	line-height: 1.45;
}

.salus-gift-link,
button.salus-gift-link {
	display: inline;
	margin: 0 0 0 6px;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: #037a85;
	font: inherit;
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
}

button.salus-gift-link:hover,
button.salus-gift-link:focus,
.salus-gift-link:hover {
	background: none;
	color: #00666f;
}

.tutor-checkout-course-item > .tutor-d-flex:first-child,
.tutor-cart-course-title > .tutor-d-flex:first-child {
	flex-wrap: wrap;
	row-gap: 4px;
}

/* ---------- Pagina «Apri il regalo» ---------- */

.salus-regalo-page {
	box-sizing: border-box;
	flex: 1 1 100%;
	width: 100%;
	padding: 48px 16px 72px;
}

.salus-regalo-card {
	box-sizing: border-box;
	max-width: 560px;
	margin: 0 auto;
	padding: 40px 36px 32px;
	border: 1px solid #e3e5eb;
	border-radius: 12px;
	background: #ffffff;
	color: #4a5568;
	font-size: 16px;
	line-height: 1.55;
	text-align: left;
}

.salus-regalo-card > .salus-regalo-badge {
	display: flex;
	margin: 0 auto 14px;
}

.salus-regalo-eyebrow {
	margin: 0 0 6px;
	color: #037a85;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	line-height: 16px;
	text-align: center;
	text-transform: uppercase;
}

.salus-regalo-h1 {
	margin: 0 0 12px;
	color: #1f2937;
	font-family: "Plus Jakarta Sans", Inter, sans-serif;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
}

.salus-regalo-card .salus-regalo-lead {
	margin: 0 0 20px;
	color: #4a5568;
	font-size: 16px;
	text-align: center;
}

.salus-regalo-message {
	margin: 0 0 20px;
	padding: 16px 18px;
	border-radius: 10px;
	background: #fef6e8;
}

.salus-regalo-message blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	color: #4a3a12;
	font-size: 16px;
	font-style: normal;
	line-height: 1.55;
}

.salus-regalo-message blockquote p {
	margin: 0;
}

.salus-regalo-message figcaption {
	margin-top: 8px;
	color: #8a5a00;
	font-size: 14px;
	font-weight: 600;
	text-align: right;
}

.salus-regalo-coursebox {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 8px;
	padding: 14px;
	border-radius: 10px;
	background: #eef8f9;
}

.salus-regalo-coursebox img {
	flex: 0 0 auto;
	width: 96px;
	height: 54px;
	border-radius: 6px;
	object-fit: cover;
}

.salus-regalo-coursebox p {
	margin: 0;
}

.salus-regalo-coursebox-label {
	color: #037a85;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	line-height: 16px;
	text-transform: uppercase;
}

.salus-regalo-coursebox-title {
	color: #1f2937;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
}

.salus-regalo-coursebox-note {
	color: #5b616f;
	font-size: 13px;
	line-height: 1.4;
}

.salus-regalo-text {
	margin: 8px 0 12px;
	font-size: 15px;
}

.salus-regalo-text strong {
	color: #1f2937;
	font-weight: 600;
}

.salus-regalo-help {
	margin: 24px 0 0;
	padding-top: 18px;
	border-top: 1px solid #edeff2;
	color: #5b616f;
	font-size: 13px;
	line-height: 1.5;
	text-align: center;
}

.salus-regalo-help a,
.salus-regalo-lead a {
	color: #037a85;
	text-decoration: underline;
}

.salus-regalo-card a.salus-regalo-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

@media (max-width: 480px) {
	.salus-regalo-page {
		padding: 24px 12px 48px;
	}

	.salus-regalo-card {
		padding: 30px 20px 24px;
	}

	.salus-regalo-h1 {
		font-size: 24px;
	}

	.salus-regalo-coursebox img {
		width: 72px;
		height: 41px;
	}
}
