/* ==========================================================================
   Default Styling
   Elementor Style controls override these values when configured.
   ========================================================================== */


/* ==========================================================================
   Container
   ========================================================================== */

.bf-blog-filter {
	width: 100%;
	padding: 14px;
	border: 1px solid #6a97b4;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}


/* ==========================================================================
   Layout
   ========================================================================== */

.bf-filter-layout {
	display: flex;
	align-items: flex-start;
	gap: 30px;
}

.bf-filter-column {
	flex: 0 0 260px;
	padding-right: 24px;
	border-right: 1px solid #ececec;
}

.bf-search-column {
	flex: 1;
	padding-left: 6px;
}

.bf-filter-title {
	margin: 0 0 18px;
	font-size: 18px;
	font-weight: 600;
	color: #222;
}


/* ==========================================================================
   Categories
   ========================================================================== */

.bf-category-filter {
	margin-bottom: 20px;
}

.bf-category-list,
.bf-category-children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bf-category-children {
	margin-left: 20px;
}

.bf-category-item {
	margin: 10px 0;
}

.bf-category-label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	user-select: none;
}

.bf-category-radio {
	margin: 0;
}

.bf-category-name {
	line-height: 1.4;
}


/* ==========================================================================
   Search Box
   ========================================================================== */

.bf-search-wrapper {
	position: relative;
}

.bf-search-wrapper .bf-search {
	width: 100%;
	box-sizing: border-box;
	padding: 0.4em 42px;
	border: 1px solid #6a97b4;
	border-radius: 10px;
}

.bf-search-icon {
	position: absolute;
	top: 20px;
	left: 14px;

	display: flex;
	align-items: center;

	color: #777;

	pointer-events: none;
	transform: translateY(-50%);
}


/* ==========================================================================
   Icons
   ========================================================================== */

.bf-search-clear {
	position: absolute;
	top: 20px;
	right: 14px;

	padding: 0;
	border: 0;
	background: transparent;

	color: #777;

	opacity: 0;
	visibility: hidden;
	pointer-events: none;

	transform: translateY(-50%);
	transition: opacity .2s ease;
}

.bf-search-clear.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}


/* ==========================================================================
   Search Results
   ========================================================================== */

.bf-search-results {
	margin-top: 10px;
	overflow: hidden;

	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
}

.bf-search-result {
	display: block;
	padding: 10px;

	border: 1px solid #e5e5e5;

	text-decoration: none;

	transition:
		background-color .15s ease,
		color .15s ease;
}

.bf-search-result:hover {
	background: #0073aa;
	color: #fff;
}

.bf-search-result.is-active {
	background: #0073aa !important;
	color: #fff !important;
}

.bf-no-results {
	padding: 10px;
	color: #666;
}


/* ==========================================================================
   Loading Overlay
   ========================================================================== */

.elementor-widget-posts {
	position: relative;
	overflow: hidden;
}

.bf-loading-overlay {
	position: absolute;
	inset: 0;

	display: flex;
	align-items: center;
	justify-content: center;

	background: rgba(255, 255, 255, .65);

	opacity: 0;
	visibility: hidden;
	pointer-events: none;

	transition: opacity .2s ease;

	z-index: 999;
}

.elementor-widget-posts.bf-loading .bf-loading-overlay {
	opacity: 1;
	visibility: visible;
}

.bf-spinner {
	width: 46px;
	height: 46px;

	border: 4px solid #ddd;
	border-top-color: #0073aa;
	border-radius: 50%;

	box-shadow: 0 0 10px rgba(0, 0, 0, .12);

	animation: bf-spin .8s linear infinite;
}

@keyframes bf-spin {
	to {
		transform: rotate(360deg);
	}
}


/* ==========================================================================
   Messages
   ========================================================================== */

.bf-empty-state {
	padding: 50px 20px;
	text-align: center;
}

.bf-empty-state h2 {
	margin: 0 0 15px;
	font-size: 28px;
}

.bf-empty-state p {
	margin: 0;
	font-size: 16px;
	color: #666;
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {

	.bf-filter-layout {
		flex-direction: column;
		gap: 24px;
	}

	.bf-filter-column {
		width: 100%;
		padding-right: 0;
		padding-bottom: 20px;
		border-right: 0;
		border-bottom: 1px solid #ececec;
	}

	.bf-search-column {
		width: 100%;
		padding-left: 0;
	}

}