/* Uzupelnienia do template.css: zamienniki wtyczek jQuery ze starej strony
   (cycle2, naver, prettyPhoto, mapy Google) w czystym CSS/JS. */

img { max-width: 100%; height: auto; }

/* Pokaz slajdow (dawniej mod_selectstar_slideshow + jquery.cycle2) */
#header_gora_cont { position: relative; }
#slide_gora { position: relative; height: 545px; width: 100%; overflow: hidden; }
#slide_gora .slide {
	position: absolute; inset: 0;
	background-position: top center; background-repeat: no-repeat; background-size: cover;
	opacity: 0; transition: opacity 600ms ease;
}
#slide_gora .slide.active { opacity: 1; }
#slide_left, #slide_right {
	background: url(../images/nav.png) top left no-repeat;
	position: absolute; top: 0; bottom: 0; margin: auto;
	z-index: 20; width: 50px; height: 49px; cursor: pointer;
}
#slide_left { left: 0; }
#slide_right { right: 0; background-position: -49px 0; }

/* Menu mobilne (dawniej jquery.fs.naver) */
.menu-handle {
	display: none; width: 100%; box-sizing: border-box;
	background: none; border: none; color: #666; cursor: pointer;
	font: inherit; font-size: 21px; text-align: right; padding: 10px 40px 10px 15px;
	position: relative; height: auto;
}
.menu-handle:hover { background: none; }
.menu-handle::after {
	content: ''; position: absolute; top: 0; bottom: 0; right: 15px; margin: auto 0;
	width: 15px; height: 3px; background: #ccc; box-shadow: 0 5px 0 #ccc, 0 -5px 0 #ccc;
}
.menu-open > .menu-handle::after {
	content: "\00d7"; background: none; box-shadow: none; color: #999;
	height: 15px; line-height: 15px; font-size: 22px; font-weight: 700;
}

@media (max-width: 767px) {
	.menu-handle { display: block; }
	.menu-wrap > ul { display: none; }
	.menu-wrap.menu-open > ul { display: block; }
	#leftcolumn .menu-wrap { background: #eee; padding: 0 10px; }
	#slide_gora { height: 330px; }
}
@media (max-width: 640px) {
	#slide_gora { height: 200px; }
}

/* Galeria produktu (dawniej prettyPhoto) */
.lightbox {
	position: fixed; inset: 0; z-index: 100000; background: rgba(0, 0, 0, .85);
	display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; background: #fff; padding: 8px; border-radius: 4px; }
.lightbox button {
	position: absolute; background: rgba(0, 0, 0, .4); color: #fff; border: none;
	font-size: 34px; height: 56px; width: 56px; line-height: 56px; padding: 0; cursor: pointer;
}
.lightbox .lb-close { top: 10px; right: 10px; }
.lightbox .lb-prev { left: 10px; top: calc(50% - 28px); }
.lightbox .lb-next { right: 10px; top: calc(50% - 28px); }

/* Kontakt */
.pole_ukryte { position: absolute; left: -9999px; }
.formularz_komunikat { padding: 10px; margin: 10px 0; border: 1px solid #a09271; background: #faf8f3; }
.formularz_komunikat.blad { border-color: #c00; color: #c00; background: #fff5f5; }
.mapa_kontakt { border: 1px solid #ddd; width: 100%; height: 500px; display: block; margin-top: 20px; }
#selectcontactform td { vertical-align: top; padding: 3px 4px; }
#selectcontactform input[type="text"], #selectcontactform input[type="tel"], #selectcontactform input[type="email"] {
	width: 100%; max-width: 340px; box-sizing: border-box;
	color: #777; font-size: 13px; height: 34px; padding: 2px 5px; border: 1px solid #ddd; background: #fafafa;
	font-family: 'Open Sans Condensed', sans-serif, Tahoma, Verdana;
}
.selectcontactform { color: #a09271; }

/* Lista dystrybutorow (dawniej Google Maps) */
#mapka { width: 100%; height: 600px; margin: 10px 0; border: 1px solid #ddd; z-index: 1; }
.restrictions_box_sort select { width: 100%; }
.point_container.ukryty { display: none; }
.point_container_right_desc p { margin: 0; }

@media (max-width: 767px) {
	#mapka { height: 380px; }
	.restrictions_box_sort { width: 100%; margin: 0; }
}
