/**
 * Dwa Poziomy Piekna 2026 - overrides.
 *
 * Loaded after the plugins' styles (Mega Main Menu, Smart Slider), i.e. in the same place in the cascade
 * as the Customizer "Additional CSS" used to be.
 *
 *  1. Former Customizer "Additional CSS" (moved here so it is versioned with the theme)
 *  2. Styles that replaced inline style="" attributes in the templates
 *  3. Small fixes
 *  4. Responsive improvements
 */

/* ==========================================================================
   1. Former Customizer "Additional CSS"
   Not moved: ".zielony a:hover a:focus" (invalid selector, never matched anything) and the Wordfence
   2FA login button rules (Customizer CSS is not printed on the login screen; the login screen styles
   are in assets/login/css/login.css).
   ========================================================================== */

.item-img-wrap img {
	height: auto;
}

.work-desc {
	height: 60px;
}

/* "Dodane metamorfozy" */
#logo img {
	max-width: 100% !important;
	max-height: 100% !important;
}

.mega_main_menu li > a::after {
	display: none;
}

/* Social icons in the footer ("Obserwuj nas!") */
.social-1 {
	position: relative;
	z-index: 10;
}

.social-1 li a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	position: relative;
	z-index: 11;
}

@media (max-width: 767px) {
	img {
		max-width: 100% !important;
		height: 100% !important;
	}

	#testicarousel {
		padding: 120px;
	}
}

/* ==========================================================================
   2. Former inline styles
   ========================================================================== */

/* header.php: search and contact menu aligned to the right */
.header-aside {
	text-align: right;
}

/* Home page testimonials: white translucent box, black heading */
.testimonials .testimonials-box {
	background-color: #fff;
	opacity: .8;
}

.testimonials .testimonials-box .center-heading h2 {
	color: #000;
}

/* ==========================================================================
   3. Small fixes
   ========================================================================== */

/* Search results: the old markup had <li> without a list; the list keeps the same look */
.search-results-list {
	margin: 0;
	padding: 0;
}

/* Testimonials rotator: hide all but the first one before the script starts (no flash of every testimonial) */
#testicarousel > div + div {
	display: none;
}

/* ==========================================================================
   4. Responsive improvements
   ========================================================================== */

/* Phones: form fields at 16px – below that iOS Safari zooms the whole page in when a field is tapped
   (price list search, contact form, comment form). */
@media (max-width: 767px) {
	input[type="text"],
	input[type="email"],
	input[type="tel"],
	input[type="url"],
	input[type="number"],
	input[type="date"],
	input[type="search"],
	input[type="password"],
	select,
	textarea {
		font-size: 16px;
	}
}
