/**
 * Floweralba header search — center on desktop (site-wide).
 *
 * Position against `.header-container` (not `.header-left`) so the bar
 * centers in the full header width. Logo/right menu stay above the bar.
 */

@media only screen and (min-width: 993px) {
	body.floweralba-header-search-centered .c27-main-header .header-container {
		position: relative;
	}

	body.floweralba-header-search-centered .c27-main-header .header-left .logo,
	body.floweralba-header-search-centered .c27-main-header .header-right {
		position: relative;
		z-index: 3;
	}

	body.floweralba-header-search-centered .c27-main-header .header-left .logo {
		flex-shrink: 0;
	}

	body.floweralba-header-search-centered .c27-main-header .header-left #c27-header-search-form {
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
		margin-left: 0 !important;
		margin-right: 0 !important;
		width: min(520px, calc(100vw - 640px));
		max-width: 520px;
		min-width: 300px;
		z-index: 1;
	}

	/* Prevent the empty header-center column from blocking clicks on the search area. */
	body.floweralba-header-search-centered .c27-main-header .header-center {
		pointer-events: none;
	}

	body.floweralba-header-search-centered .c27-main-header .header-left #c27-header-search-form:focus-within {
		z-index: 4;
	}

	body.floweralba-header-search-centered .c27-main-header .header-left #c27-header-search-form form,
	body.floweralba-header-search-centered .c27-main-header .header-left #c27-header-search-form .header-search {
		width: 100%;
	}

	body.floweralba-header-search-centered .c27-main-header .header-left #c27-header-search-form .header-search {
		display: flex;
		flex-direction: row;
		align-items: center;
		flex-wrap: nowrap;
		box-sizing: border-box;
		min-height: 48px;
		padding: 0 14px 0 16px;
		border: 1px solid #b0b0b0;
		border-radius: 999px;
		background: #fff;
		position: relative;
	}

	body.floweralba-header-search-centered .c27-main-header .header-left #c27-header-search-form .header-search > .mi.search {
		order: 2;
		flex-shrink: 0;
		position: static;
		left: auto;
		right: auto;
		top: auto;
		margin-right: 0;
		margin-left: 8px;
		font-size: 20px;
		line-height: 1;
		color: #888;
	}

	body.floweralba-header-search-centered .c27-main-header .header-left #c27-header-search-form .header-search.is-focused > .mi.search {
		left: auto !important;
	}

	body.floweralba-header-search-centered .c27-main-header .header-left #c27-header-search-form input[type="search"] {
		order: 1;
		flex: 1;
		width: 100% !important;
		min-width: 0;
		height: 46px !important;
		min-height: 46px !important;
		margin: 0 !important;
		padding: 0 !important;
		border: none !important;
		border-bottom: none !important;
		background: transparent !important;
		box-shadow: none !important;
		font-size: 14px;
		line-height: 46px;
		color: #333;
	}

	body.floweralba-header-search-centered .c27-main-header .header-left #c27-header-search-form input[type="search"]:focus,
	body.floweralba-header-search-centered .c27-main-header .header-left #c27-header-search-form input[type="search"]:hover,
	body.floweralba-header-search-centered .c27-main-header.header-light-skin:not(.header-scroll) .header-left #c27-header-search-form .header-search input[type="search"]:focus {
		padding-left: 0 !important;
		padding-right: 0 !important;
		border-bottom: none !important;
		outline: none;
		box-shadow: none !important;
	}

	body.floweralba-header-search-centered .c27-main-header .header-left #c27-header-search-form input[type="search"]::placeholder {
		color: #bbb !important;
		opacity: 1;
	}

	body.floweralba-header-search-centered .c27-main-header .header-left #c27-header-search-form input[type="search"]::-webkit-input-placeholder {
		color: #bbb !important;
		opacity: 1;
	}

	body.floweralba-header-search-centered .c27-main-header .header-left #c27-header-search-form input[type="search"]::-moz-placeholder {
		color: #bbb !important;
		opacity: 1;
	}

	/* Drop the theme accent underline that appears on focus (.instant-results:before). */
	body.floweralba-header-search-centered .c27-main-header .header-left #c27-header-search-form .instant-results::before {
		display: none !important;
		content: none !important;
	}

	body.floweralba-header-search-centered .c27-main-header .header-left #c27-header-search-form .header-search.is-focused,
	body.floweralba-header-search-centered .c27-main-header .header-left #c27-header-search-form:focus-within .header-search {
		border-color: #999;
	}

	/* No live dropdown — submit goes straight to the explore page. */
	body.floweralba-header-search-centered .c27-main-header .header-left #c27-header-search-form .instant-results {
		display: none !important;
		visibility: hidden !important;
	}
}
