/*
 * Ochanta — widget Formulaire de recherche (the7-search-form-widget).
 *
 * Deux dispositions (classe the7-search-form-icon-position-inside / -outside) : loupe dans le
 * champ, ou bouton à côté du champ. Variables posées par les réglages : --input-color,
 * --placeholder-color (et leurs variantes -focus), --icon-width, --btn-space, --clear-width,
 * --clear-color, --e-search-form-submit-text-color / -hover-color, --e-search-form-submit-icon-size,
 * --the7-*-btn-border-width / --the7-btn-border-style.
 */

.elementor-widget-the7-search-form-widget .the7-search-form {
	display: flex;
	align-items: center;
	width: 100%;
	box-sizing: border-box;
	transition: background-color 0.3s, border-color 0.3s, width 0.3s;
}

.elementor-widget-the7-search-form-widget .the7-search-input__container {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	min-width: 0;
	box-sizing: border-box;
	transition: background-color 0.3s, border-color 0.3s, width 0.3s;
}

/* Le cadre est porté par le formulaire (loupe dans le champ) ou par le champ seul. */
.the7-search-form-icon-position-inside .the7-search-form,
.elementor-widget-the7-search-form-widget:not(.the7-search-form-icon-position-inside) .the7-search-input__container {
	min-height: 40px;
	padding: 0 12px;
	border: 1px solid var(--the7-input-border-color, rgba(0, 0, 0, 0.15));
	border-radius: var(--the7-input-border-radius, 0);
	background-color: var(--the7-input-bg-color, #fff);
}

.the7-search-form-icon-position-outside .the7-search-input__container {
	margin-right: var(--btn-space, 10px);
}

.elementor-widget-the7-search-form-widget input[type="search"].the7-search-form__input {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	outline: none;
	color: var(--input-color, inherit);
	-webkit-appearance: none;
	appearance: none;
	transition: color 0.3s;
}

.elementor-widget-the7-search-form-widget .the7-search-form__input::-webkit-search-cancel-button,
.elementor-widget-the7-search-form-widget .the7-search-form__input::-webkit-search-decoration {
	-webkit-appearance: none;
	appearance: none;
}

.elementor-widget-the7-search-form-widget .the7-search-form__input::placeholder {
	color: var(--placeholder-color, inherit);
	opacity: 0.6;
	transition: color 0.3s;
}

.elementor-widget-the7-search-form-widget .the7-search-form:focus-within .the7-search-form__input {
	color: var(--input-color-focus, var(--input-color, inherit));
}

.elementor-widget-the7-search-form-widget .the7-search-form:focus-within .the7-search-form__input::placeholder {
	color: var(--placeholder-color-focus, var(--placeholder-color, inherit));
}

/* Boutons « effacer » et « rechercher ». */
.elementor-widget-the7-search-form-widget .the7-clear-search,
.elementor-widget-the7-search-form-widget .the7-search-form__submit {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0 solid transparent;
	background: none;
	box-shadow: none;
	line-height: 1;
	cursor: pointer;
	transition: color 0.3s, background-color 0.3s, border-color 0.3s, opacity 0.3s;
}

.elementor-widget-the7-search-form-widget .the7-clear-search {
	width: var(--clear-width, 20px);
	height: var(--clear-width, 20px);
	margin-left: 5px;
	color: var(--clear-color, inherit);
	font-size: 12px;
	opacity: 0;
	visibility: hidden;
}

.elementor-widget-the7-search-form-widget .the7-search-form.och-has-value .the7-clear-search {
	opacity: 1;
	visibility: visible;
}

.elementor-widget-the7-search-form-widget .the7-search-form__submit {
	width: var(--icon-width, 30px);
	height: var(--icon-width, 30px);
	border-style: var(--the7-btn-border-style, solid);
	border-width: var(--the7-top-btn-border-width, 0) var(--the7-right-btn-border-width, 0) var(--the7-bottom-btn-border-width, 0) var(--the7-left-btn-border-width, 0);
	color: var(--e-search-form-submit-text-color, inherit);
	font-size: var(--e-search-form-submit-icon-size, 16px);
}

.elementor-widget-the7-search-form-widget .the7-search-form__submit:hover {
	color: var(--e-search-form-submit-text-hover-color, var(--e-search-form-submit-text-color, inherit));
}

.the7-search-form-icon-position-inside .the7-search-form__submit {
	margin-left: var(--btn-space, 10px);
}

.elementor-widget-the7-search-form-widget .the7-clear-search svg,
.elementor-widget-the7-search-form-widget .the7-search-form__submit svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
	color: inherit;
}

.elementor-widget-the7-search-form-widget .the7-clear-search i,
.elementor-widget-the7-search-form-widget .the7-search-form__submit i {
	color: inherit;
}
