/* Frequently Bought Together – product page block + quick view. */

.sgfbt {
	--sgfbt-primary: #22c38e;
	--sgfbt-primary-dark: #194d3c;
	--sgfbt-on-primary: #fff;
	--sgfbt-text: #081712;
	--sgfbt-bg: #fff;
	--sgfbt-muted: color-mix(in srgb, var(--sgfbt-text) 48%, transparent);
	--sgfbt-line: color-mix(in srgb, var(--sgfbt-text) 8%, transparent);
	--sgfbt-field: color-mix(in srgb, var(--sgfbt-text) 40%, transparent);
	--sgfbt-option: color-mix(in srgb, var(--sgfbt-text) 20%, transparent);
	--sgfbt-radius: 8px;
	--sgfbt-img-radius: calc(var(--sgfbt-radius) * 1.5);
	box-sizing: border-box;
	width: 100%;
	max-width: 560px;
	margin: 16px 0;
	padding: 10px;
	color: var(--sgfbt-text);
	font-size: 14px;
	line-height: 1.55;
}

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

.sgfbt [hidden] {
	display: none !important;
}

.sgfbt__title {
	margin: 0;
	padding: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.55;
	color: var(--sgfbt-text);
	text-transform: none;
	letter-spacing: 0;
}

/* Image row: one column per item, filling the block's width ----------------- */

.sgfbt__images {
	display: grid;
	grid-template-columns: repeat(var(--sgfbt-n, 3), minmax(0, 1fr));
	gap: 6px;
	margin-top: 12px;
	padding: 2px;
}

/* Many items: fixed-size tiles that scroll sideways. */
.sgfbt__images[style*="--sgfbt-n: 5"],
.sgfbt__images[style*="--sgfbt-n: 6"],
.sgfbt__images[style*="--sgfbt-n: 7"],
.sgfbt__images[style*="--sgfbt-n: 8"],
.sgfbt__images[style*="--sgfbt-n: 9"],
.sgfbt__images[style*="--sgfbt-n: 10"],
.sgfbt__images[style*="--sgfbt-n: 11"] {
	grid-template-columns: none;
	grid-auto-flow: column;
	grid-auto-columns: 88px;
	overflow-x: auto;
	scrollbar-width: thin;
}

.sgfbt__cell {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
}

.sgfbt__image {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1 / 1.05;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: var(--sgfbt-img-radius);
	background: #fff;
	transition: opacity 0.2s ease;
}

.sgfbt__image img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: contain;
}

.sgfbt__image.is-off {
	opacity: 0.4;
}

.sgfbt__image:has(.sgfbt__eye) {
	cursor: pointer;
}

/* "+" sits on the gap, half over the next image. */
.sgfbt__plus {
	position: absolute;
	z-index: 2;
	top: 50%;
	right: -13px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	margin-top: -10px;
	border-radius: 9999px;
	background: var(--sgfbt-primary);
	color: var(--sgfbt-on-primary);
	pointer-events: none;
}

.sgfbt__eye {
	position: absolute;
	bottom: 10px;
	left: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	min-height: 0;
	margin: 0;
	padding: 6px;
	border: 0;
	border-radius: 100%;
	background: rgba(0, 0, 0, 0.24);
	color: #fff;
	line-height: 1;
	box-shadow: none;
	cursor: pointer;
	transition: background 0.15s ease;
}

.sgfbt__eye:hover,
.sgfbt__eye:focus-visible {
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
}

/* Item list ---------------------------------------------------------------- */

.sgfbt__list {
	margin: 16px 0 0;
	padding: 2px;
	list-style: none;
}

.sgfbt__item {
	display: flex;
	align-items: flex-start;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sgfbt__item + .sgfbt__item {
	margin-top: 12px;
}

/* Themes (Flatsome: ".product-summary ul li") indent every list item. */
.sgfbt ul.sgfbt__list > li.sgfbt__item {
	margin-left: 0 !important;
	list-style: none !important;
}

.sgfbt__item::before,
.sgfbt__item::marker {
	content: none;
}

/* Custom checkbox: 16px square, primary outline, primary check. */
.sgfbt__checkwrap {
	position: relative;
	display: inline-flex;
	flex: 0 0 24px;
	align-items: center;
	width: 24px;
	height: 16px;
	margin: 3px 0 0 !important;
	padding: 0;
	cursor: pointer;
}

.sgfbt input[type="checkbox"].sgfbt__check {
	position: absolute;
	top: 0;
	left: 0;
	width: 16px;
	height: 16px;
	margin: 0 !important;
	opacity: 0;
	cursor: pointer;
}

.sgfbt__box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border: 1px solid var(--sgfbt-primary);
	border-radius: 4px;
	background: #fff;
	color: var(--sgfbt-primary);
	pointer-events: none;
}

