/* Trifurno Bijpassende producten */
.bs-bp {
	--bs-bp-primary: var(--wolmart-primary-color, #1e73be);
	--bs-bp-primary-hover: var(--wolmart-primary-color-hover, #2385dc);
	--bs-bp-dark: var(--wolmart-dark-color, #222);
	--bs-bp-text: #333;
	--bs-bp-muted: #777;
	--bs-bp-line: #e6e8eb;
	--bs-bp-ok: #18a058;
	--bs-bp-tint: #eef4fa;
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-family: var(--wolmart-body-font-family, inherit), sans-serif;
	color: var(--bs-bp-text);
	line-height: 1.45;
}
.bs-bp.is-open { display: flex; }
html.bs-bp-lock { overflow: hidden; }
html.bs-bp-lock .minipopup-area { display: none !important; }

.bs-bp__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 26, 36, .5);
	animation: bs-bp-fade .2s ease both;
}
.bs-bp__dialog {
	position: relative;
	width: 100%;
	max-width: 680px;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	overscroll-behavior: contain;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
	animation: bs-bp-rise .22s ease both;
}
/* Visible by default (also if the script would not load); the script only adds the closing fade. */
.bs-bp.is-closing .bs-bp__backdrop, .bs-bp.is-closing .bs-bp__dialog { opacity: 0; transition: opacity .18s ease; }
@keyframes bs-bp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bs-bp-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.bs-bp__close, .bs-bp__link { text-decoration: none !important; }
.bs-bp__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #888;
	cursor: pointer;
}
.bs-bp__close:hover { background: #f2f3f5; color: var(--bs-bp-dark); }

/* ---- added product */
.bs-bp__head { padding: 22px 24px 20px; }
.bs-bp__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--bs-bp-ok);
}
.bs-bp__added {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 14px 48px 18px 0;
}
.bs-bp__added-img {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	padding: 4px;
	border: 1px solid var(--bs-bp-line);
	border-radius: 8px;
	background: #fff;
}
.bs-bp__added-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bs-bp__added p { margin: 0; font-size: 15px; color: #555; }
.bs-bp__added strong { color: var(--bs-bp-dark); font-weight: 600; }
.bs-bp__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.bs-bp__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 20px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background-color .15s ease;
}
.bs-bp__btn--dark { background: var(--bs-bp-dark); color: #fff !important; }
.bs-bp__btn--dark:hover { background: #000; }
.bs-bp__link {
	padding: 6px 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 14px;
	color: var(--bs-bp-muted);
	cursor: pointer;
}
.bs-bp__link:hover { color: var(--bs-bp-dark); text-decoration: underline; }

/* ---- matching products */
.bs-bp__more { padding: 20px 24px 24px; background: var(--bs-bp-tint); border-radius: 0 0 12px 12px; }
.bs-bp__more-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.bs-bp__more-head h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--bs-bp-dark); letter-spacing: 0; text-transform: none; }
.bs-bp__nav { display: flex; gap: 8px; }
.bs-bp__nav.is-hidden, .bs-bp.is-choosing .bs-bp__nav { visibility: hidden; }
.bs-bp__arrow {
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid var(--bs-bp-line);
	border-radius: 50%;
	background: #fff;
	color: var(--bs-bp-dark);
	cursor: pointer;
}
.bs-bp__arrow:hover:not(:disabled) { border-color: var(--bs-bp-primary); color: var(--bs-bp-primary); }
.bs-bp__arrow:disabled { opacity: .4; cursor: default; }

.bs-bp__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 24px) / 3);
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 2px;
}
.bs-bp__track::-webkit-scrollbar { display: none; }
.bs-bp.is-choosing .bs-bp__track { display: none; }

