/* Up-sells under the add-to-cart box (inc/devvn-upsell.php). */
.devvn-upsell {
	margin: 20px 0 10px;
}

.devvn-upsell .devvn-upsell__title {
	font-size: 1em;
	font-weight: 600;
	color: #000;
	text-transform: uppercase;
	margin-bottom: 10px;
}

.devvn-upsell .product-small .box-text {
	padding-left: 6px;
	padding-right: 6px;
}

/* Card text: title (max 2 lines) + price only. */
.devvn-upsell .product-small .product-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	margin-bottom: 4px;
	font-size: 13px !important;
	line-height: 1.35;
}

.devvn-upsell .product-small .product-title a {
	display: inline;
	font-size: inherit !important;
}

.devvn-upsell .product-small .devvn_rating_loop,
.devvn-upsell .product-small .box-text .star-rating {
	display: none;
}

.devvn-upsell .product-small .price-wrapper .price {
	flex-wrap: wrap;
	gap: 0 4px;
	font-size: 12px;
	line-height: 1.35;
}

.devvn-upsell .product-small .price-wrapper .price del {
	font-size: 11px;
}

/* Smaller sale badge, no HOT icon in the narrow cards. */
.devvn-upsell .product-small .badge-container .badge {
	height: 22px;
	font-size: 11px;
}

.devvn-upsell .product-small .badge-inner.on-sale::after {
	display: none;
}

/* Quick view popup: inner spacing, thumbnail strip, centred add-to-cart button. */
.product-lightbox .product-quick-view-container {
	padding: 10px;
}

.product-lightbox .woocommerce-variation-add-to-cart {
	justify-content: center;
}

.product-lightbox .product-gallery-slider .flickity-page-dots {
	display: none;
}

@media (max-width: 549px) {
	.product-lightbox .product-lightbox-inner {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
}

.devvn-qv-thumbs {
	margin-top: 8px;
}

.devvn-qv-thumbs:not(.flickity-enabled) {
	display: flex;
	overflow: hidden;
}

.product-lightbox .devvn-qv-thumbs .devvn-qv-thumbs__item {
	flex: 0 0 20%;
	width: 20% !important;
	padding: 0 3px;
	cursor: pointer;
}

.devvn-qv-thumbs__item img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid transparent;
	opacity: .6;
	transition: opacity .2s, border-color .2s;
}

.devvn-qv-thumbs__item.is-nav-selected img,
.devvn-qv-thumbs__item:hover img {
	border-color: var(--fs-color-primary);
	opacity: 1;
}

/* Round add-to-cart icon at the bottom-right corner of the image. */
.devvn-upsell .devvn-upsell__tools {
	padding: 8px;
	opacity: 1 !important;
	z-index: 2;
}

.devvn-upsell .devvn-upsell__tools .added_to_cart {
	display: none;
}

.devvn-upsell .devvn-upsell__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, .92);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
	color: #444;
	transition: background-color .2s, color .2s;
}

.devvn-upsell .devvn-upsell__btn::before {
	content: "";
	display: block;
	width: 18px;
	height: 18px;
	background-color: currentColor;
	-webkit-mask: url(../images/icon-bag-plus.svg) center / contain no-repeat;
	mask: url(../images/icon-bag-plus.svg) center / contain no-repeat;
}

.devvn-upsell .devvn-upsell__btn:hover,
.devvn-upsell .devvn-upsell__btn:focus-visible {
	background-color: var(--fs-color-primary);
	color: #fff;
}

.devvn-upsell .devvn-upsell__btn.added {
	display: flex;
}

.devvn-upsell .devvn-upsell__btn.added::before {
	-webkit-mask-image: url(../images/icon-check.svg);
	mask-image: url(../images/icon-check.svg);
}

.devvn-upsell .devvn-upsell__btn.loading {
	pointer-events: none;
}

.devvn-upsell .devvn-upsell__btn.loading::before {
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	background-color: transparent;
	-webkit-mask: none;
	mask: none;
	animation: spin .6s linear infinite;
}
