/* Send It premium search — tokens from Jordan's handoff. Uses site fonts. */

:root {
	--sendit-search-accent: #c2410c;
	--sendit-search-ink: #17181b;
	--sendit-search-muted: #5c5e63;
	--sendit-search-border: #cfccc4;
	--sendit-search-line: #e2e0da;
	--sendit-search-cream: #fbfaf7;
	--sendit-search-tile: #f5f4f0;
	--sendit-search-stock: #1f6b35;
	--sendit-search-low: #a33a0b;
	--sendit-search-dim: rgba(23, 24, 27, 0.45);
	--sendit-search-radius: 6px;
	--sendit-search-dur: 200ms;
}

@media (prefers-reduced-motion: reduce) {
	:root {
		--sendit-search-dur: 0.01ms;
	}
}

/* Resting box — far right of white row */
@media (min-width: 768px) {
	body.header-classic #Top_bar .top_bar_right .top_bar_right_wrapper {
		display: flex !important;
		align-items: center;
		gap: 8px;
		height: 72px;
	}

	body.header-classic #Top_bar .top-bar-right-icon {
		order: 2;
		flex: 0 0 auto;
	}

	body.header-classic #Top_bar .top-bar-right-input {
		order: 3;
		flex: 0 0 260px;
		width: 260px !important;
		max-width: 260px;
		position: relative;
		z-index: 2;
	}

	body.header-classic #Top_bar .top-bar-search-form {
		display: flex;
		align-items: center;
		gap: 10px;
		height: 48px;
		padding: 0 14px;
		margin: 0;
		background: #fff;
		border: 2px solid var(--sendit-search-border);
		border-radius: var(--sendit-search-radius);
		box-sizing: border-box;
		width: 100%;
		transition: width var(--sendit-search-dur) ease, border-color var(--sendit-search-dur) ease, box-shadow var(--sendit-search-dur) ease;
	}

	body.header-classic #Top_bar .top-bar-search-form svg {
		flex: 0 0 20px;
		width: 20px;
		height: 20px;
	}

	body.header-classic #Top_bar .top-bar-search-form input.field {
		flex: 1 1 auto;
		min-width: 0;
		border: 0 !important;
		outline: 0 !important;
		box-shadow: none !important;
		background: transparent !important;
		height: 44px !important;
		font-size: 16px;
		color: var(--sendit-search-ink);
	}

	body.sendit-search-open #Header,
	body.sendit-search-open #Header_wrapper,
	body.sendit-search-open #Top_bar {
		z-index: 10055 !important;
	}

	body.sendit-search-open #Top_bar .menu_wrapper {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity var(--sendit-search-dur) ease;
	}

	body.sendit-search-open #Top_bar .top_bar_right {
		flex: 1 1 auto !important;
		width: auto !important;
		max-width: none !important;
	}

	body.sendit-search-open #Top_bar .top_bar_right .top_bar_right_wrapper {
		width: 100%;
	}

	body.sendit-search-open #Top_bar .top-bar-right-input {
		order: 1;
		flex: 1 1 auto;
		width: auto !important;
		max-width: none;
		min-width: 0;
	}

	body.sendit-search-open #Top_bar .top-bar-search-form {
		border-color: var(--sendit-search-accent);
		box-shadow: 0 0 0 4px rgba(194, 65, 12, 0.15);
	}
}

.sendit-search-clear {
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 0;
	color: var(--sendit-search-muted);
	flex: 0 0 44px;
}

.sendit-search-clear.is-visible {
	display: flex;
}

.sendit-search-dim {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--sendit-search-dim);
	z-index: 10040;
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--sendit-search-dur) ease;
}

.sendit-search-dim.is-on {
	opacity: 1;
	pointer-events: auto;
}

.sendit-search-panel {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 8px);
	z-index: 10060;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
	overflow: hidden;
	display: none;
	color: var(--sendit-search-ink);
}

.sendit-search-panel.is-open {
	display: block;
}

.sendit-search-panel__correction {
	padding: 14px 24px;
	background: var(--sendit-search-cream);
	border-bottom: 1px solid var(--sendit-search-line);
	font-size: 15px;
	color: var(--sendit-search-muted);
}

.sendit-search-panel__correction strong {
	color: var(--sendit-search-ink);
	font-weight: 600;
}

.sendit-search-panel__grid {
	display: grid;
	grid-template-columns: 320px 1fr;
}

.sendit-search-panel__left {
	padding: 20px 16px;
	border-right: 1px solid var(--sendit-search-line);
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.sendit-search-panel__right {
	padding: 20px 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.sendit-search-lbl {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sendit-search-muted);
}

.sendit-search-sug {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	padding: 0 12px;
	border-radius: 8px;
	text-decoration: none;
	color: var(--sendit-search-ink);
	font-size: 16px;
}

.sendit-search-sug:hover,
.sendit-search-sug:focus,
.sendit-search-sug.is-active {
	background: var(--sendit-search-tile);
	color: var(--sendit-search-accent);
}

.sendit-search-cats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.sendit-search-cat {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 84px;
	border-radius: 10px;
	background: var(--sendit-search-tile);
	text-decoration: none;
	color: var(--sendit-search-ink);
	font-size: 14px;
	font-weight: 500;
}

.sendit-search-cat:hover,
.sendit-search-cat:focus,
.sendit-search-cat.is-active {
	background: #eceae4;
	color: var(--sendit-search-accent);
}

.sendit-search-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.sendit-search-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px;
	border: 1px solid var(--sendit-search-line);
	border-radius: 12px;
	background: #fff;
	color: var(--sendit-search-ink);
}

