/* Zoli Bought Together – front end. Uses your theme's main colour unless an accent colour is set. */
.zbt {
	--zbt-a: var(--zbt-accent, var(--wd-primary-color, var(--e-global-color-accent, #6b46c1)));
	--zbt-line: rgba(0, 0, 0, .1);
	--zbt-soft: rgba(0, 0, 0, .03);
	margin: 24px 0;
	padding: 18px 20px;
	border: 1px solid var(--zbt-line);
	border-radius: 10px;
	background: #fff;
	clear: both;
	box-sizing: border-box;
	max-width: 100%;
}
.zbt *, .zbt *::before, .zbt *::after { box-sizing: border-box; }
.zbt-heading {
	margin: 0 0 12px;
	font-size: 1.1em;
	line-height: 1.3;
	text-transform: none;
}
.zbt-text { margin: 0 0 12px; font-size: .95em; }
.zbt-text p { margin: 0 0 6px; }
.zbt-items { list-style: none; margin: 0; padding: 0; }
.zbt-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	margin: 0;
	border-top: 1px solid var(--zbt-line);
	transition: opacity .15s;
}
.zbt-item:first-child { border-top: 0; padding-top: 0; }
.zbt-item:not(.zbt-item--main):not(.is-checked) { opacity: .55; }
.zbt-hidden { display: none !important; }
.zbt-check { flex: 0 0 auto; display: flex; align-items: center; margin: 0; cursor: pointer; }
.zbt-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--zbt-a); cursor: pointer; }
.zbt-check input:disabled { cursor: default; }
.zbt-thumb { flex: 0 0 56px; width: 56px; display: block; }
.zbt-thumb img { width: 56px; height: 56px; object-fit: contain; border-radius: 6px; background: var(--zbt-soft); display: block; margin: 0; }
.zbt-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.zbt-name { font-weight: 600; line-height: 1.3; text-decoration: none; color: inherit; }
a.zbt-name:hover { color: var(--zbt-a); }
.zbt-times { font-size: .85em; opacity: .75; }
.zbt-desc, .zbt-var-note { font-size: .85em; opacity: .75; line-height: 1.35; }
.zbt-variation { max-width: 240px; padding: 4px 8px; min-height: 32px; font-size: .9em; }
.zbt-qty { flex: 0 0 auto; }
.zbt-qty-input { width: 64px; min-height: 34px; text-align: center; padding: 4px; }
.zbt-price { flex: 0 0 auto; text-align: right; white-space: nowrap; font-weight: 600; }
.zbt-price del, .zbt-total-reg del { opacity: .55; font-weight: 400; margin-right: 4px; }
.zbt-price ins, .zbt-total ins { text-decoration: none; }
.zbt-from { font-weight: 400; font-size: .85em; opacity: .75; }

.zbt-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	margin-top: 12px;
	padding-top: 14px;
	border-top: 1px solid var(--zbt-line);
}
.zbt-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 1.05em; }
.zbt-total-amount strong { color: var(--zbt-a); font-size: 1.15em; }
.zbt-save {
	flex-basis: 100%;
	font-size: .85em;
	font-weight: 600;
	color: #1f7a3f;
}
.zbt-form { margin: 0; }
.zbt .zbt-button { margin: 0; white-space: nowrap; }
.zbt[style*="--zbt-accent"] .zbt-button { background: var(--zbt-a); border-color: var(--zbt-a); color: #fff; }
.zbt-msg {
	flex-basis: 100%;
	padding: 8px 12px;
	border-radius: 6px;
	background: #fff4e5;
	color: #8a4b00;
	font-size: .9em;
}

/* Compact */
.zbt--compact { padding: 14px 16px; }
.zbt--compact .zbt-item { padding: 6px 0; gap: 10px; font-size: .92em; }
.zbt--compact .zbt-thumb, .zbt--compact .zbt-thumb img { flex-basis: 36px; width: 36px; height: 36px; }

/* Separate images */
.zbt-images { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.zbt-img { display: block; width: 92px; cursor: pointer; transition: opacity .15s, filter .15s; }
.zbt-img--main { cursor: default; }
.zbt-img img { width: 92px; height: 92px; object-fit: contain; border-radius: 8px; background: var(--zbt-soft); display: block; margin: 0; }
.zbt-img.is-off { opacity: .35; filter: grayscale(1); }
.zbt-plus { font-size: 22px; font-weight: 300; opacity: .6; }

/* Carousel */
.zbt-track-wrap { position: relative; }
.zbt--carousel .zbt-items {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	padding: 2px 2px 8px;
}
.zbt--carousel .zbt-item {
	flex: 0 0 168px;
	flex-direction: column;
	align-items: stretch;
	position: relative;
	gap: 6px;
	padding: 10px;
	border: 1px solid var(--zbt-line);
	border-radius: 8px;
	scroll-snap-align: start;
	text-align: center;
}
.zbt--carousel .zbt-item:first-child { padding-top: 10px; }
.zbt--carousel .zbt-check { position: absolute; top: 8px; left: 8px; z-index: 1; }
.zbt--carousel .zbt-thumb { flex: none; width: 100%; }
.zbt--carousel .zbt-thumb img { width: 100%; height: 120px; }
.zbt--carousel .zbt-info { align-items: center; }
.zbt--carousel .zbt-price { text-align: center; }
.zbt--carousel .zbt-variation { max-width: 100%; width: 100%; }
.zbt-nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 32px;
	height: 32px;
	margin-top: -20px;
	padding: 0;
	border: 1px solid var(--zbt-line);
	border-radius: 50%;
	background: #fff;
	color: inherit;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}
.zbt-nav--prev { left: -12px; }
.zbt-nav--next { right: -12px; }

.zbt--no-thumb .zbt-thumb { display: none; }

@media (max-width: 600px) {
	.zbt { padding: 14px; }
	.zbt-item { flex-wrap: wrap; }
	.zbt-info { flex-basis: calc(100% - 110px); }
	.zbt--list .zbt-price, .zbt--compact .zbt-price { margin-left: 30px; }
	.zbt-footer { flex-direction: column; align-items: stretch; }
	.zbt .zbt-button { width: 100%; }
	.zbt-img, .zbt-img img { width: 64px; height: 64px; }
	.zbt-nav { display: none; }
}
