/* Search icon by IcoMoon, made with http://icomoon.io/app/ */
@font-face {
	font-family: 'icomoon';
	src:url('../../fonts/icomoon/icomoon.eot');
	src:url('../../fonts/icomoon/icomoon.eot?#iefix') format('embedded-opentype'),
		url('../../fonts/icomoon/icomoon.woff') format('woff'),
		url('../../fonts/icomoon/icomoon.ttf') format('truetype'),
		url('../../fonts/icomoon/icomoon.svg#icomoon') format('svg');
	font-weight: normal;
	font-style: normal;
}

.sb-search {
	position: absolute;
	width: 0%;
	height: 40px;
	float: right;
	overflow: hidden;
	-webkit-transition: width 0.3s;
	-moz-transition: width 0.3s;
	transition: width 0.3s;
	-webkit-backface-visibility: hidden;
	padding-right: 40px;
	right: 0%;
}

.sb-search-input {
	position: absolute;
	top: 0;
	right: 40px;
	border: none;
	outline: none;
	background: #fff;
	width: 88.5%;
	height: 38px;
	margin: 0;
	z-index: 10;
	font-family: "微軟正黑體";
	/*font-size: 95%;*/
	color: #FB9244;
	text-indent: 1em;	
}

.sb-search-input::-webkit-input-placeholder {
	color: #FB9244;
}

.sb-search-input:-moz-placeholder {
	color: #FB9244;
}

.sb-search-input::-moz-placeholder {
	color: #FB9244;
}

.sb-search-input:-ms-input-placeholder {
	color: #FB9244;
}

.sb-icon-search,
.sb-search-submit  {
	width: 40px;
	height: 40px;
	display: block;
	position: absolute;
	right: 0;
	top: 0;
	padding: 0;
	margin: 0;
	line-height: 40px;
	text-align: center;
	cursor: pointer;
}

.sb-search-submit {
	background: #fff; /* IE needs this */
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; /* IE 8 */
    filter: alpha(opacity=0); /* IE 5-7 */
    opacity: 0;
	color: transparent;
	border: none;
	outline: none;
	z-index: -1;
	
}

.sb-icon-search {
	color: #fff;
	background-color: #eb5431;
	z-index: 90;
	font-size: auto;
	font-family: 'icomoon';
	speak: none;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	-webkit-font-smoothing: antialiased;
	-webkit-transition: all 0.5s ease;
	-moz-transition: all 0.5s ease;
	-o-transition: all 0.5s ease;
	-ms-transition: all 0.5s ease;
	transition: all 0.5s ease;
}

.sb-icon-search:hover,.sb-search-input:focus ~ span.sb-icon-search { background-color:#FB9244;}

.sb-icon-search:before {
	content: "\e000";
}

/* Open state */
.sb-search.sb-search-open,
.no-js .sb-search {
	width: 100%;
}

.sb-search.sb-search-open .sb-icon-search,
.no-js .sb-search .sb-icon-search {
	background-color: #FB9244;
	color: #fff;
	z-index: 11;
	-webkit-transition: all 0.5s ease;
	-moz-transition: all 0.5s ease;
	-o-transition: all 0.5s ease;
	-ms-transition: all 0.5s ease;
	transition: all 0.5s ease;
}

.sb-search.sb-search-open .sb-search-submit,
.no-js .sb-search .sb-search-submit {
	z-index: 90;
	-webkit-transition: all 0.5s ease;                  
    -moz-transition: all 0.5s ease;                 
    -o-transition: all 0.5s ease;   
    -ms-transition: all 0.5s ease;          
    transition: all 0.5s ease;
}
