.cmbc-archive-block {
	margin: 24px 0 32px;
}

.cmbc-archive-block_highlight-highlighted {
	padding: 24px;
	border: 1px solid #dbe4f0;
	border-radius: 8px;
	background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.cmbc-archive-block__title {
	margin: 0 0 20px;
}

.cmbc-bundle-archive-grid {
	gap: 30px;
}

/* Ensure Elementor courses widget featured/regular sections stack vertically */
.ms_lms_courses_card_wrapper > .ms_lms_courses_card {
	width: 100%;
	flex: 0 0 100%;
}

.cmbc-bundle-card .stm_lms_courses__single__inner {
	height: 100%;
}

.cmbc-bundle-card .stm_lms_courses__single--image {
	position: relative;
}

.cmbc-bundle-card__image-container {
	position: relative;
	min-height: 220px;
	overflow: hidden;
	background: #f4f7fb;
}

.cmbc-bundle-card__image-container img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cmbc-bundle-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 220px;
	font-weight: 700;
	color: #0f172a;
}

.cmbc-bundle-card__badge {
	position: absolute;
	top: 16px;
	right: 16px;
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	border-radius: 999px;
	background: #0f766e;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	z-index: 2;
}

.cmbc-bundle-card__count {
	font-size: 13px;
	font-weight: 700;
	color: #0f766e;
}

.cmbc-bundle-card__excerpt {
	color: #475569;
	font-size: 14px;
	line-height: 1.6;
}

.cmbc-bundle-card__info .stm_lms_courses__single--info_excerpt {
	margin-bottom: 18px;
}

.cmbc-bundle-card__bottom {
	display: flex;
	justify-content: flex-start;
	align-items: center;
}

.cmbc-bundle-card__button,
.cmbc-bundle-course__button {
	display: inline-block;
	padding: 10px 16px;
	border-radius: 10px;
	background: #0d4cd3;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
}

.cmbc-bundle-card__button:hover,
.cmbc-bundle-course__button:hover {
	color: #fff;
}

/* MasterStudy Elementor archive compatibility */
.elementor-widget-ms_lms_courses .ms_lms_courses_archive .ms_lms_courses_card_wrapper {
	display: flex;
	flex-direction: column;
	row-gap: 32px;
	width: 100%;
}

.elementor-widget-ms_lms_courses .ms_lms_courses_archive .ms_lms_courses_card_wrapper > .ms_lms_courses_card,
.elementor-widget-ms_lms_courses .ms_lms_courses_archive .ms_lms_courses_card_wrapper > .ms_lms_courses_archive__pagination_wrapper {
	width: 100%;
}

.elementor-widget-ms_lms_courses .ms_lms_courses_archive .ms_lms_courses_card.featured {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 320px));
	gap: 30px;
	margin: 0;
	justify-content: flex-start;
}

.elementor-widget-ms_lms_courses .ms_lms_courses_archive .ms_lms_courses_card.featured > .ms_lms_courses_card_item {
	width: 100% !important;
	min-width: 0;
}

.elementor-widget-ms_lms_courses .ms_lms_courses_archive .ms_lms_courses_card:not(.featured) {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
}

.elementor-widget-ms_lms_courses .ms_lms_courses_archive .cmbc-elementor-bundle-section {
	width: 100%;
	margin: 0 0 32px;
}

.elementor-widget-ms_lms_courses .ms_lms_courses_archive .cmbc-elementor-bundle-grid {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
}

.elementor-widget-ms_lms_courses .ms_lms_courses_archive .cmbc-elementor-bundle-card .ms_lms_courses_card_item_image_link {
	display: flex;
	width: 100%;
	overflow: hidden;
}

.elementor-widget-ms_lms_courses .ms_lms_courses_archive .cmbc-elementor-bundle-card .ms_lms_courses_card_item_image {
	display: flex;
	width: 100%;
	height: 150px;
	min-height: 150px;
	object-fit: cover;
}

