/*
 Theme Name:   Betheme Child
 Theme URI:    http://fabrykawp.pl
 Description:  The biggest WordPress Theme ever
 Author:       FWP
 Author URI:   http://fabrykawp.pl
 Template:     betheme
 Version:      1.1.1
 Text Domain:  fwp
*/

.fwp-submit {
	position: absolute;
	top: 50%;
	right: 0;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
}

body #Top_bar .search_wrapper .icon_close,
body #Top_bar .search_wrapper .icon_close:hover {
	right: 70px;
}

body #Top_bar .search_wrapper {
	left: 70%;
	width: 35%;
}

@media only screen and (max-width: 1239px) {
	body #Top_bar #menu ul li a span {
		line-height: 1.2;
		display: inline-block;
		padding: 16.5px 0 !important;
	}

	body #Top_bar a.responsive-menu-toggle {
		width: auto;
		height: auto;
	}
}

@media only screen and (max-width: 767px) {
	#Top_bar .logo {
		width: 100px;
	}

	#Top_bar a#search_button {
		font-size: 40px;
		top: 5px;
	}

	#Header a.responsive-menu-toggle {
		top: 12px !important;
	}

	body #Top_bar a.responsive-menu-toggle i {
		font-size: 40px;
		line-height: 40px;
	}

	body #Top_bar .top_bar_left .search_wrapper {
		width: calc(100% + 67px);
		left: -33.5px;
	}

	#Top_bar a#search_button.active,
	#Top_bar a.responsive-menu-toggle.active .icon-menu {
		visibility: hidden;
	}

	#Top_bar a#search_button:before,
	#Top_bar a.responsive-menu-toggle:before {
		content:'\e815';
		display: inline-block;
		font-family: "mfn-icons";
		position: absolute;
		top: 0;
		z-index: 3000;
		font-size: 40px;
		background-size:center;
		line-height: 40px;
		width: 100%;
		text-align: center;
		visibility: hidden;
	}
	.icon-search:before{
		background-image:url('lupka.png');
		width: 30px;
		height: 30px;
		content:'';
	    background-size: contain;
	    margin-top:4px;
	}
	.responsive-menu-toggle .icon-menu:before{
		background-image:url('hamburger.png');
		width: 30px;
		height: 26px;
		content:'';
	    background-size: contain;
	}
	.kontakt_icon_mobile{
		width: 30px;
		height: 30px;
	}

	#Top_bar a#search_button.active:before,
	#Top_bar a.responsive-menu-toggle.active:before {
		visibility: visible;
	}

	.fwp-hidden {
		display: none !important;
	}
	.fwp-mobile-only{
		display: none !important
	}
}

@media (min-width: 768px) {
	.fwp-mobile-only {
		display: none !important;
	}
}

body #searchform {
	position: relative;
}

body #Top_bar .search_wrapper .icon_search {
	left: 0;
}

body #Top_bar .search_wrapper .icon_search,
body #Top_bar .search_wrapper .icon_close {
	top: 6px;

}
body #Top_bar .search_wrapper .icon_close{
	display: none;
}
body #Top_bar .search_wrapper .icon_search:before{
	width: 25px;
	height: 20px;
	content: '';
	background-size: contain;
	margin-top: 4px;
	display: inline-block;
	vertical-align: middle;
	background-repeat: no-repeat;
}

.fwp-spinner {
	width: 25px;
	height: 25px;
	margin: 10px auto;
	background-color: #1e73be;

	border-radius: 100%;
	-webkit-animation: sk-scaleout 1.0s infinite ease-in-out;
	animation: sk-scaleout 1.0s infinite ease-in-out;
}

@-webkit-keyframes sk-scaleout {
	0% {
		-webkit-transform: scale(0)
	}
	100% {
		-webkit-transform: scale(1.0);
		opacity: 0;
	}
}

@keyframes sk-scaleout {
	0% {
		-webkit-transform: scale(0);
		transform: scale(0);
	}
	100% {
		-webkit-transform: scale(1.0);
		transform: scale(1.0);
		opacity: 0;
	}
}

