/* Simple search bar — no glow, no heavy shadows */

.hhms-search-wrap {
	margin: 0 auto;
	padding: 0;
	max-width: 720px;
}

.hhms-search-wrap .hhms-notification,
.hhms-search-wrap .hhms-error {
	margin: 12px 0;
	padding: 12px 14px;
	border-radius: 6px;
	display: none;
}

.hhms-search-wrap .hhms-error {
	color: #b91c1c;
	background: #fef2f2;
	border: 1px solid #fee2e2;
}

.hhms-search-bar-wrap {
	position: relative;
	margin-bottom: 8px;
}

.hhms-search-form {
	margin: 0;
}

.hhms-search-bar {
	display: flex;
	align-items: stretch;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #fff;
	box-shadow: none;
	overflow: hidden;
}

.hhms-search-bar:focus-within {
	border-color: #9ca3af;
	box-shadow: none;
}

.hhms-search-input {
	flex: 1;
	border: 0;
	outline: 0;
	padding: 12px 16px;
	font-size: 16px;
	background: transparent;
	min-width: 0;
	color: #111827;
}

.hhms-search-input::placeholder {
	color: #9ca3af;
	opacity: 1;
}

.hhms-search-btn {
	border: 0;
	border-left: 1px solid #e5e7eb;
	background: #f9fafb;
	padding: 0 18px;
	cursor: pointer;
	color: #1d4ed8;
	font-size: 15px;
	font-weight: 500;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.hhms-search-btn:hover {
	background: #f3f4f6;
}

.hhms-search-btn .hhms-loader {
	display: none;
	border: 2px solid #e5e7eb;
	border-radius: 50%;
	border-top: 2px solid #1d4ed8;
	width: 16px;
	height: 16px;
	animation: hhms-spin 1s linear infinite;
}

@keyframes hhms-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Kill any legacy glow markup/styles from older plugin versions */
.hhms-glow-search,
.hhms-glow-search__poda,
.hhms-glow-search__ring,
.hhms-glow-search__main,
[class*="hhms-glow-search"] {
	all: unset;
	display: block;
	animation: none !important;
	filter: none !important;
	box-shadow: none !important;
}

.hhms-glow-search::before,
.hhms-glow-search::after,
.hhms-glow-search *::before,
.hhms-glow-search *::after {
	content: none !important;
	animation: none !important;
}

.hhms-suggestions {
	display: none;
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 4px);
	z-index: 20;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: none;
	overflow: hidden;
}

.hhms-suggestion-item {
	padding: 10px 16px;
	cursor: pointer;
	font-size: 15px;
	color: #111827;
}

.hhms-suggestion-item:hover,
.hhms-suggestion-item.hhms-suggestion-active {
	background: #f3f4f6;
}

.hhms-missing-link-wrap {
	text-align: center;
	margin: 10px 0 16px;
}

.hhms-missing-link {
	font-size: 13px;
	color: #6b7280;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	text-decoration: underline;
}

.hhms-missing-link:hover {
	color: #374151;
}

.hhms-chips-section {
	margin-top: 12px;
	padding: 12px 0;
}

.hhms-chips-section h6 {
	margin: 0 0 8px;
	font-size: 13px;
	color: #6b7280;
	font-weight: 600;
}

.hhms-chip {
	display: inline-block;
	margin: 0 8px 8px 0;
	padding: 6px 12px;
	background: #f3f4f6;
	border-radius: 16px;
	font-size: 14px;
	cursor: pointer;
	border: 0;
}

.hhms-chip:hover {
	background: #e5e7eb;
}

.hhms-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 100000;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.hhms-modal-overlay.hhms-modal-open {
	display: flex;
}

.hhms-modal {
	background: #fff;
	border-radius: 8px;
	padding: 24px;
	width: 100%;
	max-width: 480px;
	border: 1px solid #e5e7eb;
	box-shadow: none;
}

.hhms-modal h3 {
	margin: 0 0 8px;
	font-size: 18px;
}

.hhms-modal p {
	margin: 0 0 16px;
	color: #6b7280;
	font-size: 14px;
}

.hhms-modal-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 16px;
}

.hhms-modal-actions button {
	padding: 10px 16px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
}

.hhms-modal-cancel {
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	color: #374151;
}

.hhms-modal-submit {
	background: #0073aa;
	border: 1px solid #006799;
	color: #fff;
}

@media (max-width: 640px) {
	.hhms-search-bar {
		border-radius: 8px;
	}

	.hhms-search-input {
		padding: 11px 14px;
	}

	.hhms-search-btn {
		padding: 0 14px;
	}
}
