/* Course delivery panel on single LearnDash course pages */

.ldmv-course-delivery {
	margin: 2rem 0;
	padding: 1.5rem;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fafbfc;
}

.ldmv-course-delivery__heading {
	margin: 0 0 1rem;
	font-size: 1.25rem;
}

.ldmv-course-delivery__methods {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.ldmv-course-delivery__method {
	padding: 1rem;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
}

.ldmv-course-delivery__method-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.35rem;
}

.ldmv-course-delivery__price {
	font-weight: 600;
	color: #1e3a5f;
}

.ldmv-course-delivery__method-desc {
	margin: 0;
	font-size: 0.9rem;
	color: #64748b;
}

.ldmv-course-delivery__badge {
	display: inline-block;
	margin-top: 0.75rem;
	padding: 0.2rem 0.55rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: #166534;
	background: #dcfce7;
	border-radius: 999px;
}

.ldmv-course-delivery__upgrade {
	margin-top: 1.25rem;
	padding: 1rem;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 10px;
}

.ldmv-course-delivery__upgrade-btn {
	display: inline-block;
	margin-top: 0.5rem;
	padding: 0.65rem 1rem;
	color: #fff;
	background: #2563eb;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
}

.ldmv-classroom-preview {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e5e7eb;
}

.ldmv-classroom-preview__title {
	margin: 0 0 1rem;
}

.ldmv-classroom-preview__hero img {
	width: 100%;
	max-height: 280px;
	object-fit: cover;
	border-radius: 10px;
}

.ldmv-classroom-preview__gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 0.5rem;
	margin-top: 1rem;
}

.ldmv-classroom-preview__gallery img {
	width: 100%;
	height: 80px;
	object-fit: cover;
	border-radius: 8px;
}

/* WooCommerce product page method selector */

.ldmv-learning-options {
	margin: 1rem 0 1.25rem;
	padding: 1rem;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
}

.ldmv-learning-options__title {
	margin: 0 0 0.75rem;
	font-size: 1rem;
}

.ldmv-learning-options__list {
	display: grid;
	gap: 0.5rem;
}

.ldmv-learning-option {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	cursor: pointer;
}

.ldmv-learning-option.is-selected,
.ldmv-learning-option:has(input:checked) {
	border-color: #2563eb;
	background: #eff6ff;
}

.ldmv-learning-option__label {
	flex: 1;
	font-weight: 600;
}

.ldmv-learning-option__price {
	font-weight: 600;
	color: #1e3a5f;
}

.ldmv-learning-options__enrolled,
.ldmv-learning-options__upgrade-note {
	margin: 0 0 0.75rem;
	color: #64748b;
}

.ldmv-student-sessions {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e5e7eb;
}

.ldmv-student-sessions__list {
	display: grid;
	gap: 1rem;
}

.ldmv-student-session {
	padding: 1rem;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
}

.ldmv-student-session__meta {
	color: #64748b;
	font-size: 0.9rem;
}

.ldmv-student-session__join {
	display: inline-block;
	margin-top: 0.5rem;
	padding: 0.55rem 0.9rem;
	background: #2563eb;
	color: #fff !important;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
}