.elementor-widget-ms_lms_courses .ms_lms_courses_archive .cmbc-elementor-bundle-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 150px;
	min-height: 150px;
	background: #eef1f7;
	color: #001931;
	font-weight: 700;
}

.elementor-widget-ms_lms_courses .ms_lms_courses_archive .cmbc-elementor-bundle-card .ms_lms_courses_card_item_info_title h3 {
	min-height: 40px;
}

.elementor-widget-ms_lms_courses .ms_lms_courses_archive .cmbc-elementor-bundle-card .ms_lms_courses_card_item_meta_block {
	gap: 0;
}

.elementor-widget-ms_lms_courses .ms_lms_courses_archive .cmbc-elementor-bundle-card .ms_lms_courses_card_item_info_price {
	margin-left: auto;
}

.lms-archive-courses .cmbc-gutenberg-bundle-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 150px;
	padding: 16px;
	background: linear-gradient(180deg, #f8fbff 0%, #eef4fa 100%);
	color: #4d5e6f;
	font-weight: 700;
}

@media (max-width: 1024px) {
	.elementor-widget-ms_lms_courses .ms_lms_courses_archive .ms_lms_courses_card_wrapper {
		row-gap: 24px;
	}

	.elementor-widget-ms_lms_courses .ms_lms_courses_archive .ms_lms_courses_card.featured {
		gap: 24px;
	}

	.elementor-widget-ms_lms_courses .ms_lms_courses_archive .cmbc-elementor-bundle-section {
		margin-bottom: 24px;
	}
}

@media (max-width: 767px) {
	.elementor-widget-ms_lms_courses .ms_lms_courses_archive .ms_lms_courses_card.featured {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.elementor-widget-ms_lms_courses .ms_lms_courses_archive .cmbc-elementor-bundle-card .ms_lms_courses_card_item_image,
	.elementor-widget-ms_lms_courses .ms_lms_courses_archive .cmbc-elementor-bundle-card__placeholder {
		height: 150px;
		min-height: 150px;
	}
}

.cmbc-bundle-course {
	border: 1px solid #e6e6e6;
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
}

.cmbc-bundle-page {
	padding: 48px 0 72px;
	background: #fff;
}

.cmbc-bundle-page__inner {
	width: min(100%, 1240px);
	margin: 0 auto;
	padding-inline: 24px;
	box-sizing: border-box;
}

.cmbc-bundle-page__header {
	display: grid;
	grid-template-columns: minmax(280px, 420px) 1fr;
	gap: 32px;
	align-items: start;
	margin-bottom: 30px;
}

.cmbc-bundle-page__media-column {
	display: grid;
	gap: 12px;
}

.cmbc-bundle-page__media {
	position: relative;
	border: 1px solid #e7edf4;
	border-radius: 24px;
	overflow: hidden;
	background: linear-gradient(180deg, #f8fbff 0%, #eef4fa 100%);
	min-height: 320px;
}

.cmbc-bundle-page__media img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 320px;
	object-fit: cover;
}

.cmbc-bundle-page__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 320px;
	padding: 32px;
	color: #64748b;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.cmbc-bundle-page__placeholder span,
.cmbc-bundle-course__placeholder {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 140px;
	min-height: 44px;
	padding: 0 18px;
	border: 1px dashed #9fb3c8;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.72);
}

.cmbc-bundle-page__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	padding: 0;
	border: 0;
	background: transparent;
	color: #0f172a;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	letter-spacing: 0.02em;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.cmbc-bundle-page__back:hover {
	color: #0f172a;
	opacity: 0.75;
}

.cmbc-bundle-page__back-arrow {
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}

.cmbc-bundle-page__eyebrow {
	margin: 0 0 10px;
	color: #0d4cd3;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.cmbc-bundle-page__title {
	margin: 0 0 16px;
}

.cmbc-bundle-page__excerpt p,
.cmbc-bundle-page__excerpt {
	margin: 0 0 18px;
	color: #475569;
	font-size: 16px;
	line-height: 1.7;
}

.cmbc-bundle-page__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 0;
	align-items: center;
}

.cmbc-bundle-page__count {
	color: #475569;
	font-size: 14px;
	font-weight: 600;
}

