/* Produktų palyginimai – lankytojo palyginimas */

:root {
	--bbpc-c-accent: #2b2b2b;
	--bbpc-c-line: #e3e3e3;
	--bbpc-c-soft: #f6f6f5;
	--bbpc-c-muted: #6b6b6b;
	--bbpc-c-ease: cubic-bezier(.22, .72, .2, 1);
}

/* "Palyginti" button ---------------------------------------------------- */

button.bbpc-cmp-btn.bbpc-cmp-btn {
	all: unset;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 8px 0 0;
	padding: 6px 2px;
	color: inherit;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
	transition: color .15s;
}

button.bbpc-cmp-btn.bbpc-cmp-btn::before,
button.bbpc-cmp-btn.bbpc-cmp-btn::after {
	content: none !important;
	display: none !important;
}

button.bbpc-cmp-btn.bbpc-cmp-btn:hover .bbpc-cmp-btn__add,
button.bbpc-cmp-btn.bbpc-cmp-btn:hover .bbpc-cmp-btn__on {
	text-decoration: underline;
	text-underline-offset: 3px;
}

button.bbpc-cmp-btn.bbpc-cmp-btn:focus-visible {
	outline: 2px solid var(--bbpc-c-accent);
	outline-offset: 2px;
	border-radius: 2px;
}

.bbpc-cmp-btn--loop {
	width: 100%;
}

.bbpc-cmp-btn--single {
	margin: 12px 0 16px !important;
}

.bbpc-cmp-btn__icon,
.bbpc-cmp-btn__check {
	flex: none;
	display: block;
}

.bbpc-cmp-btn__check,
.bbpc-cmp-btn__on {
	display: none !important;
}

.bbpc-cmp-btn.is-on .bbpc-cmp-btn__icon,
.bbpc-cmp-btn.is-on .bbpc-cmp-btn__add {
	display: none !important;
}

.bbpc-cmp-btn.is-on .bbpc-cmp-btn__check,
.bbpc-cmp-btn.is-on .bbpc-cmp-btn__on {
	display: inline-block !important;
}

.bbpc-cmp-btn.is-on .bbpc-cmp-btn__check {
	padding: 2px;
	border-radius: 50%;
	background: var(--bbpc-c-accent);
	color: #fff;
	width: 18px;
	height: 18px;
}

.bbpc-cmp-btn.is-full {
	opacity: .55;
}

.bbpc-cmp-btn.is-pop .bbpc-cmp-btn__check {
	animation: bbpc-pop .35s var(--bbpc-c-ease);
}

@keyframes bbpc-pop {
	0% { transform: scale(.4); }
	70% { transform: scale(1.15); }
	100% { transform: scale(1); }
}

/* Menu link counter ---------------------------------------------------- */

.bbpc-compare-link .bbpc-count,
a.bbpc-compare-link .bbpc-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	margin-left: 5px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--bbpc-c-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	vertical-align: 1px;
}

.bbpc-compare-link .bbpc-count[hidden] {
	display: none;
}

/* Floating bar --------------------------------------------------------- */

.bbpc-cbar {
	position: fixed;
	left: 50%;
	bottom: calc(16px + var(--bbpc-c-bottom, 0px));
	z-index: 99990;
	width: min(980px, calc(100% - 32px));
	transform: translate(-50%, calc(100% + 40px));
	opacity: 0;
	color: #1f1f1f;
	font-size: 14px;
	line-height: 1.3;
	transition: transform .4s var(--bbpc-c-ease), opacity .3s ease;
}

.bbpc-cbar.is-visible {
	transform: translate(-50%, 0);
	opacity: 1;
}

.bbpc-cbar[hidden] {
	display: none;
}

.bbpc-cbar *,
.bbpc-cbar *::before,
.bbpc-cbar *::after {
	box-sizing: border-box;
}

