.mpb-compare-button {
	margin-top: 0;
	display: flex;
	gap: 0.75rem;
	width: 100%;
}

.mpb-compare-button--left {
	justify-content: flex-start;
}

.mpb-compare-button--center {
	justify-content: center;
}

.mpb-compare-button--right {
	justify-content: flex-end;
}

.mpb-compare-button--block,
.mpb-compare-button--block .jet-compare-button__link {
	width: 100%;
}

.mpb-compare-button .jet-compare-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0.65rem 1.5rem;
	border-radius: 0 0 0 10px;
	background: #ecac1b;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	transition: none;
}

@media (max-width: 767px) {
	body.single-mieszkanie-listing .mpb-compare-button .jet-compare-button__link {
		white-space: normal;
		text-align: center;
		max-width: 100%;
	}

	html[lang^="pl"] body.single-mieszkanie-listing .mpb-compare-button {
		min-width: 0;
		max-width: 100%;
	}

	html[lang^="pl"] body.single-mieszkanie-listing .mpb-compare-button .jet-compare-button__container {
		min-width: 0;
		max-width: 100%;
		width: 100%;
	}

	html[lang^="pl"] body.single-mieszkanie-listing .mpb-compare-button .jet-compare-button__link {
		min-width: 0;
		max-width: 100%;
		width: 100%;
		height: 44px;
		min-height: 44px;
		padding: 0 0.75rem;
		align-items: center;
		box-sizing: border-box;
		position: relative;
		z-index: 3;
		pointer-events: auto;
	}

	html[lang^="pl"] body.single-mieszkanie-listing .mpb-compare-button .jet-compare-button__state,
	html[lang^="pl"] body.single-mieszkanie-listing .mpb-compare-button .jet-compare-button__label {
		min-width: 0;
		max-width: 100%;
		white-space: normal;
		overflow-wrap: anywhere;
		word-break: break-word;
		line-height: 1.15;
		font-size: 14px;
	}

	html[lang^="pl"] body.single-mieszkanie-listing .mpb-compare-button .jet-compare-button__state {
		height: 44px;
		min-height: 44px;
		align-items: center;
		pointer-events: none;
	}

	html[lang^="pl"] body.single-mieszkanie-listing .mpb-compare-button .jet-compare-button__label {
		pointer-events: none;
	}
}

body.single-mieszkanie-listing .mpb-compare-button .jet-compare-button__link {
	min-height: 27px;
}

.mpb-compare-button .jet-compare-button__link:hover {
	background: #ecac1b !important;
	color: #fff !important;
	transform: none;
	box-shadow: none;
}

.mpb-compare-button .jet-compare-button__link.added-to-compare {
	background: #ecac1b;
}

.mpb-compare-button .jet-compare-button__plane {
	display: none !important;
}

.mpb-compare-button .jet-compare-button__state {
	display: none;
}

.mpb-compare-button .jet-compare-button__state.jet-compare-button__state-normal,
.mpb-compare-button .jet-compare-button__link.added-to-compare .jet-compare-button__state-added {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
}

.mpb-compare-button .jet-compare-button__link.added-to-compare .jet-compare-button__state-normal {
	display: none;
}

.mpb-compare-pdf-button {
	margin-top: 0;
	display: flex;
	gap: 0.75rem;
	width: 100%;
}

.mpb-compare-pdf-button--left {
	justify-content: flex-start;
}

.mpb-compare-pdf-button--center {
	justify-content: center;
}

.mpb-compare-pdf-button--right {
	justify-content: flex-end;
}

.mpb-compare-pdf-button--block,
.mpb-compare-pdf-button--block .mpb-compare-pdf-button__link {
	width: 100%;
}

.mpb-compare-pdf-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0.65rem 1.5rem;
	border-radius: 10px;
	background: #ECAC1B;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.mpb-compare-pdf-button__link:hover {
	background: #ECAC1B !important;
	color: #fff !important;
}

.mpb-compare-pdf-button__link.is-disabled {
	opacity: 0.55;
	pointer-events: none;
}

.mpb-compare-table {
	position: relative;
	min-height: 160px;
}

.mpb-compare-table__empty {
	min-height: 40px;
}

.mpb-compare-table--loading::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(2px);
	z-index: 5;
}

.mpb-compare-grid {
	--mpb-compare-gap: 32px;
	--mpb-compare-cols: 1;
	display: grid;
	grid-template-columns: repeat(var(--mpb-compare-cols), minmax(0, 1fr));
	gap: var(--mpb-compare-gap);
	align-items: start;
}

