/* Profile Online Programs — same grid/card chrome as Practices; wider OP detail modal */

.lwc-op-profile-section .lwc-op-profile-cards {
	margin-top: 0.5rem;
}

/* Match Healing Practices card chrome (gradient top strip via .lwdp-card::before) */
.lwc-op-profile-section .lwdp-op-card {
	overflow: hidden;
	display: flex;
	flex-direction: column;
	position: relative;
}

.lwc-op-profile-section .lwdp-op-card-thumb {
	width: 100%;
	aspect-ratio: 16 / 10;
	background: #1a1520;
	overflow: hidden;
	flex: 0 0 auto;
}

.lwc-op-profile-section .lwdp-op-card-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.lwc-op-profile-section .lwdp-op-card .lwdp-card-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	/* Extra top padding clears the 20px Practices-style gradient strip when there is no thumb */
	padding: 1.55rem 1.15rem 1.15rem;
	gap: 0.35rem;
}

.lwc-op-profile-section .lwdp-op-card:has(.lwdp-op-card-thumb) .lwdp-card-body {
	padding-top: 1.05rem;
}

.lwc-op-profile-section .lwdp-op-card .lwdp-card-title {
	margin: 0 0 0.15rem;
	line-height: 1.3;
}

.lwc-op-profile-section .lwdp-op-card .lwdp-card-meta {
	margin: 0;
}

.lwc-op-profile-section .lwdp-op-card .lwdp-card-desc {
	margin: 0.15rem 0 0;
	line-height: 1.45;
}

/* Keep footer pinned; Learn More needs room without crushing price */
.lwc-op-profile-section .lwdp-op-card .lwdp-card-sep {
	margin-top: auto;
	margin-bottom: 0.55rem;
}

.lwc-op-profile-section .lwdp-op-card .lwdp-card-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem 0.75rem;
	margin-top: 0;
}

.lwc-op-profile-section .lwdp-op-card .lwdp-card-price {
	flex: 1 1 auto;
	min-width: 4.5rem;
	margin-right: 0.25rem;
}

.lwc-op-profile-section .lwdp-op-card .lwdp-card-footer .lwdp-btn-register {
	flex: 0 0 auto;
	margin-left: auto;
	white-space: nowrap;
	padding: 0.55rem 1rem;
	font-size: 0.9375rem;
	line-height: 1.2;
	max-width: 100%;
}

@media (max-width: 767px) {
	.lwc-op-profile-section .lwdp-op-card .lwdp-card-footer .lwdp-btn-register {
		width: 100%;
		margin-left: 0;
		text-align: center;
		justify-content: center;
	}
}

/* —— Detail modal: wider + larger type (Practice/Event open state parity) —— */
#lwdp-practice-modal .lwdp-modal-box:has(.lwdp-modal-op-detail) {
	max-width: min(52rem, calc(100vw - 2.5rem));
}

#lwdp-practice-modal .lwdp-modal-box:has(.lwdp-modal-op-detail) .lwdp-modal-body {
	padding: 1.75rem 2rem 2.35rem;
}

#lwdp-practice-modal .lwdp-modal-box:has(.lwdp-modal-op-detail) .lwdp-modal-title {
	font-size: clamp(1.75rem, 1.5rem + 0.8vw, 2.125rem);
	line-height: 1.25;
	margin-bottom: 1.15rem;
}

#lwdp-practice-modal .lwdp-modal-box:has(.lwdp-modal-op-detail) .lwc-op-detail-intro-label {
	margin: 0 0 10px;
	font-size: 0.95rem;
	color: #6b6573;
}

#lwdp-practice-modal .lwdp-modal-box:has(.lwdp-modal-op-detail) .lwc-op-detail-video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #111;
	border-radius: 14px;
	overflow: hidden;
	margin-bottom: 1.15rem;
}

#lwdp-practice-modal .lwdp-modal-box:has(.lwdp-modal-op-detail) .lwc-op-detail-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

#lwdp-practice-modal .lwdp-modal-box:has(.lwdp-modal-op-detail) .lwc-op-detail-lead,
#lwdp-practice-modal .lwdp-modal-box:has(.lwdp-modal-op-detail) .lwdp-modal-description,
#lwdp-practice-modal .lwdp-modal-box:has(.lwdp-modal-op-detail) .lwdp-modal-description p {
	font-size: 1.0625rem;
	line-height: 1.65;
	color: #3b3544;
}

#lwdp-practice-modal .lwdp-modal-box:has(.lwdp-modal-op-detail) .lwc-op-detail-lead {
	margin: 0 0 0.85rem;
}

#lwdp-practice-modal .lwdp-modal-box:has(.lwdp-modal-op-detail) .lwdp-modal-section-title {
	font-size: 1.125rem;
}

#lwdp-practice-modal .lwdp-modal-box:has(.lwdp-modal-op-detail) .lwdp-modal-price,
#lwdp-practice-modal .lwdp-modal-box:has(.lwdp-modal-op-detail) .lwdp-modal-price .woocommerce-Price-amount {
	font-size: 1.35rem;
	font-weight: 700;
}

#lwdp-practice-modal .lwdp-modal-box:has(.lwdp-modal-op-detail) .lwc-op-detail-locked {
	margin: 0;
	font-size: 1rem;
	color: #6b6573;
}

/* Footer: bookmark LEFT (practice modal parity) | Subscribe RIGHT | hint under Subscribe only */
#lwdp-practice-modal .lwdp-modal-box:has(.lwdp-modal-op-detail) .lwc-op-detail-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: nowrap;
	width: 100%;
	margin-top: 0.5rem;
	/* room for login hint under Subscribe — does not affect bookmark Y position */
	padding-bottom: 1.85rem;
	box-sizing: border-box;
}

