﻿/* NEW STYLE SOFIE */

#searchText {
	color: #000;
	font-family: var(--default-font);
	font-size: 13px;
	padding: 0 20px;
	/*height: 64px;*/
	margin-right: 0px;
	margin-top: 4px;
}

.search .form-control:focus {
	border-color: var(--default-primary-color);
	webkit-box-shadow: 0px 0px 5px 1px var(--default-primary-color);
	-moz-box-shadow: 0px 0px 5px 1px var(--default-primary-color);
	box-shadow: 0px 0px 5px 1px var(--default-primary-color);
}

.search .input-group-addon .glyphicon-search {
	color: #FFFFFF;
	background-color: var(--default-primary-color);
}

.search .input-group-addon .glyphicon-search:hover {
	color: #FFFFFF;
	background-color: var(--default-primary-color);
}

@media (max-width: 1024px) {
	.widget-search-widget {
		float: left;
		width: 100%;
	}
}

@media only screen and (max-width: 1024px) and (min-width: 500px) {
	.search {
		width: 93%;
	}
}

@media only screen and (max-width: 767px) and (min-width: 400px), only screen and (max-device-width: 767px) {
	.search {
		width: 92%;
	}
}

@media only screen and (max-width: 530px) and (min-width: 300px), only screen and (max-device-width: 530px) {
	.search {
		width: 84%;
		margin-left: 1%;
	}
}

/*@media only screen and (max-width: 530px) and (min-width: 300px), only screen and (max-device-width: 530px) {
	#searchText {
		color: #333;
		font-family: avenir-medium;
		font-size: 16px;
		padding: 2px 20px;
		height: 52px;
	}
}*/

/******************************************/


.search-field {
	height: 38px !important;
	/*margin-top: -26px;*/
	padding-top: 0px;
	display: block;
	position: absolute;
}

.search-field-mobile {
	display: contents !important;
}

#searchBox img {
	width: 50px;
	float: left;
}

#searchBox {
	border-radius: 4px;
	/*width: 400px;*/
	background-clip: padding-box;
	position: absolute !important;
	top: 45px !important;
	background-color: white;
	z-index: 10001;
	border: 1px solid rgba(0,0,0,.15);
}

	#searchBox > a {
		width: 100%;
	}

	#searchBox article {
		border-bottom: 1px solid #efefef;
		padding: 5px;
		width: 100%;
		float: left;
	}

		#searchBox article:hover {
			background-color: gainsboro;
		}

		#searchBox article div {
			float: left;
			width: 79%;
			padding-left: 5px;
		}

	#searchBox .header {
		float: left;
		width: 100%;
		padding: 5px;
		background-color: #2d3e50;
		color: white;
	}

		#searchBox .header label {
			margin-bottom: 0;
			padding: 0px;
		}


.search {
	/*width: 70%;
	margin-right: 10px;*/
	float: left !important;
}


	.search .input-group-addon {
		background-color: white;
	}

	/*.search .form-control {
		border-left: none;
	}*/
		

		/*.search .form-control:focus {
			border-left: 1px solid #66afe9;
			border-radius: 4px;
		}*/


@media (min-width: 1024px) {

	#searchText {
		min-width: 160px;
	}
}

.search-mobile {
	display: block !important;
	margin-top: 2px;
	right: 5px;
	width: 45%;
}

.input-group-btn-mobile {
	width: 16.6666667%;
}

.search-text-mobile {
	width: 83.3333333%;
	display: table-cell;
}

@media screen and (max-width: 748px) {
	.search-text-mobile {
		width: 75%;
		padding-right: 5px;
	}
}

/* Handlar om att söken beter sig annorlunda på SanSac och gamla demon. Detta är gamla demon, vi får se... :)
@media (min-width: 1730px) {
.widget-SearchWidget {
	display: none;
}

.navbar-search {
	display: block;
}
}

@media (max-width: 1730px) {
	.big-searchbar {
		display: block;
	}
	.navbar-search {
		display: none;
	}
}

*/

.btn-search {
	color: #FFFFFF;
	background-color: var(--default-secondary-color);
	font-family: var(--default-font);
	height: 33px !important;
	border: none !important;
}

	.btn-search:hover {
		color: var(--default-primary-color) !important;
		background-color: var(--default-secondary-color);
		border: none !important;
	}

	.btn-search:focus {
		color: var(--default-primary-color);
		background-color: var(--default-secondary-color);
		border: none !important;
	}

	.btn-search:active {
		color: var(--default-primary-color);
		background-color: var(--default-secondary-color);
		border: none !important;
	}
.menu-search-form {
	margin: 0;
}

.menu-search {
	display: flex;
	align-items: center;
	width: 250px;
	height: 38px;
	padding: 3px 4px 3px 14px;
	background: #f3f3f3;
	border: 1px solid #d7d7d7;
	border-radius: 8px;
	margin-top:2px;
	box-sizing: border-box;
}

.menu-search-input {
	flex: 1;
	min-width: 0;
	height: auto;
	margin: 0;
	padding: 0;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
	background-image: none !important;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	font-size: 14px;
	color: #333;
}

	.menu-search-input:focus,
	.menu-search-input:active {
		border: none !important;
		outline: none !important;
		box-shadow: none !important;
		background: transparent !important;
	}

	.menu-search-input::placeholder {
		color: #a8a8a8;
	}

.menu-search-btn {
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	border: none;
	border-radius: 50%;
	padding: 0;
	background: #5b9bd5;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

	.menu-search-btn:hover {
		background: #4a8ac4;
	}