.sgfbt__box svg {
	display: none;
}

.sgfbt__check:checked + .sgfbt__box svg {
	display: block;
}

.sgfbt__check:focus-visible + .sgfbt__box {
	outline: 2px solid var(--sgfbt-primary);
	outline-offset: 2px;
}

.sgfbt__body {
	flex: 1 1 auto;
	min-width: 0;
}

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

.sgfbt__name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
	color: var(--sgfbt-text);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.55;
	text-decoration: none;
}

.sgfbt__name:hover,
.sgfbt__name:focus {
	color: var(--sgfbt-text);
}

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

.sgfbt__this {
	margin-right: 4px;
	font-weight: 700;
}

.sgfbt__price {
	flex: 0 0 auto;
	max-width: 45%;
	text-align: right;
	white-space: nowrap;
	color: var(--sgfbt-primary-dark);
	font-size: 14px;
	line-height: 1.55;
}

.sgfbt__price-now {
	color: inherit;
}

.sgfbt__price-old {
	display: block;
	font-size: 12px;
	color: var(--sgfbt-muted);
	text-decoration: line-through;
}

.sgfbt__item.is-unavailable .sgfbt__variant-toggle {
	border-color: #d63638;
}

/* Variant field + dropdown ------------------------------------------------- */

.sgfbt__variant {
	position: relative;
	width: 100%;
	max-width: 250px;
	margin-top: 8px;
}

.sgfbt__variant-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	height: 32px;
	min-height: 0;
	margin: 0;
	padding: 0 8px 0 12px;
	border: 1px solid var(--sgfbt-field);
	border-radius: var(--sgfbt-radius);
	background: #fff;
	color: var(--sgfbt-text);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.6;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	cursor: pointer;
}

.sgfbt__variant-toggle:hover,
.sgfbt__variant-toggle:focus {
	background: #fff;
	color: var(--sgfbt-text);
}

.sgfbt__variant-toggle[aria-expanded="true"] {
	border-color: var(--sgfbt-text);
}

.sgfbt__variant-toggle svg {
	flex: 0 0 20px;
	transition: transform 0.15s ease;
}

.sgfbt__variant-toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.sgfbt__variant-label {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.sgfbt__variant-panel {
	position: absolute;
	z-index: 30;
	top: calc(100% + 4px);
	left: 0;
	width: 320px;
	max-width: calc(100vw - 32px);
	max-height: 300px;
	overflow-y: auto;
	padding: 16px;
	border: 1px solid rgba(8, 23, 8, 0.1);
	border-radius: var(--sgfbt-radius);
	background: #fff;
	box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.24);
}

/* Attribute picker (dropdown + quick view) ---------------------------------- */

.sgfbt-attr + .sgfbt-attr {
	margin-top: 16px;
}

.sgfbt-attr__label {
	margin-bottom: 8px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--sgfbt-text, #081712);
}

.sgfbt-attr__value {
	margin-left: 4px;
	font-weight: 600;
}

.sgfbt-qv__msg {
	margin-top: 12px;
}

.sgfbt-attr__options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.sgfbt-opt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 40px;
	height: 40px;
	min-height: 0;
	margin: 0;
	padding: 0 12px;
	border: 1px solid var(--sgfbt-option, rgba(8, 23, 18, 0.2));
	border-radius: 0;
	background: #fff;
	color: var(--sgfbt-text, #081712);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.55;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	cursor: pointer;
}

