/* Course archive + single course + Udemy-style cards */

.jbs-theme-child .course-archive-page,
.jbs-theme-child .tutor-courses-wrap {
	padding-block: var(--jbs-space-6);
}

.jbs-theme-child .tutor-courses-grid,
.jbs-theme-child .jbs-course-grid__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
	align-items: stretch;
}

/*
 * Tutor archive lists use `.tutor-course-list.tutor-grid.tutor-grid-N`.
 * Plugin defaults: 1-col mobile, 2-col ≥768, 3-col ≥992.
 * Crest: 2-col mobile, 3-col tablet+.
 */
.jbs-theme-child .course-archive-page .tutor-course-list.tutor-grid,
.jbs-theme-child .course-archive-page .tutor-grid.tutor-grid-2,
.jbs-theme-child .course-archive-page .tutor-grid.tutor-grid-3,
.jbs-theme-child .course-archive-page .tutor-grid.tutor-grid-4,
.jbs-theme-child .dsdt-ebook-store-archive .tutor-course-list.tutor-grid,
.jbs-theme-child .dsdt-ebook-store-archive .tutor-grid.tutor-grid-2,
.jbs-theme-child .dsdt-ebook-store-archive .tutor-grid.tutor-grid-3,
.jbs-theme-child .dsdt-ebook-store-archive .tutor-grid.tutor-grid-4 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 0.75rem;
	align-items: stretch;
}

@media (min-width: 768px) {
	.jbs-theme-child .course-archive-page .tutor-course-list.tutor-grid,
	.jbs-theme-child .course-archive-page .tutor-grid.tutor-grid-2,
	.jbs-theme-child .course-archive-page .tutor-grid.tutor-grid-3,
	.jbs-theme-child .course-archive-page .tutor-grid.tutor-grid-4,
	.jbs-theme-child .dsdt-ebook-store-archive .tutor-course-list.tutor-grid,
	.jbs-theme-child .dsdt-ebook-store-archive .tutor-grid.tutor-grid-2,
	.jbs-theme-child .dsdt-ebook-store-archive .tutor-grid.tutor-grid-3,
	.jbs-theme-child .dsdt-ebook-store-archive .tutor-grid.tutor-grid-4 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.25rem;
	}
}

.jbs-theme-child .tutor-courses-grid > *,
.jbs-theme-child .jbs-course-grid__list > *,
.jbs-theme-child .course-archive-page .tutor-course-list.tutor-grid > *,
.jbs-theme-child .dsdt-ebook-store-archive .tutor-course-list.tutor-grid > * {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
}

/* Reset Tutor card chrome when wrapping our card */
.jbs-theme-child .tutor-course-card,
.jbs-theme-child .jbs-course-card-wrap,
.jbs-theme-child .jbs-course-card,
.jbs-theme-child .jbs-tutor-course-card,
.jbs-theme-child .jbs-udemy-card-wrap,
.jbs-theme-child .tutor-card.tutor-course-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	margin: 0;
	/* Tutor .tutor-card defaults to padding: 16px — kill the white inset around covers */
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	overflow: visible;
}

.jbs-theme-child .jbs-course-card > .jbs-udemy-card,
.jbs-theme-child .jbs-course-card-wrap > .jbs-udemy-card,
.jbs-theme-child .jbs-tutor-course-card > .jbs-udemy-card,
.jbs-theme-child .tutor-card.tutor-course-card > .jbs-udemy-card {
	flex: 1 1 auto;
	height: 100%;
}

/* ——— Udemy course card ——— */
.jbs-udemy-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	margin: 0;
	padding: 0;
	background: #fff;
	border: 1px solid var(--jbs-border);
	border-radius: var(--jbs-radius);
	overflow: hidden;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.jbs-udemy-card:hover,
.jbs-udemy-card:focus-within {
	box-shadow: var(--jbs-shadow-sm);
	border-color: var(--jbs-border-strong, var(--jbs-muted));
}

.jbs-udemy-card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	margin: 0;
	padding: 0;
	line-height: 0;
	background: var(--jbs-surface-alt, #f7f9fa);
	border-radius: 0;
	overflow: hidden;
	flex-shrink: 0;
}

