/**
 * Dokan Header Geo Search
 *
 * Retheme by overriding the custom properties on .dnd-hgs in your child theme,
 * e.g. .dnd-hgs { --dnd-hgs-accent: #7a5c3e; --dnd-hgs-height: 56px; }
 */

.dnd-hgs {
	--dnd-hgs-bg: #ffffff;
	--dnd-hgs-text: #4a4a3f;
	--dnd-hgs-muted: #8d8b7f;
	--dnd-hgs-line: #e6e0d4;
	--dnd-hgs-hover: #f6f2e9;
	--dnd-hgs-pin: #3f5c4e;
	--dnd-hgs-accent: #c4674a;
	--dnd-hgs-accent-hover: #ab563b;
	--dnd-hgs-radius: 999px;
	--dnd-hgs-height: 64px;

	position: relative;
	width: 100%;
	max-width: 920px;
	margin: 0 auto;
}

.dnd-hgs *,
.dnd-hgs *::before,
.dnd-hgs *::after {
	box-sizing: border-box;
}

/* Fallback for themes without a screen-reader-text class. */
.dnd-hgs__sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.dnd-hgs__form {
	display: flex;
	align-items: center;
	min-height: var(--dnd-hgs-height);
	padding: 8px 8px 8px 22px;
	background: var(--dnd-hgs-bg);
	border-radius: var(--dnd-hgs-radius);
	box-shadow: 0 6px 24px rgba(74, 74, 63, .10), 0 1px 2px rgba(74, 74, 63, .06);
}

