/**
 * Home Hero search — pill trigger + standalone modal (no Fibo UI).
 */

/* ——— Hero pill trigger — match original Fibo cream pill ——— */
.athens-hero-copy__search {
	position: relative;
}

.athens-hero-copy__search .dgwt-wcas-search-wrapp,
.athens-hero-copy__search .dgwt-wcas-suggestions-wrapp {
	display: none !important;
}

/*
 * Not a <button> — avoid Astra/global button chrome.
 * Keep Fibo-like cream pill look.
 */
.athens-hero-copy__search .athens-hero-copy__search-trigger,
.athens-hero-copy__search .athens-hero-copy__search-trigger:hover,
.athens-hero-copy__search .athens-hero-copy__search-trigger:focus,
.athens-hero-copy__search .athens-hero-copy__search-trigger:active,
.athens-hero-copy__search .athens-hero-copy__search-trigger:focus-visible {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	flex-direction: row !important;
	gap: 0;
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	margin: 0 !important;
	padding: 12px 18px 12px 48px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: rgba(79, 54, 30, 0.45) !important;
	font-family: "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", sans-serif !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.35 !important;
	text-align: left !important;
	text-decoration: none !important;
	text-shadow: none !important;
	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;
	position: relative;
	z-index: 2;
	pointer-events: auto !important;
	transition: color 0.15s ease;
}

.athens-hero-copy__search .athens-hero-copy__search-trigger:hover,
.athens-hero-copy__search .athens-hero-copy__search-trigger:focus-visible {
	color: rgba(79, 54, 30, 0.72) !important;
	outline: none;
}

.athens-hero-copy__search .athens-hero-copy__search-trigger__icon {
	position: absolute !important;
	left: 14px !important;
	top: 50% !important;
	right: auto !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 18px !important;
	height: 18px !important;
	min-width: 18px !important;
	margin-top: -9px !important;
	color: #7a2020 !important;
	opacity: 0.88 !important;
	pointer-events: none;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

.athens-hero-copy__search .athens-hero-copy__search-trigger__icon svg {
	display: block !important;
	width: 18px !important;
	height: 18px !important;
	overflow: visible;
}

.athens-hero-copy__search .athens-hero-copy__search-trigger__icon svg circle,
.athens-hero-copy__search .athens-hero-copy__search-trigger__icon svg path {
	stroke: #7a2020 !important;
	fill: none !important;
}

.athens-hero-copy__search .athens-hero-copy__search-trigger__label {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: inherit !important;
}

/* Soft pill hover — gold ring like original focus-within, not red fill */
.athens-hero-copy__search:hover {
	border-color: rgba(236, 192, 121, 0.75);
	box-shadow:
		0 0 0 2px rgba(236, 192, 121, 0.2),
		0 6px 18px rgba(79, 54, 30, 0.1);
}

@media (max-width: 809.98px) {
	.athens-hero-copy__search .athens-hero-copy__search-trigger,
	.athens-hero-copy__search .athens-hero-copy__search-trigger:hover,
	.athens-hero-copy__search .athens-hero-copy__search-trigger:focus,
	.athens-hero-copy__search .athens-hero-copy__search-trigger:active,
	.athens-hero-copy__search .athens-hero-copy__search-trigger:focus-visible {
		min-height: 30px;
		padding: 4px 10px 4px 32px !important;
		font-size: 12px !important;
		line-height: 1.2 !important;
	}

	.athens-hero-copy__search .athens-hero-copy__search-trigger__icon {
		left: 8px !important;
		width: 13px !important;
		height: 13px !important;
		min-width: 13px !important;
		margin-top: -6.5px !important;
	}

	.athens-hero-copy__search .athens-hero-copy__search-trigger__icon svg {
		width: 13px !important;
		height: 13px !important;
	}

	/* 窄胶囊内用短文案，避免裁切 */
	.athens-hero-copy__search .athens-hero-copy__search-trigger__label {
		font-size: 0;
	}

	.athens-hero-copy__search .athens-hero-copy__search-trigger__label::after {
		content: attr(data-label-short);
		font-size: 12px;
		line-height: 1.2;
		color: inherit;
	}
}

/* ——— Modal shell ——— */
html.ausbia-search-modal-open {
	overflow: hidden;
}

/* While search is open, don't let Mega Menu overlay steal the dismiss click */
html.ausbia-search-modal-open #mega-menu-wrap-primary .mega-menu-toggle.mega-menu-open:after,
html.ausbia-search-modal-open #mega-menu-wrap-mobile_menu .mega-menu-toggle.mega-menu-open:after {
	pointer-events: none !important;
}