.jbs-udemy-card__thumb-link {
	position: absolute;
	inset: 0;
	display: block;
	margin: 0;
	padding: 0;
	line-height: 0;
}

.jbs-udemy-card__thumb {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	object-fit: cover;
	object-position: center center;
	border-radius: 0;
}

/*
 * Ebook covers are square template screenshots with up to ~17% white canvas baked
 * into the top. A 16:9 crop of a square shows 56.25% of its height, so a 40% offset
 * starts the visible window ~17.5% down — past the white band, onto the hero.
 */
.jbs-theme-child .jbs-udemy-card--ebook .jbs-udemy-card__thumb {
	object-position: center 40%;
}

.jbs-udemy-card__badge {
	position: absolute;
	top: 0.65rem;
	left: 0.65rem;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.2rem 0.45rem;
	border-radius: 4px;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.2;
}

.jbs-udemy-card__badge--sale {
	background: #ec5252;
	color: #fff;
}

.jbs-udemy-card__badge--purchased {
	background: #1e7e34;
	color: #fff;
}

.jbs-udemy-card__wishlist {
	position: absolute;
	top: 0.55rem;
	right: 0.55rem;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.96);
	color: #1c1d1f;
	text-decoration: none;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.jbs-udemy-card__wishlist:hover {
	color: #ec5252;
}

.jbs-udemy-card__wishlist.is-wishlisted,
.jbs-udemy-card__wishlist .tutor-icon-bookmark-bold {
	color: #ec5252;
}

.jbs-udemy-card__wishlist i {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	font-style: normal;
	line-height: 1;
}

/* Prefer clear SVG hearts over Tutor icon font (often missing on this surface). */
.jbs-udemy-card__wishlist i::before {
	content: none !important;
}

.jbs-udemy-card__heart,
.jbs-udemy-card__wishlist .jbs-icon-heart {
	display: block;
	flex-shrink: 0;
}

.jbs-udemy-card__wishlist .jbs-icon-heart--fill,
.jbs-udemy-card__heart--fill {
	display: none;
}

.jbs-udemy-card__wishlist.is-wishlisted .jbs-icon-heart--outline,
.jbs-udemy-card__wishlist .tutor-icon-bookmark-bold .jbs-icon-heart--outline,
.jbs-udemy-card__wishlist.is-wishlisted .jbs-udemy-card__heart--outline,
.jbs-udemy-card__wishlist .tutor-icon-bookmark-bold .jbs-udemy-card__heart--outline {
	display: none;
}

.jbs-udemy-card__wishlist.is-wishlisted .jbs-icon-heart--fill,
.jbs-udemy-card__wishlist .tutor-icon-bookmark-bold .jbs-icon-heart--fill,
.jbs-udemy-card__wishlist.is-wishlisted .jbs-udemy-card__heart--fill,
.jbs-udemy-card__wishlist .tutor-icon-bookmark-bold .jbs-udemy-card__heart--fill {
	display: block;
}

.jbs-udemy-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	padding: 0.9rem 0.95rem 1rem;
	flex: 1 1 auto;
}

.jbs-udemy-card__content {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	min-width: 0;
	flex: 1 1 auto;
}

.jbs-udemy-card__footer {
	display: flex;
	flex-direction: column;
	gap: 0;
	min-width: 0;
	margin-top: auto;
}

.jbs-udemy-card__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.01em;
	color: var(--jbs-ink);
}

.jbs-udemy-card__title a {
	color: inherit;
	text-decoration: none;
}

.jbs-udemy-card__title a:hover {
	color: var(--jbs-accent);
}

.jbs-udemy-card__instructor {
	font-size: 0.8rem;
	color: var(--jbs-muted);
	line-height: 1.35;
}

.jbs-udemy-card__instructor a {
	color: inherit;
	text-decoration: none;
}

.jbs-udemy-card__instructor a:hover {
	color: var(--jbs-text);
	text-decoration: underline;
}

.jbs-udemy-card__meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	margin-top: 0.15rem;
}

.jbs-udemy-card__chip {
	display: inline-flex;
	align-items: center;
	padding: 0.15rem 0.4rem;
	border-radius: 4px;
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1.2;
}

.jbs-udemy-card__chip--bestseller {
	background: #c2e9eb;
	color: #1e6055;
}

