/**
 * wpezo Smart Upsell — storefront widget styles.
 *
 * All rules are scoped under .wpezo-su-fbt so the widget never affects the rest
 * of the theme. The accent color is injected as --wpsu-accent by the script.
 */

.wpezo-su-fbt {
	--wpsu-accent: #2271b1;
	margin: 28px 0;
}

.wpezo-su-fbt__card {
	border: 1px solid #e2e4e7;
	border-radius: 10px;
	padding: 18px 20px;
	background: #fff;
}

.wpezo-su-fbt__heading {
	margin: 0 0 14px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

.wpezo-su-fbt__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.wpezo-su-fbt__item {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1 1 280px;
	min-width: 240px;
	padding: 10px;
	border: 1px solid #eef0f2;
	border-radius: 8px;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.wpezo-su-fbt__item.is-selected {
	border-color: var(--wpsu-accent);
	box-shadow: 0 0 0 1px var(--wpsu-accent) inset;
}

.wpezo-su-fbt__check {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	accent-color: var(--wpsu-accent);
	cursor: pointer;
}

.wpezo-su-fbt__thumb {
	width: 56px;
	height: 56px;
	flex-shrink: 0;
	object-fit: cover;
	border-radius: 6px;
	background: #f6f7f7;
}

.wpezo-su-fbt__info {
	min-width: 0;
}

.wpezo-su-fbt__name {
	display: block;
	font-size: 14px;
	line-height: 1.35;
	color: inherit;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.wpezo-su-fbt__name:hover {
	text-decoration: underline;
}

.wpezo-su-fbt__price {
	display: block;
	margin-top: 3px;
	font-size: 13.5px;
	color: #444;
}

.wpezo-su-fbt__view {
	margin-left: auto;
	font-size: 13px;
	color: var(--wpsu-accent);
	white-space: nowrap;
}

.wpezo-su-fbt__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid #eef0f2;
}

.wpezo-su-fbt__totals {
	font-size: 14px;
	line-height: 1.5;
}

.wpezo-su-fbt__total-final {
	font-weight: 700;
	font-size: 16px;
}

.wpezo-su-fbt__total-strike {
	text-decoration: line-through;
	color: #888;
	margin-left: 6px;
	font-size: 13px;
}

.wpezo-su-fbt__save {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 8px;
	border-radius: 10px;
	background: #e7f6ec;
	color: #00733b;
	font-size: 12px;
	font-weight: 600;
}

.wpezo-su-fbt__cta {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 20px;
	border: none;
	border-radius: 8px;
	background: var(--wpsu-accent);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: filter 0.15s, opacity 0.15s;
}

.wpezo-su-fbt__cta:hover:not(:disabled) {
	filter: brightness(0.92);
}

.wpezo-su-fbt__cta:disabled {
	opacity: 0.6;
	cursor: default;
}

.wpezo-su-fbt__message {
	flex-basis: 100%;
	font-size: 13.5px;
}

.wpezo-su-fbt__message.is-error {
	color: #b32d2e;
}

.wpezo-su-fbt__message.is-success {
	color: #00733b;
}

.wpezo-su-fbt__message a {
	color: var(--wpsu-accent);
	font-weight: 600;
}

@media screen and (max-width: 600px) {
	.wpezo-su-fbt__footer {
		flex-direction: column;
		align-items: stretch;
	}

	.wpezo-su-fbt__cta {
		margin-left: 0;
		justify-content: center;
	}
}

/* Compact variant for the narrow block cart/checkout order-summary slot. */
.wpezo-su-fbt--blocks {
	margin: 16px 0 0;
}

.wpezo-su-fbt--blocks .wpezo-su-fbt__card {
	padding: 14px;
}

.wpezo-su-fbt--blocks .wpezo-su-fbt__item {
	flex: 1 1 100%;
	min-width: 0;
}

.wpezo-su-fbt--blocks .wpezo-su-fbt__footer {
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
}

.wpezo-su-fbt--blocks .wpezo-su-fbt__cta {
	margin-left: 0;
	justify-content: center;
}
