/*
 * Compatibility styles after removing WPBakery (js_composer).
 *
 * 1. .vcm-* grid: markup produced by the udi-wpbakery-migrator plugin for
 *    multi-column WPBakery rows moved into "Edytor sekcji" classic content.
 * 2. .vc_* / .wpb_* subset: a few templates and plugins still hard-code the
 *    WPBakery grid markup (header.php, 404.php, author.php, udi-tuz-damage,
 *    udi-insurances-for-agents). Values follow js_composer.css.
 * 3. Legacy sections ("tuz_legacy_html"): pages the migrator keeps as WPBakery
 *    markup 1:1 (calculators, plugin forms). Rules copied from js_composer.css
 *    so that the markup renders the same once js_composer is removed.
 *
 * Loaded before the theme's style.css (like js_composer.css was), so the theme's
 * overrides of .vc_* / .wpb_* rules keep their precedence.
 */

/* ---------- 1. migrated content grid ---------- */
.vcm-row {
	display: flex;
	flex-wrap: wrap;
	margin-left: -15px;
	margin-right: -15px;
}
.vcm-row > .vcm-col {
	box-sizing: border-box;
	flex: 0 0 100%;
	max-width: 100%;
	min-width: 0;
	padding-left: 15px;
	padding-right: 15px;
}
@media (min-width: 768px) {
	.vcm-row > .vcm-col-1-1  { flex-basis: 100%;      max-width: 100%; }
	.vcm-row > .vcm-col-1-2  { flex-basis: 50%;       max-width: 50%; }
	.vcm-row > .vcm-col-1-3  { flex-basis: 33.3333%;  max-width: 33.3333%; }
	.vcm-row > .vcm-col-2-3  { flex-basis: 66.6667%;  max-width: 66.6667%; }
	.vcm-row > .vcm-col-1-4  { flex-basis: 25%;       max-width: 25%; }
	.vcm-row > .vcm-col-3-4  { flex-basis: 75%;       max-width: 75%; }
	.vcm-row > .vcm-col-1-6  { flex-basis: 16.6667%;  max-width: 16.6667%; }
	.vcm-row > .vcm-col-5-6  { flex-basis: 83.3333%;  max-width: 83.3333%; }
	.vcm-row > .vcm-col-1-12 { flex-basis: 8.3333%;   max-width: 8.3333%; }
	.vcm-row > .vcm-col-5-12 { flex-basis: 41.6667%;  max-width: 41.6667%; }
	.vcm-row > .vcm-col-7-12 { flex-basis: 58.3333%;  max-width: 58.3333%; }
}
.vcm-image img { max-width: 100%; height: auto; }
.vcm-image-center { text-align: center; }
.vcm-image-right { text-align: right; }
.vcm-accordion h3 { margin-top: 25px; }

/* Old-design row wrappers (float based) inside a flexible section. */
.tuz_classic_content .about-content1,
.tuz_classic_content .kategoria1,
.tuz_classic_content .home6,
.tuz_classic_content .kontakt1,
.tuz_classic_content .strefabrokera {
	display: flow-root;
	float: none;
}

/* WPBakery responsive helpers still used as el_class on migrated elements. */
@media (max-width: 767px)                      { .vc_hidden-xs { display: none !important; } }
@media (min-width: 768px) and (max-width: 991px) { .vc_hidden-sm { display: none !important; } }
@media (min-width: 992px) and (max-width: 1199px) { .vc_hidden-md { display: none !important; } }
@media (min-width: 1200px)                     { .vc_hidden-lg { display: none !important; } }

