.upsell-block {
	margin: 18px 0 10px;
}

.upsell-block__title {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 12px;
	line-height: 1.3;
	color: #222;
}

.upsell-block--product {
	background: #f3f7fc;
	border: 1px solid #d7e4f4;
	border-radius: 10px;
	padding: 16px 12px 14px;
}

.upsell-block--product .upsell-block__title {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 14px;
	color: #1a1a1a;
}

.upsell-block--cart {
	background: #f6f6f6;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	padding: 14px 12px;
	margin: 12px 0 0;
	flex-shrink: 0;
}

.upsell-block--cart .upsell-block__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: none;
	overflow: visible;
}

.upsell-item {
	display: grid;
	grid-template-columns: 64px 1fr auto;
	gap: 10px;
	align-items: center;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 8px;
	padding: 8px;
}

.upsell-item__image {
	display: block;
	width: 64px;
	height: 64px;
	border-radius: 6px;
	overflow: hidden;
	background: #fafafa;
}

.upsell-item__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.upsell-item__name {
	display: block;
	font-size: 13px;
	line-height: 1.3;
	color: #222;
	text-decoration: none;
	max-height: 2.6em;
	overflow: hidden;
}

.upsell-item__prices {
	margin-top: 4px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: baseline;
}

.upsell-item__price-old {
	color: #999;
	text-decoration: line-through;
	font-size: 12px;
}

.upsell-item__price-new {
	color: #c0392b;
	font-weight: 700;
	font-size: 14px;
}

.upsell-item__price {
	font-weight: 600;
	font-size: 14px;
}

.upsell-item__btn {
	border: 0;
	background: #2681E5;
	color: #fff;
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: background .2s ease, opacity .2s ease;
	min-width: 78px;
	height: auto;
	width: auto;
}

.upsell-item__btn:hover,
.upsell-item__btn:focus {
	background: #3572E1;
	color: #fff;
	outline: none;
}

.upsell-item__btn.is-loading,
.upsell-item__btn:disabled {
	opacity: .6;
	pointer-events: none;
}

.upsell-block__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}

.upsell-block__head .upsell-block__title {
	margin-bottom: 0;
}

.upsell-block__pill {
	display: inline-flex;
	align-items: center;
	background: #f04e5a;
	color: #fff;
	border-radius: 99px;
	padding: 5px 13px;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
}

/* Product + Checkout cards / carousel */
.upsell-block--checkout {
	background: #fff;
	border: 1px solid #e8eef5;
	border-radius: 10px;
	padding: 16px 14px 12px;
	margin: 0 0 10px;
}

.upsell-block--checkout .upsell-block__title {
	font-size: 18px;
	margin-bottom: 14px;
}

/* Loviks-like red checkout / cart promo */
.upsell-block--loviks {
	--upsell-red: #f04e5a;
	--upsell-red-soft: #fad3d6;
	--upsell-ink: #23283c;
	background: #fff;
	border: 1px solid var(--upsell-red-soft);
	border-radius: 18px;
	padding: 18px 16px;
}

.upsell-block--loviks .upsell-block__title {
	color: var(--upsell-red);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .01em;
	margin-bottom: 0;
	text-transform: none;
}

.upsell-block--loviks .upsell-checkout-card {
	border: 1px solid #f1dbdd;
	border-radius: 16px;
	background: #fff;
	padding: 0;
}

.upsell-block--loviks .upsell-checkout-card__image {
	padding: 12px;
}

.upsell-block--loviks .upsell-checkout-card__image img {
	border-radius: 12px;
}

.upsell-block--loviks .upsell-checkout-card__name {
	color: var(--upsell-ink);
	font-weight: 600;
}

.upsell-block--loviks .upsell-item__price-new,
.upsell-block--loviks .upsell-item__price {
	color: var(--upsell-red);
	font-size: 17px;
	font-weight: 800;
}

.upsell-block--loviks .upsell-item__price-old {
	color: #9a9dab;
	font-size: 12px;
}

.upsell-block--loviks .upsell-item__btn,
.upsell-block--loviks .upsell-checkout-card__btn {
	background: var(--upsell-red);
	border-radius: 11px;
	font-weight: 700;
}

