.yakiya-allergen-chart {
	--yac-black: #000;
	--yac-red: #f00;
	--yac-white: #fff;
	--yac-line: rgba(255, 255, 255, .22);
	--yac-muted: rgba(255, 255, 255, .72);
	--yac-soft: #101010;
	background: var(--yac-black);
	color: var(--yac-white);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	padding: 0 0 30px;
}

.yakiya-allergen-chart * {
	box-sizing: border-box;
}

.yac-filters,
.yac-card,
.yac-reviewed {
	margin: 14px clamp(10px, 2vw, 24px) 0;
	width: auto;
}

.yac-filters {
	background: var(--yac-soft);
	border: 1px solid var(--yac-line);
	border-radius: 8px;
	display: grid;
	gap: 10px;
	grid-template-columns: 1.2fr .8fr;
	min-width: 0;
	padding: 14px;
}

.yakiya-allergen-chart input.yac-search,
.yakiya-allergen-chart select.yac-section {
	appearance: auto;
	background: var(--yac-black) !important;
	border: 1px solid rgba(255, 255, 255, .28) !important;
	border-radius: 6px !important;
	color: var(--yac-white) !important;
	min-height: 44px;
	padding: 0 12px;
	width: 100%;
}

.yakiya-allergen-chart input.yac-search::placeholder {
	color: rgba(255, 255, 255, .55);
}

.yac-allergen-filters {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	min-width: 0;
}

.yac-filter-panel {
	grid-column: 1 / -1;
	min-width: 0;
}

.yac-filter-panel summary {
	align-items: center;
	background: #050505;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 6px;
	color: var(--yac-white);
	cursor: pointer;
	display: flex;
	font-size: 13px;
	font-weight: 850;
	justify-content: space-between;
	list-style: none;
	min-height: 44px;
	padding: 0 12px;
}

.yac-filter-panel summary::-webkit-details-marker {
	display: none;
}

.yac-filter-panel summary::after {
	color: var(--yac-red);
	content: "+";
	font-size: 18px;
	font-weight: 900;
	margin-left: 12px;
}

.yac-filter-panel[open] summary {
	margin-bottom: 8px;
}

.yac-filter-panel[open] summary::after {
	content: "-";
}

.yac-filter-count {
	color: var(--yac-muted);
	font-size: 12px;
	margin-left: auto;
}

.yac-filter {
	align-items: center;
	background: #050505;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 6px;
	color: var(--yac-white);
	cursor: pointer;
	display: grid;
	font-size: 12px;
	font-weight: 800;
	gap: 8px;
	grid-template-columns: 16px 28px minmax(0, 1fr);
	line-height: 1.15;
	min-height: 58px;
	min-width: 0;
	padding: 8px 9px;
}

.yac-filter input {
	accent-color: var(--yac-red);
	height: 16px;
	margin: 0;
	width: 16px;
}

.yac-filter span:last-child {
	color: var(--yac-white);
	min-width: 0;
	overflow-wrap: anywhere;
}

.yac-icon {
	align-items: center;
	background: var(--yac-icon);
	border-radius: 5px;
	display: inline-flex;
	flex: 0 0 auto;
	height: 25px;
	justify-content: center;
	width: 25px;
}

.yac-icon img {
	display: block;
	height: 18px;
	width: 18px;
}