/* ---------- 2. hard-coded WPBakery grid markup ---------- */
.vc_row {
	margin-left: -15px;
	margin-right: -15px;
}
.vc_row::before,
.vc_row::after {
	content: " ";
	display: table;
}
.vc_row::after { clear: both; }
.vc_row.vc_row-flex { display: flex; flex-wrap: wrap; }
.vc_column_container {
	float: left;
	min-height: 1px;
	padding-left: 0;
	padding-right: 0;
	position: relative;
	width: 100%;
}
.vc_column_container > .vc_column-inner {
	box-sizing: border-box;
	padding-left: 15px;
	padding-right: 15px;
	width: 100%;
}
.vc_row-has-fill > .vc_column_container > .vc_column-inner { padding-top: 35px; }
.wpb_content_element { margin-bottom: 35px; }
.wpb_wrapper::before,
.wpb_wrapper::after { content: " "; display: table; }
.wpb_wrapper::after { clear: both; }
@media (min-width: 768px) {
	.vc_col-sm-1  { width: 8.33333333%; }
	.vc_col-sm-2  { width: 16.66666667%; }
	.vc_col-sm-3  { width: 25%; }
	.vc_col-sm-4  { width: 33.33333333%; }
	.vc_col-sm-5  { width: 41.66666667%; }
	.vc_col-sm-6  { width: 50%; }
	.vc_col-sm-7  { width: 58.33333333%; }
	.vc_col-sm-8  { width: 66.66666667%; }
	.vc_col-sm-9  { width: 75%; }
	.vc_col-sm-10 { width: 83.33333333%; }
	.vc_col-sm-11 { width: 91.66666667%; }
	.vc_col-sm-12 { width: 100%; }
}

/* ---------- 3. legacy WPBakery markup (tuz_legacy_html sections) ---------- */
.wpb-content-wrapper { border: none; display: block; margin: 0; overflow: unset; padding: 0; }
.vc_clearfix::before,
.vc_clearfix::after { content: " "; display: table; }
.vc_clearfix::after,
.vc_el-clearfix { clear: both; }
.vc_column-inner::before,
.vc_column-inner::after { content: " "; display: table; }
.vc_column-inner::after { clear: both; }
.wpb_text_column :last-child,
.wpb_text_column p:last-child { margin-bottom: 0; }
.vc_row.vc_row-no-padding .vc_column-inner { padding-left: 0; padding-right: 0; }
/* flex rows (equal_height / content_placement) */
.vc_row.vc_row-flex { box-sizing: border-box; }
.vc_row.vc_row-flex > .vc_column_container { display: flex; }
.vc_row.vc_row-flex > .vc_column_container > .vc_column-inner { display: flex; flex-direction: column; flex-grow: 1; z-index: 1; }
.vc_row.vc_row-flex > .vc_column_container > .vc_column-inner > * { min-height: 1em; }
.vc_row.vc_row-flex::before,
.vc_row.vc_row-flex::after { display: none; }
.vc_row.vc_row-o-equal-height > .vc_column_container { align-items: stretch; }
.vc_row.vc_row-o-content-top > .vc_column_container > .vc_column-inner { justify-content: flex-start; }
.vc_row.vc_row-o-content-top:not(.vc_row-o-equal-height) > .vc_column_container { align-items: flex-start; }
.vc_row.vc_row-o-content-middle > .vc_column_container > .vc_column-inner { justify-content: center; }
.vc_row.vc_row-o-content-middle:not(.vc_row-o-equal-height) > .vc_column_container { align-items: center; }
.vc_row.vc_row-o-content-bottom > .vc_column_container > .vc_column-inner { justify-content: flex-end; }
.vc_row.vc_row-o-content-bottom:not(.vc_row-o-equal-height) > .vc_column_container { align-items: flex-end; }
/* single image */
.wpb_single_image img { height: auto; max-width: 100%; vertical-align: top; }
.wpb_single_image .vc_single_image-wrapper { display: inline-block; max-width: 100%; vertical-align: top; }
.wpb_single_image .vc_figure { display: inline-block; margin: 0; max-width: 100%; vertical-align: top; }
.wpb_single_image.vc_align_center { text-align: center; }
.wpb_single_image.vc_align_right { text-align: right; }
.wpb_single_image.vc_align_left { text-align: left; }
/* separator */
.vc_separator { align-items: center; display: flex; flex-direction: row; flex-wrap: nowrap; }
.vc_separator .vc_sep_holder { flex: 1 1 auto; height: 1px; min-width: 10%; position: relative; }
.vc_separator .vc_sep_holder .vc_sep_line { border-top: 1px solid #ebebeb; display: block; height: 1px; position: relative; top: 1px; width: 100%; }
.vc_separator.vc_separator_no_text .vc_sep_holder_l { width: 100%; }
.vc_separator.vc_separator_no_text .vc_sep_holder_r { display: none; }
/* full-width rows were stretched by js_composer_front.js; approximate it without the script */
.vc_row[data-vc-full-width]:not([data-vc-full-width-init="true"]) { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
