/*
 * Регламент полей темы: вариант 05 витрины поиска.
 * Тёмное поле, рамка #444, фокус и кнопка «Найти» зелёные.
 * Золото ссылок (--links) здесь не меняется.
 */

body:not(.page-template-page-search-showcase) {
	--mg-field-bg: #111;
	--mg-field-border: #444;
	--mg-field-text: #fff;
	--mg-field-accent: #198754;
	--mg-field-accent-hover: #157347;
	--mg-field-focus: #3ddc84;
}

body:not(.page-template-page-search-showcase) input[type="text"],
body:not(.page-template-page-search-showcase) input[type="search"],
body:not(.page-template-page-search-showcase) input[type="email"],
body:not(.page-template-page-search-showcase) input[type="password"],
body:not(.page-template-page-search-showcase) input[type="url"],
body:not(.page-template-page-search-showcase) input[type="tel"],
body:not(.page-template-page-search-showcase) input[type="number"],
body:not(.page-template-page-search-showcase) input[type="date"],
body:not(.page-template-page-search-showcase) input[type="datetime-local"],
body:not(.page-template-page-search-showcase) input[type="month"],
body:not(.page-template-page-search-showcase) input[type="time"],
body:not(.page-template-page-search-showcase) input[type="week"],
body:not(.page-template-page-search-showcase) input:not([type]),
body:not(.page-template-page-search-showcase) textarea,
body:not(.page-template-page-search-showcase) select {
	box-sizing: border-box;
	height: auto !important;
	min-height: 40px;
	margin: 0 0 8px !important;
	padding: 10px 14px !important;
	background: var(--mg-field-bg) !important;
	background-image: none !important;
	border: 1px solid var(--mg-field-border) !important;
	border-radius: 4px !important;
	box-shadow: none !important;
	color: var(--mg-field-text) !important;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.3;
	max-width: 100%;
}

body:not(.page-template-page-search-showcase) textarea {
	min-height: 96px;
	width: 100%;
	resize: vertical;
}

body:not(.page-template-page-search-showcase) select {
	color-scheme: dark;
	max-width: 100%;
}

body:not(.page-template-page-search-showcase) input[type="text"]:focus,
body:not(.page-template-page-search-showcase) input[type="search"]:focus,
body:not(.page-template-page-search-showcase) input[type="email"]:focus,
body:not(.page-template-page-search-showcase) input[type="password"]:focus,
body:not(.page-template-page-search-showcase) input[type="url"]:focus,
body:not(.page-template-page-search-showcase) input[type="tel"]:focus,
body:not(.page-template-page-search-showcase) input[type="number"]:focus,
body:not(.page-template-page-search-showcase) input[type="date"]:focus,
body:not(.page-template-page-search-showcase) input[type="datetime-local"]:focus,
body:not(.page-template-page-search-showcase) input[type="month"]:focus,
body:not(.page-template-page-search-showcase) input[type="time"]:focus,
body:not(.page-template-page-search-showcase) input[type="week"]:focus,
body:not(.page-template-page-search-showcase) input:not([type]):focus,
body:not(.page-template-page-search-showcase) textarea:focus,
body:not(.page-template-page-search-showcase) select:focus,
body:not(.page-template-page-search-showcase) .rcl-field-input input:focus,
body:not(.page-template-page-search-showcase) .rcl-field-input textarea:focus,
body:not(.page-template-page-search-showcase) .rcl-field-input select:focus {
	background: var(--mg-field-bg) !important;
	border-color: var(--mg-field-focus) !important;
	outline: none !important;
	box-shadow: none !important;
}

body:not(.page-template-page-search-showcase) input::placeholder,
body:not(.page-template-page-search-showcase) textarea::placeholder {
	color: #8d8d8d;
	opacity: 1;
}

body:not(.page-template-page-search-showcase) input:disabled,
body:not(.page-template-page-search-showcase) textarea:disabled,
body:not(.page-template-page-search-showcase) select:disabled,
body:not(.page-template-page-search-showcase) input[readonly] {
	opacity: 0.72;
}

