/* ==========================================================================
# Search style - begin
========================================================================== */

.qodef-search-opener {
	color: #000;
	vertical-align: middle;
	font-size: 26px;
	display: inline-block;
	position: relative;
	margin: 0 0 0 16px;
	@include qodefTransition(all 0.15s ease-out);

	&:hover {
		color: #f5e103;
	}

	.qodef-search-icon-text {
		@include qodefTransition(all 0.15s ease-out);
	}
}

.qodef-light-header .qodef-page-header > div:not(.qodef-sticky-header) .qodef-search-opener,
.qodef-light-header.qodef-header-style-on-scroll .qodef-page-header .qodef-search-opener,
.qodef-light-header .qodef-top-bar .qodef-search-opener {
	color: $header-light-color !important; //Color can be set inline from widget opener
}

.qodef-dark-header .qodef-page-header > div:not(.qodef-sticky-header) .qodef-search-opener,
.qodef-dark-header.qodef-header-style-on-scroll .qodef-page-header .qodef-search-opener,
.qodef-dark-header .qodef-top-bar .qodef-search-opener {
	color: $header-dark-color !important; //Color can be set inline from widget opener
}

/* Search covers header - begin
========================================================================== */

.qodef-search-cover {
	display: none;
	color: #fff;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 115;
	background:#fff;

	.qodef-form-holder-outer {
		display: table;
		width: 100%;
		height:100%;
	}

	.qodef-form-holder {
		display: table-cell;
		vertical-align: middle;
		padding:0 45px;
		position:relative;
	}

	.qodef-form-holder-inner {
		display: inline-block;
		vertical-align: middle;
		position: relative;
		width: 100%;
	}

	.qodef-container-inner {

		.qodef-form-holder {
			padding: 0;
		}

		.qodef-search-close {
			right: 0;
		}

	}

	input,
	input:focus {
		background-color: transparent;
		border: medium none;
		box-shadow: none;
		color: #696969;
		font-size: 15px;
		font-weight: 700;
		display: inline-block;
		width: 90%;
		padding:0;
		font-family: inherit;
		outline: none;
		outline-offset:0px;
		-webkit-appearance: none;
		border-radius: 0;
		float: left;
		text-transform: uppercase;
		margin: 0;
	}

	input:focus {
		outline-offset: 0 !important;
	}

	input[type="submit"] {
		border: 0 none;
		clip: rect(0px,0px,0px,0px);
		height: 1px;
		margin: -1px;
		padding: 0;
		position: absolute;
		width: 1px;
		visibility: hidden;
	}

	.qodef-search-close {
		font-size: 34px;
		position: absolute;
		right: 24px;
		top:50%;
		-webkit-transform: translateY(-50%);
		-moz-transform: translateY(-50%);
		-ms-transform: translateY(-50%);
		-o-transform: translateY(-50%);
		transform: translateY(-50%);
		line-height:1em;
	}

	.qodef-search-close {

		a {
			color: #9d9d9d;
			display: inline-block;
		}

		a:hover {
			color: $first-main-color;
		}

		a i {
			vertical-align: top;
		}

	}

}

.qodef-search-cover.disabled {

	input,
	input:focus{
		font-weight: normal;
	}

}

::-webkit-input-placeholder,
:-moz-placeholder,
::-moz-placeholder,
:-ms-input-placeholder{
	color: #959595;
	margin: 10px 0px 0px 0px;
}

/* Fullscreen search general style - start
========================================================================== */