.sgfbt-opt:hover {
	border-color: var(--sgfbt-primary-dark, #194d3c);
	background: #fff;
	color: var(--sgfbt-text, #081712);
}

.sgfbt-opt.is-selected {
	border: 2px solid var(--sgfbt-primary-dark, #194d3c);
	background: var(--sgfbt-primary-dark, #194d3c);
	color: #f0faf6;
}

.sgfbt-opt.is-unavailable {
	opacity: 0.45;
	text-decoration: line-through;
}

/* Image swatches: in the dropdown a 64px tile, in the quick view image + name. */
.sgfbt-opt--img {
	padding: 3px 12px 3px 3px;
}

.sgfbt-opt--img img {
	display: block;
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	max-width: none;
	margin: 0;
	border: 1px solid rgba(8, 23, 8, 0.2);
	object-fit: contain;
}

.sgfbt-opt--img.is-selected {
	background: #fff;
	color: var(--sgfbt-text, #081712);
}

.sgfbt__variant-panel .sgfbt-opt--img {
	width: 64px;
	height: 64px;
	padding: 0;
}

.sgfbt__variant-panel .sgfbt-opt--img img {
	width: 60px;
	height: 60px;
	border: 0;
}

.sgfbt__variant-panel .sgfbt-opt--img .sgfbt-opt__text {
	display: none;
}

/* Total + button ------------------------------------------------------------ */

.sgfbt__divider {
	height: 1px;
	margin: 16px 0;
	background: var(--sgfbt-line);
}

.sgfbt__total {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-top: 14px;
}

.sgfbt__total-label {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.55;
	text-transform: uppercase;
	color: var(--sgfbt-muted);
}

.sgfbt__total-prices {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
}

.sgfbt__total-now {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.55;
	color: var(--sgfbt-primary-dark);
}

.sgfbt__total-old {
	font-size: 12px;
	line-height: 1.54;
	color: var(--sgfbt-muted);
	text-decoration: line-through;
}

.sgfbt__savings {
	margin-top: 4px;
	font-size: 13px;
	font-weight: 600;
	text-align: right;
	color: var(--sgfbt-primary-dark);
}

.sgfbt__nudge {
	margin-top: 10px;
	padding: 8px 12px;
	border-radius: var(--sgfbt-radius);
	background: color-mix(in srgb, var(--sgfbt-primary) 10%, #fff);
	font-size: 13px;
	color: var(--sgfbt-text);
}

.sgfbt__add {
	position: relative;
	display: block;
	width: 100%;
	height: 48px;
	min-height: 48px;
	margin: 16px 0 0;
	padding: 2px 16px;
	border: 0;
	border-radius: var(--sgfbt-radius);
	background: var(--sgfbt-primary);
	color: var(--sgfbt-on-primary);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	cursor: pointer;
	transition: filter 0.15s ease, opacity 0.15s ease;
}

.sgfbt__add:hover,
.sgfbt__add:focus-visible {
	background: var(--sgfbt-primary);
	color: var(--sgfbt-on-primary);
	filter: brightness(0.95);
}

.sgfbt__add:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.sgfbt__add.is-loading,
.sgfbt-qv__choose.is-loading {
	color: transparent !important;
}

.sgfbt__add.is-loading::after,
.sgfbt-qv__choose.is-loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-top-color: #fff;
	border-radius: 50%;
	animation: sgfbt-spin 0.7s linear infinite;
}

@keyframes sgfbt-spin {
	to {
		transform: rotate(360deg);
	}
}

.sgfbt__msg {
	margin-top: 8px;
	font-size: 13px;
}

.sgfbt__msg:empty {
	display: none;
}

.sgfbt__msg-link {
	font-weight: 600;
	text-decoration: underline;
}

/* Quick view ---------------------------------------------------------------- */

html.sgfbt-qv-open {
	overflow: hidden;
}

.sgfbt-qv {
	--sgfbt-primary: #22c38e;
	--sgfbt-primary-dark: #194d3c;
	--sgfbt-text: #081712;
	--sgfbt-option: rgba(8, 23, 18, 0.2);
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	color: var(--sgfbt-text);
	font-size: 14px;
	line-height: 1.55;
}

.sgfbt-qv[hidden],
.sgfbt-qv [hidden] {
	display: none !important;
}

.sgfbt-qv *,
.sgfbt-qv *::before,
.sgfbt-qv *::after {
	box-sizing: border-box;
}

.sgfbt-qv__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.8);
}

.sgfbt-qv__dialog {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 312px) minmax(0, 1fr);
	gap: 40px;
	width: 100%;
	max-width: 798px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 32px;
	border-radius: 8px;
	background: #fff;
	outline: none;
}

.sgfbt-qv__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 100%;
	background: #eee;
	color: var(--sgfbt-text);
	font-size: 20px;
	line-height: 1;
	box-shadow: none;
	cursor: pointer;
}

.sgfbt-qv__close:hover {
	background: #e0e0e0;
	color: var(--sgfbt-text);
}

.sgfbt-qv__main {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #fff;
}

.sgfbt-qv__main img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: contain;
}