body:not(.page-template-page-search-showcase) .select2-container input[type="search"],
body:not(.page-template-page-search-showcase) .select2-search__field {
	min-height: 0 !important;
	margin: 0 !important;
	padding: 4px 8px !important;
}

body:not(.page-template-page-search-showcase) .bld-building-input {
	padding-right: 36px !important;
}

/* Поверх правил adaptWP-Recall с !important */
body:not(.page-template-page-search-showcase) .rcl-field-input input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="hidden"]),
body:not(.page-template-page-search-showcase) .rcl-field-input textarea,
body:not(.page-template-page-search-showcase) .rcl-field-input select,
body:not(.page-template-page-search-showcase) .panel_lk_recall .default-field input,
body:not(.page-template-page-search-showcase) .panel_lk_recall .rcl-field-input textarea,
body:not(.page-template-page-search-showcase) .panel_lk_recall .rcl-field-input input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]),
body:not(.page-template-page-search-showcase) #registerform textarea,
body:not(.page-template-page-search-showcase) #registerform select,
body:not(.page-template-page-search-showcase) #registerform input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body:not(.page-template-page-search-showcase) .ssi-modalContent input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
body:not(.page-template-page-search-showcase) .ssi-modalContent textarea,
body:not(.page-template-page-search-showcase) .ssi-modalContent select,
body:not(.page-template-page-search-showcase) .rcl-dialog input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
body:not(.page-template-page-search-showcase) .rcl-dialog textarea,
body:not(.page-template-page-search-showcase) .rcl-dialog select,
body:not(.page-template-page-search-showcase) #fng-construction-modal textarea,
body:not(.page-template-page-search-showcase) #fng-construction-modal input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
body:not(.page-template-page-search-showcase) #fng-construction-modal select,
body:not(.page-template-page-search-showcase) .fng-construction-modal textarea,
body:not(.page-template-page-search-showcase) .fng-construction-modal input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
body:not(.page-template-page-search-showcase) .fng-construction-modal select {
	box-sizing: border-box;
	height: auto !important;
	min-height: 40px;
	padding: 10px 14px !important;
	background: var(--mg-field-bg) !important;
	background-image: none !important;
	border: 1px solid var(--mg-field-border) !important;
	border-radius: 4px !important;
	box-shadow: none !important;
	color: var(--mg-field-text) !important;
}

body:not(.page-template-page-search-showcase) .rcl-field-input textarea,
body:not(.page-template-page-search-showcase) .ssi-modalContent textarea,
body:not(.page-template-page-search-showcase) .rcl-dialog textarea,
body:not(.page-template-page-search-showcase) #fng-construction-modal textarea,
body:not(.page-template-page-search-showcase) .fng-construction-modal textarea,
body:not(.page-template-page-search-showcase) #registerform textarea {
	min-height: 96px;
}

body:not(.page-template-page-search-showcase) .rcl-field-input input:focus,
body:not(.page-template-page-search-showcase) .rcl-field-input textarea:focus,
body:not(.page-template-page-search-showcase) .rcl-field-input select:focus,
body:not(.page-template-page-search-showcase) .panel_lk_recall .rcl-field-input input:focus,
body:not(.page-template-page-search-showcase) .panel_lk_recall .rcl-field-input textarea:focus,
body:not(.page-template-page-search-showcase) #fng-construction-modal textarea:focus,
body:not(.page-template-page-search-showcase) #fng-construction-modal input:focus,
body:not(.page-template-page-search-showcase) #fng-construction-modal select:focus,
body:not(.page-template-page-search-showcase) .ssi-modalContent input:focus,
body:not(.page-template-page-search-showcase) .ssi-modalContent textarea:focus,
body:not(.page-template-page-search-showcase) .ssi-modalContent select:focus,
body:not(.page-template-page-search-showcase) .rcl-dialog input:focus,
body:not(.page-template-page-search-showcase) .rcl-dialog textarea:focus,
body:not(.page-template-page-search-showcase) .rcl-dialog select:focus {
	background: var(--mg-field-bg) !important;
	border-color: var(--mg-field-focus) !important;
	outline: none !important;
	box-shadow: none !important;
}

/* Кнопка внутри поля */
body:not(.page-template-page-search-showcase) .mg-field {
	position: relative;
	display: block;
	margin: 0 0 12px;
	max-width: 100%;
}

