/* Produktų parinkimas ---------------------------------------------------- */

.bbpq,
.bbpq-promo,
.bbpq-page {
	--bbpq-accent: #2b2b2b;
	--bbpq-line: #e6e6e6;
	--bbpq-soft: #f6f6f5;
	--bbpq-muted: #6b6b6b;
	--bbpq-radius: 12px;
}

.bbpq-page__inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 28px 16px 56px;
}

.bbpq-page__title {
	margin: 0 0 6px;
}

.bbpq-page__lead {
	color: var(--bbpq-muted);
	font-size: 17px;
	margin: 0 0 18px;
	max-width: 70ch;
}

.bbpq-text {
	max-width: 74ch;
	margin: 36px 0 0;
	color: var(--bbpq-muted);
}

/* Buttons ---------------------------------------------------------------- */

.bbpq-btn.bbpq-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 46px;
	padding: 11px 22px;
	border: 1px solid var(--bbpq-accent);
	border-radius: 8px;
	background: #fff;
	color: var(--bbpq-accent);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	box-shadow: none;
	transition: background .15s, color .15s;
}

.bbpq-btn.bbpq-btn--primary {
	background: var(--bbpq-accent);
	color: #fff;
}

.bbpq-btn.bbpq-btn--primary:hover {
	background: #fff;
	color: var(--bbpq-accent);
}

.bbpq-btn.bbpq-btn--ghost:hover {
	background: var(--bbpq-accent);
	color: #fff;
}

.bbpq-btn.bbpq-btn.loading {
	opacity: .6;
}

.bbpq .added_to_cart {
	display: block;
	font-size: 12px;
	text-align: center;
}

/* Shell ------------------------------------------------------------------ */

.bbpq {
	margin: 24px 0 0;
}

.bbpq__progress {
	height: 4px;
	border-radius: 4px;
	background: var(--bbpq-soft);
	overflow: hidden;
	margin-bottom: 26px;
}

.bbpq__progress span {
	display: block;
	height: 100%;
	width: 0;
	background: var(--bbpq-accent);
	transition: width .25s ease;
}

.bbpq__loading {
	padding: 60px 0;
	text-align: center;
	color: var(--bbpq-muted);
}

.bbpq__title {
	margin: 0 0 8px;
	font-size: 28px;
	line-height: 1.2;
}

.bbpq__help {
	margin: 0 0 18px;
	color: var(--bbpq-muted);
	font-size: 15px;
}

.bbpq__step {
	margin-bottom: 10px;
	color: var(--bbpq-muted);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.bbpq__crumb {
	all: unset;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Branch tiles ------------------------------------------------------------ */

.bbpq__tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 14px;
	margin-top: 18px;
}

.bbpq__tile {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	padding: 20px;
	border: 1px solid var(--bbpq-line);
	border-radius: var(--bbpq-radius);
	background: #fff;
	color: inherit;
	font: inherit;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}

.bbpq__tile:hover {
	border-color: var(--bbpq-accent);
	box-shadow: 0 6px 20px rgba(0, 0, 0, .07);
	transform: translateY(-2px);
}

.bbpq__tile img {
	width: 100%;
	height: 120px;
	object-fit: contain;
	margin-bottom: 8px;
	mix-blend-mode: multiply;
}

.bbpq__tile strong {
	font-size: 17px;
}

.bbpq__tile small {
	color: var(--bbpq-muted);
	font-size: 13px;
}

/* Answers ----------------------------------------------------------------- */

.bbpq__answers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 12px;
	margin: 18px 0 24px;
}

.bbpq__a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 18px;
	border: 1px solid var(--bbpq-line);
	border-radius: var(--bbpq-radius);
	background: #fff;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}

.bbpq__a:hover {
	border-color: var(--bbpq-accent);
}

.bbpq__a.is-on {
	border-color: var(--bbpq-accent);
	background: var(--bbpq-soft);
	box-shadow: inset 0 0 0 1px var(--bbpq-accent);
}

.bbpq__a-check {
	flex: none;
	width: 20px;
	height: 20px;
	border: 1px solid #c9c9c9;
	border-radius: 50%;
	background: #fff;
	position: relative;
}

.bbpq__answers.is-multi .bbpq__a-check {
	border-radius: 5px;
}

.bbpq__a.is-on .bbpq__a-check {
	border-color: var(--bbpq-accent);
	background: var(--bbpq-accent);
}

.bbpq__a.is-on .bbpq__a-check::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.bbpq__a-text {
	display: block;
	min-width: 0;
}

.bbpq__a-text strong {
	display: block;
	font-size: 16px;
	font-weight: 600;
}

