/* Hero product / vendor search (UX Builder shortcode) */

.mmo-hero-search {
	position: relative;
	/* Không dùng overflow:hidden ở đây — sẽ cắt mất dropdown Nice Select (.list) */
	overflow: visible;
	border-radius: var(--mmo-hero-radius, 16px);
	padding: var(--mmo-hero-pad, 28px);
	color: #fff;
	font-size: 15px;
	line-height: 1.45;
}

.mmo-hero-search__bg {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	z-index: 0;
}

.mmo-hero-search::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	z-index: 1;
	background-color: var(--mmo-hero-overlay, #dc2626);
	opacity: var(--mmo-hero-overlay-opacity, 0.78);
	pointer-events: none;
}

.mmo-hero-search__inner {
	position: relative;
	z-index: 2;
	max-width: 920px;
	margin: 0 auto;
	text-align: center;
}

.mmo-hero-search__form,
.mmo-hero-search__row,
.mmo-hero-search__row--filters {
	overflow: visible;
}

.mmo-hero-search__intro {
	margin: 0 0 1.25rem;
	font-size: clamp(1rem, 2.5vw, 1.2rem);
	font-weight: 500;
}

.mmo-hero-search__brand {
	color: #ffeb3b;
	font-weight: 800;
}

.mmo-hero-search__tagline {
	font-weight: 500;
}

.mmo-hero-search__form {
	text-align: left;
}

.mmo-hero-search__row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 12px;
	align-items: stretch;
	justify-content: center;
}

/* jQuery Nice Select: .nice-select nhận class từ <select> gốc */
.mmo-hero-search__row--filters .nice-select {
	position: relative;
	flex: 1 1 160px;
	min-width: 140px;
	float: none;
	clear: none;
	width: auto;
	height: auto;
	min-height: 48px;
	line-height: 1.35;
	padding-top: 10px;
	padding-bottom: 10px;
	border-radius: 8px;
	display: flex;
	align-items: center;
}

/* Đưa ô đang mở lên trên để list không bị che bởi hàng dưới / section Flatsome */
.mmo-hero-search .nice-select.open {
	z-index: 300;
}

.mmo-hero-search .nice-select .current {
	display: block;
	line-height: 1.35;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding-right: 6px;
}

.mmo-hero-search .nice-select:after {
	right: 14px;
	margin-top: -3px;
}

.mmo-hero-search .nice-select .list {
	z-index: 1;
	border-radius: 8px;
	max-height: 280px;
	overflow-y: auto;
}

.mmo-hero-search .nice-select .option {
	line-height: 1.35;
	min-height: 40px;
	padding-top: 10px;
	padding-bottom: 10px;
}

.mmo-hero-search__input {
	flex: 1 1 100%;
	width: 100%;
	border: 0;
	border-radius: 8px;
	padding: 14px 16px;
	font-size: 15px;
	box-sizing: border-box;
}

.mmo-hero-search .nice-select.mmo-hero-search__select--solid {
	background: #fff;
	border: 1px solid transparent;
	color: #222;
}

.mmo-hero-search .nice-select.mmo-hero-search__select--solid:after {
	border-color: #555;
}

.mmo-hero-search .nice-select.mmo-hero-search__select--ghost {
	background: rgba(255, 255, 255, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.45);
	color: #111;
}

.mmo-hero-search .nice-select.mmo-hero-search__select--ghost:after {
	border-color: rgba(17, 17, 17, 0.65);
}

.mmo-hero-search .nice-select.disabled {
	opacity: 0.55;
}

.mmo-hero-search__actions {
	display: flex;
	justify-content: center;
	margin-top: 8px;
}

.mmo-hero-search__submit.button {
	margin: 0;
	background: #22c55e;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 12px 36px;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.mmo-hero-search__submit.button:hover,
.mmo-hero-search__submit.button:focus {
	background: #16a34a;
	color: #fff;
}

.mmo-hero-search.mmo-hero-search--vendor
	.mmo-hero-search__row--filters
	.nice-select:not(.mmo-hero-search__nice-scope) {
	opacity: 0.55;
}

@media (max-width: 549px) {
	.mmo-hero-search__row--filters {
		flex-direction: column;
	}

	.mmo-hero-search__row--filters .nice-select {
		flex: 1 1 auto;
		width: 100%;
		min-width: 0;
	}
}