body:not(.page-template-page-search-showcase) .mg-field > input {
	width: 100%;
	margin: 0 !important;
	padding-right: 108px !important;
}

body:not(.page-template-page-search-showcase) .mg-field > .mg-field-btn {
	position: absolute;
	top: 4px;
	right: 4px;
	z-index: 2;
	height: calc(100% - 8px) !important;
	min-height: 0;
	width: auto;
	margin: 0 !important;
	padding: 0 14px !important;
	border: none !important;
	border-radius: 3px !important;
	background: var(--mg-field-accent) !important;
	box-shadow: none !important;
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-shadow: none !important;
	cursor: pointer;
}

body:not(.page-template-page-search-showcase) .mg-field > .mg-field-btn:hover,
body:not(.page-template-page-search-showcase) .mg-field > .mg-field-btn:focus {
	background: var(--mg-field-accent-hover) !important;
	color: #fff !important;
	filter: none;
}

body:not(.page-template-page-search-showcase) .fngrates-search-wrap {
	max-width: 36em;
}

/* Поиск сделок: кнопка уже внутри .mg-field */
body:not(.page-template-page-search-showcase) .fng-search-field-keyword {
	flex: 1 1 280px;
	min-width: 0;
}

/* Поиск пользователей и групп WP-Recall */
body:not(.page-template-page-search-showcase) .rcl-search-form form {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 8px;
	align-items: center;
}

body:not(.page-template-page-search-showcase) .rcl-search-form .rcl-search-form-title {
	grid-row: 1;
	margin: 0;
}

body:not(.page-template-page-search-showcase) .rcl-search-form input[type="text"] {
	grid-row: 2;
	width: 100%;
	margin: 0 !important;
	padding-right: 108px !important;
}

body:not(.page-template-page-search-showcase) .rcl-search-form select {
	grid-row: 3;
	width: 100%;
	max-width: 280px;
	margin: 0 !important;
}

body:not(.page-template-page-search-showcase) .rcl-search-form a.rcl-bttn {
	grid-row: 2;
	justify-self: end;
	align-self: center;
	z-index: 2;
	height: 32px !important;
	min-height: 0;
	margin: 0 4px 0 0 !important;
	padding: 0 14px !important;
	border: none !important;
	border-radius: 3px !important;
	background: var(--mg-field-accent) !important;
	box-shadow: none !important;
	color: #fff !important;
	text-shadow: none !important;
	line-height: 32px;
}

body:not(.page-template-page-search-showcase) .rcl-search-form a.rcl-bttn:hover,
body:not(.page-template-page-search-showcase) .rcl-search-form a.rcl-bttn:focus {
	background: var(--mg-field-accent-hover) !important;
	color: #fff !important;
	filter: none;
}

body:not(.page-template-page-search-showcase) .rcl-search-form a.rcl-bttn .rcl-bttn__text {
	font-size: 0;
	color: transparent;
}

body:not(.page-template-page-search-showcase) .rcl-search-form a.rcl-bttn .rcl-bttn__text::after {
	content: "Найти";
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}

/* Стандартная форма поиска WordPress */
body:not(.page-template-page-search-showcase) form.search-form,
body:not(.page-template-page-search-showcase) .woocommerce-product-search {
	position: relative;
	display: block;
}

body:not(.page-template-page-search-showcase) form.search-form .search-field,
body:not(.page-template-page-search-showcase) .woocommerce-product-search .search-field {
	width: 100%;
	margin: 0 !important;
	padding-right: 108px !important;
}

body:not(.page-template-page-search-showcase) form.search-form .search-submit,
body:not(.page-template-page-search-showcase) .woocommerce-product-search button[type="submit"] {
	position: absolute;
	top: 4px;
	right: 4px;
	z-index: 2;
	height: calc(100% - 8px) !important;
	margin: 0 !important;
	padding: 0 14px !important;
	border: none !important;
	border-radius: 3px !important;
	background: var(--mg-field-accent) !important;
	box-shadow: none !important;
	color: #fff !important;
	font-weight: 700;
	text-shadow: none !important;
	cursor: pointer;
}