.bbpc-cbar__in {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 10px 12px 10px 16px;
	border: 1px solid var(--bbpc-c-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 12px 40px -12px rgba(0, 0, 0, .28), 0 2px 6px rgba(0, 0, 0, .06);
	transition: padding .3s var(--bbpc-c-ease);
}

.bbpc-cbar button,
.bbpc-cbar a {
	-webkit-tap-highlight-color: transparent;
}

.bbpc-cbar .bbpc-cbar__toggle {
	all: unset;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: none;
	cursor: pointer;
	font-weight: 700;
	font-size: 14px;
	color: inherit;
}

.bbpc-cbar .bbpc-cbar__toggle:focus-visible {
	outline: 2px solid var(--bbpc-c-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

.bbpc-cbar__count {
	display: inline-flex;
	align-items: center;
	height: 22px;
	padding: 0 8px;
	border-radius: 11px;
	background: var(--bbpc-c-accent);
	color: #fff;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}

.bbpc-cbar__chev {
	display: inline-flex;
	color: var(--bbpc-c-muted);
	transform: rotate(180deg);
	transition: transform .3s var(--bbpc-c-ease);
}

.bbpc-cbar.is-min .bbpc-cbar__chev {
	transform: rotate(0);
}

.bbpc-cbar__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 16px;
	overflow: hidden;
	transition: opacity .25s ease;
}

.bbpc-cbar .bbpc-cbar__list {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 2px;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}

.bbpc-cbar__list::-webkit-scrollbar {
	display: none;
}

.bbpc-cbar .bbpc-cbar__item {
	position: relative;
	flex: none;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bbpc-cbar__item::before {
	content: none !important;
}

.bbpc-cbar .bbpc-cbar__thumb {
	display: block;
	width: 52px;
	height: 52px;
	border: 1px solid var(--bbpc-c-line);
	border-radius: 8px;
	background: var(--bbpc-c-soft);
	overflow: hidden;
}

.bbpc-cbar .bbpc-cbar__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.bbpc-cbar__item--empty .bbpc-cbar__thumb {
	border-style: dashed;
	background: transparent;
}

.bbpc-cbar__item.is-new .bbpc-cbar__thumb {
	animation: bbpc-in .45s var(--bbpc-c-ease);
}

@keyframes bbpc-in {
	0% { transform: translateY(12px) scale(.8); opacity: 0; }
	100% { transform: none; opacity: 1; }
}

.bbpc-cbar__name {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.bbpc-cbar .bbpc-cbar__x {
	all: unset;
	box-sizing: border-box;
	position: absolute;
	top: -6px;
	right: -6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--bbpc-c-line);
	color: #333;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}

.bbpc-cbar .bbpc-cbar__x:hover,
.bbpc-cbar .bbpc-cbar__x:focus-visible {
	background: var(--bbpc-c-accent);
	border-color: var(--bbpc-c-accent);
	color: #fff;
}

.bbpc-cbar__actions {
	flex: none;
	display: flex;
	align-items: center;
	gap: 12px;
}

.bbpc-cbar .bbpc-cbar__go {
	text-decoration: none !important;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 44px;
	padding: 0 20px;
	border: 1px solid var(--bbpc-c-accent);
	background: var(--bbpc-c-accent);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: background .15s, color .15s;
}

.bbpc-cbar .bbpc-cbar__go:hover {
	background: #fff;
	color: var(--bbpc-c-accent);
}

.bbpc-cbar .bbpc-cbar__go.is-weak {
	background: #fff;
	color: var(--bbpc-c-accent);
}

.bbpc-cbar .bbpc-cbar__clear {
	all: unset;
	cursor: pointer;
	color: var(--bbpc-c-muted);
	font-size: 13px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bbpc-cbar .bbpc-cbar__clear:hover {
	color: #000;
}

.bbpc-cbar__msg {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: calc(100% + 8px);
	padding: 10px 14px;
	border-radius: 10px;
	background: #1f1f1f;
	color: #fff;
	font-size: 13px;
	opacity: 0;
	transform: translateY(6px);
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease;
}

.bbpc-cbar.has-msg .bbpc-cbar__msg {
	opacity: 1;
	transform: none;
}

/* Minimised: only the pill with title + count */

.bbpc-cbar.is-min {
	width: auto;
}

.bbpc-cbar.is-min .bbpc-cbar__in {
	padding: 10px 14px;
	border-radius: 30px;
}

.bbpc-cbar.is-min .bbpc-cbar__body {
	display: none;
}

@media (max-width: 767px) {
	.bbpc-cbar {
		bottom: calc(10px + var(--bbpc-c-bottom-m, 0px));
		width: calc(100% - 16px);
	}

	.bbpc-cbar__in {
		flex-wrap: wrap;
		gap: 8px 10px;
		padding: 10px;
		border-radius: 12px;
	}

	.bbpc-cbar .bbpc-cbar__toggle {
		flex: 1 1 auto;
		font-size: 13px;
	}

	.bbpc-cbar__body {
		flex-basis: 100%;
		gap: 10px;
	}

	.bbpc-cbar .bbpc-cbar__thumb {
		width: 40px;
		height: 40px;
	}

	.bbpc-cbar__item--empty {
		display: none;
	}

	.bbpc-cbar__actions {
		gap: 10px;
	}

	.bbpc-cbar .bbpc-cbar__go {
		min-height: 40px;
		padding: 0 14px;
		font-size: 12px;
	}

	.bbpc-cbar.is-min {
		left: auto;
		right: 8px;
		width: auto;
		transform: none;
	}

	.bbpc-cbar.is-min .bbpc-cbar__toggle {
		flex: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bbpc-cbar,
	.bbpc-cbar *,
	.bbpc-cmp-btn * {
		transition: none !important;
		animation: none !important;
	}
}

html.bbpc-has-cbar body {
	padding-bottom: 96px;
}

@media (max-width: 767px) {
	html.bbpc-has-cbar body {
		padding-bottom: calc(130px + var(--bbpc-c-bottom-m, 0px));
	}
}

/* Compare page ----------------------------------------------------------- */

.bbpc-dyn-empty {
	padding: 32px 0;
}

.bbpc-dyn-empty.is-checking {
	visibility: hidden;
}