.bbpq__a-text small {
	display: block;
	margin-top: 2px;
	color: var(--bbpq-muted);
	font-size: 13px;
}

.bbpq__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.bbpq__nav-right {
	display: flex;
	align-items: center;
	gap: 14px;
}

.bbpq__back,
.bbpq__skip,
.bbpq__restart {
	all: unset;
	color: var(--bbpq-muted);
	cursor: pointer;
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bbpq__back:hover,
.bbpq__skip:hover,
.bbpq__restart:hover {
	color: var(--bbpq-accent);
}

/* Results ----------------------------------------------------------------- */

.bbpq__none {
	padding: 14px 16px;
	border-left: 3px solid var(--bbpq-accent);
	background: var(--bbpq-soft);
	color: var(--bbpq-muted);
	font-size: 15px;
}

.bbpq__cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
	margin: 20px 0 22px;
}

.bbpq__card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 18px;
	border: 1px solid var(--bbpq-line);
	border-radius: var(--bbpq-radius);
	background: #fff;
}

.bbpq__card.is-best {
	border-color: var(--bbpq-accent);
	box-shadow: 0 8px 26px rgba(0, 0, 0, .08);
}

.bbpq__rank {
	position: absolute;
	top: 12px;
	left: 12px;
	width: 26px;
	height: 26px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--bbpq-accent);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}

.bbpq__media {
	display: block;
	aspect-ratio: 4 / 3;
	margin-bottom: 12px;
}

.bbpq__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.bbpq__info {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.bbpq__name {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: inherit;
	text-decoration: none;
}

.bbpq__name:hover {
	text-decoration: underline;
}

.bbpq__match {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.bbpq__bar {
	display: block;
	height: 6px;
	border-radius: 6px;
	background: var(--bbpq-soft);
	overflow: hidden;
}

.bbpq__bar i {
	display: block;
	height: 100%;
	background: var(--bbpq-accent);
}

.bbpq__match em {
	font-style: normal;
	font-size: 13px;
	color: var(--bbpq-muted);
}

.bbpq__price {
	font-size: 18px;
	font-weight: 700;
}

.bbpq__price del {
	opacity: .5;
	font-weight: 400;
	font-size: 15px;
}

.bbpq__why {
	font-size: 13px;
	color: var(--bbpq-muted);
}

.bbpq__why strong {
	display: block;
	color: inherit;
	margin-bottom: 2px;
}

.bbpq__why ul {
	margin: 0;
	padding-left: 18px;
	list-style: disc;
}

.bbpq__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
	padding-top: 6px;
}

.bbpq__buttons > * {
	flex: 1 1 120px;
}

.bbpq__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin-bottom: 8px;
}

/* Specification table ------------------------------------------------------ */

.bbpq-specs {
	margin: 30px 0 0;
	border: 1px solid var(--bbpq-line);
	border-radius: var(--bbpq-radius);
	overflow: hidden;
}

.bbpq-specs__title {
	margin: 0;
	padding: 14px 18px;
	border-bottom: 1px solid var(--bbpq-line);
	background: var(--bbpq-soft);
	font-size: 16px;
}

.bbpq-specs__wrap {
	overflow-x: auto;
}

.bbpq-specs__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.bbpq-specs__table th,
.bbpq-specs__table td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--bbpq-line);
	text-align: left;
	vertical-align: top;
}

.bbpq-specs__table thead th {
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

.bbpq-specs__table tbody th {
	width: 30%;
	min-width: 150px;
	font-weight: 600;
	color: var(--bbpq-muted);
}

.bbpq-specs:not(.is-expanded) .bbpq-specs__table tr.is-extra {
	display: none;
}

.bbpq-specs__more {
	display: flex;
	justify-content: center;
	padding: 12px;
}

.bbpq-more__btn {
	all: unset;
	padding: 8px 18px;
	border: 1px solid var(--bbpq-line);
	border-radius: 24px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.bbpq-more__btn:hover {
	border-color: var(--bbpq-accent);
	background: var(--bbpq-soft);
}

.bbpq-more__btn span {
	color: var(--bbpq-muted);
	font-weight: 400;
}

/* CTA ---------------------------------------------------------------------- */

.bbpq-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin: 26px 0 0;
	padding: 26px 30px;
	border: 1px solid var(--bbpq-line);
	border-radius: var(--bbpq-radius);
	background: var(--bbpq-soft);
}

.bbpq-cta__text {
	flex: 1 1 360px;
	min-width: 0;
}

.bbpq-cta__title {
	margin: 0 0 6px;
	font-size: 21px;
}

.bbpq-cta__desc {
	color: var(--bbpq-muted);
	font-size: 15px;
}

.bbpq-cta__desc > :last-child {
	margin-bottom: 0;
}

.bbpq-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.bbpq-cta__actions .bbpq-btn {
	min-width: 190px;
}

/* Lead form ---------------------------------------------------------------- */

.bbpq-lead {
	margin: 18px 0 0;
	padding: 20px 22px;
	border: 1px dashed var(--bbpq-line);
	border-radius: var(--bbpq-radius);
}

.bbpq-lead__text strong {
	display: block;
	font-size: 16px;
}

.bbpq-lead__text span {
	display: block;
	margin-top: 2px;
	color: var(--bbpq-muted);
	font-size: 14px;
}

.bbpq-lead__row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 12px 0 8px;
}

