/**
 * Buyer dashboard layout only.
 * Do not restyle .btn here — global button styles apply.
 */

/* Course card links are width:100%; exclude CTA buttons. */
.single-course-card a.btn {
	display: inline-block;
	width: auto;
}

.recent-courses .courses-container > p,
.lmm-buyer-dashboard .courses-container > p,
.lmm-subscriber-purchased-courses .courses-container > p {
	margin-top: 25px;
}

@media (min-width: 1200px) {
	.lmm-buyer-dashboard .archive-posts-grid > .col-12 {
		width: 50%;
	}
}

.lmm-buyer-upsell {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	padding: 24px 28px;
	border-radius: 16px;
	border: 1px solid #c7b180;
	background: linear-gradient(
		301deg,
		rgba(199, 177, 128, 0.35) 0.67%,
		#252c33 100%
	);
}

.lmm-buyer-upsell .dashboard-subtitle {
	margin-bottom: 8px;
}

.lmm-buyer-upsell p {
	margin-bottom: 0;
	color: #c0c0c0;
	max-width: 560px;
	line-height: 1.5;
}

.lmm-buyer-upsell .btn {
	flex-shrink: 0;
	white-space: nowrap;
}

.lmm-buyer-access .lmm-buyer-access__courses {
	width: 100%;
}

.lmm-buyer-access .lmm-buyer-access__courses ul {
	margin: 0;
	padding-left: 18px;
}

.lmm-buyer-access .lmm-buyer-access__courses li {
	color: #fff;
	line-height: 1.5;
	margin-bottom: 4px;
}

.lmm-buyer-access .lmm-buyer-access__courses li:last-child {
	margin-bottom: 0;
}

.dashboard-events-points .subscription-info.lmm-buyer-access {
	justify-content: space-between;
	gap: 20px;
	height: 100%;
	min-height: 280px;
}

.dashboard-events-points .subscription-info.lmm-buyer-access .top .right {
	text-align: right;
}

.dashboard-events-points .subscription-info.lmm-buyer-access .top .right .dashboard-subtitle {
	text-align: right;
}

.dashboard-events-points .subscription-info.lmm-buyer-access .middle {
	width: 100%;
	flex: 1 1 auto;
}

.dashboard-events-points .subscription-info.lmm-buyer-access .lmm-buyer-access__note {
	width: 100%;
	margin: 0;
	color: #c0c0c0;
	font-size: 14px;
	line-height: 1.5;
}

.dashboard-events-points .subscription-info.lmm-buyer-access .bottom.lmm-buyer-access__actions {
	margin-top: auto;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
}

.dashboard-events-points .subscription-info.lmm-buyer-access .bottom.lmm-buyer-access__actions .btn {
	width: 100%;
	text-align: center;
}

.dashboard-events-points > .col-xl-5 > .lmm-buyer-access-wrap {
	flex: 1 1 auto;
	align-self: stretch;
	width: 100%;
	height: 100%;
}

.dashboard-events-points > .col-xl-5 > .lmm-buyer-access-wrap > .lmm-buyer-access {
	flex: 1 1 auto;
}

.lmm-buyer-access__more {
	margin: 8px 0 0;
	padding-left: 18px;
	font-size: 13px;
	color: #9fadbb;
}

.user-dashboard-info .badge-info.role-label span {
	letter-spacing: 0.6px;
	text-transform: uppercase;
	font-size: 12px;
	font-weight: 600;
	color: #c7b180;
}

.lmm-dashboard-locked {
	position: relative;
	isolation: isolate;
	border-radius: 12px;
	overflow: hidden;
	min-height: 180px;
}

.lmm-dashboard-locked__content {
	filter: blur(7px);
	transform: scale(1.02);
	pointer-events: none;
	user-select: none;
	-webkit-user-select: none;
}

.lmm-dashboard-locked__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 24px;
	text-align: center;
	background: rgba(33, 37, 41, 0.55);
}

.lmm-dashboard-locked__icon {
	width: 31px;
	height: 32px;
	flex-shrink: 0;
}

.lmm-dashboard-locked__message {
	margin: 0;
	max-width: 320px;
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.45;
}