.jbs-udemy-card__chip--type {
	background: #fff;
	border: 1px solid var(--jbs-border, #d1d7dc);
	border-radius: 999px;
	padding: 0.12rem 0.45rem;
	color: var(--jbs-muted, #6a6f73);
	font-weight: 600;
}

.jbs-udemy-card__rating {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--jbs-text);
}

.jbs-udemy-card__star {
	color: #e59819;
}

.jbs-udemy-card__ratings-count {
	display: inline-flex;
	align-self: flex-start;
	padding: 0.2rem 0.45rem;
	border: 1px solid var(--jbs-border);
	border-radius: 4px;
	font-size: 0.72rem;
	color: var(--jbs-muted);
	background: #fff;
}

.jbs-udemy-card__price {
	margin-top: 0;
	padding-top: 0.15rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--jbs-ink);
	line-height: 1.3;
}

/* Simplify Tutor / WC price markup inside the card */
.jbs-udemy-card__price .tutor-course-loop-price,
.jbs-udemy-card__price .price,
.jbs-udemy-card__price .tutor-price-amount,
.jbs-udemy-card__price .amount,
.jbs-udemy-card__price .woocommerce-Price-amount,
.jbs-udemy-card__price bdi,
.jbs-udemy-card__price ins {
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
	text-decoration: none;
}

.jbs-udemy-card__price del,
.jbs-udemy-card__price .tutor-course-price-regular {
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--jbs-muted);
	margin-right: 0.35rem;
}

/* Purchase CTA below price — collapsed until hover so the card can grow */
.jbs-udemy-card__cta {
	max-height: 0;
	margin-top: 0;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
	transition: max-height 0.2s ease, opacity 0.18s ease, margin-top 0.18s ease;
}

.jbs-udemy-card:hover .jbs-udemy-card__cta,
.jbs-udemy-card:focus-within .jbs-udemy-card__cta {
	max-height: 3.5rem;
	margin-top: 0.65rem;
	opacity: 1;
	pointer-events: auto;
}

.jbs-udemy-card__cta .jbs-udemy-card__cta-btn,
.jbs-udemy-card__cta .tutor-btn,
.jbs-udemy-card__cta a.add_to_cart_button,
.jbs-udemy-card__cta button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	width: 100%;
	min-height: 2.35rem;
	padding: 0.5rem 0.85rem;
	border: 0 !important;
	border-radius: 4px;
	background: var(--jbs-accent, #13aff0) !important;
	color: #fff !important;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	filter: none;
}

