/* ============================================================
 * SBB Frequently Bought Together
 * Styled for Flatsome theme + brand red #990002
 * ============================================================ */

.sbb-fbt {
	--sbb-red: #990002;
	--sbb-red-dark: #7a0002;
	--sbb-border: #e6e6e6;
	--sbb-muted: #6b6b6b;
	margin: 30px 0;
	font-family: inherit;
}

.sbb-fbt__heading {
	font-size: 1.15em;
	font-weight: 700;
	margin: 0 0 14px;
	color: #111;
}

.sbb-fbt__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0;
	border: 1px solid var(--sbb-border);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

/* ---- Items column ---- */
.sbb-fbt__items {
	flex: 1 1 60%;
	min-width: 280px;
	padding: 8px 20px;
}

.sbb-fbt__item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid var(--sbb-border);
	cursor: pointer;
	margin: 0;
}

.sbb-fbt__item:last-child {
	border-bottom: 0;
}

.sbb-fbt__item.is-unchecked {
	opacity: 0.5;
}

/* Checkbox */
.sbb-fbt__check {
	display: flex;
	align-items: center;
	padding-top: 4px;
}

.sbb-fbt__cb {
	width: 20px;
	height: 20px;
	accent-color: var(--sbb-red);
	cursor: pointer;
	margin: 0;
}

/* Thumbnail */
.sbb-fbt__thumb img {
	width: 66px;
	height: 66px;
	object-fit: contain;
	border-radius: 8px;
	border: 1px solid var(--sbb-border);
	background: #fafafa;
	display: block;
	margin: 0;
}

/* Meta */
.sbb-fbt__meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.sbb-fbt__price {
	font-weight: 700;
	font-size: 1.05em;
	color: #111;
}

.sbb-fbt__price .amount {
	color: #111;
}

.sbb-fbt__name {
	color: #333;
	line-height: 1.4;
	font-size: 0.95em;
}

.sbb-fbt__name em {
	color: var(--sbb-muted);
	font-style: normal;
	font-size: 0.85em;
}

/* Variation dropdowns */
.sbb-fbt__variations {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.sbb-fbt__attr {
	font-size: 0.85em;
	padding: 5px 8px;
	border: 1px solid var(--sbb-border);
	border-radius: 6px;
	max-width: 160px;
	margin: 0;
	height: auto;
}

/* ---- Summary column ---- */
.sbb-fbt__summary {
	flex: 1 1 30%;
	min-width: 220px;
	padding: 24px 22px;
	border-left: 1px solid var(--sbb-border);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
	background: #fcfcfc;
}

.sbb-fbt__total-wrap {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 6px;
}

.sbb-fbt__total-label {
	font-weight: 700;
	color: #111;
	line-height: 1.25;
}

.sbb-fbt__total {
	font-size: 1.5em;
	font-weight: 800;
	color: var(--sbb-red);
	white-space: nowrap;
}

.sbb-fbt__total .amount {
	color: var(--sbb-red);
}

.sbb-fbt__discount-note {
	margin: 0;
	font-size: 0.85em;
	color: var(--sbb-red);
	font-weight: 600;
}

/* CTA button — Flatsome-compatible, brand red */
.sbb-fbt__add.button {
	background-color: var(--sbb-red);
	border-color: var(--sbb-red);
	color: #fff;
	border-radius: 999px;
	padding: 14px 22px;
	font-weight: 700;
	width: 100%;
	margin: 0;
	transition: background-color 0.15s ease, transform 0.05s ease;
	box-shadow: none;
}

.sbb-fbt__add.button:hover {
	background-color: var(--sbb-red-dark);
	border-color: var(--sbb-red-dark);
	color: #fff;
}

.sbb-fbt__add.button:active {
	transform: translateY(1px);
}

.sbb-fbt__add.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

/* Status message */
.sbb-fbt__msg {
	font-size: 0.9em;
	text-align: center;
	min-height: 1.2em;
}

.sbb-fbt__msg.is-success {
	color: #1a7f37;
	font-weight: 600;
}

.sbb-fbt__msg.is-error {
	color: var(--sbb-red);
	font-weight: 600;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
	.sbb-fbt__inner {
		flex-direction: column;
	}

	.sbb-fbt__summary {
		border-left: 0;
		border-top: 1px solid var(--sbb-border);
	}
}
