/* Fit highlighting: coloured badges + tile emphasis + "shopping for" switcher. */

.aifa-fit-badges {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	pointer-events: none;
}
.aifa-fit-badge {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	text-shadow: 0 1px 1px rgba(0, 0, 0, .25);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
	white-space: nowrap;
}

/* Subtle border in the (first) matching set's colour. */
.aifa-fits {
	position: relative;
	border-radius: 12px;
	box-shadow: 0 0 0 2px var(--aifa-set-color, #ff3cac) inset;
}
.aifa-fits .rsdg-popgrid__card,
.aifa-fits .rcshop-card__inner { border-radius: 12px; }

/* "Shopping for" floating switcher. */
.aifa-fit-switcher {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 9998;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 10px;
	background: #fff;
	border: 1px solid #e6e1f0;
	border-radius: 999px;
	box-shadow: 0 4px 18px rgba(20, 16, 31, .16);
	font-size: 13px;
}
.aifa-fit-switcher__label { color: #6b6480; font-weight: 600; }
.aifa-fit-switcher__btn {
	display: inline-flex; align-items: center; gap: 7px;
	border: 0; background: #f2eefb; color: #1a0a3e;
	padding: 5px 12px; border-radius: 999px; font-weight: 700; cursor: pointer;
}
.aifa-fit-switcher__dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }
.aifa-fit-switcher__menu {
	position: absolute;
	left: 0;
	bottom: calc(100% + 8px);
	min-width: 220px;
	background: #fff;
	border: 1px solid #e6e1f0;
	border-radius: 12px;
	box-shadow: 0 8px 26px rgba(20, 16, 31, .18);
	padding: 6px;
	display: flex;
	flex-direction: column;
}
.aifa-fit-switcher__item {
	display: flex; align-items: center; gap: 8px;
	border: 0; background: none; cursor: pointer;
	padding: 8px 10px; border-radius: 8px; font-size: 13px; text-align: left; color: #1a0a3e;
}
.aifa-fit-switcher__item:hover { background: #f6f2fd; }
.aifa-fit-switcher__manage {
	margin-top: 4px; padding: 8px 10px; border-top: 1px solid #eee;
	font-size: 12.5px; color: #7c3aed; text-decoration: none; font-weight: 600;
}

@media (max-width: 600px) {
	.aifa-fit-switcher { left: 8px; bottom: 8px; padding: 5px 8px; font-size: 12px; }
	.aifa-fit-switcher__label { display: none; }
}

@media (prefers-color-scheme: dark) {
	.aifa-fit-switcher, .aifa-fit-switcher__menu { background: #1d1730; border-color: #2f2745; }
	.aifa-fit-switcher__btn { background: #2a2145; color: #e9e4f5; }
	.aifa-fit-switcher__item { color: #e9e4f5; }
	.aifa-fit-switcher__item:hover { background: #2a2145; }
	.aifa-fit-switcher__manage { border-top-color: #2f2745; color: #a97bff; }
}
