.blog-order-wrap {
	position: relative;
	display: flex;
	align-items: center;
	margin-bottom: 24px;
}

.blog-order-trigger {
	min-width: 132px;
	height: 44px;
	padding: 0 20px;
	font-size: 17px;
	font-weight: 500;
	line-height: 1;
	color: #000000;
	background-color: #fff;
	border: 1px solid #cfcfcf;
	border-radius: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-family: inherit;
	box-sizing: border-box;
}

.blog-order-trigger:focus {
	outline: none;
	box-shadow: none;
}

/* Override global button reset/theme hover styles */
.blog-order-wrap .blog-order-trigger[type='button']:hover,
.blog-order-wrap .blog-order-trigger[type='button']:focus,
.blog-order-wrap .blog-order-trigger[type='button']:active {
	background-color: #fff;
	color: #000;
	text-decoration: none;
}

.blog-order-trigger-icon {
	width: 8px;
	height: 8px;
	border-right: 2px solid #7a7a7a;
	border-bottom: 2px solid #7a7a7a;
	transform: translateY(-1px) rotate(45deg);
	transition: transform 0.2s ease;
}

.blog-order-wrap.is-open .blog-order-trigger-icon {
	transform: translateY(1px) rotate(-135deg);
}

.blog-order-wrap.is-open .blog-order-trigger {
	border-bottom-color: transparent;
}

.blog-order-panel {
	position: absolute;
	top: calc(100% - 1px);
	left: 0;
	z-index: 99;
	min-width: 132px;
	margin: 0;
	padding: 0;
	list-style: none;
	background-color: #fff;
	border: 1px solid #d1d6db;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
	box-sizing: border-box;
}

.blog-order-wrap.is-open .blog-order-panel {
	border-top: none;
}

.blog-order-option {
	padding: 4px 20px;
	font-size: 16px;
	font-weight: 500;
	color: #383838;
	cursor: pointer;
}

.blog-order-option:hover,
.blog-order-option:focus {
	background-color: #f4f4f4;
	outline: none;
}

.blog-order-option.is-selected {
	display: none;
}

/* Fallback loading UI when window.showLoading/hideLoading is unavailable */
.blog-grid .blog-loading-overlay {
	position: absolute;
	inset: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.75);
}

.blog-grid .loading-spinner-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	color: #383838;
	font-size: 14px;
	font-weight: 500;
}

.blog-grid .spinner {
	width: 28px;
	height: 28px;
	border: 3px solid #e2e2e2;
	border-top-color: #00a24e;
	border-radius: 50%;
	animation: fasoo-blog-spin 0.8s linear infinite;
}

@keyframes fasoo-blog-spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}