#ausbia-search-modal.ausbia-search-modal {
	position: fixed;
	inset: 0;
	/* Above Max Mega Menu mobile sheet (panel 9999999999 / overlay 9999999998) */
	z-index: 10000000000;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: max(4vh, 16px) 16px 24px;
	box-sizing: border-box;
	/* Never scroll the full-screen shell — that leaks into page scroll on iOS. */
	overflow: hidden;
}

#ausbia-search-modal.ausbia-search-modal[hidden] {
	display: none !important;
}

.ausbia-search-modal__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(12, 5, 4, 0.45);
	-webkit-backdrop-filter: blur(6px) saturate(1.1);
	backdrop-filter: blur(6px) saturate(1.1);
	cursor: pointer;
}

.ausbia-search-modal__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	max-width: min(760px, 100%);
	/* Fixed shell size — leave backdrop clickable around it. */
	height: 560px;
	max-height: min(560px, calc(100dvh - 64px));
	min-height: 0;
	margin: 0 auto;
	background: #faf8f4;
	border-radius: 16px;
	overflow: hidden;
}

.ausbia-search-modal__search-row {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	padding: 14px 14px 14px 44px;
	border-bottom: 1px solid rgba(42, 36, 32, 0.1);
	background: transparent;
}

.ausbia-search-modal__search-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	width: 20px;
	height: 20px;
	margin-top: -10px;
	background-color: rgba(42, 36, 32, 0.55);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L20 20'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L20 20'/%3E%3C/svg%3E") center / contain no-repeat;
	pointer-events: none;
	z-index: 1;
}

/* Beat Astra/global input chrome — keep Fibo-like flat header field */
#ausbia-search-modal .ausbia-search-modal__input,
#ausbia-search-modal input.ausbia-search-modal__input[type="search"],
#ausbia-search-modal input.ausbia-search-modal__input[type="text"] {
	flex: 1 1 auto !important;
	min-width: 0 !important;
	width: 100% !important;
	height: auto !important;
	min-height: 28px !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	outline: none !important;
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	/* ≥16px: iOS Safari zooms the page when focused inputs are smaller */
	font-size: 16px !important;
	line-height: 1.35 !important;
	color: #2a2420 !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

#ausbia-search-modal .ausbia-search-modal__input::placeholder {
	color: rgba(42, 36, 32, 0.42) !important;
	opacity: 1 !important;
}

#ausbia-search-modal .ausbia-search-modal__input:focus,
#ausbia-search-modal .ausbia-search-modal__input:hover,
#ausbia-search-modal .ausbia-search-modal__input:active {
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
	background-color: transparent !important;
}

#ausbia-search-modal .ausbia-search-modal__input::-webkit-search-cancel-button,
#ausbia-search-modal .ausbia-search-modal__input::-webkit-search-decoration {
	-webkit-appearance: none !important;
	appearance: none !important;
	display: none !important;
}

.ausbia-search-modal__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}

/* Clear appears only when input has text. Close via backdrop / Esc. */
#ausbia-search-modal .ausbia-search-modal__clear,
#ausbia-search-modal .ausbia-search-modal__clear:hover,
#ausbia-search-modal .ausbia-search-modal__clear:focus,
#ausbia-search-modal .ausbia-search-modal__clear:active,
#ausbia-search-modal .ausbia-search-modal__clear:focus-visible {
	position: static !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: 0 0 auto !important;
	width: 28px !important;
	height: 28px !important;
	min-width: 28px !important;
	min-height: 28px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	border-radius: 999px !important;
	background: rgba(42, 36, 32, 0.12) !important;
	background-color: rgba(42, 36, 32, 0.12) !important;
	background-image: none !important;
	box-shadow: none !important;
	color: rgba(42, 36, 32, 0.72) !important;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, opacity 0.12s ease;
}

#ausbia-search-modal .ausbia-search-modal__clear[hidden] {
	display: none !important;
}

#ausbia-search-modal .ausbia-search-modal__clear:hover,
#ausbia-search-modal .ausbia-search-modal__clear:focus-visible {
	background: rgba(42, 36, 32, 0.18) !important;
	background-color: rgba(42, 36, 32, 0.18) !important;
	color: #2a2420 !important;
	outline: none;
}