.dnd-hgs__field {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.dnd-hgs__field--term {
	flex: 1 1 auto;
}

.dnd-hgs__field--location {
	flex: 0 0 auto;
	padding: 0 6px 0 18px;
}

/* No pin icon: the input needs the gap back, and room for a full address. */
.dnd-hgs__field--nopin {
	gap: 4px;
}

.dnd-hgs__icon {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	color: var(--dnd-hgs-muted);
}

.dnd-hgs__icon--pin {
	color: var(--dnd-hgs-pin);
}

/*
 * Reset hard. Themes style bare inputs from selectors far more specific than a
 * single class — Salient, Divi and Astra all reach these with id or element
 * selectors — so the borders, backgrounds and fixed heights they apply need
 * !important to come off. Without this the fields render as two boxed inputs
 * sitting inside the pill instead of flush text fields.
 */
.dnd-hgs .dnd-hgs__form input.dnd-hgs__term,
.dnd-hgs .dnd-hgs__form input.dnd-hgs__location,
.dnd-hgs .dnd-hgs__form input.dnd-hgs__term:focus,
.dnd-hgs .dnd-hgs__form input.dnd-hgs__location:focus,
.dnd-hgs .dnd-hgs__form input.dnd-hgs__term:hover,
.dnd-hgs .dnd-hgs__form input.dnd-hgs__location:hover {
	width: 100%;
	min-width: 0;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 6px 0 !important;
	font: inherit;
	line-height: 1.4 !important;
	color: var(--dnd-hgs-text);
	background: transparent !important;
	background-image: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	outline: none !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
	transition: none;
}

.dnd-hgs .dnd-hgs__form input.dnd-hgs__term::placeholder,
.dnd-hgs .dnd-hgs__form input.dnd-hgs__location::placeholder {
	color: var(--dnd-hgs-muted);
	opacity: 1;
}

.dnd-hgs__term::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.dnd-hgs .dnd-hgs__form input.dnd-hgs__location {
	width: 200px;
	font-weight: 600;
	text-overflow: ellipsis;
}

.dnd-hgs__divider {
	flex: 0 0 1px;
	align-self: stretch;
	width: 1px;
	margin: 10px 0;
	background: var(--dnd-hgs-line);
}

.dnd-hgs__toggle {
	display: inline-flex;
	flex: 0 0 26px;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	margin: 0;
	padding: 0;
	color: var(--dnd-hgs-muted);
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.dnd-hgs__toggle svg {
	width: 16px;
	height: 16px;
	transition: transform .18s ease;
}

.dnd-hgs__toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.dnd-hgs .dnd-hgs__form button.dnd-hgs__submit,
.dnd-hgs .dnd-hgs__form button.dnd-hgs__submit:hover,
.dnd-hgs .dnd-hgs__form button.dnd-hgs__submit:focus {
	color: #fff !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	box-shadow: none !important;
}

.dnd-hgs__submit {
	flex: 0 0 auto;
	height: 48px;
	padding: 0 34px;
	font: inherit;
	font-weight: 600;
	line-height: 1;
	color: #fff;
	background: var(--dnd-hgs-accent);
	border: 0;
	border-radius: var(--dnd-hgs-radius);
	cursor: pointer;
	transition: background-color .18s ease;
}

.dnd-hgs__submit:hover,
.dnd-hgs__submit:focus {
	color: #fff;
	background: var(--dnd-hgs-accent-hover);
}

.dnd-hgs__submit[disabled] {
	opacity: .6;
	cursor: progress;
}

.dnd-hgs__panel,
.dnd-hgs__suggestions {
	position: absolute;
	top: calc(100% + 14px);
	right: 0;
	z-index: 1200;
	background: #fff;
	border: 1px solid var(--dnd-hgs-line);
	border-radius: 14px;
	box-shadow: 0 12px 34px rgba(74, 74, 63, .16);
}

.dnd-hgs__panel {
	width: 280px;
	padding: 16px;
}

.dnd-hgs__detect,
.dnd-hgs__clear {
	display: flex;
	align-items: center;
	gap: 9px;
	width: 100%;
	margin: 0;
	padding: 8px 6px;
	font: inherit;
	font-size: 14px;
	color: var(--dnd-hgs-text);
	text-align: left;
	background: transparent;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}

.dnd-hgs__detect svg {
	flex: 0 0 17px;
	width: 17px;
	height: 17px;
	color: var(--dnd-hgs-pin);
}

.dnd-hgs__detect:hover,
.dnd-hgs__clear:hover {
	background: var(--dnd-hgs-hover);
}

.dnd-hgs__clear {
	color: var(--dnd-hgs-muted);
}

.dnd-hgs__radius {
	margin: 8px 0;
	padding: 12px 6px;
	border-top: 1px solid var(--dnd-hgs-line);
	border-bottom: 1px solid var(--dnd-hgs-line);
}

.dnd-hgs__radius-label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	color: var(--dnd-hgs-muted);
}

.dnd-hgs__radius-value {
	color: var(--dnd-hgs-text);
}

.dnd-hgs__radius-input {
	width: 100%;
	accent-color: var(--dnd-hgs-accent);
}

.dnd-hgs__suggestions {
	width: 340px;
	max-height: 280px;
	margin: 0;
	padding: 6px;
	overflow: auto;
	list-style: none;
}

.dnd-hgs__suggestions li {
	margin: 0;
}

.dnd-hgs__suggestion {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	width: 100%;
	padding: 9px 10px;
	font: inherit;
	font-size: 14px;
	color: var(--dnd-hgs-text);
	text-align: left;
	background: transparent;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}

.dnd-hgs__suggestion svg {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	margin-top: 2px;
	color: var(--dnd-hgs-muted);
}

.dnd-hgs__suggestion-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.dnd-hgs__suggestion-text strong {
	font-weight: 600;
	line-height: 1.3;
}

.dnd-hgs__suggestion-text span {
	font-size: 12.5px;
	line-height: 1.3;
	color: var(--dnd-hgs-muted);
}

/* The "use my current location" row sits above the cities, visually apart. */
.dnd-hgs__suggestion--action {
	margin-bottom: 4px;
	padding-bottom: 11px;
	font-weight: 600;
	border-bottom: 1px solid var(--dnd-hgs-line);
	border-radius: 8px 8px 0 0;
}

.dnd-hgs__suggestion--action svg {
	color: var(--dnd-hgs-pin);
}

.dnd-hgs__suggestion:hover,
.dnd-hgs__suggestion:focus,
.dnd-hgs__suggestion.is-active {
	background: var(--dnd-hgs-hover);
}

.dnd-hgs__suggestion.is-active svg {
	color: var(--dnd-hgs-pin);
}

.dnd-hgs__message {
	min-height: 1em;
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--dnd-hgs-muted);
	text-align: center;
}

.dnd-hgs__message:empty {
	display: none;
}

/*
 * No reflow on hover.
 *
 * Themes commonly bolden links and buttons on hover. Bold glyphs are wider, so
 * the row grows and the whole box visibly flexes under the cursor. Pinning the
 * weight, size, spacing and transform on every interactive state keeps the
 * metrics identical whether hovered or not — the row highlights, it does not
 * move. Colour and background still change freely.
 */
