.search-preview-container {
	padding: 30px;
	background-color: var(--orphic-wp-block-option-page-bg-section);
	border-radius: 8px;
	display: flex;
	gap: 10px;
	align-items: stretch;
}

.search-bar-wrapper {
	display: flex;
	width: 100%;
	position: relative;
}

.search-bar-wrapper.integrated {
	padding-right: 0;
}

.search-input {
	flex: 1;
	min-width: 0;
	font-family: "Jakarta", sans-serif;
	background: transparent !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	-webkit-appearance: none !important;
	color: inherit;
	width: 100%;
	font-size: 14px;
}

.search-input:focus,
.search-input:focus-visible,
.search-input:active {
	outline: none !important;
	border: none !important;
	box-shadow: none !important;
	-webkit-appearance: none !important;
}

.search-input::placeholder {
	color: rgba(0, 0, 0, 0.4);
}

.search-button {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 20px;
	border: none;
	cursor: pointer;
	font-family: "Jakarta", sans-serif;
	font-weight: 600;
	transition: background-color 0.2s ease;
	align-self: stretch;
}

.search-bar-wrapper.integrated .search-button {
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	height: 100%;
}

.search-button:hover {
	opacity: 0.9;
}

.search-preview-loader {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	background: rgba(255, 255, 255, 0.8);
	border-radius: 8px;
}

.loader {
	width: 40px;
	height: 40px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #3498db;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-bottom: 1rem;
}

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

.search-preview-loader p {
	color: #666;
	margin: 0;
	font-size: 14px;
}

.search-preview-wrapper {
	background-color: var(--orphic-wp-block-option-page-bg-section);
	border-radius: 8px;
	position: relative;
	padding: 20px;
}

.search-container {
	position: relative;
	width: 100%;
}

.search-preview {
	position: relative;
}

.search-preview input {
	flex: 1;
	font-family: "Jakarta", sans-serif;
	background: transparent !important;
	outline: none !important;
	box-shadow: none !important;
	-webkit-appearance: none !important;
}

.search-preview button {
	white-space: nowrap;
	font-family: "Jakarta", sans-serif;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
	position: relative;
	z-index: 2;
}

.search-results-dropdown {
	margin-top: 5px;
}

.search-preview button[data-display="icon"] + .search-results-dropdown {
	/* La largeur est maintenant gérée par l'option dropdownWidth */
}

.search-result-item {
	border-bottom: 1px solid #eee;
	background-color: transparent;
}

.search-result-item:last-child {
	border-bottom: none;
}

.result-title {
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 4px;
}

.result-type {
	font-size: 12px;
	color: #6b778c;
	margin-bottom: 4px;
}

.result-excerpt {
	font-size: 13px;
	color: #5e6c84;
	line-height: 1.4;
}

.search-preview-input-wrapper {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	position: relative;
}

.search-preview-input-wrapper input {
	flex: 1;
	font-family: "Jakarta", sans-serif;
	background: transparent !important;
	outline: none !important;
	box-shadow: none !important;
	-webkit-appearance: none !important;
}

.search-preview-input-wrapper button {
	white-space: nowrap;
	font-family: "Jakarta", sans-serif;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 20px;
}

/* Style spécifique pour le bouton externe */
.search-preview-external-button {
	margin-left: 10px;
}