.sgfbt-qv__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.sgfbt-qv__thumbs:empty {
	display: none;
}

.sgfbt-qv__thumbs button {
	width: 64px;
	height: 64px;
	min-height: 0;
	margin: 0;
	padding: 1px;
	border: 0;
	border-radius: 0;
	background: #fff;
	box-shadow: inset 0 0 0 1px rgba(8, 23, 8, 0.12);
	cursor: pointer;
}

.sgfbt-qv__thumbs button.is-active {
	box-shadow: inset 0 0 0 1px var(--sgfbt-text);
}

.sgfbt-qv__thumbs img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: contain;
}

.sgfbt-qv__info {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding-top: 8px;
}

.sgfbt-qv__title {
	margin: 0;
	padding: 0 32px 0 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.55;
	color: var(--sgfbt-text);
	text-transform: none;
	letter-spacing: 0;
}

.sgfbt-qv__price {
	margin-top: 4px;
}

.sgfbt-qv__now {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.55;
	color: var(--sgfbt-primary-dark);
}

.sgfbt-qv__old {
	padding-left: 8px;
	font-size: 16px;
	color: rgba(8, 23, 18, 0.48);
	text-decoration: line-through;
}

.sgfbt-qv__picker {
	margin-top: 24px;
}

.sgfbt-qv__picker:empty {
	display: none;
}

.sgfbt-qv__link {
	margin-top: 24px;
	font-size: 14px;
	color: var(--sgfbt-primary);
	text-decoration: underline;
}

.sgfbt-qv__link:hover {
	color: var(--sgfbt-primary);
	text-decoration: none;
}

.sgfbt-qv__actions {
	display: flex;
	gap: 8px;
	margin-top: 24px;
}

.sgfbt-qv__qty {
	display: flex;
	flex: 0 0 148px;
	align-items: center;
	justify-content: space-between;
	height: 40px;
	padding: 0 6px;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 8px;
	background: #fff;
}

.sgfbt-qv__step {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: var(--sgfbt-text);
	font-size: 18px;
	line-height: 1;
	box-shadow: none;
	cursor: pointer;
}

.sgfbt-qv__step:hover {
	background: rgba(8, 23, 18, 0.06);
	color: var(--sgfbt-text);
}

.sgfbt-qv input.sgfbt-qv__qty-input {
	width: 56px;
	height: 28px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--sgfbt-text);
	font-size: 16px;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.sgfbt-qv__qty-input::-webkit-outer-spin-button,