.upsell-block--loviks .upsell-item__btn:hover,
.upsell-block--loviks .upsell-item__btn:focus,
.upsell-block--loviks .upsell-checkout-card__btn:hover,
.upsell-block--loviks .upsell-checkout-card__btn:focus {
	background: #e0434f;
	color: #fff;
}

.upsell-block--cart .upsell-block__head {
	margin-bottom: 10px;
}

.upsell-block--cart .upsell-block__title {
	color: #f04e5a;
	font-weight: 800;
	font-size: 14px;
}

.upsell-block--cart .upsell-item__btn {
	background: #f04e5a;
}

.upsell-block--cart .upsell-item__btn:hover,
.upsell-block--cart .upsell-item__btn:focus {
	background: #e0434f;
}

.upsell-block--cart .upsell-item__price-new {
	color: #f04e5a;
}

.upsell-checkout-track {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
}

.upsell-product-track {
	display: flex;
	overflow-x: auto;
	gap: 12px;
	padding: 2px 2px 4px;
	margin: 0 -2px;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.upsell-product-track::-webkit-scrollbar {
	display: none;
	height: 0;
}

.upsell-product-track .upsell-checkout-card {
	flex: 0 0 calc(50% - 6px);
	max-width: 200px;
	scroll-snap-align: start;
}

.upsell-checkout-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #edf1f5;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
	min-width: 0;
}

.upsell-checkout-card__image {
	display: block;
	padding: 12px;
	background: #fff;
	text-align: center;
}

.upsell-checkout-card__image img {
	display: inline-block;
	max-width: 100%;
	height: auto;
	max-height: 120px;
	object-fit: contain;
}

.upsell-checkout-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 0 12px 12px;
	flex-grow: 1;
}

.upsell-checkout-card__name {
	display: block;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
	color: #222;
	text-decoration: none;
	max-height: 2.7em;
	overflow: hidden;
}

.upsell-checkout-card__prices {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: baseline;
	margin: 4px 0 2px;
}

.upsell-checkout-card__btn {
	width: 100%;
	min-width: 0;
	margin-top: auto;
	padding: 10px 12px;
	font-size: 13px;
	border-radius: 6px;
}

@media (max-width: 767px) {
	.upsell-block--product {
		padding: 14px 10px 12px;
		margin: 16px 0 12px;
	}

	.upsell-block--product .upsell-block__title {
		font-size: 17px;
		margin-bottom: 12px;
	}

	.upsell-block--cart {
		padding: 12px 10px;
	}

	.upsell-item {
		grid-template-columns: 56px 1fr auto;
	}

	.upsell-item__image {
		width: 56px;
		height: 56px;
	}

	.upsell-item__btn {
		padding: 8px 9px;
		font-size: 11px;
		min-width: 70px;
	}

	.upsell-product-track .upsell-checkout-card {
		flex: 0 0 78%;
		max-width: none;
	}

	.upsell-checkout-card__image {
		padding: 16px 14px 12px;
	}

	.upsell-checkout-card__image img {
		max-height: 160px;
	}

	.upsell-checkout-card__name {
		font-size: 15px;
		max-height: 2.8em;
	}

	.upsell-item__price-new,
	.upsell-item__price {
		font-size: 16px;
	}

	.upsell-item__price-old {
		font-size: 13px;
	}

	.upsell-checkout-card__btn {
		padding: 13px 12px;
		font-size: 15px;
	}

	.upsell-checkout-track:not(.upsell-product-track) {
		display: flex;
		overflow-x: auto;
		gap: 10px;
		padding-bottom: 6px;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x mandatory;
	}

	.upsell-checkout-track:not(.upsell-product-track) .upsell-checkout-card {
		flex: 0 0 150px;
		scroll-snap-align: start;
	}
}

@media (min-width: 992px) {
	.upsell-product-track {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		overflow: visible;
		scroll-snap-type: none;
		padding-bottom: 0;
	}

	.upsell-product-track .upsell-checkout-card {
		flex: none;
		max-width: none;
	}
}
