/* ── Product Bundle ──────────────────────────────────────────────────────── */

.av-bundle {
	background: #E9F1EA40;
	border: 1px solid #93BD9633;
	border-radius: 12px;
	padding: 20px 20px;
	margin: 24px 0;
}

/* Header */
.av-bundle__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.av-bundle__header-left {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.av-bundle__header-icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--fs-color-primary);
}

.av-bundle__title {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #4b5563;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.2;
}

.av-bundle__discount-badge {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 2px 10px;
	background: var(--fs-color-primary);
	color: #fff;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

/* Cards row */
.av-bundle__cards {
	display: flex;
	align-items: stretch;
	gap: 0;
	margin-bottom: 16px;
}

.av-bundle__plus {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 24px;
	font-size: 16px;
	font-weight: 500;
	color: #9ca3af;
}

/* Card — horizontal: image | content | checkbox */
.av-bundle__card {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	background: #fff;
	border: 1.5px solid #e5e7eb;
	border-radius: 12px;
	padding: 10px 12px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	position: relative;
	cursor: pointer;
	outline: none;
}

.av-bundle__card:hover {
	border-color: #cdd5df;
}

/* Focus / active state — dashed blue outline */


/* Card image */
.av-bundle__card-img {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f7f8fa;
	border: 1px solid transparent;
	border-radius: 8px;
	overflow: hidden;
}

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

/* Card content (brand + name + price stacked) */
.av-bundle__card-content {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.av-bundle__card-brand {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.av-bundle__card-name {
	font-size: 12px;
	font-weight: 500;
	color: #091120;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.av-bundle__card-price {
	font-size: 12px;
	font-weight: 700;
	color: #101828;
	line-height: 1.2;
	margin-top: 2px;
}

/* Variation select */
.av-bundle__var-select {
	display: none;
	width: 100%;
	font-size: 11px;
	padding: 4px 6px;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	background: #fff;
	margin: 4px 0 0;
}

/* Checkbox */
.av-bundle__checkbox {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.av-bundle__checkbox input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.av-bundle__check-icon {
	width: 22px;
	height: 22px;
	border-radius: 5px;
	border: 2px solid #cdd5df;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s, border-color 0.15s;
}

.av-bundle__check-icon::after {
	content: '';
	width: 9px;
	height: 5px;
	border: 2px solid #fff;
	border-top: none;
	border-right: none;
	transform: rotate(-45deg) translateY(-1px);
	opacity: 0;
	transition: opacity 0.15s;
}

.av-bundle__checkbox input:checked + .av-bundle__check-icon {
	background: #92c096;
	border-color: #92c096;
}

.av-bundle__checkbox input:checked + .av-bundle__check-icon::after {
	opacity: 1;
}

.av-bundle__checkbox input:disabled + .av-bundle__check-icon {
	opacity: 0.55;
	cursor: default;
}

/* Footer (price row + CTA) */
.av-bundle__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.av-bundle__pricing {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
}

.av-bundle__original-price {
	font-size: 14px;
	color: #6a7282;
	font-weight: 400;
}

.av-bundle__original-price del {
	text-decoration: line-through;
}

.av-bundle__deal-price {
	font-size: 18px;
	font-weight: 700;
	color: #101828;
}

.av-bundle__savings {
	font-size: 13px;
	font-weight: 500;
	color: #92c096;
}

.av-bundle__add-btn {
	flex-shrink: 0;
	height: 44px;
	padding: 0 28px;
	margin-bottom: 0;
	background: var(--fs-color-primary);
	color: #fff;
	border: none;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s, transform 0.15s;
}

.av-bundle__add-btn:hover {
	background: #7db382;
	transform: translateY(-1px);
}

.av-bundle__add-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.av-bundle__add-btn.is-loading {
	pointer-events: none;
	opacity: 0.7;
}

/* ── Tablet ─────────────────────────────────────────────────────────────── */
@media (max-width: 849px) {
	.av-bundle {
		padding: 16px;
	}

	.av-bundle__cards {
		flex-direction: column;
		gap: 8px;
	}

	.av-bundle__plus {
		width: auto;
		height: 16px;
	}

	.av-bundle__footer {
		flex-direction: column;
		align-items: stretch;
	}

	.av-bundle__pricing {
		justify-content: center;
		text-align: center;
	}

	.av-bundle__add-btn {
		width: 100%;
	}
}

/* ── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 549px) {
	.av-bundle {
		padding: 14px;
		border-radius: 12px;
	}

	.av-bundle__title {
		font-size: 12px;
	}

	.av-bundle__deal-price {
		font-size: 18px;
	}
}
