/* Hide OceanWP native header search while the booster menu search is on. */
body.sb-menu-search-on #searchform-dropdown,
body.sb-menu-search-on #searchform-header-replace,
body.sb-menu-search-on #searchform-overlay,
body.sb-menu-search-on a.search-toggle,
body.sb-menu-search-on .search-toggle-li,
body.sb-menu-search-on #oceanwp-search,
body.sb-menu-search-on.theme-petio .header-search-form,
body.sb-menu-search-on.wp-theme-petio .header-search-form,
body.sb-menu-search-on.sb-theme-petio .header-search-form {
	display: none !important;
}

.sb-ms-item {
	list-style: none;
	position: relative;
}

#site-header .elementor-nav-menu--main .elementor-nav-menu {
	flex-wrap: nowrap;
	align-items: center;
}

#site-header .elementor-nav-menu--main > ul.elementor-nav-menu > li.sb-ms-item--desktop,
#site-header .dropdown-menu > li.sb-ms-item--desktop,
#bwp-header #menu-main-menu > li.sb-ms-item--desktop,
li.sb-ms-item--desktop {
	display: inline-flex !important;
	align-items: center;
	align-self: center;
	vertical-align: middle;
	width: auto !important;
	flex: 0 0 auto;
	margin: 0 0 0 8px;
	padding: 0;
	position: relative;
	float: none;
}

.sb-ms-toggle {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: auto !important;
	height: auto !important;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 4px 6px;
	border: 0 !important;
	border-radius: 0;
	background: none !important;
	background-color: transparent !important;
	box-shadow: none !important;
	color: #111 !important;
	cursor: pointer;
	line-height: 1;
	appearance: none;
	-webkit-appearance: none;
}

.sb-ms-toggle:hover,
.sb-ms-toggle:focus,
.sb-ms-toggle[aria-expanded="true"] {
	background: none !important;
	background-color: transparent !important;
	box-shadow: none !important;
	color: #111 !important;
}

.sb-ms-toggle svg {
	display: block;
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.sb-ms-panel {
	position: fixed;
	width: min(340px, calc(100vw - 16px));
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
	z-index: 100050;
	overflow: hidden;
}

.sb-ms-panel[hidden],
.sb-ms-results[hidden] {
	display: none;
}

.sb-ms-form {
	margin: 0;
}

.sb-ms-input-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border-bottom: 1px solid #f0f0f0;
}

.sb-ms-input-wrap svg {
	width: 18px;
	height: 18px;
	fill: #111;
	flex-shrink: 0;
}

.sb-ms-panel .sb-ms-input {
	flex: 1;
	width: 100%;
	height: auto;
	padding: 0;
	border: 0;
	box-shadow: none;
	border-radius: 0;
	font-size: 14px;
	line-height: 1.3;
	color: #111;
	background: transparent;
}

.sb-ms-panel .sb-ms-input:focus {
	outline: none;
	border: 0;
	box-shadow: none;
}

.sb-ms-results {
	max-height: 360px;
	overflow: auto;
}

.sb-ms-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border-bottom: 1px solid #f5f5f5;
	text-decoration: none;
	color: #111;
}

.sb-ms-row:hover {
	background: #f7f7f7;
	color: #111;
}

.sb-ms-row img {
	width: 48px;
	height: 48px;
	object-fit: contain;
	border-radius: 8px;
	flex: 0 0 48px;
	background: #f7f7f7;
}

.sb-ms-name {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 13px;
	line-height: 1.3;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sb-ms-all,
.sb-ms-empty {
	display: block;
	padding: 10px 14px;
	font-size: 12px;
	font-weight: 650;
	text-align: center;
	text-decoration: none;
	color: #111;
}

.sb-ms-empty {
	color: #999;
	font-weight: 500;
}

.sb-ms-item--mobile {
	width: 100%;
	padding: 10px 20px 8px;
	box-sizing: border-box;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.sb-ms-field {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #f7f7f7;
	border: 1.5px solid #e5e7eb;
	border-radius: 10px;
	padding: 10px 14px;
}

.sb-ms-field svg {
	width: 18px;
	height: 18px;
	fill: #111;
	flex-shrink: 0;
}

.sb-ms-item--mobile .sb-ms-input {
	flex: 1;
	width: 100%;
	height: auto;
	padding: 0;
	border: 0;
	box-shadow: none;
	border-radius: 0;
	background: transparent;
	font-size: 16px;
	line-height: 1.3;
	color: #111;
}

.sb-ms-item--mobile .sb-ms-input:focus {
	outline: none;
	border: 0;
	box-shadow: none;
}

.sb-ms-item--mobile .sb-ms-results {
	margin-top: 6px;
	max-height: 50vh;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
}

@media (max-width: 1024px) {
	.sb-ms-item--desktop {
		display: none !important;
	}
}

@media (min-width: 1025px) {
	.sb-ms-item--mobile {
		display: none !important;
	}
}
