/* ── Mini Cart Upsell — sidecart upsell rows ────────────────────────────── */

.av-mc-upsell {
	padding: 15px 0;
}

.av-mc-upsell:empty {
	padding: 0;
}

.av-mc-upsell__heading {
	font-size: 16px;
	font-weight: 700;
	color: #101828;
	padding: 20px 0 16px;
	border-top: 1px solid #F3F4F6;
}

.av-mc-upsell__admin-notice {
	background: #fef3c7;
	color: #92400e;
	border: 1px dashed #f59e0b;
	font-size: 12px;
	padding: 8px 12px;
	border-radius: 6px;
}

/* Product row */
.av-mc-upsell__row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	margin-bottom: 12px;
	background: #FAFAFA;
	border-radius: 12px;
}

.av-mc-upsell__row:first-of-type {
	border-top: none;
}

/* Thumbnail */
.av-mc-upsell__img {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	background: #f5f5f5;
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.av-mc-upsell__img img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

/* Info */
.av-mc-upsell__info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.av-mc-upsell__name {
	font-size: 14px;
	font-weight: 600;
	color: #101828;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.av-mc-upsell__price {
	font-size: 14px;
	font-weight: 700;
	color: #101828;
	display: flex;
	align-items: baseline;
	gap: 6px;
}

.av-mc-upsell__price del {
	font-size: 12px;
	font-weight: 400;
	color: #9ca3af;
	text-decoration: line-through;
}

.av-mc-upsell__price del + .woocommerce-Price-amount {
	color: #92c096;
}

/* Variation selectors (variable products) */
.av-mc-upsell__attrs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 4px;
}

.av-mc-upsell__attr {
	flex: 1 1 auto;
	min-width: 0;
	height: 28px;
	max-width: 100%;
	padding: 0 22px 0 8px;
	font-size: 12px;
	font-weight: 500;
	color: #101828;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%236b7280' d='M5 6 0 0h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 8px center;
	background-size: 8px 5px;
}

.av-mc-upsell__attr:focus {
	outline: none;
	border-color: #92c096;
	box-shadow: 0 0 0 2px rgba(146, 192, 150, 0.2);
}

/* Add button */
.av-mc-upsell__add-btn {
	position: relative;
	flex-shrink: 0;
	height: 36px;
	padding: 0 16px;
	margin: 0;
	background: #92c096;
	color: #fff;
	border: none;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s;
}

.av-mc-upsell__add-btn:hover {
	background: #7db382;
}

.av-mc-upsell__add-btn:disabled,
.av-mc-upsell__add-btn[disabled] {
	background: #d1d5db;
	cursor: not-allowed;
	opacity: 0.6;
}

.av-mc-upsell__add-btn.is-loading {
	pointer-events: none;
	color: transparent;
}

.av-mc-upsell__add-btn.is-loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 14px;
	margin: -7px 0 0 -7px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: av-mc-upsell-spin 0.6s linear infinite;
}

@keyframes av-mc-upsell-spin {
	to { transform: rotate(360deg); }
}

/* Cart-line badge (renders on cart, checkout, mini-cart drawer) */
.av-mini-cart-upsell-badge {
	display: block;
	width: fit-content;
	background: #d97706;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	border-radius: 6px;
	padding: 2px 8px;
	margin-top: 4px;
}

.ux-mini-cart-footer span.amount {
	font-size: 20px;
}