@media (min-width: 992px) {
	.mpb-compare-grid {
		grid-template-columns: repeat(var(--mpb-compare-cols), minmax(0, 1fr));
	}
}

@media (max-width: 991px) {
	.mpb-compare-grid {
		grid-template-columns: 1fr;
	}
}

.mpb-compare-grid > * {
	min-width: 0;
	width: 100%;
}

.mpb-compare-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 0 8px 16px;
}

.mpb-compare-card__header {
	display: flex;
	flex-direction: column;
	gap: 12px;
	position: relative;
}

.mpb-compare-card__body {
	min-height: 64px;
}

.mpb-compare-card__remove {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 34px;
	height: 34px;
	border-radius: 0;
	border: 1px solid #000 !important;
	padding: 0;
	background: #000 !important;
	color: #fff !important;
	cursor: pointer;
	z-index: 2;
	font-size: 22px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: none !important;
}

.mpb-compare-card__remove:hover {
	background: #000 !important;
}

.mpb-compare-card__remove span[aria-hidden="true"] {
	display: block;
	line-height: 1;
}

/* Also enforce styling for remove buttons rendered by JetCompare templates inside our compare popup. */
.mpb-compare-table .jet-compare-item-remove-button {
	background: #000 !important;
	border: 1px solid #000 !important;
	color: #fff !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.mpb-compare-trigger.is-in-compare,
.mpb-compare-trigger.is-in-compare .elementor-icon,
.mpb-compare-trigger.is-in-compare svg {
	color: #ecac1b !important;
	fill: #ecac1b !important;
	stroke: #ecac1b !important;
}

.mpb-compare-trigger,
.mpb-compare-trigger * {
	cursor: pointer !important;
}

.mpb-compare-trigger {
	pointer-events: auto !important;
}

.mpb-compare-trigger * {
	cursor: pointer !important;
}

.mpb-compare-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.95);
	text-decoration: none;
}

.mpb-compare-icon:hover {
	color: #ecac1b;
}

.mpb-compare-icon.is-loading {
	opacity: 0.65;
	pointer-events: none;
}

