/* 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 — course creator & learning methods */

.ldmv-product-instructor {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #64748b;
}

.ldmv-product-instructor--shop {
	margin: 0.35rem 0 0.5rem;
}

.ldmv-product-instructor--single {
	margin: 0.2rem 0 0.85rem;
	font-size: 0.9375rem;
}

.ldmv-product-instructor__name {
	font-weight: 600;
	color: #0f172a;
}

.ldmv-wc-variable-product form.variations_form table.variations,
.ldmv-wc-course-product form.variations_form table.variations,
.ldmv-wc-course-product form.variations_form a.reset_variations,
.ldmv-wc-variable-product form.variations_form a.reset_variations,
body.ldmv-wc-course-product .variations_form table.variations,
body.ldmv-wc-course-product .variations_form a.reset_variations,
body.ldmv-wc-course-product form.variations_form select[name="attribute_learning-method"],
body.ldmv-wc-course-product form.variations_form tr:has(select[name="attribute_learning-method"]) {
	display: none !important;
}

.ldmv-wc-variable-product .woocommerce-variation.single-variation,
.ldmv-wc-course-product .woocommerce-variation.single-variation,
body.ldmv-wc-course-product .woocommerce-variation-price:not(.ldmv-learning-options .woocommerce-variation-price) {
	display: none !important;
}

.ldmv-learning-options {
	display: block !important;
	margin: 0 0 1rem;
}

.ldmv-wc-course-product form.cart .ldmv-learning-options {
	margin-bottom: 1.1rem;
}

.ldmv-learning-options__field {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.ldmv-learning-options__field-label {
	font-size: 0.875rem;
	font-weight: 600;
	color: #0f172a;
	line-height: 1.3;
}

.ldmv-learning-options__select-wrap {
	position: relative;
}

.ldmv-learning-options__select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 100%;
	min-height: 46px;
	padding: 0.7rem 2.5rem 0.7rem 0.95rem;
	border: 1.5px solid #d7dee8;
	border-radius: 10px;
	background: #fff;
	color: #0f172a;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.4;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ldmv-learning-options__select:hover {
	border-color: #93c5fd;
}

.ldmv-learning-options__select:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.ldmv-learning-options__select option {
	color: #0f172a;
}

.ldmv-learning-options__select-chevron {
	position: absolute;
	top: 50%;
	right: 0.9rem;
	transform: translateY(-50%);
	pointer-events: none;
	color: #64748b;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ldmv-learning-options__select-wrap.is-locked .ldmv-learning-options__select-display {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	width: 100%;
	min-height: 46px;
	padding: 0.7rem 0.95rem;
	border: 1.5px solid #e2e8f0;
	border-radius: 10px;
	background: #f8fafc;
	color: #0f172a;
	font-size: 0.875rem;
	font-weight: 500;
}

.ldmv-learning-options__select-price {
	font-weight: 700;
	color: #1e3a5f;
	white-space: nowrap;
}

.ldmv-learning-options__field-hint {
	margin: 0;
	font-size: 0.75rem;
	color: #94a3b8;
	line-height: 1.45;
}

.ldmv-learning-options__notice {
	margin: 0 0 0.75rem;
	padding: 0.8rem 0.95rem;
	border-radius: 10px;
	font-size: 0.8125rem;
	line-height: 1.5;
}

.ldmv-learning-options__notice--success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
}

.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;
}

/* WooCommerce product — sessions panel */