.cmbc-bundle-page__chip {
	display: inline-flex;
	align-items: center;
	padding: 9px 14px;
	border-radius: 999px;
	background: #eff6ff;
	color: #0f172a;
	font-size: 13px;
	font-weight: 700;
}

.cmbc-bundle-page__notice,
.cmbc-course-notice {
	margin-bottom: 20px;
	padding: 14px 18px;
	border-left: 4px solid #0d4cd3;
	background: #eef4ff;
}

.cmbc-course-notice {
	margin-top: 16px;
}

.cmbc-course-notice__label {
	font-weight: 700;
}

.cmbc-course-notice__separator {
	margin: 0 8px;
}

.cmbc-course-notice__helper {
	margin-top: 10px;
	color: #475569;
	line-height: 1.6;
}

.cmbc-bundle-page__content {
	display: grid;
	gap: 18px;
}

.cmbc-bundle-page__content_list .cmbc-bundle-course {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr) auto;
	gap: 24px;
	align-items: center;
}

.cmbc-bundle-page__content_hide-thumbnails .cmbc-bundle-course {
	grid-template-columns: minmax(0, 1fr) auto;
}

.cmbc-bundle-course__image {
	height: 100%;
	background: #f8fbff;
}

.cmbc-bundle-course__image-frame {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 190px;
	background: linear-gradient(180deg, #f8fbff 0%, #eef4fa 100%);
}

.cmbc-bundle-course__image-frame.is-locked {
	cursor: not-allowed;
}

.cmbc-bundle-course__image-frame.is-locked img,
.cmbc-bundle-course__image-frame.is-locked .cmbc-bundle-course__placeholder {
	filter: grayscale(0.15);
	opacity: 0.72;
}

.cmbc-bundle-course__image img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 190px;
	object-fit: cover;
}

.cmbc-bundle-course__placeholder {
	color: #64748b;
	font-size: 13px;
	font-weight: 700;
}

.cmbc-bundle-course__body {
	padding: 20px;
}

.cmbc-bundle-page__content_hide-thumbnails .cmbc-bundle-course__body {
	padding-left: 28px;
}

.cmbc-bundle-course__topline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.cmbc-bundle-course__step,
.cmbc-bundle-course__status {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}

.cmbc-bundle-course__step {
	background: #f1f5f9;
	color: #334155;
}

.cmbc-bundle-course__status {
	background: #e8f7ee;
	color: #0f766e;
}

.cmbc-bundle-course__status_continue {
	background: #e8f1ff;
	color: #0d4cd3;
}

.cmbc-bundle-course__status_locked {
	background: #f1f5f9;
	color: #64748b;
}

.cmbc-bundle-course__title {
	margin: 0 0 12px;
	font-size: 26px;
	line-height: 1.25;
}

.cmbc-bundle-course__title a {
	color: #0f172a;
	text-decoration: none;
}

.cmbc-bundle-course__title-text {
	color: #0f172a;
	opacity: 0.72;
	cursor: not-allowed;
}

.cmbc-bundle-course__excerpt {
	margin: 0;
	color: #475569;
	line-height: 1.7;
}

.cmbc-bundle-course__actions {
	display: grid;
	gap: 12px;
	padding: 20px;
}

.cmbc-bundle-course__more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: #0d4cd3;
	font-size: 14px;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
}

.cmbc-bundle-course__more:hover {
	color: #0d4cd3;
	opacity: 0.82;
}

.cmbc-bundle-course__button.is-locked {
	background: #e5e7eb;
	color: #475569;
}

.cmbc-modal[hidden] {
	display: none;
}

.cmbc-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.cmbc-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.64);
}

.cmbc-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(960px, 100%);
	max-height: min(88vh, 920px);
	overflow: auto;
	padding: 28px;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 24px 72px rgba(15, 23, 42, 0.24);
}

.cmbc-modal__close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 999px;
	background: #f1f5f9;
	color: #0f172a;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.cmbc-modal__header {
	margin-bottom: 18px;
	padding-right: 48px;
}