.dnd-hgs a,
.dnd-hgs button,
.dnd-hgs input,
.dnd-hgs .dnd-hgs__suggestion,
.dnd-hgs .dnd-hgs__suggestion-text strong,
.dnd-hgs .dnd-hgs__suggestion-text span,
.dnd-hgs a:hover,
.dnd-hgs button:hover,
.dnd-hgs input:hover,
.dnd-hgs a:focus,
.dnd-hgs button:focus,
.dnd-hgs input:focus,
.dnd-hgs a:active,
.dnd-hgs button:active,
.dnd-hgs .dnd-hgs__suggestion:hover,
.dnd-hgs .dnd-hgs__suggestion:focus,
.dnd-hgs .dnd-hgs__suggestion.is-active,
.dnd-hgs .dnd-hgs__suggestion:hover .dnd-hgs__suggestion-text strong,
.dnd-hgs .dnd-hgs__suggestion.is-active .dnd-hgs__suggestion-text strong,
.dnd-hgs .dnd-hgs__suggestion:hover .dnd-hgs__suggestion-text span,
.dnd-hgs .dnd-hgs__suggestion.is-active .dnd-hgs__suggestion-text span {
	letter-spacing: inherit !important;
	text-transform: none !important;
	text-decoration: none !important;
	transform: none !important;
	transition: background-color .15s ease, color .15s ease !important;
}

/* Weights are declared once and never vary by state. */
.dnd-hgs .dnd-hgs__suggestion,
.dnd-hgs .dnd-hgs__suggestion:hover,
.dnd-hgs .dnd-hgs__suggestion:focus,
.dnd-hgs .dnd-hgs__suggestion.is-active {
	font-weight: 400 !important;
}

.dnd-hgs .dnd-hgs__suggestion--action,
.dnd-hgs .dnd-hgs__suggestion--action:hover,
.dnd-hgs .dnd-hgs__suggestion--action:focus,
.dnd-hgs .dnd-hgs__suggestion--action.is-active,
.dnd-hgs .dnd-hgs__suggestion .dnd-hgs__suggestion-text strong,
.dnd-hgs .dnd-hgs__suggestion:hover .dnd-hgs__suggestion-text strong,
.dnd-hgs .dnd-hgs__suggestion.is-active .dnd-hgs__suggestion-text strong {
	font-weight: 600 !important;
}

.dnd-hgs .dnd-hgs__suggestion .dnd-hgs__suggestion-text span,
.dnd-hgs .dnd-hgs__suggestion:hover .dnd-hgs__suggestion-text span,
.dnd-hgs .dnd-hgs__suggestion.is-active .dnd-hgs__suggestion-text span {
	font-weight: 400 !important;
}

.dnd-hgs .dnd-hgs__form button.dnd-hgs__submit,
.dnd-hgs .dnd-hgs__form button.dnd-hgs__submit:hover,
.dnd-hgs .dnd-hgs__form button.dnd-hgs__submit:focus,
.dnd-hgs .dnd-hgs__form button.dnd-hgs__submit:active {
	font-weight: 600 !important;
}

.dnd-hgs .dnd-hgs__detect,
.dnd-hgs .dnd-hgs__detect:hover,
.dnd-hgs .dnd-hgs__clear,
.dnd-hgs .dnd-hgs__clear:hover {
	font-weight: 400 !important;
}

.dnd-hgs :focus-visible {
	outline: 2px solid var(--dnd-hgs-accent);
	outline-offset: 2px;
}

/* Google Places dropdown must clear sticky headers. */
.pac-container {
	z-index: 100000;
}

@media (max-width: 782px) {

	.dnd-hgs__form {
		flex-wrap: wrap;
		padding: 12px;
		border-radius: 22px;
	}

	.dnd-hgs__field--term {
		flex: 1 1 100%;
		padding-bottom: 10px;
		border-bottom: 1px solid var(--dnd-hgs-line);
	}

	.dnd-hgs__divider {
		display: none;
	}

	.dnd-hgs__field--location {
		flex: 1 1 auto;
		padding: 10px 0 0;
	}

	.dnd-hgs__location {
		width: 100%;
	}

	.dnd-hgs__submit {
		flex: 1 1 100%;
		height: 46px;
		margin-top: 10px;
		padding: 0 20px;
	}

	.dnd-hgs__panel,
	.dnd-hgs__suggestions {
		right: auto;
		left: 0;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {

	.dnd-hgs__toggle svg,
	.dnd-hgs__submit {
		transition: none;
	}
}