.bs-bp__card {
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 10px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}
.bs-bp__card-img {
	display: block;
	aspect-ratio: 1 / 1;
	margin-bottom: 10px;
	border-radius: 6px;
	background: #f6f7f8;
	overflow: hidden;
}
.bs-bp__card-img img { width: 100%; height: 100%; object-fit: contain; display: block; margin: 0; }
.bs-bp__card-body { display: flex; flex: 1; flex-direction: column; }
.bs-bp__card-name {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	min-height: 2.8em;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--bs-bp-dark) !important;
	text-decoration: none !important;
}
.bs-bp__card-name:hover { color: var(--bs-bp-primary) !important; }
.bs-bp__card-price { margin: 6px 0 10px; font-size: 15px; font-weight: 700; color: var(--bs-bp-dark); }
.bs-bp__card-price del { font-weight: 400; color: #999; margin-right: 4px; }
.bs-bp__card-price ins { text-decoration: none; }
.bs-bp__card-price .woocommerce-price-suffix { display: block; font-size: 11px; font-weight: 400; color: var(--bs-bp-muted); }

.bs-bp__add {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	min-height: 38px;
	padding: 8px 10px;
	border: 0;
	border-radius: 6px;
	background: var(--bs-bp-primary);
	color: #fff;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .15s ease;
}
.bs-bp__add svg { flex: 0 0 auto; }
.bs-bp__add:hover:not(:disabled) { background: var(--bs-bp-primary-hover); }
.bs-bp__add:disabled { cursor: default; opacity: .55; }
.bs-bp__add.is-added { background: var(--bs-bp-ok); opacity: 1; }
.bs-bp__add.is-loading { position: relative; color: transparent; opacity: 1; }
.bs-bp__add.is-loading::after {
	content: "";
	position: absolute;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, .5);
	border-top-color: #fff;
	border-radius: 50%;
	animation: bs-bp-spin .7s linear infinite;
}
@keyframes bs-bp-spin { to { transform: rotate(360deg); } }

.bs-bp__msg { margin: 8px 0 0; font-size: 12px; color: #b42318; }
.bs-bp__msg a { color: inherit; text-decoration: underline; }

/* ---- choosing a version */
.bs-bp__options[hidden] { display: none; }
.bs-bp__back {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0 0 12px;
	padding: 4px 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	color: var(--bs-bp-primary);
	cursor: pointer;
}
.bs-bp__opt-main {
	display: grid;
	grid-template-columns: 170px 1fr;
	gap: 18px;
	padding: 14px;
	background: #fff;
	border-radius: 10px;
}
.bs-bp__opt-img { display: block; aspect-ratio: 1 / 1; border-radius: 6px; background: #f6f7f8; overflow: hidden; }
.bs-bp__opt-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bs-bp__opt-name { display: block; font-size: 15px; font-weight: 600; color: var(--bs-bp-dark) !important; text-decoration: none !important; }
.bs-bp__opt-title { margin: 2px 0 10px; font-size: 12px; color: var(--bs-bp-muted); }
.bs-bp__opt-fields { display: grid; gap: 8px; }
.bs-bp__field { display: grid; grid-template-columns: minmax(90px, 35%) 1fr; align-items: center; gap: 10px; }
.bs-bp__field label { margin: 0; font-size: 13px; font-weight: 600; color: var(--bs-bp-dark); }
.bs-bp__field select {
	width: 100%;
	height: 38px;
	min-height: 0;
	margin: 0;
	padding: 0 10px;
	border: 1px solid #d5d8dc;
	border-radius: 6px;
	background-color: #fff;
	font: inherit;
	font-size: 13px;
	color: var(--bs-bp-text);
}
.bs-bp__field select:focus { border-color: var(--bs-bp-primary); outline: none; box-shadow: 0 0 0 3px rgba(30, 115, 190, .15); }
.bs-bp__opt-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.bs-bp__opt-price { font-size: 17px; font-weight: 700; color: var(--bs-bp-dark); }
.bs-bp__opt-price small { font-size: 11px; font-weight: 400; color: var(--bs-bp-muted); }
.bs-bp__opt-foot .bs-bp__add { width: auto; min-width: 160px; margin-top: 0; padding: 8px 16px; }

/* ---- phones */
@media (max-width: 600px) {
	.bs-bp { align-items: flex-end; padding: 0; }
	.bs-bp__dialog {
		max-width: none;
		max-height: 92vh;
		max-height: 92dvh;
		border-radius: 14px 14px 0 0;
	}
	.bs-bp__more { border-radius: 0; padding: 16px 16px 20px; }
	.bs-bp__head { padding: 18px 16px 16px; }
	.bs-bp__added { margin-right: 40px; }
	.bs-bp__added p { font-size: 14px; }
	.bs-bp__btn { flex: 1 1 auto; justify-content: center; }
	.bs-bp__actions { justify-content: center; }
	.bs-bp__track { grid-auto-columns: 46%; }
	.bs-bp__card { padding: 8px; }
	.bs-bp__card .bs-bp__add { padding: 8px 6px; font-size: 12px; gap: 5px; }
	.bs-bp__more-head h3 { font-size: 16px; }
	.bs-bp__opt-main { grid-template-columns: 1fr; padding: 12px; }
	.bs-bp__opt-img { width: 120px; }
	.bs-bp__opt-foot { flex-wrap: wrap; }
	.bs-bp__opt-foot .bs-bp__add { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.bs-bp__backdrop, .bs-bp__dialog { animation: none; }
}
