/**
 * Exertio Smart Match Search — card badge styling.
 * Scoped under .exertio-smart-match so it cannot affect existing theme styles.
 * Loaded only when the feature is enabled.
 */

.exertio-smart-match {
	margin: 10px 0 0;
	padding: 10px 12px;
	border: 1px solid #e6ebf1;
	border-left: 3px solid #14a800; /* Upwork-ish green accent */
	border-radius: 6px;
	background: #f6fbf4;
	font-size: 13px;
	line-height: 1.5;
}

/* Below-threshold cards: keep the info (match % + skills) but drop the green
   "Recommended" accent so they don't read as endorsed. */
.exertio-smart-match.below-threshold {
	border-left-color: #d3d8de;
	background: #fafbfc;
}

.exertio-smart-match .exertio-sm-head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.exertio-smart-match .exertio-sm-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 2px 9px;
	border-radius: 20px;
	background: #14a800;
	color: #fff;
	font-weight: 600;
	font-size: 12px;
	letter-spacing: .2px;
}

.exertio-smart-match .exertio-sm-badge i {
	font-size: 11px;
}

.exertio-smart-match .exertio-sm-percent {
	font-weight: 700;
	color: #14a800;
	font-size: 13px;
}

.exertio-smart-match .exertio-sm-skills {
	margin-top: 7px;
	color: #525252;
}

.exertio-smart-match .exertio-sm-skills-label {
	font-weight: 600;
	color: #333;
}

.exertio-smart-match .exertio-sm-reasons {
	margin-top: 7px;
}

.exertio-smart-match .exertio-sm-reasons-label {
	font-weight: 600;
	color: #333;
	display: block;
	margin-bottom: 3px;
}

.exertio-smart-match .exertio-sm-reasons ul {
	margin: 0;
	padding: 0 0 0 16px;
	list-style: disc;
}

.exertio-smart-match .exertio-sm-reasons li {
	margin: 0 0 2px;
	color: #525252;
}

/* --- Dashboard recommendation widgets --- */
.exertio-sm-widget .exertio-sm-widget-body {
	min-height: 60px;
}

.exertio-sm-widget .exertio-sm-loading,
.exertio-sm-widget .exertio-sm-empty {
	padding: 16px 4px;
	color: #8a8a8a;
	font-size: 14px;
}

.exertio-sm-widget .exertio-sm-cards {
	margin-left: -8px;
	margin-right: -8px;
}

.exertio-sm-widget .exertio-sm-widget-more {
	margin-top: 10px;
	text-align: center;
}

.exertio-sm-widget .exertio-sm-load-more[disabled] {
	opacity: .6;
	pointer-events: none;
}

@media (max-width: 767px) {
	.exertio-sm-widgets .stretch-card {
		width: 100%;
	}
}

/* --- Elementor Smart Match widgets --- */
.exertio-sm-el-widget {
	width: 100%;
}

.exertio-sm-el-widget .exertio-sm-cards {
	margin-bottom: 0;
}

.exertio-sm-el-widget .exertio-sm-widget-more {
	margin-top: 18px;
	text-align: center;
}

/* Field-visibility toggles (scoped — only inside the widget that set them). */
.exertio-sm-el-widget.sm-hide-budget .fr-jobs-price {
	display: none !important;
}
.exertio-sm-el-widget.sm-hide-rating .fr3-product-price li:first-child {
	display: none !important;
}
.exertio-sm-el-widget.sm-hide-verification .verified {
	display: none !important;
}

/* Carousel: each card is a slide; let Owl control widths. */
.exertio-sm-el-widget .exertio-sm-carousel .owl-item > [class*="col-"] {
	width: 100%;
	max-width: 100%;
	flex: 0 0 100%;
}
.exertio-sm-el-widget .exertio-sm-carousel .owl-nav button.owl-prev,
.exertio-sm-el-widget .exertio-sm-carousel .owl-nav button.owl-next {
	font-size: 22px;
	margin: 10px 6px 0;
}

/* Empty state inside Elementor editor / front-end. */
.exertio-sm-el-widget .exertio-sm-empty {
	padding: 24px;
	text-align: center;
	color: #8a8a8a;
	border: 1px dashed #d3d8de;
	border-radius: 8px;
}
