/**
 * Top Bar Styles - Salient-inspired design
 *
 * @package MyBestClinicShop
 */

.mbcs-top-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	padding: 0;
	margin: 0 0 20px;
	background: transparent;
	border: none;
	flex-wrap: wrap;
}

.mbcs-top-bar-left {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.mbcs-top-bar-right {
	display: flex;
	align-items: center;
	gap: 15px;
}

/* Results Count */
.mbcs-results-count {
	font-size: 14px;
	color: #666;
	font-weight: 400;
	white-space: nowrap;
}

.mbcs-showing-count {
	color: #333;
	font-weight: 400;
}

/* Sort Wrapper - Desktop Salient style */
.mbcs-sort-wrapper {
	display: flex;
	align-items: center;
	gap: 10px;
}

.mbcs-sort-wrapper label {
	display: none;
}

.mbcs-sort-wrapper select {
	padding: 10px 35px 10px 15px;
	font-size: 14px;
	font-weight: 400;
	color: #333;
	background-color: rgba(0, 0, 0, 0.045);
	border: none;
	border-radius: 200px;
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23333' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 15px center;
	transition: background-color 0.2s ease;
	min-width: 160px;
}

.mbcs-sort-wrapper select:hover {
	background-color: rgba(0, 0, 0, 0.07);
}

.mbcs-sort-wrapper select:focus {
	outline: none;
	background-color: rgba(0, 0, 0, 0.07);
}

/* View Toggle */
.mbcs-view-toggle {
	display: flex;
	gap: 4px;
	padding: 4px;
	background: rgba(0, 0, 0, 0.045);
	border-radius: 200px;
}

.mbcs-view-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: transparent;
	border: none;
	color: #666;
	cursor: pointer;
	border-radius: 200px;
	transition: all 0.2s ease;
	padding: 0;
}

.mbcs-view-btn:hover {
	color: #333;
}

.mbcs-view-btn.active {
	background: #ffffff;
	color: #333;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mbcs-view-btn svg {
	width: 18px;
	height: 18px;
}

/* Mobile Filter Toggle Button */
.mbcs-mobile-filter-toggle {
	display: none;
}

@media (max-width: 768px) {
	/* Mobile top bar - Salient-style layout */
	.mbcs-top-bar {
		flex-direction: column;
		gap: 12px;
		padding: 0;
		margin-bottom: 20px;
		background: transparent;
		border: none;
		box-shadow: none;
		position: relative;
		top: 0;
	}
	
	/* Row with Filters + Sort buttons */
	.mbcs-top-bar-right {
		display: flex;
		align-items: stretch;
		gap: 10px;
		width: 100%;
		order: 1;
	}
	
	/* Results count below buttons */
	.mbcs-top-bar-left {
		order: 2;
		width: 100%;
	}
	
	.mbcs-results-count {
		font-size: 14px;
		color: #666;
		font-weight: 400;
	}
	
	/* Hide filter badges on mobile - shown inline on desktop */
	.mbcs-filter-badges {
		display: none !important;
	}
	
	/* Hide view toggle on mobile */
	.mbcs-view-toggle {
		display: none !important;
	}
	
	/* Filter toggle button - Salient pill style */
	.mbcs-mobile-filter-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		flex: 1;
		padding: 10px 15px;
		font-size: 14px;
		font-weight: 400;
		color: #333;
		background: rgba(0, 0, 0, 0.045);
		border: none;
		border-radius: 200px;
		cursor: pointer;
		transition: background-color 0.2s ease;
		min-width: 120px;
		line-height: 1.2;
	}
	
	.mbcs-mobile-filter-toggle:hover {
		background: rgba(0, 0, 0, 0.07);
	}
	
	.mbcs-mobile-filter-toggle:active {
		background: rgba(0, 0, 0, 0.1);
	}
	
	.mbcs-mobile-filter-toggle svg {
		width: 16px;
		height: 16px;
		flex-shrink: 0;
	}
	
	/* Active filters count badge */
	.mbcs-filter-count {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 18px;
		height: 18px;
		padding: 0 5px;
		font-size: 11px;
		font-weight: 600;
		color: #ffffff;
		background: #333;
		border-radius: 200px;
		margin-left: 4px;
	}
	
	.mbcs-filter-count:empty {
		display: none;
	}
	
	/* Sort wrapper - Salient pill style */
	.mbcs-sort-wrapper {
		flex: 1;
		display: flex;
	}
	
	.mbcs-sort-wrapper label {
		display: none;
	}
	
	.mbcs-sort-wrapper select {
		width: 100%;
		padding: 10px 35px 10px 15px;
		font-size: 14px;
		font-weight: 400;
		color: #333;
		background-color: rgba(0, 0, 0, 0.045);
		border: none;
		border-radius: 200px;
		cursor: pointer;
		appearance: none;
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23333' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
		background-repeat: no-repeat;
		background-position: right 15px center;
		transition: background-color 0.2s ease;
		line-height: 1.2;
	}
	
	.mbcs-sort-wrapper select:hover {
		background-color: rgba(0, 0, 0, 0.07);
	}
	
	.mbcs-sort-wrapper select:focus {
		outline: none;
		background-color: rgba(0, 0, 0, 0.07);
	}
}


