/**
 * CPT Filter Widget Styles
 *
 * @package JutSo\Widgets
 * @since 1.0.0
 */

.cpt-filter-widget {
	display: block;
	width: 100%;
	text-align: center;
}

.cpt-filter-text {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	line-height: 1.6;
	text-align: center;
	margin-bottom: 40px;
}

.cpt-filter-select-wrapper {
	display: flex;
	align-items: center;
	margin: 0 0.3em;
	vertical-align: middle;
	white-space: nowrap;
	flex-wrap: nowrap;
	flex-direction: row;
	width: min-content;
	max-width: 100%;
}

.cpt-filter-select-wrapper::after {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1em;
	height: 1em;
	margin-right: 12px;
	box-sizing: border-box;
	pointer-events: none;
	flex-shrink: 0;
	font-weight: 900;
	line-height: 1;
	font-size: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cpt-filter-select-wrapper select:hover{
	cursor: pointer;
}

.cpt-filter-select-wrapper select {
	background: none;
	border: none;
	font-size: inherit;
	font-weight: 700;
	appearance: unset;
	padding-right: 48px;
	position: relative;
}

/* Submit Button Wrapper */
.cpt-filter-button-wrapper {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}

/* Submit Button - uses predefined custom-btn styles */
.cpt-filter-widget .custom-btn {
	width: min-content;
	white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {

	.cpt-filter-select-wrapper {
		display: block;
		margin: 0.5em 0.3em;

	}

	.cpt-filter-select-wrapper select {
		width: 100%;
		padding-right: 48px;
	}

	.cpt-filter-button-wrapper {
		margin-top: 20px;
	}

	.cpt-filter-widget button.custom-btn {
		display: flex;
		width: 100%;
		margin: 0;
	}

	.cpt-filter-select-wrapper::after{
		margin-right: 4px;
		width: 16px !important;
	}
}
