/* CB Gifts — stile badge OMAGGIO. Vive nel plugin, non tocca CSS del tema. */

.cb-carrello-row__qty--gift,
.cb-cart-mini__qty--gift,
.cb-pag-row__qty--gift {
	border: 0 !important;
	background: transparent !important;
	padding: 0 !important;
}

.cb-gift-badge,
.cb-cart-mini__gift {
	display: inline-block;
	padding: 6px 14px;
	background: #7FA056;
	color: #fff;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .4px;
	line-height: 1;
	text-transform: uppercase;
	border: 0;
}

.cb-cart-mini__gift {
	padding: 4px 10px;
}

.cb-carrello-row__qty-val {
	font-size: 14px;
}

.cb-pag-row__qty {
	width: 80px;
}
.cb-pag-row__qty .cb-pag-row__qty-value {
	font-size: 12px;
}
.cb-pag-row__qty--gift {
	width: auto;
}

/* Mobile: solleva l'icona CookieYes sopra la sticky cart bar (stesso pattern del loyalty floater). */
@media (max-width: 640px) {
	body:has(.cb-cart-stickybar:not([hidden])) .cky-btn-revisit-wrapper,
	body:has(.cb-cart-stickybar:not([hidden])) .cky-revisit-bottom-left,
	body:has(.cb-cart-stickybar:not([hidden])) .cky-revisit-bottom-right {
		bottom: calc(80px + env(safe-area-inset-bottom)) !important;
	}
}

/* Mobile: badge nella card vanno a capo quando non ci stanno in linea */
@media (max-width: 768px) {
	.cb-card__top {
		flex-wrap: wrap;
		gap: 4px;
	}
}

/* Lock visivo durante AJAX update qty (anti-spam click) */
.cb-busy {
	opacity: .55;
	cursor: not-allowed !important;
}
button.cb-busy,
button[disabled].cb-busy {
	pointer-events: none !important;
}