/* Popular chips */
.ausbia-search-modal__popular {
	order: 2;
	padding: 20px 22px 22px;
	flex: 0 0 auto;
}

.ausbia-search-modal__popular.is-hidden {
	display: none;
}

.ausbia-search-modal__popular-label {
	margin: 0 0 12px;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(42, 36, 32, 0.45);
}

.ausbia-search-modal__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ausbia-search-modal__tag {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border: none !important;
	border-radius: 999px !important;
	background: #ebe6dc !important;
	background-color: #ebe6dc !important;
	box-shadow: none !important;
	color: #3a342e !important;
	font-size: 0.88rem;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.12s ease;
}

.ausbia-search-modal__tag:hover,
.ausbia-search-modal__tag:focus,
.ausbia-search-modal__tag:focus-visible {
	background: #e0d9cc !important;
	background-color: #e0d9cc !important;
	color: #3a342e !important;
	box-shadow: none !important;
	outline: none;
}

.ausbia-search-modal__tag:active {
	transform: scale(0.98);
}

/* Grouped results panel */
.ausbia-search-modal__panel {
	order: 4;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	border-top: 1px solid rgba(42, 36, 32, 0.08);
	background: #faf8f4;
}

.ausbia-search-modal__panel[hidden] {
	display: none !important;
}

.ausbia-search-modal__panel:not(.has-results) .ausbia-search-modal__footer,
.ausbia-search-modal__panel:not(.has-results) .ausbia-search-modal__split,
.ausbia-search-modal__panel:not(.has-results) .ausbia-search-modal__pager,
.ausbia-search-modal__panel:not(.has-results) .ausbia-search-modal__bar {
	display: none;
}

.ausbia-search-modal__panel.has-query:not(.has-results):not(.is-loading) .ausbia-search-modal__nomatch {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	min-height: 160px;
}

.ausbia-search-modal__nomatch {
	display: none;
	padding: 20px 22px 16px;
	font-size: 0.88rem;
	color: rgba(42, 36, 32, 0.55);
	text-align: center;
}

.ausbia-search-modal__loading {
	display: none;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 180px;
	padding: 16px 22px 24px;
}

.ausbia-search-modal__panel.is-loading .ausbia-search-modal__loading {
	display: flex;
}

.ausbia-search-modal__panel.is-loading .ausbia-search-modal__split,
.ausbia-search-modal__panel.is-loading .ausbia-search-modal__pager,
.ausbia-search-modal__panel.is-loading .ausbia-search-modal__footer,
.ausbia-search-modal__panel.is-loading .ausbia-search-modal__bar,
.ausbia-search-modal__panel.is-loading .ausbia-search-modal__nomatch {
	display: none !important;
}

/* Search history */
.ausbia-search-modal__history {
	order: 3;
	padding: 0 22px 12px;
	flex: 0 0 auto;
}

.ausbia-search-modal__history.is-hidden {
	display: none;
}

.ausbia-search-modal__history-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 0 0 10px;
}

.ausbia-search-modal__history-label {
	margin: 0;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(42, 36, 32, 0.45);
}

.ausbia-search-modal__history-clear {
	border: none;
	background: none;
	padding: 0;
	font-size: 0.75rem;
	color: rgba(42, 36, 32, 0.45);
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ausbia-search-modal__history-clear:hover {
	color: #8e302c;
}

.ausbia-search-modal__history-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ausbia-search-modal__history-item {
	margin: 0;
}

.ausbia-search-modal__history-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 8px 10px;
	border: none;
	border-radius: 10px;
	background: transparent;
	color: #3a342e;
	font-size: 0.88rem;
	text-align: left;
	cursor: pointer;
	transition: background 0.12s ease;
}

.ausbia-search-modal__history-btn:hover {
	background: rgba(42, 36, 32, 0.05);
}

.ausbia-search-modal__history-btn svg {
	flex: 0 0 16px;
	opacity: 0.45;
}

.ausbia-search-modal__split {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
}

.ausbia-search-modal__tabs-primary-wrap {
	position: relative;
	display: flex;
	flex-direction: column;
	flex: 0 0 auto;
	min-width: 0;
	background: rgba(235, 230, 220, 0.35);
	border-bottom: 1px solid rgba(42, 36, 32, 0.08);
}

.ausbia-search-modal__tabs-primary-scroller {
	position: relative;
	min-width: 0;
}

