/* WC Bump Offer — stile box checkout */
.wcbo-box {
	position: relative;
	margin: 18px 0;
	padding: 18px 18px 16px;
	border: 2px dashed var(--wcbo-accent, #e8a200);
	border-radius: 10px;
	background: #fffdf5;
	transition: box-shadow .15s ease, background .15s ease;
}

.wcbo-box.is-added {
	background: #f4fbf4;
	border-style: solid;
	border-color: #4caf50;
	box-shadow: 0 0 0 3px rgba(76, 175, 80, .12);
}

.wcbo-badge {
	position: absolute;
	top: -11px;
	left: 16px;
	background: var(--wcbo-accent, #e8a200);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .5px;
	text-transform: uppercase;
	padding: 3px 10px;
	border-radius: 20px;
}

.wcbo-inner {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
	margin: 0;
}

.wcbo-check {
	position: relative;
	flex: 0 0 auto;
	padding-top: 2px;
}

.wcbo-check input[type="checkbox"] {
	width: 22px;
	height: 22px;
	cursor: pointer;
	accent-color: var(--wcbo-accent, #e8a200);
	margin: 0;
}

.wcbo-spinner {
	display: none;
	position: absolute;
	top: 2px;
	left: 0;
	width: 22px;
	height: 22px;
	border: 3px solid rgba(0, 0, 0, .15);
	border-top-color: var(--wcbo-accent, #e8a200);
	border-radius: 50%;
	animation: wcbo-spin .7s linear infinite;
}

.wcbo-box.is-loading .wcbo-spinner { display: block; }
.wcbo-box.is-loading input[type="checkbox"] { visibility: hidden; }
.wcbo-box.is-loading .wcbo-inner { pointer-events: none; opacity: .85; }

@keyframes wcbo-spin { to { transform: rotate(360deg); } }

.wcbo-thumb {
	flex: 0 0 auto;
	line-height: 0;
}
.wcbo-thumb img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 8px;
	margin: 0;
}

.wcbo-content {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.wcbo-headline {
	font-size: 15px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.25;
}

.wcbo-cta {
	font-size: 14px;
	font-weight: 700;
	color: var(--wcbo-accent, #e8a200);
	text-decoration: underline;
}

.wcbo-desc {
	font-size: 13px;
	color: #555;
	line-height: 1.4;
}

.wcbo-price {
	margin-top: 4px;
	font-size: 14px;
}
.wcbo-price del { color: #999; margin-right: 6px; }
.wcbo-price ins { text-decoration: none; font-weight: 700; color: #1a1a1a; }
.wcbo-product-name { font-weight: 700; }

.wcbo-tag {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	background: #4caf50;
	color: #fff;
	padding: 1px 6px;
	border-radius: 4px;
	vertical-align: middle;
	margin-left: 4px;
}

/* Varianti */
.wcbo-variations {
	margin: 12px 0 2px;
	padding: 12px 0 0;
	border-top: 1px solid rgba(0, 0, 0, .08);
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	align-items: flex-end;
}

.wcbo-variation-row {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.wcbo-variation-label {
	font-size: 12px;
	font-weight: 600;
	color: #444;
}

.wcbo-variations select {
	min-width: 150px;
	max-width: 220px;
	height: 38px;
	padding: 4px 8px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #fff;
}

.wcbo-variation-hint {
	flex-basis: 100%;
	margin: 2px 0 0;
	font-size: 12px;
	color: #888;
}

/* Una volta pronta/aggiunta, nascondi l'hint. */
.wcbo-box.wcbo-ready .wcbo-variation-hint,
.wcbo-box.is-added .wcbo-variation-hint { display: none; }

/* Checkbox disabilitato in attesa della scelta variante. */
.wcbo-check input[type="checkbox"]:disabled { cursor: not-allowed; opacity: .5; }

@media (max-width: 480px) {
	.wcbo-thumb img { width: 52px; height: 52px; }
	.wcbo-headline { font-size: 14px; }
	.wcbo-variations select { min-width: 100%; max-width: 100%; }
	.wcbo-variation-row { width: 100%; }
}