.ldmv-product-sessions {
	margin-top: 0.85rem;
	padding: 0.85rem 1rem;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.ldmv-product-sessions[hidden] {
	display: none !important;
}

.ldmv-product-sessions.is-visible {
	display: block !important;
}

.ldmv-product-sessions__toolbar {
	display: flex;
	align-items: flex-end;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.ldmv-product-sessions__field {
	flex: 1 1 220px;
	min-width: 0;
}

.ldmv-product-sessions__label {
	display: block;
	margin: 0 0 0.35rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #334155;
}

.ldmv-product-sessions__select-wrap {
	position: relative;
}

.ldmv-product-sessions__select {
	width: 100%;
	padding: 0.55rem 2rem 0.55rem 0.75rem;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	font-size: 0.875rem;
	line-height: 1.35;
	color: #0f172a;
	background: #fff;
	appearance: none;
}

.ldmv-product-sessions__select:focus {
	outline: none;
	border-color: #0d9488;
	box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.ldmv-product-sessions__select-chevron {
	position: absolute;
	right: 0.65rem;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	color: #64748b;
	display: inline-flex;
}

.ldmv-product-sessions__seats {
	margin: 0.5rem 0 0;
	font-size: 0.8125rem;
	color: #64748b;
	line-height: 1.4;
}

.ldmv-product-sessions__seats[hidden] {
	display: none !important;
}

.ldmv-product-sessions__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.ldmv-product-sessions__title {
	margin: 0 0 0.25rem;
	font-size: 1rem;
	font-weight: 700;
	color: #0f172a;
}

.ldmv-product-sessions__subtitle {
	margin: 0;
	font-size: 0.8125rem;
	color: #64748b;
	line-height: 1.45;
}

.ldmv-product-sessions__view-classroom {
	flex-shrink: 0;
	padding: 0.6rem 1rem;
	border: none;
	border-radius: 999px;
	background: #0f766e;
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.ldmv-product-sessions__view-classroom:hover {
	background: #0d9488;
}

.ldmv-product-sessions__view-classroom[hidden] {
	display: none !important;
}

.ldmv-product-sessions__list {
	display: grid;
	gap: 0.75rem;
}

.ldmv-product-sessions__empty {
	margin: 0;
	padding: 1rem;
	text-align: center;
	font-size: 0.875rem;
	color: #64748b;
	background: #fff;
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
}

.ldmv-product-sessions__empty[hidden] {
	display: none !important;
}

.ldmv-product-session-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 180px;
	gap: 1rem;
	align-items: center;
	padding: 1rem 1.05rem;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ldmv-product-session-card:hover {
	border-color: #93c5fd;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.ldmv-product-session-card--full {
	border-color: #fecaca;
	background: #fffbfb;
}

.ldmv-product-session-card__title {
	margin: 0 0 0.35rem;
	font-size: 0.9375rem;
	font-weight: 700;
	color: #0f172a;
}

.ldmv-product-session-card__schedule,
.ldmv-product-session-card__days,
.ldmv-product-session-card__meta {
	margin: 0 0 0.2rem;
	font-size: 0.8125rem;
	color: #64748b;
	line-height: 1.45;
}

.ldmv-product-session-card__seats {
	padding: 0.75rem 0.8rem;
	border-radius: 10px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
}

.ldmv-product-session-card__seats-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.45rem;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #64748b;
}

.ldmv-product-session-card__full-badge {
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
	background: #fee2e2;
	color: #b91c1c;
	font-size: 0.6875rem;
}

.ldmv-product-session-card__seats-meter {
	height: 6px;
	border-radius: 999px;
	background: #e2e8f0;
	overflow: hidden;
	margin-bottom: 0.45rem;
}

.ldmv-product-session-card__seats-meter span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
}

.ldmv-product-session-card--full .ldmv-product-session-card__seats-meter span {
	background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
}

.ldmv-product-session-card__seats-copy {
	margin: 0;
	font-size: 0.8125rem;
	color: #334155;
}

.ldmv-product-session-card__available {
	color: #15803d;
	font-weight: 600;
}

/* Product classroom modal */

body.ldmv-product-modal-open {
	overflow: hidden;
}

.ldmv-product-classroom-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.ldmv-product-classroom-modal[hidden] {
	display: none !important;
}

.ldmv-product-classroom-modal.is-open {
	display: flex !important;
}

.ldmv-product-classroom-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(4px);
}

.ldmv-product-classroom-modal__dialog {
	position: relative;
	width: min(920px, 100%);
	max-height: calc(100vh - 40px);
	overflow: auto;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
}

.ldmv-product-classroom-modal__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem 1.35rem;
	border-bottom: 1px solid #e2e8f0;
	background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.ldmv-product-classroom-modal__header-main {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-width: 0;
}

.ldmv-product-classroom-modal__thumb {
	width: 72px;
	height: 72px;
	border-radius: 14px;
	overflow: hidden;
	flex-shrink: 0;
	border: 1px solid #bbf7d0;
	background: #f0fdf4;
}

.ldmv-product-classroom-modal__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ldmv-product-classroom-modal__eyebrow {
	margin: 0 0 0.2rem;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #0f766e;
}

.ldmv-product-classroom-modal__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	color: #0f172a;
}