.yac-icon-fallback {
	color: var(--yac-white);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.yac-card {
	background: var(--yac-soft);
	border: 1px solid var(--yac-line);
	border-radius: 8px;
	overflow: hidden;
}

.yac-card-head {
	align-items: center;
	background: #050505;
	border-bottom: 1px solid var(--yac-line);
	display: flex;
	gap: 12px;
	justify-content: space-between;
	padding: 14px 16px;
}

.yac-result-count {
	color: var(--yac-white);
	font-size: 15px;
	line-height: 1.2;
}

.yac-legend {
	align-items: center;
	color: var(--yac-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: 12px;
	font-weight: 750;
	gap: 10px;
}

.yac-legend > span {
	align-items: center;
	display: inline-flex;
	gap: 5px;
	min-height: 30px;
}

.yac-mark {
	align-items: center;
	border-radius: 50%;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, .06), 0 8px 18px rgba(0, 0, 0, .35);
	display: inline-flex;
	font-size: 18px;
	font-style: normal;
	font-weight: 950;
	height: 30px;
	justify-content: center;
	line-height: 1;
	width: 30px;
}

.yac-contains {
	background: var(--yac-red);
	color: var(--yac-white);
}

.yac-maybe {
	background: #ffd43b;
	color: var(--yac-black);
}

.yac-clear {
	background: #181818;
	border: 1px solid rgba(255, 255, 255, .22);
	box-shadow: none;
	color: rgba(255, 255, 255, .72);
	font-size: 13px;
	height: 22px;
	width: 22px;
}

.yac-table-wrap {
	max-height: 72vh;
	overflow: auto;
}

.yac-table {
	border-collapse: separate;
	border-spacing: 0;
	font-size: 13px;
	min-width: 1040px;
	width: 100%;
}

.yac-table th,
.yac-table td {
	background: #080808;
	border-bottom: 1px solid #2a2a2a;
	border-right: 1px solid #2a2a2a;
	color: var(--yac-white);
	padding: 12px 8px;
	text-align: center;
}

.yac-table th:first-child,
.yac-table td:first-child {
	background: #0f0f0f;
	box-shadow: 10px 0 18px rgba(0, 0, 0, .35);
	font-weight: 850;
	left: 0;
	min-width: 250px;
	position: sticky;
	text-align: left;
	z-index: 2;
}

.yac-table thead th {
	background: #141414;
	color: var(--yac-white);
	height: 116px;
	min-width: 86px;
	padding: 14px 8px 10px;
	position: sticky;
	top: 0;
	vertical-align: top;
	z-index: 3;
}

.yac-table thead th:first-child {
	vertical-align: middle;
	z-index: 4;
}

.yac-table thead .yac-icon {
	height: 48px;
	margin: 0 auto 8px;
	width: 48px;
}

.yac-table thead .yac-icon img {
	height: 34px;
	width: 34px;
}

.yac-table th span:last-child {
	align-items: flex-start;
	display: flex;
	font-size: 12px;
	height: 38px;
	justify-content: center;
	line-height: 1.05;
	margin: 0 auto;
	max-width: 100px;
	overflow-wrap: normal;
	word-break: normal;
}

.yac-table td:first-child strong,
.yac-table td:first-child span,
.yac-table td:first-child small {
	display: block;
}

.yac-table td:first-child span {
	color: #b7b7b7;
	font-size: 11px;
	margin-top: 3px;
}

.yac-reviewed {
	color: rgba(255, 255, 255, .5);
	font-size: 11px;
	line-height: 1.4;
	margin-top: 8px;
	text-align: right;
}

.yac-mobile-list {
	display: none;
}

.yac-mobile-card {
	background: #080808;
	border-bottom: 1px solid #242424;
	padding: 14px;
}

.yac-mobile-card h3 {
	color: var(--yac-white);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
	font-size: 16px;
	font-weight: 850;
	line-height: 1.2;
	margin: 0 0 10px;
}

.yac-mobile-allergens {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.yac-mobile-chip {
	align-items: center;
	background: #101010;
	border: 1px solid rgba(255, 255, 255, .16);
	border-left: 4px solid #3a3a3a;
	border-radius: 7px;
	color: var(--yac-white);
	display: grid;
	gap: 9px;
	grid-template-columns: 30px minmax(0, 1fr);
	min-height: 52px;
	padding: 8px;
}

.yac-mobile-chip > span:last-child,
.yac-mobile-chip > span:last-child b {
	display: block;
	min-width: 0;
	overflow-wrap: anywhere;
}

.yac-mobile-chip > span:last-child {
	color: rgba(255, 255, 255, .66);
	font-size: 11px;
	line-height: 1.2;
}

.yac-mobile-chip > span:last-child b {
	color: var(--yac-white);
	font-size: 12px;
}

.yac-mobile-contains {
	border-left-color: var(--yac-red);
}

.yac-mobile-maybe {
	border-left-color: #ffd43b;
}

.yac-mobile-empty {
	color: rgba(255, 255, 255, .55);
	font-size: 12px;
}

.yakiya-admin .yac-admin-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: 1fr 1fr;
	margin-top: 18px;
}

.yakiya-admin .yac-admin-box {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	margin-top: 18px;
	padding: 16px;
}

.yakiya-admin .yac-admin-box h2 {
	margin-top: 0;
}

.yakiya-admin label {
	display: grid;
	gap: 5px;
	margin-bottom: 12px;
}

.yakiya-admin input[type="text"],
.yakiya-admin input[type="url"],
.yakiya-admin input[type="date"],
.yakiya-admin select,
.yakiya-admin textarea {
	max-width: 100%;
	width: 100%;
}

.yac-admin-matrix {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.yac-admin-matrix fieldset {
	border: 1px solid #dcdcde;
	border-radius: 6px;
	margin: 0;
	padding: 10px;
}

.yac-admin-matrix legend {
	font-weight: 700;
}

.yac-admin-matrix label {
	display: inline-block;
	margin: 4px 10px 0 0;
}

.yac-admin-allergen-row {
	display: grid;
	gap: 8px;
	grid-template-columns: 1fr 160px 1.2fr;
	margin-bottom: 8px;
}

@media (max-width: 980px) {
	.yac-filters,
	.yakiya-admin .yac-admin-grid,
	.yac-admin-allergen-row {
		grid-template-columns: 1fr;
	}

	.yac-allergen-filters,
	.yac-admin-matrix {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.yakiya-allergen-chart {
		padding-bottom: 20px;
	}

	.yac-filters,
	.yac-card,
	.yac-reviewed {
		margin-left: 10px;
		margin-right: 10px;
	}

	.yac-filters {
		padding: 10px;
	}

	.yac-allergen-filters {
		display: flex;
		gap: 8px;
		margin: 0;
		overflow-x: auto;
		padding: 0 0 2px;
		scrollbar-width: thin;
	}

	.yac-filter {
		flex: 0 0 172px;
		min-height: 52px;
	}

	.yac-card-head {
		align-items: flex-start;
		flex-direction: column;
		padding: 12px;
	}

	.yac-legend {
		gap: 8px;
	}

	.yac-table-wrap {
		display: none;
	}

	.yac-mobile-list {
		display: grid;
	}

	.yac-reviewed {
		text-align: left;
	}
}

@media (max-width: 560px) {
	.yac-admin-matrix,
	.yac-mobile-allergens {
		grid-template-columns: 1fr;
	}

	.yac-filter {
		flex-basis: 164px;
		min-height: 50px;
	}

	.yac-mobile-card {
		padding: 12px;
	}
}