.bbpq-lead__row input {
	flex: 1 1 200px;
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid var(--bbpq-line);
	border-radius: 8px;
	font: inherit;
}

.bbpq-lead__row .bbpq-btn {
	flex: 0 0 auto;
}

.bbpq-lead__consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	color: var(--bbpq-muted);
	font-size: 13px;
}

.bbpq-lead__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.bbpq-lead__msg {
	margin: 10px 0 0;
	font-size: 14px;
	font-weight: 600;
}

.bbpq-lead.is-sent .bbpq-lead__row,
.bbpq-lead.is-sent .bbpq-lead__consent {
	display: none;
}

/* Catalogue block ---------------------------------------------------------- */

.bbpq-promo {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 24px;
	margin: 0 0 24px;
	padding: 16px 20px;
	border: 1px solid var(--bbpq-line);
	border-left: 4px solid var(--bbpq-accent);
	border-radius: 8px;
	background: #fff;
}

.bbpq-promo__text {
	flex: 1 1 320px;
	min-width: 0;
}

.bbpq-promo__title {
	display: block;
	font-size: 16px;
	line-height: 1.3;
}

.bbpq-promo__desc {
	display: block;
	margin-top: 2px;
	color: var(--bbpq-muted);
	font-size: 14px;
}

.bbpq-promo .bbpq-btn {
	flex: none;
	min-width: 200px;
}

@media (max-width: 767px) {
	.bbpq__title {
		font-size: 22px;
	}

	.bbpq__answers,
	.bbpq__tiles {
		grid-template-columns: 1fr;
	}

	.bbpq__tile img {
		height: 90px;
	}

	.bbpq-cta {
		padding: 20px;
	}

	.bbpq-cta__actions,
	.bbpq-cta__actions .bbpq-btn,
	.bbpq-promo .bbpq-btn,
	.bbpq-lead__row .bbpq-btn {
		width: 100%;
	}

	.bbpq__actions {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}
}

.bbpq__hint {
	display: inline-block;
	margin: 0 0 14px;
	padding: 4px 10px;
	border-radius: 20px;
	background: var(--bbpq-soft);
	color: var(--bbpq-muted);
	font-size: 13px;
}

/* Counters ---------------------------------------------------------------- */

.bbpq__count {
	margin-left: 10px;
	padding: 2px 10px;
	border-radius: 20px;
	background: var(--bbpq-soft);
	color: var(--bbpq-muted);
	font-size: 12px;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
}

.bbpq__count.is-warn {
	background: #fdf3e2;
	color: #8a5a00;
}

.bbpq__tile-n {
	margin-top: 6px;
	padding: 2px 9px;
	border-radius: 20px;
	background: var(--bbpq-soft);
	color: var(--bbpq-muted);
	font-size: 12px;
}

.bbpq__tile.is-empty {
	opacity: .55;
}

@media (max-width: 600px) {
	.bbpq__step {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 4px 6px;
	}

	.bbpq__count {
		margin-left: 0;
	}
}

.bbpq__checked {
	opacity: .75;
	font-size: 12px;
}

/* Answers summary ---------------------------------------------------------- */

.bbpq-sum {
	margin: 26px 0 0;
	padding: 18px 20px;
	border: 1px solid var(--bbpq-line);
	border-radius: var(--bbpq-radius);
	background: #fff;
}

.bbpq-sum__title {
	margin: 0 0 10px;
	font-size: 16px;
}

.bbpq-sum__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.bbpq-sum__table th,
.bbpq-sum__table td {
	padding: 8px 10px 8px 0;
	border-bottom: 1px solid var(--bbpq-line);
	text-align: left;
	vertical-align: top;
}

.bbpq-sum__table tr:last-child th,
.bbpq-sum__table tr:last-child td {
	border-bottom: 0;
}

.bbpq-sum__table th {
	width: 45%;
	font-weight: 600;
	color: var(--bbpq-muted);
}