/* Edge fades on the tab row only (not over the scrollbar) */
.ausbia-search-modal__tabs-primary-scroller::before,
.ausbia-search-modal__tabs-primary-scroller::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	width: 36px;
	pointer-events: none;
	z-index: 2;
	opacity: 0;
	transition: opacity 0.18s ease;
}

.ausbia-search-modal__tabs-primary-scroller::before {
	left: 0;
	background: linear-gradient(
		to right,
		rgba(243, 240, 232, 0.98) 0%,
		rgba(243, 240, 232, 0.55) 45%,
		rgba(243, 240, 232, 0) 100%
	);
}

.ausbia-search-modal__tabs-primary-scroller::after {
	right: 0;
	background: linear-gradient(
		to left,
		rgba(243, 240, 232, 0.98) 0%,
		rgba(243, 240, 232, 0.55) 45%,
		rgba(243, 240, 232, 0) 100%
	);
}

.ausbia-search-modal__tabs-primary-wrap.is-overflow-start .ausbia-search-modal__tabs-primary-scroller::before,
.ausbia-search-modal__tabs-primary-wrap.is-overflow-end .ausbia-search-modal__tabs-primary-scroller::after {
	opacity: 1;
}

.ausbia-search-modal__tabs--primary {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 6px;
	padding: 8px 10px;
	background: transparent;
	border: 0;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	touch-action: pan-x;
	flex: 0 0 auto;
	scrollbar-width: none;
}

.ausbia-search-modal__tabs--primary::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.ausbia-search-modal__tabs--primary .ausbia-search-modal__tab {
	flex: 0 0 auto;
	width: auto;
	min-width: 4.5em;
	padding: 8px 12px;
}

/* Always-visible custom scrollbar under tabs (only when overflowing) */
.ausbia-search-modal__tabs-scroll {
	display: none;
	position: relative;
	height: 3px;
	margin: 0 12px 8px;
	border-radius: 999px;
	background: rgba(42, 36, 32, 0.1);
	overflow: hidden;
}

.ausbia-search-modal__tabs-primary-wrap.has-overflow .ausbia-search-modal__tabs-scroll {
	display: block;
}

.ausbia-search-modal__tabs-scroll-thumb {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	min-width: 28px;
	border-radius: 999px;
	background: rgba(142, 48, 44, 0.45);
	transform: translateX(0);
	will-change: transform, width;
}

.ausbia-search-modal__stage {
	display: flex;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
}

/* Warehouse sub-tabs on the left (all viewports) */
.ausbia-search-modal__stage.has-subtabs {
	flex-direction: row;
}

.ausbia-search-modal__tabs--sub {
	display: none;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 2px;
	width: 118px;
	min-width: 118px;
	padding: 8px 6px;
	border-right: 1px solid rgba(42, 36, 32, 0.08);
	background: rgba(235, 230, 220, 0.28);
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	flex: 0 0 auto;
}

.ausbia-search-modal__stage.has-subtabs .ausbia-search-modal__tabs--sub:not([hidden]) {
	display: flex;
}

.ausbia-search-modal__tabs--sub .ausbia-search-modal__tab {
	width: 100%;
	min-width: 0;
	padding: 8px 8px;
	font-size: 0.76rem;
}

.ausbia-search-modal__tab {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	width: 100%;
	padding: 9px 10px;
	border: none;
	border-radius: 10px;
	background: transparent;
	color: rgba(42, 36, 32, 0.72);
	font-size: 0.82rem;
	line-height: 1.25;
	text-align: left;
	cursor: pointer;
	transition: background 0.12s ease, color 0.12s ease;
}

.ausbia-search-modal__tab:hover {
	background: rgba(255, 255, 255, 0.55);
	color: #2a2420;
}

.ausbia-search-modal__tab.is-active {
	background: #fff;
	color: #8e302c;
	font-weight: 600;
	box-shadow: 0 1px 0 rgba(42, 36, 32, 0.06);
}

.ausbia-search-modal__tab-label {
	flex: 1;
	min-width: 0;
}

.ausbia-search-modal__tab-count {
	flex: 0 0 auto;
	font-size: 0.72rem;
	font-weight: 600;
	padding: 2px 7px;
	border-radius: 999px;
	background: rgba(42, 36, 32, 0.08);
	color: rgba(42, 36, 32, 0.55);
}