.qodef-fullscreen-search-holder {
	position:fixed;
	top:0;
	left:0;
	width:100%;
	height:100%;
	z-index:105;
	opacity:0;

	.qodef-field-holder {
		display: block;
		vertical-align: bottom;
		position: relative;
		margin-top: 4px;

		.qodef-line {
			position:absolute;
			bottom: 10px;
			left:0;
			height:1px;
			width:0;
			background-color: #a5a5a5;
			@include qodefTransition(width 0.3s ease);
		}

	}

    .qodef-form-holder {
        width: 48%;
        margin: 0 auto;
    }

	.qodef-search-field {
		width:100%;
		border-left:none;
		border-top:none;
		border-right:none;
		border-bottom:none;
		background:transparent;
		outline:none;
        height: 46px;
		font-size:28px;
		color: #fff;
		line-height:1em;
		position:relative;
		padding: 0 0 15px 0;
		font-family: 'Catamaran', serif;

		&::-webkit-input-placeholder {
			color: #fff;
		}

		&:-moz-placeholder { /* Firefox 18- */
			color: #fff;
		}

		&::-moz-placeholder {  /* Firefox 19+ */
			color: #fff;
		}

		&:-ms-input-placeholder {
			color: #fff;
		}

	}

	.qodef-search-submit {
		border:none;
		background:transparent;
		outline:none;
		width: auto;
		cursor: pointer;
		font-family: 'Ionicons';
		font-size:26px;
		line-height:1em;
		color: #fff;
		@include qodefTransition(color 0.2s ease);
		position: absolute;
		top: 10px;
		right: 0;
	}

	.qodef-search-submit:hover {
		color: $first-main-color;
	}

	.qodef-search-close-holder {
		float:right;
		margin-right: 45px;
	}

	.qodef-fullscreen-search-close-container {
		position:absolute;
		left:0;
		top:0;
		width:100%;

		a {
			opacity:0;
			visibility:hidden;
			-webkit-transition: opacity 0.2s ease, color 0.2s ease;
			transition: opacity 0.2s ease, color 0.2s ease;
			position: absolute;
			top: 40px;
			right: 40px;
			color: #fff;
            font-size: 26px;

			&:hover {
				color: $first-main-color;
			}
		}

	}

}

.qodef-fullscreen-search-table {
	display: table;
	width:100%;
	height:100%;
}

.qodef-fullscreen-search-cell {
	display: table-cell;
	vertical-align: middle;
	width:100%;
	height:100%;
	text-align:center;
}

//Fix for woocommerce page
.qodef-fullscreen-search .qodef-form-holder .qodef-search-field {
	width:100%;
	border-left: none;
	border-top: none;
	border-right: none;
	border-bottom: none;
	background: transparent;
	outline: none;
    height: 46px;
	font-size: 28px;
	color: #fff;
	line-height: 1em;
	position: relative;
	padding: 0 0 15px 0;
}

/* Fullscreen search general style - end
========================================================================== */

/* Fullscreen search fade style - start
========================================================================== */

.qodef-fullscreen-search-holder {
	visibility: hidden;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	opacity: 0;
	z-index:112;
	box-sizing: border-box;

	.qodef-fullscreen-search-table {
		background-color:rgba(0, 0, 0, 0.9);
	}
}

.qodef-search-fade-out .qodef-fullscreen-search-holder {
	@include qodefAnimation(search_fade_out .25s linear both);
}

.qodef-search-fade-in .qodef-fullscreen-search-holder.qodef-animate{
	@include qodefAnimation(search_fade_in .25s linear both);
}

.qodef-fullscreen-search-holder.qodef-animate .qodef-fullscreen-search-close {
	opacity:1;
	visibility:visible;
}


@-webkit-keyframes search_fade_out {
	0%{
		opacity:1;
		visibility: visible;
	}
	100%{
		opacity:0;
		visibility: hidden;
	}
}
@keyframes search_fade_out{
	0%{
		opacity:1;
		visibility: visible;
	}
	100% {
		opacity:0;
		visibility: hidden;
	}
}
@-webkit-keyframes search_fade_in {
	0% {
		opacity:0;
		visibility: hidden;
	}
	100% {
		opacity:1;
		visibility: visible;
	}
}
@keyframes search_fade_in{
	0%{
		opacity:0;
		visibility: hidden;
	}
	100%{
		opacity:1;
		visibility: visible;
	}
}

/* Fullscreen search fade style - end
========================================================================== */

/*---------------Fade animation with PUSH TEXT TOP------------*/

.qodef-fullscreen-search-opened .qodef-fullscreen-search-holder .qodef-form-holder {
	@include qodefTransform(translateY(0px) translateZ(0px));
	opacity: 1;
	-webkit-transition: opacity .6s cubic-bezier(0,0,0,1) 0.2s, -webkit-transform 1s cubic-bezier(0,0,0,1) 0.2s;
	transition: opacity .6s cubic-bezier(0,0,0,1) 0.2s, transform 1s cubic-bezier(0,0,0,1) 0.2s;
}

.qodef-fullscreen-search-holder .qodef-form-holder {
	opacity: 0;
	@include qodefTransform(translateY(15%) translateZ(0px));
	-webkit-transition: opacity 0.15s ease 0s, -webkit-transform 0.15s ease 0s;
	transition: opacity 0.15s ease 0s, transform 0.15s ease 0s;
}

/*----------------------FULLSCREEN SEARCH style end--------------------------*/

/* ==========================================================================
# Search style - end
========================================================================== */