.jbs-udemy-card__cta .jbs-udemy-card__cta-btn:hover,
.jbs-udemy-card__cta .jbs-udemy-card__cta-btn:focus-visible,
.jbs-udemy-card__cta .tutor-btn:hover,
.jbs-udemy-card__cta .tutor-btn:focus-visible,
.jbs-udemy-card__cta a.add_to_cart_button:hover,
.jbs-udemy-card__cta a.add_to_cart_button:focus-visible,
.jbs-udemy-card__cta button:hover,
.jbs-udemy-card__cta button:focus-visible {
	background: var(--jbs-accent-hover, #005ccb) !important;
	border-color: var(--jbs-accent-hover, #005ccb) !important;
	color: #fff !important;
	filter: none;
}

.jbs-udemy-card__cta .list-item-button,
.jbs-udemy-card__cta .tutor-course-list-btn {
	width: 100%;
}

@media (hover: none) {
	.jbs-udemy-card--has-cta .jbs-udemy-card__cta {
		max-height: 3.5rem;
		margin-top: 0.65rem;
		opacity: 1;
		pointer-events: auto;
	}
}

.jbs-theme-child.jbs-tutor-course .tutor-course-details-page,
.jbs-theme-child .tutor-course-single-content-wrapper {
	font-family: var(--jbs-tutor-font);
}

/* Space stars / lead info away from sticky site header */
.jbs-theme-child .jbs-tutor-course.tutor-course-top-info > .tutor-course-details-page {
	padding-top: var(--jbs-space-6, 1.5rem);
}

/*
 * Mobile and tablet: one content width, same 1rem side inset as .jbs-container
 * and the header bar. Tutor's container max-widths and column gutters otherwise
 * leave the title, media, tabs, and sidebar at different edges.
 */
@media (max-width: 1199px) {
	.jbs-theme-child .jbs-tutor-course > .tutor-course-details-page.tutor-container {
		width: min(100% - 2rem, var(--jbs-max, 1340px));
		max-width: none;
		margin-inline: auto;
		padding-left: 0;
		padding-right: 0;
		box-sizing: border-box;
	}

	.jbs-theme-child .jbs-tutor-course .tutor-row {
		--tutor-gutter-x: 0px;
		width: 100%;
		margin-left: 0;
		margin-right: 0;
	}

	.jbs-theme-child .jbs-tutor-course .tutor-row > [class*="tutor-col"] {
		width: 100%;
		max-width: 100%;
		flex: 0 0 100%;
		padding-left: 0;
		padding-right: 0;
	}

	.jbs-theme-child .jbs-tutor-course .tutor-course-details-title {
		max-width: none;
	}
}

/* Course tab nav: stick below site header (Tutor defaults to top:0 / z-index:500). */
.jbs-theme-child .tutor-course-details-tab .tutor-is-sticky,
body.admin-bar.jbs-theme-child .tutor-course-details-tab .tutor-is-sticky {
	top: var(--jbs-header-height, 4.5625rem);
	z-index: 90;
	background: #fff;
}

/* Course and resource lists use standard bullets, not icon images. */
.jbs-theme-child .tutor-course-details-page ul.tutor-course-details-widget-list,
.jbs-theme-child .tutor-course-details-content ul,
.jbs-theme-child .jbs-learn-overview__about ul,
.jbs-theme-child .jbs-learn-panel__section ul {
	list-style: disc;
	padding-left: 1.25rem;
	margin-left: 0;
}

.jbs-theme-child .tutor-course-details-widget-list > li,
.jbs-theme-child .tutor-course-details-content ul > li,
.jbs-theme-child .jbs-learn-overview__about ul > li,
.jbs-theme-child .jbs-learn-panel__section ul > li {
	display: list-item;
	list-style: disc;
}

.jbs-theme-child .jbs-course-entry {
	position: static;
	border: 1px solid var(--jbs-tutor-border);
	box-shadow: var(--jbs-shadow);
}

.jbs-theme-child .jbs-course-entry .tutor-btn-primary,
.jbs-theme-child .jbs-course-entry .tutor-enroll-course-button {
	border-radius: 0;
}

.jbs-theme-child .jbs-ebook-download {
	margin-top: 1.25rem;
}

.jbs-theme-child .jbs-ebook-download__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	transition: filter 0.15s ease, opacity 0.15s ease;
}

.jbs-theme-child .jbs-ebook-download__btn:hover {
	filter: brightness(1.06);
}

.jbs-theme-child .jbs-ebook-download__btn .tutor-icon-download {
	font-size: 1.1em;
	line-height: 1;
}

.jbs-theme-child .jbs-ebook-download__helper {
	margin: 0.55rem 0 0;
	text-align: center;
}

.jbs-theme-child .jbs-ebook-download__count {
	margin: 0.55rem 0 0;
}

.jbs-theme-child .jbs-ebook-download__list {
	margin: 0.35rem 0 0;
	padding: 0;
	list-style: none;
}

.jbs-theme-child .jbs-ebook-download__list li + li {
	margin-top: 0.25rem;
}

.jbs-theme-child .jbs-ebook-download__list a {
	font-size: 0.8125rem;
	color: var(--tutor-color-primary, #00adef);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.jbs-theme-child .tutor-course-single-pricing {
	color: var(--jbs-tutor-text);
}

.jbs-theme-child .tutor-course-topics-header,
.jbs-theme-child .tutor-accordion-item {
	border-color: var(--jbs-tutor-border);
}

.jbs-theme-child .tutor-course-topic-title {
	font-weight: 600;
}

@media (max-width: 767px) {
	.jbs-theme-child .tutor-courses-grid,
	.jbs-theme-child .jbs-course-grid__list,
	.jbs-theme-child .tutor-courses-grid-2,
	.jbs-theme-child .tutor-courses-grid-3,
	.jbs-theme-child .tutor-courses-grid-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem 0.75rem;
	}

	/* Product titles: smaller + lighter in the 2-up mobile grid. */
	.jbs-theme-child .jbs-udemy-card__title,
	.jbs-theme-child h3.jbs-udemy-card__title {
		font-size: 0.8125rem;
		font-weight: 500;
		line-height: 1.35;
		letter-spacing: 0;
	}

	/* Add to cart: lighter label on mobile. */
	.jbs-theme-child .jbs-udemy-card__cta .jbs-udemy-card__cta-btn,
	.jbs-theme-child .jbs-udemy-card__cta .tutor-btn,
	.jbs-theme-child .jbs-udemy-card__cta a.add_to_cart_button,
	.jbs-theme-child .jbs-udemy-card__cta button {
		font-size: 0.8125rem;
		font-weight: 500;
	}
}

/* Keep older class hooks aligned with archive grid overrides above. */

/* Search results — 4 cards per row */
.jbs-search-results {
	padding-block: var(--jbs-space-6);
}

.jbs-theme-child .jbs-course-grid__list.jbs-search-results__grid,
.jbs-theme-child .jbs-search-results__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem;
}