.sendit-search-card__imgwrap {
	position: relative;
}

.sendit-search-card__img {
	height: 140px;
	border-radius: 8px;
	background: #efede7;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.sendit-search-card__img img {
	max-height: 140px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}

.sendit-search-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	padding: 3px 8px;
	border-radius: 4px;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.sendit-search-badge--best {
	background: #17181b;
}

.sendit-search-badge--sale {
	background: var(--sendit-search-accent);
}

.sendit-search-card__brand {
	font-size: 12px;
	font-weight: 600;
	color: var(--sendit-search-muted);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.sendit-search-card__name {
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	color: var(--sendit-search-ink);
	line-height: 1.3;
}

.sendit-search-card__name:hover {
	color: var(--sendit-search-accent);
}

.sendit-search-card__meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.sendit-search-card__price {
	font-size: 20px;
	font-weight: 600;
}

.sendit-search-card__price del,
.sendit-search-card__price s {
	font-size: 14px;
	font-weight: 400;
	color: var(--sendit-search-muted);
}

.sendit-search-card__stock {
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.sendit-search-card__stock.is-in {
	color: var(--sendit-search-stock);
}

.sendit-search-card__stock.is-low {
	color: var(--sendit-search-low);
}

.sendit-search-atc {
	height: 44px;
	border: 0;
	border-radius: 8px;
	background: var(--sendit-search-accent);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.sendit-search-atc:hover,
.sendit-search-atc:focus {
	filter: brightness(0.95);
}

.sendit-search-atc:disabled {
	opacity: 0.7;
	cursor: wait;
}

.sendit-search-panel__foot {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 14px 24px;
	border-top: 1px solid var(--sendit-search-line);
	background: var(--sendit-search-cream);
	flex-wrap: wrap;
}

.sendit-search-note {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #3a3c40;
}

.sendit-search-seeall {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	height: 48px;
	padding: 0 22px;
	border-radius: 10px;
	background: #17181b;
	color: #fff !important;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
}

.sendit-search-seeall:hover,
.sendit-search-seeall:focus {
	color: #fff !important;
	filter: brightness(1.08);
}

.sendit-search-zero {
	padding: 28px 24px;
}

.sendit-search-status {
	padding: 16px 24px;
	font-size: 14px;
	color: var(--sendit-search-muted);
}

.sendit-search-empty--premium {
	max-width: 42rem;
	margin: 1.5rem auto 2rem;
	padding: 1.25rem 1.35rem;
	background: var(--sendit-search-cream);
	border-left: 3px solid var(--sendit-search-accent);
}

/* Mobile sheet */
.sendit-search-sheet {
	display: none;
}

@media (max-width: 767px) {
	.sendit-search-sheet {
		display: none;
		position: fixed;
		inset: 0;
		z-index: 10070;
		background: var(--sendit-search-tile);
		flex-direction: column;
		color: var(--sendit-search-ink);
	}

	.sendit-search-sheet.is-open {
		display: flex;
	}

	.sendit-search-sheet__top {
		background: #17181b;
		padding: 14px 12px;
		display: flex;
		align-items: center;
		gap: 8px;
	}

	.sendit-search-sheet__back {
		width: 44px;
		height: 44px;
		border: 0;
		background: transparent;
		display: flex;
		align-items: center;
		justify-content: center;
		cursor: pointer;
	}

	.sendit-search-sheet__box {
		flex: 1;
		display: flex;
		align-items: center;
		gap: 8px;
		height: 46px;
		padding: 0 12px;
		background: #fff;
		border-radius: 10px;
		border: 2px solid var(--sendit-search-accent);
	}

	.sendit-search-sheet__box input {
		flex: 1;
		min-width: 0;
		border: 0;
		outline: 0;
		font-size: 16px;
		font-family: inherit;
		background: transparent;
	}

	.sendit-search-sheet__also {
		padding: 12px 16px 4px;
		font-size: 13px;
		color: var(--sendit-search-muted);
	}

	.sendit-search-sheet__list {
		flex: 1;
		overflow: auto;
		padding-bottom: 90px;
	}

	.sendit-search-row {
		display: flex;
		gap: 12px;
		padding: 12px 16px;
		border-bottom: 1px solid var(--sendit-search-line);
		text-decoration: none;
		color: var(--sendit-search-ink);
		background: #fff;
		min-height: 44px;
	}

	.sendit-search-row img,
	.sendit-search-row__ph {
		width: 84px;
		height: 84px;
		flex: none;
		border-radius: 8px;
		background: #efede7;
		object-fit: contain;
	}

	.sendit-search-row__name {
		font-size: 15px;
		font-weight: 600;
		line-height: 1.3;
	}

	.sendit-search-sheet__bar {
		position: absolute;
		left: 16px;
		right: 16px;
		bottom: 20px;
		display: flex;
		gap: 10px;
	}

	.sendit-search-sheet__bar a,
	.sendit-search-sheet__bar button {
		flex: 1;
		height: 52px;
		border-radius: 12px;
		font-family: inherit;
		font-size: 16px;
		font-weight: 600;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		text-decoration: none;
		cursor: pointer;
	}

	.sendit-search-sheet__filters {
		border: 0;
		background: #17181b;
		color: #fff;
	}

	.sendit-search-sheet__sort {
		border: 1px solid #17181b;
		background: #fff;
		color: #17181b;
	}

	body.sendit-search-sheet-open {
		overflow: hidden;
	}
}

/* Hide leftover snippet-63 dropdown while plugin is active */
.sendit-search-suggest {
	display: none !important;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
