/* BTM Oferty – wygląd odwzorowany z dotychczasowej siatki (WP Grid Builder). */
.btmo {
	--btmo-teal: #31abbc;
	--btmo-blue: #3c87ad;
	--btmo-pink: #f96876;
	--btmo-hover: #f4f6f9;
	color: #333;
	font-size: 16px;
	line-height: 1.5;
	width: 100%;
}
.btmo *, .btmo *::before, .btmo *::after { box-sizing: border-box; }
.btmo [hidden] { display: none !important; }
.btmo-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Filtry ---------- */
.btmo-filters { margin: 0 0 24px; }
.btmo-facets {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px 16px;
}
.btmo-facet { padding: 0 0 16px; min-width: 0; }
.btmo .btmo-facet-title {
	color: var(--btmo-teal);
	font-size: 20px;
	font-weight: 500;
	line-height: 24px;
	margin: 0 0 24px;
	padding: 0;
}

.btmo-select-wrap { position: relative; display: block; }
.btmo-select-wrap::after {
	content: "";
	position: absolute;
	right: 14px;
	top: 50%;
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--btmo-teal);
	border-bottom: 2px solid var(--btmo-teal);
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}
.btmo-select-wrap::before {
	content: "";
	position: absolute;
	right: 38px;
	top: 8px;
	bottom: 8px;
	width: 1px;
	background: transparent;
	pointer-events: none;
}
.btmo select {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	height: auto;
	min-height: 44px;
	margin: 0;
	padding: 8px 42px 8px 8px;
	border: 1px solid var(--btmo-teal);
	border-radius: 2px;
	background: #fff;
	color: #000;
	font: inherit;
	font-size: 16px;
	line-height: 26px;
	cursor: pointer;
	box-shadow: none;
}
.btmo select:focus { outline: 2px solid rgba(49, 171, 188, .35); outline-offset: 1px; }

.btmo-checks { list-style: none; margin: 0; padding: 0; }
.btmo-checks li { margin: 0 0 8px; padding: 0; }
.btmo-check { display: flex; align-items: center; cursor: pointer; position: relative; margin: 0; font-size: 16px; line-height: 20px; color: #333; }
.btmo-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.btmo-check-box {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	border: 1px solid var(--btmo-teal);
	border-radius: 2px;
	background: #fff;
	position: relative;
}
.btmo-check input:checked + .btmo-check-box { background: var(--btmo-teal); }
.btmo-check input:checked + .btmo-check-box::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 2px;
	width: 6px;
	height: 11px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.btmo-check input:focus-visible + .btmo-check-box { outline: 2px solid rgba(49, 171, 188, .5); outline-offset: 2px; }
.btmo-check-label { padding: 0 0 0 8px; flex: 1 1 auto; }
.btmo-count { color: var(--btmo-teal); margin-left: 8px; }
.btmo-check.is-disabled { opacity: .45; cursor: default; }

/* suwak powierzchni */
.btmo-range { padding: 0 8px; }
.btmo-range-track {
	position: relative;
	height: 4px;
	margin: 16px 0 16px;
	background: #e8e8e8;
	border-radius: 4px;
}
.btmo-range-progress {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: #000;
	border-radius: 4px;
}
.btmo-range-in {
	-webkit-appearance: none;
	appearance: none;
	position: absolute;
	left: -8px;
	right: -8px;
	top: -8px;
	width: calc(100% + 16px);
	height: 20px;
	margin: 0;
	padding: 0;
	background: transparent;
	pointer-events: none;
	border: 0;
	outline: none;
}
.btmo-range-in::-webkit-slider-runnable-track { background: transparent; height: 20px; border: 0; }
.btmo-range-in::-moz-range-track { background: transparent; height: 20px; border: 0; }
.btmo-range-in::-webkit-slider-thumb {
	-webkit-appearance: none;
	pointer-events: auto;
	width: 16px;
	height: 16px;
	margin-top: 2px;
	border: 2px solid #000;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
}
.btmo-range-in::-moz-range-thumb {
	pointer-events: auto;
	width: 12px;
	height: 12px;
	border: 2px solid #000;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
}
.btmo-range-in:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(49, 171, 188, .4); }
.btmo-range-foot { display: flex; align-items: center; justify-content: space-between; margin: 0 -8px; }
.btmo-range-label { font-size: 14px; color: #333; }
.btmo .btmo-range-reset {
	background: #eee;
	border: 0;
	border-radius: 2px;
	color: #999;
	font: inherit;
	font-size: 13px;
	line-height: 1;
	padding: 6px 8px;
	cursor: pointer;
}
.btmo .btmo-range-reset:hover { background: #e2e2e2; color: #555; }

.btmo-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 8px;
}
.btmo .btmo-reset {
	background: var(--btmo-pink);
	color: #fff;
	border: 0;
	border-radius: 2px;
	padding: 12px 36px;
	font: inherit;
	font-size: 18px;
	font-weight: 500;
	line-height: 20px;
	cursor: pointer;
	transition: opacity .15s;
}
.btmo .btmo-reset:disabled { opacity: .6; cursor: default; }
.btmo .btmo-reset:not(:disabled):hover { opacity: .9; }
.btmo-sort { flex: 0 1 440px; margin: 0; }

/* ---------- Lista / karta ---------- */
.btmo-list { display: flex; flex-direction: column; gap: 16px; }
.btmo-card {
	display: flex;
	align-items: stretch;
	min-height: 208px;
	background: transparent;
	margin: 0;
}
.btmo-card-media {
	flex: 0 0 23.6%;
	max-width: 23.6%;
	position: relative;
	overflow: hidden;
	background: #fff;
}
.btmo-card-media a { display: block; position: absolute; inset: 0; }
.btmo-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 50%;
	transition: transform .3s;
}
.btmo-card-media a:hover img { transform: scale(1.03); }