.cmbc-modal__eyebrow {
	margin: 0 0 8px;
	color: #0d4cd3;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cmbc-modal__title {
	margin: 0;
	font-size: 32px;
	line-height: 1.2;
}

.cmbc-modal__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
	padding-bottom: 18px;
	border-bottom: 1px solid #e2e8f0;
}

.cmbc-modal__tab {
	padding: 10px 14px;
	border: 1px solid #dbe4ef;
	border-radius: 999px;
	background: #fff;
	color: #334155;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.cmbc-modal__tab.is-active {
	border-color: #0d4cd3;
	background: #eef4ff;
	color: #0d4cd3;
}

.cmbc-modal__panel {
	display: none;
}

.cmbc-modal__panel.is-active {
	display: block;
}

.cmbc-modal__panel .masterstudy-single-course-description__content,
.cmbc-modal__panel .masterstudy-curriculum-list,
.cmbc-modal__panel .masterstudy-single-course-faq,
.cmbc-modal__panel .masterstudy-single-course-announcement {
	color: #334155;
}

.cmbc-modal-content {
	color: #334155;
	line-height: 1.75;
}

.cmbc-modal-content p:last-child {
	margin-bottom: 0;
}

.cmbc-modal-curriculum__section + .cmbc-modal-curriculum__section {
	margin-top: 20px;
}

.cmbc-modal-curriculum__title {
	margin: 0 0 12px;
	font-size: 18px;
	line-height: 1.3;
}

.cmbc-modal-curriculum__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 10px;
}

.cmbc-modal-curriculum__item {
	padding: 14px 16px;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	background: #f8fafc;
}

.cmbc-modal-curriculum__item-main {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.cmbc-modal-curriculum__item-order {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	height: 30px;
	border-radius: 999px;
	background: #e2e8f0;
	color: #0f172a;
	font-size: 13px;
	font-weight: 700;
}

.cmbc-modal-curriculum__item-copy {
	min-width: 0;
}

.cmbc-modal-curriculum__item-title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	color: #0f172a;
}

.cmbc-modal-curriculum__item-meta {
	margin-top: 4px;
	font-size: 13px;
	color: #64748b;
}

.cmbc-modal-faq__item {
	padding: 16px 0;
	border-bottom: 1px solid #e2e8f0;
}

.cmbc-modal-faq__item:first-child {
	padding-top: 0;
}

.cmbc-modal-faq__item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.cmbc-modal-faq__question {
	margin: 0 0 8px;
	font-size: 17px;
	line-height: 1.4;
	color: #0f172a;
}

.cmbc-modal-faq__answer {
	color: #475569;
}

body.cmbc-modal-open {
	overflow: hidden;
	overscroll-behavior: contain;
}

.cmbc-dashboard-bundle {
	margin: 4px 0 10px;
	display: block;
	font-size: 12px;
	line-height: 1.5;
	color: #475569;
}

.cmbc-dashboard-bundle__label {
	font-weight: 500;
	margin-right: 4px;
}

.cmbc-dashboard-bundle__suffix {
	margin-left: 4px;
}

@media (max-width: 991px) {
	.cmbc-bundle-page__header,
	.cmbc-bundle-page__content_list .cmbc-bundle-course {
		grid-template-columns: 1fr;
	}

	.cmbc-bundle-page__media,
	.cmbc-bundle-page__media img,
	.cmbc-bundle-page__placeholder,
	.cmbc-bundle-course__image a,
	.cmbc-bundle-course__image img {
		min-height: 240px;
	}

	.cmbc-bundle-course__actions {
		padding-top: 0;
	}

	.cmbc-bundle-page__content_hide-thumbnails .cmbc-bundle-course__body {
		padding-left: 20px;
	}

	.cmbc-modal {
		padding: 16px;
	}

	.cmbc-modal__dialog {
		padding: 22px 18px;
		max-height: 90vh;
	}

	.cmbc-modal__title {
		font-size: 26px;
	}
}