.lmm-dashboard-locked__cta {
	border-color: #c7b180;
	color: #c7b180;
	background: transparent;
}

.lmm-dashboard-locked__cta:hover,
.lmm-dashboard-locked__cta:focus {
	background: #c7b180;
	border-color: #c7b180;
	color: #212529;
}

.lmm-dashboard-locked--podcast .lmm-locked-shell-podcast .card-body {
	min-height: 220px;
	background: linear-gradient(303deg, #373d44 0.7%, #212529 96.95%);
}

.lmm-dashboard-locked--sugerencias .dashcard-container {
	min-height: 160px;
}

.lmm-dashboard-locked--event {
	height: 100%;
}

.lmm-dashboard-locked--event > .lmm-dashboard-locked__content,
.lmm-dashboard-locked--event > .lmm-dashboard-locked__content > .single {
	height: 100%;
}

@media screen and (max-width: 900px) {
	body #lmm-purchase-history-wrapper table.rcp-table thead.hide-mobile {
		display: none;
	}

	body #lmm-purchase-history-wrapper table.rcp-table tbody tr {
		display: flex;
		flex-direction: column;
		border-bottom: 2px solid #9fadbb2b;
		padding-bottom: 10px;
		margin-bottom: 10px;
	}

	body #lmm-purchase-history-wrapper table.rcp-table tbody td {
		text-align: left;
		padding: 8px 0;
		color: #fff;
		display: block;
		width: 100%;
		white-space: normal;
	}

	body #lmm-purchase-history-wrapper table.rcp-table tbody td[data-th]::before {
		content: attr(data-th);
		display: block;
		color: #9fadbb;
		font-size: 13px;
		font-weight: 500;
		margin-bottom: 4px;
	}
}

@media screen and (max-width: 767px) {
	.lmm-buyer-upsell {
		flex-direction: column;
		align-items: flex-start;
		padding: 20px;
	}

	.lmm-buyer-upsell-wrap,
	.lmm-buyer-dashboard-wrap,
	.lmm-my-courses-page {
		padding-bottom: 96px;
	}
}

/* ---- Mis cursos page ---- */
.lmm-my-course-card {
	position: relative;
}

.lmm-my-course-card__badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.lmm-my-course-card__badges .label-badge {
	position: static;
	margin: 0;
}

.lmm-my-course-card .author-name {
	margin-bottom: 16px;
}

.lmm-course-progress {
	width: 100%;
	margin-bottom: 20px;
}

.lmm-course-progress__track {
	width: 100%;
	height: 6px;
	border-radius: 999px;
	background: #3d444b;
	overflow: hidden;
}

.lmm-course-progress__fill {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: #c7b180;
	min-width: 0;
}

.lmm-course-progress__label {
	margin: 8px 0 0;
	font-size: 13px;
	font-weight: 500;
	color: #9fadbb;
}

.lmm-my-course-card__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
}

.lmm-my-course-card__actions .btn-primary {
	flex: 1 1 auto;
}

.lmm-my-course-card__actions .save-btn {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #3d444b;
	border-radius: 8px;
}

.lmm-my-course-card__actions .save-btn img {
	width: 20px;
	height: 20px;
}

.lmm-my-course-card--locked {
	overflow: hidden;
	isolation: isolate;
}

.lmm-my-course-card__shell {
	filter: blur(5px);
	transform: scale(1.02);
	pointer-events: none;
	user-select: none;
	opacity: 0.85;
}

.lmm-my-course-card__lock-overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 24px;
	text-align: center;
	background: rgba(33, 37, 41, 0.55);
}

.lmm-my-course-card__lock-message {
	margin: 0;
	max-width: 240px;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
}

.lmm-my-course-card__meta {
	margin: 0;
	font-size: 13px;
	color: #9fadbb;
}

.lmm-my-courses-owned .archive-posts-grid > .col-12,
.lmm-my-courses-locked .archive-posts-grid > .col-12 {
	width: 100%;
}

@media (min-width: 768px) {
	.lmm-my-courses-owned .archive-posts-grid > .col-md-6,
	.lmm-my-courses-locked .archive-posts-grid > .col-md-6 {
		width: 50%;
	}
}