.ldmv-product-classroom-modal__meta {
	margin: 0.25rem 0 0;
	font-size: 0.875rem;
	color: #64748b;
}

.ldmv-product-classroom-modal__close {
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: #f1f5f9;
	color: #334155;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ldmv-product-classroom-modal__close svg {
	width: 18px;
	height: 18px;
}

.ldmv-product-classroom-modal__body {
	padding: 1.25rem 1.35rem 1.35rem;
}

.ldmv-product-classroom-modal__grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 1.25rem;
}

.ldmv-product-classroom-modal__details p {
	margin: 0 0 0.65rem;
	font-size: 0.875rem;
	color: #334155;
	line-height: 1.55;
}

.ldmv-product-classroom-modal__block {
	margin-top: 0.85rem;
	padding-top: 0.85rem;
	border-top: 1px solid #eef2f6;
}

.ldmv-product-classroom-modal__block h3 {
	margin: 0 0 0.45rem;
	font-size: 0.875rem;
	font-weight: 700;
	color: #0f172a;
}

.ldmv-product-classroom-modal__video iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: 12px;
	background: #000;
}

.ldmv-product-classroom-modal__video video {
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: 12px;
	background: #000;
	display: block;
}

.ldmv-product-classroom-modal__video-feature {
	margin-bottom: 1rem;
}

.ldmv-product-classroom-modal__video-feature .ldmv-product-classroom-modal__video {
	margin: 0;
}

.ldmv-product-classroom-modal__video-link a {
	display: inline-flex;
	padding: 0.65rem 0.9rem;
	border-radius: 10px;
	background: #eff6ff;
	color: #1d4ed8;
	font-weight: 600;
	text-decoration: none;
}

.ldmv-product-classroom-modal__gallery-wrap {
	margin-top: 1.25rem;
	padding-top: 1.1rem;
	border-top: 1px solid #e2e8f0;
}

.ldmv-product-classroom-modal__gallery-wrap h3 {
	margin: 0 0 0.75rem;
	font-size: 0.9375rem;
	font-weight: 700;
}

.ldmv-product-classroom-modal__gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 0.65rem;
}

.ldmv-product-classroom-modal__gallery-item {
	padding: 0;
	border: none;
	border-radius: 12px;
	overflow: hidden;
	cursor: zoom-in;
	background: #f8fafc;
}

.ldmv-product-classroom-modal__gallery-item img {
	display: block;
	width: 100%;
	height: 92px;
	object-fit: cover;
	transition: transform 0.2s ease;
}

.ldmv-product-classroom-modal__gallery-item:hover img {
	transform: scale(1.04);
}

/* Lightbox */

.ldmv-product-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(15, 23, 42, 0.88);
}

.ldmv-product-lightbox[hidden] {
	display: none !important;
}

.ldmv-product-lightbox.is-open {
	display: flex !important;
}

.ldmv-product-lightbox__stage {
	max-width: min(1100px, 100%);
	max-height: calc(100vh - 80px);
}

.ldmv-product-lightbox__stage img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 80px);
	border-radius: 12px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.ldmv-product-lightbox__close,
.ldmv-product-lightbox__nav {
	position: absolute;
	border: none;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
}

.ldmv-product-lightbox__close {
	top: 18px;
	right: 18px;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	font-size: 28px;
	line-height: 1;
}

.ldmv-product-lightbox__nav {
	top: 50%;
	transform: translateY(-50%);
	width: 46px;
	height: 46px;
	border-radius: 50%;
	font-size: 28px;
}

.ldmv-product-lightbox__nav--prev {
	left: 18px;
}

.ldmv-product-lightbox__nav--next {
	right: 18px;
}

@media (max-width: 768px) {
	.ldmv-product-session-card,
	.ldmv-product-classroom-modal__grid,
	.ldmv-product-sessions__head,
	.ldmv-product-sessions__toolbar {
		grid-template-columns: 1fr;
		display: grid;
	}

	.ldmv-product-sessions__view-classroom {
		justify-self: start;
		width: 100%;
	}
}