.ausbia-search-modal__tab.is-active .ausbia-search-modal__tab-count {
	background: rgba(142, 48, 44, 0.12);
	color: #8e302c;
}

.ausbia-search-modal__main {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
	height: auto;
	overflow: hidden;
}

.ausbia-search-modal__list-wrap {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
}

.ausbia-search-modal__list {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding: 6px 8px 4px;
	transition: opacity 0.12s ease;
	scrollbar-width: none;
}

.ausbia-search-modal__list::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

/* Always-visible vertical scrollbar (only when list overflows) */
.ausbia-search-modal__list-scroll {
	display: none;
	position: relative;
	flex: 0 0 3px;
	width: 3px;
	align-self: stretch;
	margin: 8px 6px 8px 0;
	border-radius: 999px;
	background: rgba(42, 36, 32, 0.1);
	overflow: hidden;
}

.ausbia-search-modal__list-wrap.has-overflow .ausbia-search-modal__list-scroll {
	display: block;
}

.ausbia-search-modal__list-scroll-thumb {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	min-height: 28px;
	border-radius: 999px;
	background: rgba(142, 48, 44, 0.45);
	transform: translateY(0);
	will-change: transform, height;
}

.ausbia-search-modal__list.is-loading {
	pointer-events: none;
}

.ausbia-search-modal__main.is-page-loading {
	position: relative;
}

.ausbia-search-modal__main.is-page-loading::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(250, 248, 244, 0.72);
	pointer-events: none;
}

.ausbia-search-modal__page-loader {
	position: absolute;
	left: 50%;
	top: 38%;
	z-index: 2;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.ausbia-search-modal__page-loader[hidden] {
	display: none !important;
}

.ausbia-search-modal__empty {
	margin: 24px 12px;
	text-align: center;
	font-size: 0.88rem;
	color: rgba(42, 36, 32, 0.55);
}

.ausbia-search-modal__item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 10px;
	text-decoration: none;
	color: inherit;
	transition: background 0.12s ease;
}

.ausbia-search-modal__item:hover,
.ausbia-search-modal__item:focus-visible {
	background: rgba(42, 36, 32, 0.05);
	outline: none;
}

.ausbia-search-modal__thumb {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border-radius: 8px;
	overflow: hidden;
	background: #ebe6dc;
}

.ausbia-search-modal__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ausbia-search-modal__item-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ausbia-search-modal__item-title {
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.35;
	color: #2a2420;
}

.ausbia-search-modal__item-title .search-highlight,
.ausbia-search-modal__item-meta .search-highlight,
.ausbia-search-modal__item-excerpt .search-highlight,
.ausbia-search-modal mark.search-highlight {
	background: rgba(226, 183, 90, 0.45);
	padding: 0 2px;
	border-radius: 2px;
	font-weight: 700;
	color: inherit;
}

.ausbia-search-modal__item-meta {
	font-size: 0.75rem;
	color: rgba(42, 36, 32, 0.52);
	line-height: 1.3;
}

