/* Floating picker + thermal matrix modal */

.bk-bin-pick-fab {
	--bk-ts-accent: var(--theme-base-color, #046E9F);
	--bk-ts-ink: #0a1620;
	--bk-ts-bg: url("/local/images/pritsely_ttx_modal_bg.webp");
	position: fixed;
	right: 20px;
	bottom: 96px;
	z-index: 2147483000;
	display: block;
	width: 56px;
	height: 56px;
	pointer-events: none;
	isolation: isolate;
}

.bk-bin-pick-bubble {
	position: absolute;
	right: calc(100% + 12px);
	top: 50%;
	width: min(360px, calc(100vw - 110px));
	max-width: min(360px, calc(100vw - 110px));
	padding: 12px 14px;
	border-radius: 14px 14px 14px 4px;
	background: #fff;
	color: var(--bk-ts-ink);
	border: 1px solid rgba(4, 110, 159, 0.22);
	box-shadow: 0 10px 28px rgba(10, 22, 32, 0.16);
	font: 600 0.95rem/1.35 Manrope, "Segoe UI", system-ui, sans-serif;
	opacity: 0;
	transform: translate(8px, -50%) scale(0.96);
	transform-origin: center right;
	transition: opacity 0.28s ease, transform 0.28s ease;
	pointer-events: auto;
	cursor: pointer;
	white-space: normal;
}
.bk-bin-pick-bubble::after {
	content: "";
	position: absolute;
	right: -6px;
	top: 50%;
	width: 10px;
	height: 10px;
	background: #fff;
	border-right: 1px solid rgba(4, 110, 159, 0.22);
	border-top: 1px solid rgba(4, 110, 159, 0.22);
	transform: translateY(-50%) rotate(45deg);
}
.bk-bin-pick-bubble.is-on {
	opacity: 1;
	transform: translate(0, -50%) scale(1);
}
.bk-bin-pick-bubble__text {
	display: block;
}
.bk-bin-pick-bubble__hint {
	display: block;
	margin-top: 2px;
	font-weight: 500;
	font-size: 0.78rem;
	color: #5a6f7d;
}

.bk-bin-pick-fab__btn {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 2;
	width: 56px;
	height: 56px;
	border: 0;
	border-radius: 50%;
	background: linear-gradient(145deg, #0f2a36 0%, #163948 45%, #046e9f 140%);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 22px rgba(10, 22, 32, 0.28);
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
	pointer-events: auto;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}
.bk-bin-pick-fab__btn:hover,
.bk-bin-pick-fab__btn:focus-visible {
	transform: translateY(-3px) scale(1.05);
	box-shadow: 0 14px 30px rgba(4, 110, 159, 0.38);
	filter: brightness(1.08);
	outline: none;
}
.bk-bin-pick-fab__btn:active {
	transform: translateY(-1px) scale(1.02);
}
.bk-bin-pick-fab__btn svg {
	display: block;
}

.bk-bin-pick-btn {
	display: none !important;
}

.bk-bin-pick-modal {
	--bk-ts-accent: var(--theme-base-color, #046E9F);
	--bk-ts-bg: url("/local/images/pritsely_ttx_modal_bg.webp");
	position: fixed;
	inset: 0;
	z-index: 2147483010;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 18px;
	box-sizing: border-box;
	font-family: Manrope, "Segoe UI", system-ui, sans-serif;
}
.bk-bin-pick-modal.is-open {
	display: flex;
}
.bk-bin-pick-modal[hidden] {
	display: none !important;
}
.bk-bin-pick-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(6, 14, 22, 0.62);
	backdrop-filter: blur(4px);
}

.bk-bin-pick-modal__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(1180px, 100%);
	max-height: min(92vh, 900px);
	overflow: hidden;
	border-radius: 4px;
	border: 1px solid rgba(120, 210, 255, 0.28);
	/* матрица видна целиком через диалог */
	background:
		linear-gradient(165deg, rgba(6, 22, 38, 0.42) 0%, rgba(4, 40, 70, 0.28) 50%, rgba(4, 110, 159, 0.22) 100%),
		center / cover no-repeat var(--bk-ts-bg);
	box-shadow: 0 28px 80px rgba(2, 12, 24, 0.45);
	color: #eaf6ff;
	animation: bk-bin-pick-in 0.28s ease;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}
@keyframes bk-bin-pick-in {
	from { opacity: 0; transform: translateY(12px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.bk-bin-pick-modal__close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #0a1620;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(10, 22, 32, 0.18);
	transition: transform 0.15s ease, background 0.15s ease;
	z-index: 2;
}
.bk-bin-pick-modal__close:hover {
	transform: scale(1.06);
	background: #fff;
}

.bk-bin-pick-modal__header {
	position: relative;
	padding: 22px 52px 16px 24px;
	border-bottom: 1px solid rgba(140, 220, 255, 0.18);
	background:
		radial-gradient(circle at 1px 1px, rgba(180, 230, 255, 0.22) 1px, transparent 1.5px) 0 0 / 14px 14px,
		rgba(6, 18, 32, 0.55);
	backdrop-filter: blur(3px);
}
.bk-bin-pick-modal__kicker {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #7ed6ff;
}
.bk-bin-pick-modal__title {
	margin: 0 0 6px;
	font-size: clamp(22px, 3vw, 30px);
	letter-spacing: -0.03em;
	line-height: 1.15;
	font-weight: 800;
	color: #fff;
}
.bk-bin-pick-modal__lead {
	margin: 0;
	max-width: 720px;
	color: rgba(220, 238, 250, 0.85);
	font-size: 14px;
	line-height: 1.45;
}

.bk-bin-pick-modal__body {
	display: grid;
	grid-template-columns: minmax(240px, 300px) 1fr;
	min-height: 0;
	flex: 1;
	overflow: hidden;
	background: transparent;
}

.bk-bin-pick-modal__filters {
	padding: 16px 16px 18px;
	border-right: 1px solid rgba(140, 220, 255, 0.16);
	overflow: auto;
	background:
		radial-gradient(circle at 1px 1px, rgba(180, 230, 255, 0.16) 1px, transparent 1.5px) 0 0 / 14px 14px,
		rgba(6, 18, 32, 0.62);
	backdrop-filter: blur(2px);
	scrollbar-width: thin;
	scrollbar-color: transparent transparent;
}
.bk-bin-pick-modal__filters:hover,
.bk-bin-pick-modal__filters.is-scrolling {
	scrollbar-color: rgba(126, 214, 255, 0.45) transparent;
}
.bk-bin-pick-field {
	margin: 0 0 12px;
}
.bk-bin-pick-field__label {
	display: block;
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(180, 220, 240, 0.8);
}
.bk-bin-pick-field__select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid rgba(120, 210, 255, 0.28);
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.95);
	color: #0a1620;
	font: 500 0.92rem/1.3 Manrope, "Segoe UI", system-ui, sans-serif;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	cursor: pointer;
}
.bk-bin-pick-field__select:hover {
	border-color: rgba(126, 214, 255, 0.7);
}
.bk-bin-pick-field__select:focus {
	outline: none;
	border-color: #7ed6ff;
	box-shadow: 0 0 0 3px rgba(126, 214, 255, 0.22);
}

.bk-bin-pick-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}
.bk-bin-pick-modal__run,
.bk-bin-pick-modal__reset {
	padding: 10px 14px;
	border-radius: 2px;
	font: 700 0.88rem/1.2 Manrope, "Segoe UI", system-ui, sans-serif;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.bk-bin-pick-modal__run {
	border: 0;
	background: linear-gradient(135deg, #0496c8, #046e9f);
	color: #fff;
	box-shadow: 0 8px 18px rgba(4, 110, 159, 0.35);
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}
.bk-bin-pick-modal__run:hover {
	transform: translateY(-1px);
	filter: brightness(1.08);
}
.bk-bin-pick-modal__reset {
	border: 1px solid rgba(180, 220, 245, 0.35);
	background: transparent;
	color: #d7ecf8;
}
.bk-bin-pick-modal__reset:hover {
	border-color: #7ed6ff;
	color: #fff;
}

.bk-bin-pick-modal__results {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 0;
	overflow: hidden;
	/* фон матрицы без плотной заливки */
	background: transparent;
}
.bk-bin-pick-modal__status {
	position: relative;
	z-index: 1;
	padding: 12px 16px;
	border-bottom: 1px solid rgba(140, 220, 255, 0.16);
	font: 600 0.9rem/1.35 Manrope, "Segoe UI", system-ui, sans-serif;
	color: #e8f6ff;
	background: rgba(4, 20, 36, 0.4);
}
.bk-bin-pick-modal__list {
	position: relative;
	z-index: 1;
	flex: 1;
	overflow: auto;
	padding: 16px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 14px;
	align-content: start;
	background: transparent;
	scrollbar-width: thin;
	scrollbar-color: transparent transparent;
}
.bk-bin-pick-modal__list:hover,
.bk-bin-pick-modal__list.is-scrolling {
	scrollbar-color: rgba(126, 214, 255, 0.45) transparent;
}

/* тонкие скроллы: почти невидимы, чуть видны при наведении / во время скролла */
.bk-bin-pick-modal__filters::-webkit-scrollbar,
.bk-bin-pick-modal__list::-webkit-scrollbar {
	width: 4px;
	height: 4px;
}
.bk-bin-pick-modal__filters::-webkit-scrollbar-track,
.bk-bin-pick-modal__list::-webkit-scrollbar-track {
	background: transparent;
}
.bk-bin-pick-modal__filters::-webkit-scrollbar-thumb,
.bk-bin-pick-modal__list::-webkit-scrollbar-thumb {
	background: transparent;
	border-radius: 4px;
}
.bk-bin-pick-modal__filters:hover::-webkit-scrollbar-thumb,
.bk-bin-pick-modal__list:hover::-webkit-scrollbar-thumb,
.bk-bin-pick-modal__filters.is-scrolling::-webkit-scrollbar-thumb,
.bk-bin-pick-modal__list.is-scrolling::-webkit-scrollbar-thumb {
	background: rgba(126, 214, 255, 0.45);
}
.bk-bin-pick-modal__filters::-webkit-scrollbar-button,
.bk-bin-pick-modal__list::-webkit-scrollbar-button {
	display: none;
	width: 0;
	height: 0;
}

/* карточки как «Преимущества»: тёмные, срез угла, точечная сетка, фон виден в щелях */
.bk-bin-pick-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px 12px 14px;
	text-decoration: none;
	color: #fff;
	background:
		radial-gradient(circle at 1px 1px, rgba(190, 220, 240, 0.28) 1px, transparent 1.5px) 0 0 / 12px 12px,
		linear-gradient(155deg, rgba(18, 24, 30, 0.88) 0%, rgba(10, 16, 22, 0.9) 100%);
	border: 1px solid rgba(160, 210, 235, 0.18);
	box-shadow: 0 10px 28px rgba(2, 10, 20, 0.28);
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.bk-bin-pick-card:hover {
	transform: translateY(-4px);
	border-color: rgba(126, 214, 255, 0.55);
	box-shadow: 0 18px 36px rgba(4, 110, 159, 0.35);
	filter: brightness(1.06);
}
.bk-bin-pick-card__img {
	aspect-ratio: 1.15;
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(circle at 50% 40%, rgba(4, 150, 200, 0.18), transparent 60%),
		rgba(255, 255, 255, 0.04);
	overflow: hidden;
}
.bk-bin-pick-card__img img {
	max-width: 88%;
	max-height: 88%;
	object-fit: contain;
	filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}
.bk-bin-pick-card__name {
	font: 700 0.9rem/1.3 Manrope, "Segoe UI", system-ui, sans-serif;
	color: #fff;
}
.bk-bin-pick-card__meta {
	margin: 0;
	font: 500 0.76rem/1.4 Manrope, "Segoe UI", system-ui, sans-serif;
	color: rgba(190, 220, 235, 0.82);
}
.bk-bin-pick-empty {
	grid-column: 1 / -1;
	padding: 2rem 0.5rem;
	text-align: center;
	color: #e8f2f7;
	font: 500 0.95rem/1.45 Manrope, "Segoe UI", system-ui, sans-serif;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

body.bk-bin-pick-open {
	overflow: hidden;
}

@media (max-width: 760px) {
	.bk-bin-pick-fab {
		right: 14px;
		bottom: 88px;
	}
	.bk-bin-pick-bubble {
		width: min(280px, calc(100vw - 96px));
		max-width: min(280px, calc(100vw - 96px));
	}
	.bk-bin-pick-modal {
		padding: 0;
	}
	.bk-bin-pick-modal__dialog {
		width: 100%;
		max-height: 100%;
		height: 100%;
		border-radius: 0;
		clip-path: none;
	}
	.bk-bin-pick-modal__body {
		grid-template-columns: 1fr;
		grid-template-rows: auto 1fr;
	}
	.bk-bin-pick-modal__filters {
		border-right: 0;
		border-bottom: 1px solid rgba(140, 220, 255, 0.16);
		max-height: 40vh;
	}
}