@media (max-width: 767px) {
	.cmbc-bundle-page {
		padding: 28px 0 48px;
	}

	.cmbc-bundle-page__inner {
		padding-inline: 16px;
	}

	.cmbc-bundle-page__header {
		gap: 22px;
		margin-bottom: 22px;
	}

	.cmbc-bundle-page__media-column {
		gap: 10px;
	}

	.cmbc-bundle-page__media,
	.cmbc-bundle-page__media img,
	.cmbc-bundle-page__placeholder {
		min-height: 220px;
	}

	.cmbc-bundle-page__title {
		font-size: 30px;
		line-height: 1.15;
	}

	.cmbc-bundle-page__excerpt,
	.cmbc-bundle-page__excerpt p {
		font-size: 15px;
		line-height: 1.65;
	}

	.cmbc-bundle-page__meta {
		gap: 8px 10px;
	}

	.cmbc-bundle-course {
		border-radius: 16px;
	}

	.cmbc-bundle-course__image-frame,
	.cmbc-bundle-course__image img {
		min-height: 200px;
	}

	.cmbc-bundle-course__body,
	.cmbc-bundle-course__actions {
		padding: 18px;
	}

	.cmbc-bundle-page__content_hide-thumbnails .cmbc-bundle-course__body {
		padding-left: 18px;
	}

	.cmbc-bundle-course__topline {
		margin-bottom: 10px;
	}

	.cmbc-bundle-course__title {
		margin-bottom: 10px;
		font-size: 22px;
	}

	.cmbc-bundle-course__excerpt {
		font-size: 14px;
		line-height: 1.65;
	}

	.cmbc-bundle-course__actions {
		gap: 10px;
	}

	.cmbc-bundle-course__more,
	.cmbc-bundle-course__button {
		width: 100%;
		text-align: center;
	}

	.cmbc-modal {
		align-items: flex-end;
		padding: 0;
	}

	.cmbc-modal__dialog {
		width: 100%;
		max-height: 88vh;
		padding: 22px 16px 18px;
		border-radius: 22px 22px 0 0;
	}

	.cmbc-modal__close {
		top: 14px;
		right: 14px;
		width: 36px;
		height: 36px;
	}

	.cmbc-modal__header {
		margin-bottom: 14px;
		padding-right: 38px;
	}

	.cmbc-modal__title {
		font-size: 22px;
		line-height: 1.25;
	}

	.cmbc-modal__tabs {
		flex-wrap: nowrap;
		gap: 8px;
		margin: 0 -16px 18px;
		padding: 0 16px 16px;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}

	.cmbc-modal__tab {
		flex: 0 0 auto;
		padding: 10px 13px;
		font-size: 13px;
		white-space: nowrap;
	}

	.cmbc-modal__panel {
		font-size: 14px;
	}

	.cmbc-modal-curriculum__item {
		padding: 12px 14px;
	}

	.cmbc-modal-curriculum__item-main {
		gap: 10px;
	}

	.cmbc-modal-curriculum__item-order {
		min-width: 28px;
		height: 28px;
		font-size: 12px;
	}

	.cmbc-modal-curriculum__item-title {
		font-size: 14px;
	}

	.cmbc-modal-curriculum__item-meta {
		font-size: 12px;
	}

	.cmbc-modal-faq__question {
		font-size: 16px;
	}
}

@media (max-width: 480px) {
	.cmbc-bundle-page__back {
		font-size: 13px;
	}

	.cmbc-bundle-page__back-arrow {
		font-size: 16px;
	}

	.cmbc-bundle-page__title {
		font-size: 26px;
	}

	.cmbc-bundle-course__step,
	.cmbc-bundle-course__status {
		font-size: 11px;
	}

	.cmbc-bundle-course__title {
		font-size: 20px;
	}

	.cmbc-bundle-course__button {
		padding: 12px 14px;
	}

	.cmbc-modal__dialog {
		padding: 20px 14px 16px;
	}

	.cmbc-modal__tabs {
		margin-left: -14px;
		margin-right: -14px;
		padding-left: 14px;
		padding-right: 14px;
	}
}
