/* =========================================================
   DG Welders — Live-search dropdown + header search form
   Plain CSS so it ships without a gulp rebuild.
   ========================================================= */

:root {
	--dgw-orange: #ff7900;
	--dgw-orange-tint: #fff8f2;
	--dgw-ink: #1f1f1f;
	--dgw-ink-soft: #525459;
	--dgw-navy: #0c2340;
	--dgw-line: #e2e2e2;
	--dgw-bg: #f4f4f4;
	--dgw-shadow: 0 12px 32px rgba(12, 35, 64, 0.12);
	--dgw-radius: 6px;
	--dgw-success: #1f8a2d;
	--dgw-danger: #b3261e;
}

/* =========================================================
   1. Live-search dropdown (SearchWP Live Ajax Search)
   ========================================================= */

.searchwp-live-search-results-container.swp-live,
.swp-live {
	background: #fff;
	border: 1px solid var(--dgw-line);
	border-radius: var(--dgw-radius);
	box-shadow: var(--dgw-shadow);
	overflow: hidden;
	font-family: "OpenSans-Regular", system-ui, -apple-system, sans-serif;
	color: var(--dgw-ink);
	max-height: 70vh;
	display: flex;
	flex-direction: column;
}

.swp-live__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 18px;
	background: var(--dgw-bg);
	border-bottom: 1px solid var(--dgw-line);
	font-family: "OpenSans-SemiBold", sans-serif;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--dgw-ink-soft);
}

.swp-live__head-count {
	background: var(--dgw-orange);
	color: #fff;
	border-radius: 999px;
	padding: 2px 9px;
	font-size: 11px;
	font-family: "OpenSans-Bold", sans-serif;
	letter-spacing: 0;
}

.swp-live__list {
	overflow-y: auto;
	max-height: calc(70vh - 110px);
}

.swp-live__item {
	display: grid;
	grid-template-columns: 64px 1fr auto;
	gap: 14px;
	padding: 14px 18px;
	align-items: center;
	border-bottom: 1px solid var(--dgw-line);
	text-decoration: none;
	color: inherit;
	transition: background 0.18s ease;
}

.swp-live__item:last-child {
	border-bottom: 0;
}

.swp-live__item:hover,
.swp-live__item:focus-visible,
.swp-live__item.swp-active {
	background: var(--dgw-orange-tint);
	outline: none;
}

.swp-live__item-img {
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--dgw-bg);
	border-radius: 4px;
	overflow: hidden;
}

.swp-live__item-img img,
.swp-live__item-img svg {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.swp-live__item-info {
	min-width: 0;
}

.swp-live__item-title {
	font-family: "OpenSans-SemiBold", sans-serif;
	font-size: 14px;
	line-height: 1.35;
	color: var(--dgw-ink);
	margin: 0 0 4px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.18s ease;
}

.swp-live__item:hover .swp-live__item-title {
	color: var(--dgw-orange);
}

.swp-live__item-meta {
	display: flex;
	gap: 10px;
	align-items: center;
	font-size: 11px;
	color: var(--dgw-ink-soft);
	flex-wrap: wrap;
}

.swp-live__item-sku {
	font-family: "OpenSans-SemiBold", sans-serif;
	letter-spacing: 0.02em;
}

.swp-live__item-stock {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	border-radius: 999px;
	font-family: "OpenSans-SemiBold", sans-serif;
	font-size: 11px;
}

.swp-live__item-stock.is-in {
	background: rgba(31, 138, 45, 0.1);
	color: var(--dgw-success);
}

.swp-live__item-stock.is-out {
	background: rgba(179, 38, 30, 0.1);
	color: var(--dgw-danger);
}

.swp-live__item-price {
	font-family: "OpenSans-Bold", sans-serif;
	font-size: 15px;
	color: var(--dgw-navy);
	white-space: nowrap;
	text-align: right;
}

.swp-live__item-price del {
	display: block;
	color: var(--dgw-ink-soft);
	font-weight: normal;
	font-size: 12px;
}

.swp-live__item-price ins {
	text-decoration: none;
	color: var(--dgw-orange);
}

.swp-live__footer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 18px;
	font-family: "OpenSans-SemiBold", sans-serif;
	font-size: 13px;
	color: var(--dgw-orange);
	background: #fff;
	border-top: 1px solid var(--dgw-line);
	text-decoration: none;
	transition: background 0.18s ease, color 0.18s ease;
}

.swp-live__footer:hover {
	background: var(--dgw-orange);
	color: #fff;
}

.swp-live--empty .swp-live__empty {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px;
	color: var(--dgw-ink-soft);
	font-size: 13px;
}

.swp-live--empty svg {
	color: var(--dgw-ink-soft);
	flex-shrink: 0;
}

.searchwp-live-search-results {
	z-index: 99999 !important;
}

/* =========================================================
   2. Header search-form (inside the fullscreen overlay)
   Side-by-side input + submit so the live-search dropdown
   drops below the whole row without covering the button.
   ========================================================= */

.header-search-form form.search-form {
	flex-direction: row !important;
	flex-wrap: wrap;
	gap: 10px;
	align-items: stretch;
	position: relative;
}

.header-search-form form.search-form .search-field {
	flex: 1 1 320px;
	margin: 0 !important;
	min-width: 0;
}

.header-search-form form.search-form .search-submit {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex: 0 0 auto;
	min-width: 140px !important;
	margin: 0 !important;
	height: 55px;
}

.header-search-form .search-submit-label {
	font-family: "OpenSans-SemiBold", sans-serif;
}

.header-search-form .search-submit-icon {
	color: #fff;
}

.header-search-form .search-submit:hover .search-submit-icon {
	color: var(--dgw-orange);
}

@media (max-width: 480px) {
	.header-search-form form.search-form .search-field {
		flex: 1 1 100%;
	}

	.header-search-form form.search-form .search-submit {
		flex: 1 1 100%;
	}
}
