/* ==========================================================================
   Search (.sentio-search)
   ==========================================================================
   Extracted from frontend.css during the Batch 8 mechanical extraction
   (2026-04-18). Behavior-preserving.
   ========================================================================== */

/* Form Reset */
.sentio-search {
	position: relative;
	margin: 0;
	padding: 0;
}

/* Container — holds field + submit side-by-side */
.sentio-search__container {
	display: flex;
	align-items: stretch;
	gap: 8px;
}

/* When button is inside, the container acts as the visible wrapper */
.sentio-search__container--btn-inside {
	position: relative;
	border: 1px solid #ddd;
	border-radius: 4px;
	background-color: #fff;
	transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.sentio-search__container--btn-inside .sentio-search__field {
	border: none;
	box-shadow: none;
	background: transparent;
}

.sentio-search__container--btn-inside .sentio-search__input {
	background: transparent;
}

/* Field — input wrapper (icon + input + clear) */
.sentio-search__field {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	min-width: 0;
	border: 1px solid #ddd;
	border-radius: 4px;
	background-color: #fff;
	transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

/* Input */
.sentio-search__input {
	display: block;
	width: 100%;
	border: none;
	background: transparent;
	padding: 12px 14px;
	font-size: 15px;
	line-height: 1.4;
	color: #333;
	outline: none;
	-webkit-appearance: none;
	   -moz-appearance: none;
	        appearance: none;
	min-width: 0;
}

/* Remove browser default clear button on search inputs */
.sentio-search__input::-webkit-search-cancel-button,
.sentio-search__input::-webkit-search-decoration {
	-webkit-appearance: none;
	appearance: none;
}

.sentio-search__input::placeholder {
	color: #999;
	opacity: 1;
}

/* Adjust input padding when icon is present */
.sentio-search__input--icon-left {
	padding-left: 0;
}

.sentio-search__input--icon-right {
	padding-right: 0;
}

/* Screen-reader label */
.sentio-search__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Input Icon */
.sentio-search__input-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 16px;
	color: #999;
	line-height: 1;
	pointer-events: none;
	transition: color 0.3s ease;
}

.sentio-search__input-icon svg {
	fill: currentColor;
}

.sentio-search__input-icon--left {
	order: -1;
	padding-left: 14px;
}

.sentio-search__input-icon--right {
	order: 1;
	padding-right: 14px;
}

/* Clear Button */
.sentio-search__clear {
	display: none;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	border: none;
	background: transparent;
	padding: 0 12px;
	font-size: 14px;
	color: #999;
	cursor: pointer;
	line-height: 1;
	transition: color 0.2s ease;
}

.sentio-search__clear:hover {
	color: #333;
}

.sentio-search__clear svg {
	fill: currentColor;
}

/* Show clear button when input has text — CSS-only via :not(:placeholder-shown) */
.sentio-search__input:not(:placeholder-shown) ~ .sentio-search__clear {
	display: inline-flex;
}

/* Submit Button */
.sentio-search__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex-shrink: 0;
	border: none;
	border-radius: 4px;
	padding: 12px 20px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	color: #fff;
	background-color: #333;
	transition: background-color 0.25s ease, color 0.25s ease;
	white-space: nowrap;
}

.sentio-search__submit:hover {
	background-color: #111;
}

.sentio-search__submit i {
	font-size: 1em;
	line-height: 1;
}

.sentio-search__submit svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* Submit — Inside: transparent background by default, no border-radius */
.sentio-search__container--btn-inside .sentio-search__submit {
	border-radius: 0;
	background-color: transparent;
	color: #333;
}

.sentio-search__container--btn-inside .sentio-search__submit:hover {
	background-color: rgba(0, 0, 0, 0.05);
}

/* Button Type — None: hide submit */
.sentio-search--btn-type-none .sentio-search__submit {
	display: none;
}

/* Button Type — Icon Only: reduce padding */
.sentio-search--btn-type-icon .sentio-search__submit {
	padding: 12px;
}

.sentio-search--btn-type-icon .sentio-search__submit span {
	display: none;
}

/* Button Type — Text Only: hide icon */
.sentio-search--btn-type-text .sentio-search__submit i,
.sentio-search--btn-type-text .sentio-search__submit svg {
	display: none;
}

/* Responsive */
@media (max-width: 767px) {
	.sentio-search__container {
		flex-direction: column;
	}

	.sentio-search__submit {
		width: 100%;
		justify-content: center;
	}
}