@media (max-width: 1100px) {
	.jbs-theme-child .jbs-course-grid__list.jbs-search-results__grid,
	.jbs-theme-child .jbs-search-results__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.jbs-theme-child .jbs-course-grid__list.jbs-search-results__grid,
	.jbs-theme-child .jbs-search-results__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem 0.75rem;
	}
}

.jbs-search-results__header {
	margin-bottom: 1.5rem;
}

.jbs-search-results__title {
	margin: 0 0 0.35rem;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--jbs-text);
}

.jbs-search-results__count,
.jbs-search-results__empty {
	margin: 0;
	color: var(--jbs-muted);
	font-size: 0.95rem;
}

.jbs-search-results__pagination {
	margin-top: 2rem;
}

.jbs-search-results__pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.jbs-search-results__pagination a,
.jbs-search-results__pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	min-height: 2.25rem;
	padding: 0 0.65rem;
	border: 1px solid var(--jbs-border);
	color: var(--jbs-text);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 600;
}

.jbs-search-results__pagination .current {
	background: var(--jbs-accent);
	border-color: var(--jbs-accent);
	color: #fff;
}

/* Course / ebook archive filter chrome */
.jbs-theme-child .course-archive-page .tutor-course-filter[tutor-course-filter] {
	text-align: left !important;
}

.jbs-theme-child .course-archive-page .tutor-pagination-wrapper-replaceable + br,
.jbs-theme-child .course-archive-page .tutor-course-filter + br {
	display: none;
}

.jbs-theme-child .course-archive-page > .tutor-row > [class*="tutor-col-"] > div:has(> .tutor-course-filter) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.jbs-theme-child .course-archive-page .tutor-course-filter form {
	display: inline-block;
	margin: 0;
}

.jbs-theme-child .course-archive-page .tutor-course-filter .tutor-form-select {
	min-width: 12rem;
	max-width: 100%;
}

/* Mobile/tablet: off-canvas filter toggle row */
.jbs-theme-child .course-archive-page .tutor-d-xl-none.tutor-mb-32 {
	margin-bottom: 1rem !important;
}

.jbs-theme-child .course-archive-page .tutor-d-xl-none .tutor-d-flex {
	gap: 0.75rem;
}