.bbpq-sum__table td i {
	color: var(--bbpq-muted);
	font-style: normal;
	opacity: .8;
}

.bbpq-sum__edit {
	width: 1%;
	white-space: nowrap;
	text-align: right;
	padding-right: 0;
}

.bbpq-sum__edit button {
	all: unset;
	cursor: pointer;
	font-size: 13px;
	color: var(--bbpq-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bbpq-sum__edit button:hover {
	color: var(--bbpq-accent);
}

.bbpq-sum__note {
	margin: 10px 0 0;
	color: var(--bbpq-muted);
	font-size: 13px;
}

@media (max-width: 600px) {
	.bbpq-sum__table th {
		width: auto;
	}

	.bbpq-sum__table,
	.bbpq-sum__table tbody,
	.bbpq-sum__table tr {
		display: block;
	}

	.bbpq-sum__table tr {
		position: relative;
		padding: 8px 0;
		border-bottom: 1px solid var(--bbpq-line);
	}

	.bbpq-sum__table th,
	.bbpq-sum__table td {
		display: block;
		border: 0;
		padding: 0;
	}

	.bbpq-sum__table th {
		font-size: 13px;
	}

	.bbpq-sum__edit {
		position: absolute;
		right: 0;
		top: 8px;
		width: auto;
	}
}

/* Result cards: horizontal strip ------------------------------------------- */

.bbpq__strip {
	position: relative;
	margin: 20px 0 16px;
}

.bbpq__cards {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding: 0 8px;
	padding: 4px 2px 12px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.bbpq__cards .bbpq__card {
	flex: 0 0 300px;
	scroll-snap-align: start;
}

.bbpq__arrow {
	position: absolute;
	top: 40%;
	z-index: 2;
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border: 1px solid var(--bbpq-line);
	border-radius: 50%;
	background: #fff;
	color: var(--bbpq-accent);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .1);
	transition: background .15s, color .15s;
}

.bbpq__arrow:hover {
	background: var(--bbpq-accent);
	color: #fff;
}

.bbpq__arrow--prev {
	left: -14px;
}

.bbpq__arrow--next {
	right: -14px;
}

.bbpq__loadmore {
	display: flex;
	justify-content: center;
	margin: 0 0 18px;
}

.bbpq__rest {
	opacity: .7;
	font-weight: 400;
}

@media (max-width: 900px) {
	.bbpq__arrow {
		display: none;
	}

	.bbpq__cards .bbpq__card {
		flex-basis: 78vw;
		max-width: 320px;
	}
}

/* „Rekomenduojame“ ženkliukas rezultatų kortelėje */
.bbpq__pick {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--bbpq-accent, #2b2b2b);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .02em;
	line-height: 1.5;
	text-transform: uppercase;
}

/* Įvadinis grupės tekstas virš klausimų */
.bbpq__lead {
	margin: 0 0 22px;
	padding: 18px 20px;
	border: 1px solid var(--bbpq-line);
	border-radius: var(--bbpq-radius);
	background: var(--bbpq-soft, #f7f7f8);
}

.bbpq__lead-title {
	margin: 0 0 8px;
	font-size: 20px;
	line-height: 1.25;
	text-transform: uppercase;
	letter-spacing: .01em;
}

.bbpq__lead-text {
	font-size: 14px;
	line-height: 1.6;
	color: var(--bbpq-muted, #555);
}

.bbpq__lead-text p {
	margin: 0 0 8px;
}

.bbpq__lead-text p:last-child {
	margin-bottom: 0;
}

.bbpq__crumb.is-static {
	color: var(--bbpq-muted, #555);
	text-decoration: none;
	cursor: default;
}

@media (max-width: 575px) {
	.bbpq__lead {
		padding: 14px 15px;
	}

	.bbpq__lead-title {
		font-size: 17px;
	}

	.bbpq__lead-text {
		font-size: 13px;
	}
}

/* Klausimyne užpildyti prekės požymiai rezultatų kortelėje */
.bbpq__facts {
	margin: 10px 0 0;
	padding: 10px 12px;
	border-radius: 8px;
	background: var(--bbpq-soft, #f6f6f5);
	font-size: 13px;
	line-height: 1.45;
}

.bbpq__facts > strong {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--bbpq-muted, #6b6b6b);
}

.bbpq__facts dl {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 2px 10px;
	margin: 0;
}

.bbpq__facts dt {
	margin: 0;
	color: var(--bbpq-muted, #6b6b6b);
}

.bbpq__facts dd {
	margin: 0;
	font-weight: 600;
	text-align: right;
}
