/*
 * Ship Inn Menus: allergen icons and dietary badges, shared by the menus, pre-orders and table ordering.
 * Badge colours keep white text at 4.5:1 or better; meaning is always in words too (code + key, icon + name).
 */

.sim-badges {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-left: 8px;
	vertical-align: middle;
}

.sim-badge {
	display: inline-block;
	font-family: Jost, system-ui, sans-serif;
	font-size: 12px;
	font-weight: 600;
	font-style: normal;
	line-height: 1;
	letter-spacing: .03em;
	text-decoration: none;
	text-transform: none;
	white-space: nowrap;
	border-radius: 999px;
	padding: 4px 8px;
	color: #fff;
	border: 1px solid transparent;
	cursor: help;
}

.sim-badge--ve { background: #2E6B3A; }
.sim-badge--v { background: #4F7A24; }
.sim-badge--gf { background: #8A6130; }
.sim-badge--gfo { background: #fff; color: #8A6130; border-color: #8A6130; }
.sim-badge--df { background: #3F6A8F; }

.sim-diet-key {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	font-size: 15px;
	color: #4A4A4A;
	margin: 16px 0 0;
	padding: 0;
}

.sim-diet-key .sim-badge {
	cursor: default;
	margin-right: 4px;
}

.sim-allergen-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	align-items: center;
	margin: 8px 0 0;
	padding: 0;
	font-size: 14px;
	line-height: 1.3;
	color: #0F1B2C;
}

.sim-allergen-chips.is-none {
	color: #4A4A4A;
}

.sim-chips__group {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.sim-chips__label {
	font-weight: 600;
	margin-right: 2px;
}

.sim-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px 3px 5px;
	border: 1px solid #0F1B2C;
	border-radius: 999px;
	background: #fff;
	color: #0F1B2C;
	white-space: nowrap;
}

.sim-chip--may {
	border-style: dashed;
	border-color: #4A4A4A;
	color: #4A4A4A;
}

.sim-icon {
	width: 20px;
	height: 20px;
	flex: none;
}

.sim-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* High contrast (reading options): plain black and white. */
html.si-contrast .sim-badge,
html.si-contrast .sim-chip,
html.si-contrast .sim-chip--may {
	background: #fff !important;
	color: #000 !important;
	border-color: #000 !important;
}

@media print {
	.sim-badge { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
