/**
 * Header search normalization — TH-APS plugin output overrides.
 * Targets [th-aps] (default layout) rendered inside .log-header-search-wrap.
 *
 * @package log-core
 */

/* ── Desktop search wrapper (pill) — reset plugin container ── */
.log-header-search-wrap .thaps-search-box,
.log-header-search-wrap .th-aps-search-form,
.log-header-search-wrap form {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	width: 100%;
}

.log-header-search-wrap .thaps-search-form,
.log-header-search-wrap .thaps-from-wrap {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	width: 100%;
}

/* Plugin icon */
.log-header-search-wrap .th-icon-vector-search,
.log-header-search-wrap .th-aps-icon,
.log-header-search-wrap .log-hs-icon-pill {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	flex-shrink: 0;
	color: var(--plum-700);
	font-size: 16px;
	cursor: default;
}

/* Plugin input */
.log-header-search-wrap .thaps-search-autocomplete,
.log-header-search-wrap .thaps-form-control,
.log-header-search-wrap form input[type="text"],
.log-header-search-wrap form input[type="search"] {
	border: none !important;
	background: none !important;
	box-shadow: none !important;
	font-family: var(--body);
	font-size: 13px;
	font-weight: 500;
	color: var(--ink-900);
	padding: 9px 14px 9px 40px;
	width: 200px;
	outline: none;
	flex: 1;
	height: auto;
	line-height: normal;
}

.log-header-search-wrap .thaps-search-autocomplete::placeholder,
.log-header-search-wrap form input::placeholder {
	color: var(--gray-400);
}

/* Hide preloader, labels — keep bar_style submit button (it IS the icon) */
.log-header-search-wrap .thaps-preloader,
.log-header-search-wrap #selected_option,
.log-header-search-wrap .label-default,
.log-header-search-wrap input[type="submit"] {
	display: none !important;
}

/* bar_style: style submit button as icon pill */
.log-header-search-wrap .thaps-search-box.bar_style #thaps-search-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	flex-shrink: 0;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--plum-700);
	padding: 0;
}

/* bar_style: input needs no left padding (icon button is already on left) */
.log-header-search-wrap .thaps-search-box.bar_style .thaps-search-autocomplete {
	padding-left: 0;
}

/* ── Mobile search bar ─────────────────────────────────────── */
.log-mobile-search-bar .log-mobile-search-inner {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--paper);
	border: 1.5px solid var(--plum-600);
	border-radius: var(--r-pill);
	padding: 0 16px;
	width: 100%;
	box-sizing: border-box;
}

.log-mobile-search-bar .thaps-search-box,
.log-mobile-search-bar .thaps-search-form,
.log-mobile-search-bar .thaps-from-wrap,
.log-mobile-search-bar form {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	width: 100%;
}

.log-mobile-search-bar .thaps-search-autocomplete,
.log-mobile-search-bar form input[type="text"],
.log-mobile-search-bar form input[type="search"] {
	flex: 1;
	border: none !important;
	background: none !important;
	font-family: var(--body);
	font-size: 14px;
	color: var(--ink-900);
	padding: 12px 0;
	outline: none;
	box-shadow: none !important;
	width: 100%;
	height: 3rem;
}

.log-mobile-search-bar .thaps-preloader,
.log-mobile-search-bar #selected_option,
.log-mobile-search-bar .label-default,
.log-mobile-search-bar button[type="submit"],
.log-mobile-search-bar input[type="submit"],
.log-mobile-search-inner .th-icon-vector-search,
.log-mobile-search-inner .th-icon {
	display: none !important;
}