.fwp-autocomplete {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background: #e3e3e3;
}

.fwp-autocomplete .ui-autocomplete {
	background: transparent;
	border: none;
	width: 100% !important;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	padding-bottom: 20px;
}

.fwp-autocomplete .ui-menu-item {
	cursor: pointer;
	margin: 0 18px;
	padding: 5px;
}

.fwp-autocomplete .ui-menu-item.ui-state-focus,
.fwp-autocomplete .ui-menu-item:hover,
.fwp-autocomplete .ui-menu-item:focus {
	color: #000;
}

.fwp-popup {
	position: static;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	z-index: 3000000;
	overflow: auto;
	display: none;
}

.fwp-popup-dialog {
	width: 60%;
	margin: 5% auto;
	background: #fff;
	padding: 30px;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

.fwp-popup:after {
	content: '';
	display: block;
	z-index: -1;
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	background: transparent;
}

.fwp-popup-close {
	float: right;
	font-size: 21px;
}

.fwp-popup-title {
	font-size: 21px;
	font-weight: 700;
	padding-bottom: 15px;
}

@media (max-width: 767px) {
	.fwp-popup-dialog {
		width: 90%;
	}
}

#Top_bar a.responsive-menu-toggle {
	color: #D9DADA !important;
}

#new_kontakt_button {
	position: relative;
	display: block;
	float: left;
	line-height: 20px;
	margin-right: 10px;
	font-size: 40px;
	top: 5px;
}

#new_kontakt_button .kontakt_icon_mobile {
	position: relative;
	top: 5px;
	left: 0;
	margin: 0 5px 0 0;
}

/*@media (max-width: 400px) {
	#new_kontakt_button {
		margin-right: 0;
	}

	#new_kontakt_button .kontakt_icon_mobile {
		margin: 0;
	}
}*/

@media (min-width: 768px) {
	#new_kontakt_button {
		display: none !important;
	}
}

.fwp-submit .icon-search:before{
	width: 15px;
	height: 15px;

}

@media(max-width: 1239px){
	#menu-main-menu{
		position:absolute;
		background-color: #FAFAFA;
	}
	#menu-main-menu li{
		/*padding:0 20px;*/
	}
	#Top_bar #menu ul li.submenu .menu-toggle{
		font-size: 22px !important;
		color:#1C5E91 !important;
	}

	.fwp-popup-dialog{
		position: absolute;
		z-index: 999;
		top: -100%;
		transition:0s;
		left: 0;
		right: 0;
		width: 100%;
	}
	.fwp-popup-dialog--active{
		top:0px;
		margin-top: 90px;
		
	}
}

@media(max-width: 767px){
	#Top_bar #menu{
		padding-bottom: 0;
	}
	#menu-main-menu{
		width: calc(100% + 67px) !important;
		left: -34px;
		right: 0;
	}
}

#Top_bar .logo{
	margin-left:0;
}

@media (max-width: 767px){
	#Top_bar{
		z-index: 100;
	}

	#Top_bar .top_bar_left .search_wrapper {
		width: 100%;
		left: 0;
		bottom: auto;
	    top: -138%;
	    /*transition:.2s;*/
	    display: block !important;
	    z-index: 2;
	    opacity: 1 !important;
	}


	#Top_bar .top_bar_left .search_wrapper--active{
		top:100%;
	}

	#Top_bar a.responsive-menu-toggle{
		margin-right: 0 !important;
	} 
	#Top_bar a.responsive-menu-toggle i:before{
		margin:0;
		margin-right: -10px;
	}
}
@media (max-width: 767px){
	.header-classic #Header #Top_bar .top_bar_right {
		right:30px;
	}
}


@media (max-width: 340px){
	.header-classic #Header #Top_bar .top_bar_right {
	    right: 30px;
	}
}

h4 {
    margin-left: 69px;
}