.jbs-theme-child .course-archive-page [tutor-toggle-course-filter].tutor-iconic-btn {
	flex-shrink: 0;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 999px;
	border: 1px solid var(--jbs-border, #d1d7dc);
	background: #fff;
	color: var(--jbs-ink, #1c1d1f);
}

@media (max-width: 1199px) {
	/*
	 * Do NOT display:none the filter container — Tutor slides it in off-canvas
	 * (right: -100% → 0) when body.tutor-course-filter-open is set.
	 */
	.jbs-theme-child .course-archive-page .tutor-col-xl-9,
	.jbs-theme-child .course-archive-page .tutor-col-xl-8,
	.jbs-theme-child .course-archive-page [class*="tutor-col-xl-"] {
		width: 100%;
		max-width: 100%;
		flex: 0 0 100%;
	}

	/* Hide Release Date / course_order sort on tablet + mobile. */
	.jbs-theme-child .course-archive-page .tutor-course-filter:has(select[name="course_order"]),
	.jbs-theme-child .course-archive-page select[name="course_order"] {
		display: none !important;
	}

	.jbs-theme-child .course-archive-page > .tutor-row > [class*="tutor-col-"]:not(.tutor-course-filter-container) > div:has(> .tutor-course-filter:has(select[name="course_order"])) {
		display: none !important;
		margin: 0 !important;
	}
}

/* Course about: remove Show More / Show Less focus ring */
.jbs-theme-child .tutor-btn-show-more.tutor-btn,
.jbs-theme-child .tutor-btn-show-more.tutor-btn:hover,
.jbs-theme-child .tutor-btn-show-more.tutor-btn:focus,
.jbs-theme-child .tutor-btn-show-more.tutor-btn:focus-visible,
.jbs-theme-child .tutor-btn-show-more.tutor-btn:active,
.jbs-theme-child .tutor-btn-show-more.tutor-btn.is-active {
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
}

.jbs-theme-child .tutor-btn-show-more .tutor-toggle-btn-text,
.jbs-theme-child .tutor-btn-show-more:hover .tutor-toggle-btn-text,
.jbs-theme-child .tutor-btn-show-more:focus .tutor-toggle-btn-text,
.jbs-theme-child .tutor-btn-show-more:focus-visible .tutor-toggle-btn-text,
.jbs-theme-child .tutor-btn-show-more:active .tutor-toggle-btn-text,
.jbs-theme-child .tutor-btn-show-more.is-active .tutor-toggle-btn-text {
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
}


a.jbs-udemy-card__chip--type,
a.jbs-udemy-card__chip--type:visited {
	color: var(--jbs-muted);
	text-decoration: none;
}

a.jbs-udemy-card__chip--type:hover,
a.jbs-udemy-card__chip--type:focus-visible {
	color: var(--jbs-muted);
	text-decoration: underline;
}

/* Single course: wishlist and share sit beside the stars on mobile and tablet. */
.jbs-theme-child .jbs-course-lead-rating-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.jbs-theme-child .jbs-course-lead-rating-row .tutor-course-details-ratings {
	min-width: 0;
	margin: 0;
}

.jbs-theme-child .jbs-course-lead-actions {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	gap: 8px;
	margin: 0 0 0 auto;
}

.jbs-theme-child .jbs-course-lead-actions .tutor-course-wishlist-btn,
.jbs-theme-child .jbs-course-lead-actions .tutor-course-share-btn {
	margin: 0;
	padding: 0.25rem;
	min-height: 0;
	font-size: 0;
	line-height: 1;
	gap: 0;
}

.jbs-theme-child .jbs-course-lead-actions .tutor-course-wishlist-btn i,
.jbs-theme-child .jbs-course-lead-actions .tutor-course-share-btn .tutor-icon-share {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1;
}

.jbs-theme-child .jbs-course-lead-actions .jbs-course-lead-action-label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (min-width: 1200px) {
	.jbs-theme-child .tutor-course-details-header {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"stars stars"
			"title title"
			"meta actions";
		align-items: center;
		column-gap: 1rem;
	}

	.jbs-theme-child .jbs-course-lead-rating-row {
		display: contents;
	}

	.jbs-theme-child .jbs-course-lead-rating-row .tutor-course-details-ratings {
		grid-area: stars;
	}

	.jbs-theme-child .tutor-course-details-title {
		grid-area: title;
	}

	.jbs-theme-child .tutor-course-details-top {
		grid-area: meta;
	}

	.jbs-theme-child .jbs-course-lead-actions {
		grid-area: actions;
		align-self: end;
		margin-bottom: 0.15rem;
		gap: 0.25rem;
	}

	.jbs-theme-child .jbs-course-lead-actions .tutor-course-wishlist-btn,
	.jbs-theme-child .jbs-course-lead-actions .tutor-course-share-btn {
		font-size: 1rem;
		padding: 0.35rem 0.5rem;
		gap: 0.35rem;
	}

	.jbs-theme-child .jbs-course-lead-actions .jbs-course-lead-action-label {
		position: static;
		width: auto;
		height: auto;
		margin: 0;
		overflow: visible;
		clip: auto;
		white-space: normal;
	}
}