.btmo-card-body {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	transition: background-color .2s;
}
.btmo-card:hover .btmo-card-body { background: var(--btmo-hover); }
.btmo .btmo-card-title {
	margin: 0;
	padding: 0;
	font-size: 30px;
	font-weight: 700;
	line-height: 42px;
	color: #000;
}
.btmo .btmo-card-title a { color: inherit; text-decoration: none; }
.btmo .btmo-card-title a:hover { color: var(--btmo-teal); }
.btmo-card-terms {
	color: var(--btmo-teal);
	font-size: 11px;
	line-height: 14px;
	margin-top: -6px;
}

.btmo-features {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	padding-bottom: 8px;
}
.btmo-feature { display: flex; gap: 10px; color: var(--btmo-teal); line-height: 22.4px; min-width: 0; }
.btmo-feature i { font-size: 18px; line-height: 18px; margin-top: 2px; width: 18px; text-align: center; flex: 0 0 auto; }
.btmo-feature-label { color: var(--btmo-teal); }
.btmo-feature-value { color: #000; }
.btmo-feature-value sup { font-size: 10px; line-height: 0; }

.btmo-card-side {
	flex: 0 0 261px;
	align-self: flex-start;
	background: var(--btmo-teal);
	color: #fff;
	padding: 20px;
}
.btmo-price { color: #000; font-size: 30px; font-weight: 700; line-height: 42px; text-align: right; }
.btmo-price-date-label,
.btmo-price-date { color: #000; font-size: 10px; text-align: right; }
.btmo-price-date-label { line-height: 10px; }
.btmo-price-date { line-height: 14px; }
.btmo-files { margin: 12px 0 0; color: #000; line-height: 22.4px; }
.btmo-files i { margin-right: 6px; }
.btmo .btmo-files a { color: #000; text-decoration: none; }
.btmo .btmo-files a:hover { text-decoration: underline; }
.btmo .btmo-more {
	display: block;
	margin-top: 8px;
	background: var(--btmo-blue);
	color: #fff;
	text-align: center;
	padding: 12.8px 24px;
	line-height: 22.4px;
	text-decoration: none;
	transition: background-color .15s;
}
.btmo .btmo-more:hover { background: #326f8f; color: #fff; }

.btmo-empty { padding: 24px 0; margin: 0; color: #555; font-size: 18px; }

/* ---------- Lightbox ---------- */
.btmo-lb {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0, 0, 0, .88);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	cursor: zoom-out;
}
.btmo-lb img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: default; box-shadow: 0 10px 40px rgba(0, 0, 0, .4); }
.btmo-lb-close {
	position: absolute;
	top: 12px;
	right: 18px;
	background: none;
	border: 0;
	color: #fff;
	font-size: 42px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 10px;
}

/* ---------- Responsywność ---------- */
@media (max-width: 1024px) {
	.btmo-facets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.btmo-card { flex-wrap: wrap; }
	.btmo-card-media { flex: 0 0 30%; max-width: 30%; min-height: 200px; }
	.btmo-card-body { flex: 1 1 70%; padding-bottom: 16px; }
	.btmo-card-side { flex: 1 1 100%; align-self: stretch; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: end; }
	.btmo-card-side .btmo-price,
	.btmo-card-side .btmo-price-date-label,
	.btmo-card-side .btmo-price-date { grid-column: 2; }
	.btmo-card-side .btmo-files { grid-column: 1; grid-row: 1 / span 3; align-self: center; margin: 0; }
	.btmo-card-side .btmo-more { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
	.btmo-facets { grid-template-columns: 1fr; gap: 0; }
	.btmo .btmo-facet-title { font-size: 18px; margin-bottom: 12px; }
	.btmo-toolbar { flex-direction: column-reverse; align-items: stretch; }
	.btmo-sort { flex: 1 1 auto; }
	.btmo-card { flex-direction: column; }
	.btmo-card-media { flex: 0 0 auto; max-width: none; height: 220px; min-height: 0; }
	.btmo-card-body { padding: 16px 12px; }
	.btmo .btmo-card-title { font-size: 24px; line-height: 32px; }
	.btmo-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.btmo-card-side { display: block; }
	.btmo-card-side .btmo-files { margin-top: 12px; }
}
