/* =======================================
   Sweet Product Addons - Frontend
   Card style inspirat din warranty Belora
   ======================================= */

.spa-addons-wrap {
	margin: 18px 0 22px;
	font-family: inherit;
}

.spa-addons-header {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 700;
	color: #1f2d3d;
	margin-bottom: 12px;
	letter-spacing: 0.6px;
	text-transform: uppercase;
}

.spa-shield-icon {
	width: 16px;
	height: 16px;
	color: #1f2d3d;
	flex-shrink: 0;
}

.spa-addons-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.spa-addon-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 2px solid #e5e9ed;
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
	user-select: none;
	margin: 0;
	min-height: 56px;
}

.spa-addon-card:hover {
	border-color: #c5ced7;
}

.spa-addon-card.spa-checked {
	border-color: #10b981;
	background: #f0fdf6;
}

.spa-addon-input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.spa-check-visual {
	width: 22px;
	height: 22px;
	border: 2px solid #cbd5e0;
	border-radius: 6px;
	background: #fff;
	flex-shrink: 0;
	position: relative;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.spa-addon-card.spa-checked .spa-check-visual {
	background: #10b981;
	border-color: #10b981;
}

.spa-addon-card.spa-checked .spa-check-visual::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 2px;
	width: 6px;
	height: 11px;
	border: solid #fff;
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg);
}

.spa-addon-icon {
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #c89860;
	flex-shrink: 0;
	border-radius: 6px;
	overflow: hidden;
	background: #f8f5f0;
}

.spa-addon-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 6px;
}

.spa-addon-icon svg {
	width: 20px;
	height: 20px;
}

.spa-addon-text {
	flex: 1;
	min-width: 0;
}

.spa-addon-title {
	font-weight: 600;
	font-size: 14px;
	color: #1f2937;
	line-height: 1.3;
}

.spa-addon-sub {
	font-size: 12px;
	color: #6b7280;
	margin-top: 2px;
	line-height: 1.3;
}

.spa-badge {
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	color: #fff;
	flex-shrink: 0;
	white-space: nowrap;
	line-height: 1;
}

.spa-badge-included {
	background: #10b981;
}

.spa-badge-paid {
	background: #f5b942;
	color: #fff;
}

/* Coș - quantity addon blocata */
.spa-qty-fixed {
	display: inline-block;
	padding: 4px 10px;
	background: #f3f4f6;
	color: #6b7280;
	border-radius: 4px;
	font-weight: 600;
}

/* Responsive */
@media (max-width: 600px) {
	.spa-addon-card {
		padding: 10px 12px;
		gap: 10px;
	}

	.spa-addon-icon {
		width: 30px;
		height: 30px;
	}

	.spa-addon-title { font-size: 13px; }
	.spa-addon-sub   { font-size: 11px; }
	.spa-badge       { font-size: 10px; padding: 4px 9px; }
	.spa-check-visual { width: 20px; height: 20px; }
	.spa-addon-card.spa-checked .spa-check-visual::after {
		left: 5px;
		top: 2px;
		width: 5px;
		height: 10px;
	}
}