.mpb-compare-icon__svg {
	width: 20px;
	height: 20px;
	display: block;
	background-color: currentColor;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5.95145%203.27565C5.95145%203.98528%205.66955%204.66585%205.16776%205.16764C4.66598%205.66943%203.98541%205.95133%203.27577%205.95133C2.56614%205.95133%201.88557%205.66943%201.38378%205.16764C0.881998%204.66585%200.600098%203.98528%200.600098%203.27565C0.600098%202.56602%200.881998%201.88545%201.38378%201.38366C1.88557%200.881876%202.56614%200.599976%203.27577%200.599976C3.98541%200.599976%204.66598%200.881876%205.16776%201.38366C5.66955%201.88545%205.95145%202.56602%205.95145%203.27565ZM18.6001%2015.9243C18.6001%2016.6339%2018.3182%2017.3145%2017.8164%2017.8163C17.3146%2018.3181%2016.6341%2018.6%2015.9244%2018.6C15.2148%2018.6%2014.5342%2018.3181%2014.0324%2017.8163C13.5306%2017.3145%2013.2487%2016.6339%2013.2487%2015.9243C13.2487%2015.2147%2013.5306%2014.5341%2014.0324%2014.0323C14.5342%2013.5305%2015.2148%2013.2486%2015.9244%2013.2486C16.6341%2013.2486%2017.3146%2013.5305%2017.8164%2014.0323C18.3182%2014.5341%2018.6001%2015.2147%2018.6001%2015.9243Z%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.2%22%20stroke-miterlimit%3D%2210%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M3.27588%205.95137V13.0054C3.27588%2013.7796%203.58341%2014.522%204.13081%2015.0694C4.67821%2015.6168%205.42065%2015.9243%206.1948%2015.9243H10.4136M10.4136%2015.9243C10.4136%2015.6663%2010.311%2015.4189%2010.1285%2015.2365L8.38399%2013.4919M10.4136%2015.9243C10.4136%2016.1824%2010.311%2016.4298%2010.1285%2016.6122L8.38399%2018.3568M15.9245%2013.2487V6.19461C15.9245%205.42047%2015.617%204.67803%2015.0696%204.13063C14.5222%203.58322%2013.7798%203.27569%2013.0056%203.27569H8.7868M8.7868%203.27569C8.78685%203.53372%208.8894%203.78116%209.07188%203.96359L10.8164%205.70813M8.7868%203.27569C8.78685%203.01767%208.8894%202.77023%209.07188%202.5878L10.8164%200.843262%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.2%22%20stroke-miterlimit%3D%2210%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5.95145%203.27565C5.95145%203.98528%205.66955%204.66585%205.16776%205.16764C4.66598%205.66943%203.98541%205.95133%203.27577%205.95133C2.56614%205.95133%201.88557%205.66943%201.38378%205.16764C0.881998%204.66585%200.600098%203.98528%200.600098%203.27565C0.600098%202.56602%200.881998%201.88545%201.38378%201.38366C1.88557%200.881876%202.56614%200.599976%203.27577%200.599976C3.98541%200.599976%204.66598%200.881876%205.16776%201.38366C5.66955%201.88545%205.95145%202.56602%205.95145%203.27565ZM18.6001%2015.9243C18.6001%2016.6339%2018.3182%2017.3145%2017.8164%2017.8163C17.3146%2018.3181%2016.6341%2018.6%2015.9244%2018.6C15.2148%2018.6%2014.5342%2018.3181%2014.0324%2017.8163C13.5306%2017.3145%2013.2487%2016.6339%2013.2487%2015.9243C13.2487%2015.2147%2013.5306%2014.5341%2014.0324%2014.0323C14.5342%2013.5305%2015.2148%2013.2486%2015.9244%2013.2486C16.6341%2013.2486%2017.3146%2013.5305%2017.8164%2014.0323C18.3182%2014.5341%2018.6001%2015.2147%2018.6001%2015.9243Z%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.2%22%20stroke-miterlimit%3D%2210%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M3.27588%205.95137V13.0054C3.27588%2013.7796%203.58341%2014.522%204.13081%2015.0694C4.67821%2015.6168%205.42065%2015.9243%206.1948%2015.9243H10.4136M10.4136%2015.9243C10.4136%2015.6663%2010.311%2015.4189%2010.1285%2015.2365L8.38399%2013.4919M10.4136%2015.9243C10.4136%2016.1824%2010.311%2016.4298%2010.1285%2016.6122L8.38399%2018.3568M15.9245%2013.2487V6.19461C15.9245%205.42047%2015.617%204.67803%2015.0696%204.13063C14.5222%203.58322%2013.7798%203.27569%2013.0056%203.27569H8.7868M8.7868%203.27569C8.78685%203.53372%208.8894%203.78116%209.07188%203.96359L10.8164%205.70813M8.7868%203.27569C8.78685%203.01767%208.8894%202.77023%209.07188%202.5878L10.8164%200.843262%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.2%22%20stroke-miterlimit%3D%2210%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-position: center;
	mask-position: center;
}

.mpb-compare-icon.is-in-compare {
	color: #ecac1b !important;
}

.mpb-compare-card__thumb {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	height: 190px;
	background: #f5f5f5;
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
	border: 4px solid #fff;
}

.mpb-compare-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mpb-compare-card__thumb-placeholder {
	position: absolute;
	inset: 0;
	background: #ececec;
}

.mpb-compare-card__price {
	position: absolute;
	left: 16px;
	bottom: 16px;
	background: rgba(0, 0, 0, 0.75);
	color: #fff;
	padding: 6px 16px;
	border-radius: 4px;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.02em;
}

.mpb-compare-card__title {
	font-size: 18px;
	font-weight: 600;
	margin: 18px 8px 4px;
	line-height: 1.25;
	display: block !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	-webkit-line-clamp: unset !important;
	-webkit-box-orient: unset !important;
	max-width: 100%;
}

.mpb-compare-card__divider {
	display: block;
	width: calc(100% - 16px);
	height: 4px;
	background: #f3b71c;
	margin: 16px 8px 12px;
	border-radius: 999px;
}

.mpb-compare-card__meta {
	margin-top: 0;
	display: grid;
	grid-template-rows: repeat(var(--mpb-compare-rows, 6), minmax(56px, auto));
	gap: 16px;
	padding: 18px;
	border-radius: 14px;
	background: #f8f8f8;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.mpb-compare-card__meta-item {
	font-weight: 600;
	color: #1a1a1a;
}

.mpb-compare-card__value {
	width: 100%;
	text-align: left;
}