.sgfbt-qv__qty-input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.sgfbt-qv__choose {
	position: relative;
	flex: 1 1 auto;
	height: 40px;
	min-height: 0;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-radius: 4px;
	background: var(--sgfbt-primary);
	color: var(--sgfbt-on-primary, #fff);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	cursor: pointer;
}

.sgfbt-qv__choose:hover,
.sgfbt-qv__choose:focus-visible {
	background: var(--sgfbt-primary);
	color: var(--sgfbt-on-primary, #fff);
	filter: brightness(0.95);
}

/* Theme resets (Flatsome and other themes style every button / label / li). */

.sgfbt button,
.sgfbt-qv button {
	min-width: 0;
	margin-right: 0;
	margin-bottom: 0;
	text-transform: none;
	letter-spacing: 0;
	vertical-align: middle;
	text-shadow: none;
}

.sgfbt label,
.sgfbt-qv label {
	margin: 0;
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
}

.sgfbt ul,
.sgfbt li,
.sgfbt-qv ul,
.sgfbt-qv li {
	margin-left: 0;
	list-style: none;
}

.sgfbt .amount {
	white-space: nowrap;
}

.sgfbt--flatsome .sgfbt__title,
.sgfbt--flatsome .sgfbt__add,
.sgfbt--flatsome .sgfbt__eye,
.sgfbt--flatsome .sgfbt-opt,
.sgfbt--flatsome .sgfbt__variant-toggle {
	font-family: inherit;
}

/* Flatsome "below the whole product" position. */
.sgfbt-wide .sgfbt {
	margin-right: auto;
	margin-left: auto;
}

/* Phones -------------------------------------------------------------------- */

@media (max-width: 600px) {
	.sgfbt {
		max-width: none;
	}

	.sgfbt__variant-panel {
		width: calc(100vw - 48px);
		max-width: 320px;
	}

	.sgfbt-qv {
		align-items: flex-end;
		padding: 0;
	}

	.sgfbt-qv__dialog {
		grid-template-columns: 1fr;
		gap: 16px;
		max-height: 92vh;
		padding: 20px 16px 24px;
		border-radius: 14px 14px 0 0;
	}

	.sgfbt-qv__main {
		max-width: 312px;
		margin: 0 auto;
	}

	.sgfbt-qv__qty {
		flex-basis: 120px;
	}
}

/* Shown to shop managers only, when a product has nothing to suggest. */
.sgfbt-admin-hint {
	margin: 16px 0;
	padding: 10px 12px;
	border: 1px dashed #c3c4c7;
	border-radius: 6px;
	background: #fcf9e8;
	color: #1d2327;
	font-size: 13px;
	line-height: 1.5;
}

/* Templates ------------------------------------------------------------------
 * classic (default) · box · list · cards. A list thumbnail exists in every
 * template and is only shown by list / cards.
 */

.sgfbt__thumb {
	display: none;
}

button.sgfbt__thumb {
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	cursor: zoom-in;
}

.sgfbt__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: contain;
}

/* Boxed: classic inside a card, the total + button in a tinted footer. */
.sgfbt--tpl-box {
	padding: 16px 16px 0;
	overflow: hidden;
	border: 1px solid var(--sgfbt-line);
	border-radius: var(--sgfbt-img-radius);
	background: var(--sgfbt-bg);
	box-shadow: 0 8px 24px -16px rgba(0, 0, 0, 0.18);
}

.sgfbt--tpl-box .sgfbt__divider {
	display: none;
}

.sgfbt--tpl-box .sgfbt__footer {
	margin: 16px -16px 0;
	padding: 14px 16px 16px;
	border-top: 1px solid var(--sgfbt-line);
	background: color-mix(in srgb, var(--sgfbt-primary) 7%, var(--sgfbt-bg));
}

.sgfbt--tpl-box .sgfbt__total {
	margin-top: 0;
}

.sgfbt--tpl-box .sgfbt__nudge {
	background: var(--sgfbt-bg);
}

/* Compact list: a thumbnail on each line, no image row. */
.sgfbt--tpl-list .sgfbt__images,
.sgfbt--tpl-cards .sgfbt__images {
	display: none;
}

.sgfbt--tpl-list .sgfbt__item {
	align-items: center;
	gap: 0;
	padding: 8px;
	border: 1px solid var(--sgfbt-line);
	border-radius: var(--sgfbt-radius);
	background: var(--sgfbt-bg);
	transition: border-color 0.15s ease, opacity 0.15s ease;
}

.sgfbt--tpl-list .sgfbt__item + .sgfbt__item {
	margin-top: 8px;
}

.sgfbt--tpl-list .sgfbt__item:has(.sgfbt__check:checked) {
	border-color: color-mix(in srgb, var(--sgfbt-primary) 55%, transparent);
}

.sgfbt--tpl-list .sgfbt__checkwrap {
	align-self: center;
	margin: 0 !important;
}

.sgfbt--tpl-list .sgfbt__thumb {
	display: block;
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	margin-right: 12px;
	overflow: hidden;
	border: 1px solid var(--sgfbt-line);
	border-radius: var(--sgfbt-radius);
	background: #fff;
	transition: opacity 0.2s ease;
}

.sgfbt--tpl-list .sgfbt__thumb.is-off,
.sgfbt--tpl-cards .sgfbt__item.is-off .sgfbt__thumb {
	opacity: 0.4;
}

/* Cards: one card per product, side by side. */
.sgfbt--tpl-cards .sgfbt__list {
	display: grid;
	grid-auto-columns: minmax(140px, 1fr);
	grid-auto-flow: column;
	align-items: start;
	gap: 10px;
	overflow-x: auto;
	padding-bottom: 6px;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
}

.sgfbt--tpl-cards .sgfbt__item {
	scroll-snap-align: start;
}

.sgfbt--tpl-cards .sgfbt__item {
	position: relative;
	flex-direction: column;
	padding: 8px 8px 10px;
	border: 1px solid var(--sgfbt-line);
	border-radius: var(--sgfbt-img-radius);
	background: var(--sgfbt-bg);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sgfbt--tpl-cards .sgfbt__item + .sgfbt__item {
	margin-top: 0;
}

.sgfbt--tpl-cards .sgfbt__item:has(.sgfbt__check:checked) {
	border-color: var(--sgfbt-primary);
	box-shadow: 0 0 0 1px var(--sgfbt-primary);
}

.sgfbt--tpl-cards .sgfbt__checkwrap {
	position: absolute;
	z-index: 2;
	top: 14px;
	left: 14px;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin: 0 !important;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.sgfbt--tpl-cards .sgfbt__check {
	top: 4px !important;
	left: 4px !important;
}

.sgfbt--tpl-cards .sgfbt__thumb {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	margin-bottom: 8px;
	overflow: hidden;
	border-radius: var(--sgfbt-radius);
	background: #fff;
	transition: opacity 0.2s ease;
}

.sgfbt--tpl-cards .sgfbt__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	width: 100%;
}

.sgfbt--tpl-cards .sgfbt__row {
	flex: 1 1 auto;
	flex-direction: column;
	gap: 4px;
}

.sgfbt--tpl-cards .sgfbt__name {
	font-size: 13px;
}

.sgfbt--tpl-cards .sgfbt__this {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--sgfbt-primary-dark);
}

.sgfbt--tpl-cards .sgfbt__price {
	max-width: none;
	text-align: left;
	font-weight: 700;
}

.sgfbt--tpl-cards .sgfbt__price-old {
	display: inline;
	margin-left: 6px;
	font-weight: 400;
}

.sgfbt--tpl-cards .sgfbt__variant {
	max-width: none;
}

/* Inside a card the options open in the card itself (the row scrolls sideways). */
.sgfbt--tpl-cards .sgfbt__variant-panel {
	position: static;
	width: auto;
	max-width: none;
	max-height: 260px;
	margin-top: 6px;
	padding: 10px;
	box-shadow: none;
}

.sgfbt--tpl-cards .sgfbt__variant-panel .sgfbt-opt--img {
	width: 44px;
	height: 44px;
}

.sgfbt--tpl-cards .sgfbt__variant-panel .sgfbt-opt--img img {
	width: 40px;
	height: 40px;
}

.sgfbt--tpl-cards .sgfbt__variant-panel .sgfbt-opt {
	min-width: 34px;
	height: 34px;
	padding: 0 8px;
	font-size: 13px;
}

/* Style options (Look & texts → Style) ---------------------------------------
 * Classes on the block (and copied to the quick view): sgfbt--btn-*, --opt-*,
 * --chk-*, --img-*, --plus-*. The first choice of each is the default.
 */

/* Button: outline / pill. */
.sgfbt--btn-outline .sgfbt__add,
.sgfbt--btn-outline .sgfbt-qv__choose {
	border: 2px solid var(--sgfbt-primary);
	background: transparent;
	color: var(--sgfbt-primary);
}

.sgfbt--btn-outline .sgfbt__add:hover,
.sgfbt--btn-outline .sgfbt__add:focus-visible,
.sgfbt--btn-outline .sgfbt-qv__choose:hover {
	background: var(--sgfbt-primary);
	color: var(--sgfbt-on-primary);
	filter: none;
}

.sgfbt--btn-outline .sgfbt__add.is-loading::after,
.sgfbt--btn-outline .sgfbt-qv__choose.is-loading::after {
	border-color: color-mix(in srgb, var(--sgfbt-primary) 35%, transparent);
	border-top-color: var(--sgfbt-primary);
}

.sgfbt--btn-pill .sgfbt__add,
.sgfbt--btn-pill .sgfbt-qv__choose,
.sgfbt--btn-pill .sgfbt-qv__qty {
	border-radius: 999px;
}

/* Option buttons: rounded / pill (image swatches become round). */
.sgfbt--opt-rounded .sgfbt-opt {
	border-radius: 6px;
}

.sgfbt--opt-rounded .sgfbt-opt--img img {
	border-radius: 4px;
}

.sgfbt--opt-pill .sgfbt-opt {
	border-radius: 999px;
}

.sgfbt--opt-pill .sgfbt-opt--img img {
	border-radius: 50%;
}

.sgfbt--opt-pill .sgfbt__variant-panel .sgfbt-opt--img,
.sgfbt--opt-pill .sgfbt__variant-panel .sgfbt-opt--img img {
	border-radius: 50%;
}

.sgfbt--opt-rounded .sgfbt__variant-toggle {
	border-radius: 8px;
}

.sgfbt--opt-pill .sgfbt__variant-toggle {
	border-radius: 999px;
}

/* Checkbox: circle / filled. */
.sgfbt--chk-circle .sgfbt__box {
	border-radius: 50%;
}

.sgfbt--chk-filled .sgfbt__check:checked + .sgfbt__box {
	border-color: var(--sgfbt-primary);
	background: var(--sgfbt-primary);
	color: var(--sgfbt-on-primary);
}

/* Product images: square / circle. */
.sgfbt--img-square {
	--sgfbt-img-radius: 0px;
}

.sgfbt--img-square .sgfbt__thumb {
	border-radius: 0;
}

.sgfbt--img-circle .sgfbt__image,
.sgfbt--img-circle .sgfbt__thumb,
.sgfbt--img-circle .sgfbt-qv__main {
	aspect-ratio: 1 / 1;
	border-radius: 50%;
}

.sgfbt--img-circle .sgfbt__image img,
.sgfbt--img-circle .sgfbt__thumb img {
	object-fit: cover;
}

.sgfbt--img-circle .sgfbt__eye {
	bottom: 4px;
	left: 50%;
	margin-left: -16px;
}

/* "+" between images: plain / hidden. */
.sgfbt--plus-plain .sgfbt__plus {
	background: transparent;
	color: var(--sgfbt-text);
}

.sgfbt--plus-none .sgfbt__plus {
	display: none;
}

/* Compact option picker ------------------------------------------------------
 * Small, clear controls so the dropdown fits without scrolling; an attribute
 * with a single value is a plain "Style: Leather Jacket" line (no button).
 */
.sgfbt__variant-panel {
	width: max-content;
	min-width: 240px;
	max-width: min(340px, calc(100vw - 32px));
	max-height: 360px;
	padding: 12px 14px;
}

.sgfbt .sgfbt-attr + .sgfbt-attr,
.sgfbt-qv .sgfbt-attr + .sgfbt-attr {
	margin-top: 12px;
}

.sgfbt .sgfbt-attr--fixed + .sgfbt-attr--fixed,
.sgfbt-qv .sgfbt-attr--fixed + .sgfbt-attr--fixed {
	margin-top: 2px;
}

.sgfbt .sgfbt-attr__label,
.sgfbt-qv .sgfbt-attr__label {
	margin: 0 0 6px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--sgfbt-muted, rgba(8, 23, 18, 0.6));
}

