/**
 * CheckIN LMS front-end layout.
 * Hero keeps title + image; registration lives in a dedicated section below.
 */

body.checkin-lms-active .scorm-course-hero,
body.checkin-lms-active .scorm-group-hero {
	padding-bottom: 40px;
}

body.checkin-lms-active .scorm-course-hero-grid,
body.checkin-lms-active .scorm-group-hero-grid {
	align-items: start;
}

/* Keep the hero CTA slot compact (scroll teaser, not the full form). */
.scorm-course-hero-cta--custom:has(.checkin-lms-hero-teaser),
.scorm-group-hero-cta--custom:has(.checkin-lms-hero-teaser) {
	display: block;
	width: auto;
	max-width: 100%;
}

.checkin-lms-hero-teaser {
	margin: 0;
}

.checkin-lms-hero-price {
	margin: 0.65rem 0 0;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--scorm-course-color-ink, #1a1a1a);
}

.checkin-lms-hero-login-hint {
	margin: 0.75rem 0 0;
	font-size: 0.9rem;
}

.checkin-lms-hero-login-hint a {
	color: var(--scorm-course-color-ink-muted, rgba(0, 0, 0, 0.65));
	text-decoration: underline;
	text-underline-offset: 2px;
}

.checkin-lms-email-notice {
	margin: 0 0 1rem;
	padding: 0.85rem 1rem;
	background: #fff8e6;
	border-left: 3px solid var(--scorm-course-color-accent, #d9a847);
	border-radius: 2px;
	font-size: 0.92rem;
	line-height: 1.45;
	color: var(--scorm-course-color-ink, #1a1a1a);
}

.checkin-lms-email-notice p {
	margin: 0;
}

.checkin-lms-hero-teaser .scorm-course-btn,
.checkin-lms-hero-teaser .scorm-group-btn,
.checkin-lms-hero-teaser .checkin-lms-teaser-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	text-decoration: none;
}

/* Full-width registration band under the hero */
.checkin-lms-registration {
	padding: 8px 0 64px;
	scroll-margin-top: 96px;
}

.checkin-lms-registration__inner {
	max-width: var(--ast-normal-container-width, 1140px);
	margin: 0 auto;
	padding: 0 16px;
}

.checkin-lms-registration__panel {
	max-width: 42rem;
	margin: 0 auto;
	padding: 1.5rem 1.25rem 1.75rem;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 2px;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.checkin-lms-registration__lead {
	margin: 0 0 1.25rem;
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--scorm-course-color-ink-muted, rgba(0, 0, 0, 0.6));
}

/* Suppress CheckIN's competing step H2 so we don't get two equal headings */
.checkin-lms-embed .registration--body[data-testid="choose-tickets"] > h2,
.checkin-lms-embed #ticket-buyer {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.checkin-lms-embed {
	width: 100%;
	max-width: none;
	margin: 0;
	overflow: visible;
}

/*
 * LMS course pages enroll one learner per order. Hide CheckIN ticket
 * quantity controls (+/−) so visitors cannot buy multiple seats here.
 * Prefer also setting max=1 on the ticket in CheckIN admin.
 */
.checkin-lms-embed .ticket--amount--button,
.checkin-lms-embed .ticket--amount .minus,
.checkin-lms-embed .ticket--amount .plus,
.checkin-lms-embed button.ticket--amount--button {
	display: none !important;
}

.checkin-lms-embed .ticket--amount {
	pointer-events: none;
	user-select: none;
}

.checkin-lms-embed .ticket-number-input {
	pointer-events: none;
	user-select: none;
}

.checkin-lms-embed .checkin-lms-email-locked,
.checkin-lms-embed input.checkin-lms-email-locked {
	background: #f3f3f0 !important;
	cursor: default;
}

/* Give CheckIN's widget room; tame common cramped defaults inside our panel */
.checkin-lms-embed #checkin_registration,
.checkin-lms-embed [id^="checkin_registration_"],
.checkin-lms-embed .registration {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
}

.checkin-lms-embed .registration--body,
.checkin-lms-embed .registration--order,
.checkin-lms-embed .form-group {
	max-width: 100%;
}

.checkin-lms-embed .form-control,
.checkin-lms-embed .registration-input,
.checkin-lms-embed .checkin-input,
.checkin-lms-embed input[type="text"],
.checkin-lms-embed input[type="email"],
.checkin-lms-embed input[type="tel"],
.checkin-lms-embed input[type="address"],
.checkin-lms-embed .checkin-select {
	max-width: 100%;
	box-sizing: border-box;
}

.checkin-lms-embed .checkin-right {
	display: flex;
	justify-content: flex-end;
	margin-top: 1rem;
}

.checkin-lms-embed .btn.nextButton,
.checkin-lms-embed .btn-success {
	min-height: 2.75rem;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

.checkin-lms-embed-note {
	margin: 1rem 0 0;
	font-size: 0.9rem;
	line-height: 1.45;
	opacity: 0.85;
	color: var(--scorm-course-color-ink-muted, rgba(0, 0, 0, 0.65));
}

.checkin-lms-embed-note--ok {
	opacity: 1;
	color: #0a7a32;
}

.checkin-lms-embed-note--error {
	opacity: 1;
	color: #b32d2e;
}

@media (min-width: 801px) {
	.checkin-lms-registration__panel {
		padding: 1.75rem 1.75rem 2rem;
	}

	.checkin-lms-registration__inner {
		padding: 0;
	}
}

@media (max-width: 800px) {
	.checkin-lms-registration {
		padding: 0 0 48px;
	}

	.checkin-lms-registration__panel {
		padding: 1.15rem 0.85rem 1.35rem;
		border-left: 0;
		border-right: 0;
		border-radius: 0;
	}
}