.ausbia-search-modal__item-excerpt {
	font-size: 0.78rem;
	line-height: 1.4;
	color: rgba(42, 36, 32, 0.62);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ausbia-search-modal__bar {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	border-top: 1px solid rgba(42, 36, 32, 0.08);
	background: rgba(250, 248, 244, 0.98);
}

.ausbia-search-modal__pager {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 10px 14px;
	border-top: 0;
	background: transparent;
}

.ausbia-search-modal__pager[hidden] {
	display: none !important;
}

.ausbia-search-modal__pager-btn {
	padding: 6px 12px;
	border: 1px solid rgba(42, 36, 32, 0.12);
	border-radius: 8px;
	background: #fff;
	font-size: 0.78rem;
	color: #3a342e;
	cursor: pointer;
}

.ausbia-search-modal__pager-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.ausbia-search-modal__pager-meta {
	font-size: 0.75rem;
	color: rgba(42, 36, 32, 0.55);
	min-width: 5.5em;
	text-align: center;
}

.ausbia-search-modal__pager.is-busy .ausbia-search-modal__pager-btn {
	opacity: 0.45;
	cursor: wait;
}

.ausbia-search-modal__footer {
	flex: 0 0 auto;
	padding: 10px 14px 14px;
	border-top: 0;
	background: transparent;
}

.ausbia-search-modal__bar:not(.has-pager) .ausbia-search-modal__footer {
	padding-top: 10px;
}

.ausbia-search-modal__bar.has-pager .ausbia-search-modal__footer {
	padding-top: 0;
}

.ausbia-search-modal__more {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 11px 16px;
	border-radius: 12px;
	background: #8e302c;
	color: #fff !important;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease, transform 0.1s ease;
}

.ausbia-search-modal__more:hover {
	background: #7a2824;
}

.ausbia-search-modal__more:active {
	transform: scale(0.99);
}

@media (max-width: 560px) {
	#ausbia-search-modal.ausbia-search-modal {
		/* Follow visual viewport when keyboard is open (vars from JS). */
		top: var(--ausbia-search-vv-top, 0px);
		left: var(--ausbia-search-vv-left, 0px);
		width: var(--ausbia-search-vv-width, 100%);
		height: var(--ausbia-search-vv-height, 100%);
		right: auto;
		bottom: auto;
		padding: 8px 12px 6px;
		align-items: flex-start;
	}

	.ausbia-search-modal__dialog {
		border-radius: 14px;
		/* Mobile shell: 490–700; keyboard caps via --ausbia-search-vv-height. JS may set inline height. */
		height: 490px;
		min-height: min(490px, calc(var(--ausbia-search-vv-height, 100svh) - 16px));
		max-height: min(700px, calc(var(--ausbia-search-vv-height, 100svh) - 16px));
	}

	.ausbia-search-modal__tabs--sub {
		width: 108px;
		min-width: 108px;
	}

	.ausbia-search-modal__tabs--sub .ausbia-search-modal__tab {
		font-size: 0.74rem;
	}

	/* Pager + more results on one row when multipage. */
	.ausbia-search-modal__bar.has-pager {
		flex-direction: row;
		align-items: center;
		gap: 8px;
		padding: 8px 10px 10px;
	}

	.ausbia-search-modal__bar.has-pager .ausbia-search-modal__pager {
		flex: 1 1 auto;
		justify-content: flex-start;
		gap: 6px;
		padding: 0;
		min-width: 0;
	}

	.ausbia-search-modal__bar.has-pager .ausbia-search-modal__pager-btn {
		padding: 6px 8px;
		font-size: 0.72rem;
	}

	.ausbia-search-modal__bar.has-pager .ausbia-search-modal__pager-meta {
		min-width: 0;
		font-size: 0.7rem;
		white-space: nowrap;
	}

	.ausbia-search-modal__bar.has-pager .ausbia-search-modal__footer {
		flex: 0 0 auto;
		padding: 0;
	}

	.ausbia-search-modal__bar.has-pager .ausbia-search-modal__more {
		width: auto;
		padding: 8px 12px;
		font-size: 0.78rem;
		border-radius: 10px;
		white-space: nowrap;
	}
}

/* ——— Header search triggers (desktop icon; mobile pill lives in sheet) ——— */
.ausbia-header-search {
	box-sizing: border-box;
	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;
}

.ausbia-header-search:focus-visible {
	outline: 2px solid rgba(226, 183, 90, 0.75);
	outline-offset: 2px;
}

/* Desktop: magnifier — match menu ivory text rgba(255,244,218,.92) */
#mega-menu-wrap-primary #mega-menu-primary > li.ausbia-header-search-item {
	vertical-align: middle;
}

#mega-menu-wrap-primary #mega-menu-primary > li.ausbia-header-search-item::before {
	content: none !important;
	display: none !important;
}

#mega-menu-wrap-primary #mega-menu-primary > li.ausbia-header-search-item > .ausbia-header-search--icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: rgba(255, 244, 218, 0.92);
	transition: color 0.15s ease, background-color 0.15s ease;
}

#mega-menu-wrap-primary #mega-menu-primary > li.ausbia-header-search-item > .ausbia-header-search--icon:hover,
#mega-menu-wrap-primary #mega-menu-primary > li.ausbia-header-search-item > .ausbia-header-search--icon:focus-visible {
	color: #fff9e9;
	background-color: rgba(76, 2, 1, 0.22);
	outline: none;
}

.ausbia-header-search--icon .ausbia-header-search__icon,
.ausbia-header-search--icon .ausbia-header-search__icon svg {
	display: block;
	width: 20px;
	height: 20px;
}

.ausbia-header-search--icon .ausbia-header-search__icon svg circle,
.ausbia-header-search--icon .ausbia-header-search__icon svg path {
	stroke: currentColor;
	fill: none;
}