.sgfbt .sgfbt-attr__value,
.sgfbt-qv .sgfbt-attr__value {
	margin-left: 2px;
	color: var(--sgfbt-text, #081712);
	font-weight: 600;
}

.sgfbt .sgfbt-attr--fixed .sgfbt-attr__label,
.sgfbt-qv .sgfbt-attr--fixed .sgfbt-attr__label {
	margin-bottom: 0;
}

.sgfbt .sgfbt-attr__options,
.sgfbt-qv .sgfbt-attr__options {
	gap: 6px;
}

.sgfbt .sgfbt__variant-panel .sgfbt-opt {
	min-width: 36px;
	height: 32px;
	padding: 0 10px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	text-transform: none;
	letter-spacing: 0;
}

.sgfbt .sgfbt__variant-panel .sgfbt-opt.is-selected {
	border-width: 1px;
	font-weight: 600;
}

.sgfbt .sgfbt__variant-panel .sgfbt-opt--img {
	width: 48px;
	min-width: 0;
	height: 48px;
	padding: 0;
}

.sgfbt .sgfbt__variant-panel .sgfbt-opt--img img {
	width: 44px;
	height: 44px;
}

.sgfbt .sgfbt__variant-panel .sgfbt-opt--img.is-selected {
	border-width: 2px;
}

.sgfbt-qv .sgfbt-opt:not(.sgfbt-opt--img) {
	height: 36px;
	font-size: 13px;
	font-weight: 500;
	text-transform: none;
}