#lwdp-practice-modal .lwdp-modal-box:has(.lwdp-modal-op-detail) .lwc-op-detail-actions .lwdp-modal-bookmark {
	margin-right: 0;
	flex: 0 0 auto;
	order: 0;
}

#lwdp-practice-modal .lwdp-modal-box:has(.lwdp-modal-op-detail) .lwc-op-detail-cta {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	flex: 0 0 auto;
	margin-left: auto;
	order: 1;
}

#lwdp-practice-modal .lwdp-modal-box:has(.lwdp-modal-op-detail) .lwdp-btn-register {
	font-size: 1.0625rem;
	padding: 0.7rem 1.35rem;
}

#lwdp-practice-modal .lwdp-modal-box:has(.lwdp-modal-op-detail) .lwc-op-detail-login-hint {
	position: absolute;
	top: calc(100% + 0.4rem);
	right: 0;
	left: auto;
	margin: 0;
	padding: 0;
	width: max-content;
	max-width: min(16rem, 70vw);
	font-size: 0.875rem;
	line-height: 1.4;
	color: #8a7f99;
	text-align: right;
	white-space: normal;
}

#lwdp-practice-modal .lwdp-modal-box:has(.lwdp-modal-op-detail) .lwc-op-detail-validity .lwdp-meta-item {
	font-size: 1.0625rem;
}

/*
 * Episode list in profile modal — op-single.css is not loaded here, so without
 * these rules the browser shows default bullets + inline ▶ + "Play" jammed together.
 */
#lwdp-practice-modal .lwc-op-episodes {
	margin: 12px 0 16px;
}

#lwdp-practice-modal .lwc-op-episodes__title {
	margin: 0 0 4px;
	font-size: 1.125rem;
	font-weight: 600;
	color: #2f2a35;
}

#lwdp-practice-modal .lwc-op-episodes__hint {
	margin: 0 0 14px;
	font-size: 0.95rem;
	line-height: 1.45;
	color: #6b6573;
}

#lwdp-practice-modal .lwc-op-episodes__list {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

#lwdp-practice-modal .lwc-op-episode {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px 12px;
	margin: 0 !important;
	padding: 12px 14px;
	list-style: none !important;
	border: 1px solid #e6e0ef;
	border-radius: 12px;
	background: linear-gradient(180deg, #fbf9fd 0%, #f3eef8 100%);
	color: #3b3544;
}

/* Unlocked: no PLAY badge — icon + title + player only */
#lwdp-practice-modal .lwc-op-episode.is-unlocked {
	grid-template-columns: 40px minmax(0, 1fr);
}

#lwdp-practice-modal .lwc-op-episode::marker {
	content: none;
	display: none;
}

#lwdp-practice-modal .lwc-op-episode__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	background: #ebe4f4;
	color: #5c3d86;
	flex-shrink: 0;
}

#lwdp-practice-modal .lwc-op-episode__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

#lwdp-practice-modal .lwc-op-episode__index {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #8a7f99;
	line-height: 1.2;
}

#lwdp-practice-modal .lwc-op-episode__name {
	display: block;
	font-size: 15px;
	font-weight: 600;
	color: #2f2a35;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.35;
}

#lwdp-practice-modal .lwc-op-episode__badge {
	display: inline-flex;
	align-items: center;
	align-self: center;
	padding: 4px 10px;
	border-radius: 999px;
	background: #5c3d86;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}

#lwdp-practice-modal .lwc-op-episode.is-unlocked {
	background: linear-gradient(180deg, #f7fcf8 0%, #eef8f1 100%);
	border-color: #cfe8d6;
}

#lwdp-practice-modal .lwc-op-episode.is-unlocked .lwc-op-episode__icon {
	background: #d9f0e0;
	color: #2f6b45;
}

#lwdp-practice-modal .lwc-op-episode__badge.is-open {
	display: none;
}

#lwdp-practice-modal .lwc-op-episode__player {
	grid-column: 1 / -1;
	margin-top: 4px;
}

#lwdp-practice-modal .lwc-op-episode__player .lwc-op-gallery-video__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	min-height: 180px;
	background: #111;
	border-radius: 12px;
	overflow: hidden;
}

#lwdp-practice-modal .lwc-op-episode__player iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (max-width: 1024px) {
	#lwdp-practice-modal .lwdp-modal-box:has(.lwdp-modal-op-detail) {
		max-width: min(52rem, calc(100vw - 2rem));
	}

	#lwdp-practice-modal .lwdp-modal-box:has(.lwdp-modal-op-detail) .lwdp-modal-body {
		padding: 1.4rem 1.4rem 2rem;
	}

	#lwdp-practice-modal .lwc-op-episode__name {
		white-space: normal;
	}
}

@media (max-width: 640px) {
	#lwdp-practice-modal .lwdp-modal-box:has(.lwdp-modal-op-detail) {
		max-width: calc(100vw - 1.25rem);
	}

	#lwdp-practice-modal .lwdp-modal-box:has(.lwdp-modal-op-detail) .lwdp-modal-body {
		padding: 1.25rem 1.15rem 1.75rem;
	}

	#lwdp-practice-modal .lwdp-modal-box:has(.lwdp-modal-op-detail) .lwc-op-detail-actions {
		flex-wrap: wrap;
		align-items: flex-start;
	}

	#lwdp-practice-modal .lwc-op-episode {
		grid-template-columns: 36px minmax(0, 1fr);
		gap: 8px 10px;
	}

	#lwdp-practice-modal .lwc-op-episode__badge {
		grid-column: 2;
		justify-self: start;
	}

	#lwdp-practice-modal .lwc-op-episode__player {
		grid-column: 1 / -1;
	}
}
