.restaurant-menu {
	display: grid;
	gap: 1.5rem;
}

.restaurant-menu-card__title {
	align-items: flex-start;
	display: grid;
	gap: .75rem;
	grid-template-columns: minmax(0, 1fr) max-content;
	line-height: 1.15;
}

.restaurant-menu__specials {
	display: grid;
	gap: 1rem;
}

.restaurant-menu__tabs {
	background: #2D4051;
	display: grid;
	gap: .5rem;
	justify-content: center;
	left: 50%;
	margin-left: -50vw;
	padding: .75rem;
	position: relative;
	width: 100vw;
	z-index: 50;
}

.restaurant-menu__tabs-row {
	display: flex;
	flex-wrap: nowrap;
	gap: .5rem;
	justify-content: center;
	min-width: 0;
}

.restaurant-menu__tabs.is-floating {
	box-shadow: 0 .35rem 1rem rgb(0 0 0 / 18%);
	position: fixed;
	left: 0;
	margin-left: 0;
}

.restaurant-menu__tabs a {
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
}

.restaurant-menu__grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(var(--restaurant-menu-columns, 3), minmax(0, 1fr));
}

.restaurant-menu--columns-1 {
	--restaurant-menu-columns: 1;
}

.restaurant-menu--columns-2 {
	--restaurant-menu-columns: 2;
}

.restaurant-menu--columns-3 {
	--restaurant-menu-columns: 3;
}

.restaurant-menu-card {
	display: grid;
	gap: .75rem;
	overflow: clip;
}

.restaurant-menu-card--has-photo {
	grid-template-columns: minmax(5rem, 7rem) 1fr;
}

.restaurant-menu-card[hidden] {
	display: none;
}

.restaurant-menu__category[hidden] {
	display: none;
}

.restaurant-menu__category-intro {
	display: grid;
	gap: .5rem;
	margin-bottom: 1.5rem;
	margin-inline: auto;
	max-width: 48rem;
	text-align: center;
}

.restaurant-menu__category-intro--sub {
	margin-top: 2rem;
}

.restaurant-menu__category-intro h2,
.restaurant-menu__category-intro h3,
.restaurant-menu__category-intro h4,
.restaurant-menu__category-intro h5,
.restaurant-menu__category-intro h6,
.restaurant-menu__category-description,
.restaurant-menu__category-description p {
	margin: 0;
}

.restaurant-menu__category-logo {
	display: block;
	height: auto;
	margin-inline: auto;
	max-height: 9rem;
	max-width: min(100%, 22rem);
	object-fit: contain;
	width: auto;
}

.restaurant-menu__category-logo--sub {
	max-height: 5rem;
	max-width: min(100%, 14rem);
}

.restaurant-menu-card__media {
	aspect-ratio: 1 / 1;
	background: color-mix(in srgb, currentColor 8%, transparent);
	overflow: hidden;
	width: 100%;
}

.restaurant-menu-card__media img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.restaurant-menu-card__body {
	display: grid;
	gap: .2rem;
	align-content: start;
}

.restaurant-menu-card__heading {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.15;
	margin: 0;
}

.restaurant-menu-card__price {
	justify-self: end;
	text-align: right;
	white-space: nowrap;
}

.restaurant-menu-card__description {
	line-height: 1.25;
	margin: 0;
}

.restaurant-menu-card__description p {
	margin: 0;
}

.restaurant-menu-card__description > :first-child {
	margin-top: 0;
}

.restaurant-menu-card__description > :last-child {
	margin-bottom: 0;
}

.restaurant-menu-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.restaurant-menu-card__tags li {
	display: inline;
}

.restaurant-menu-editor {
	display: grid;
	gap: 1.5rem;
}

.restaurant-menu-editor__top-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.restaurant-menu-editor__modal {
	display: none;
	inset: 0;
	position: fixed;
	z-index: 10000;
}

.restaurant-menu-editor__modal.is-open {
	display: grid;
	place-items: center;
}

.restaurant-menu-editor__modal-backdrop {
	background: rgb(0 0 0 / 55%);
	inset: 0;
	position: absolute;
}

.restaurant-menu-editor__modal-panel {
	background: Canvas;
	box-shadow: 0 1rem 3rem rgb(0 0 0 / 28%);
	box-sizing: border-box;
	color: CanvasText;
	display: grid;
	gap: 1rem;
	max-height: min(90vh, 54rem);
	max-width: min(92vw, 64rem);
	overflow: auto;
	padding: 1.25rem;
	position: relative;
	width: 100%;
}

.restaurant-menu-editor__modal-header {
	align-items: center;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
}

.restaurant-menu-editor__modal-header h2 {
	margin: 0;
}

.restaurant-menu-editor__form {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	max-width: 60rem;
}

.restaurant-menu-editor__panel {
	display: grid;
	gap: 1rem;
}

.restaurant-menu-editor__category-form {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	max-width: 60rem;
}

.restaurant-menu-editor__field {
	display: grid;
	gap: .35rem;
}

.restaurant-menu-editor__logo-preview {
	display: block;
	height: auto;
	max-height: 8rem;
	max-width: 18rem;
	object-fit: contain;
}

.restaurant-menu-editor__field--wide,
.restaurant-menu-editor__actions {
	grid-column: 1 / -1;
}

.restaurant-menu-editor__form input:not([type="file"]),
.restaurant-menu-editor__form select,
.restaurant-menu-editor__form textarea {
	box-sizing: border-box;
	width: 100%;
}

.restaurant-menu-editor__photo {
	display: grid;
	gap: .5rem;
	grid-template-columns: minmax(0, 1fr) auto;
}

.restaurant-menu-editor__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.restaurant-menu-editor__list-title {
	margin-block-end: 0;
}

.restaurant-menu-editor__table {
	width: 100%;
}

.restaurant-menu-editor__inline-form {
	display: inline;
}

.restaurant-menu-editor__filter {
	align-items: end;
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.restaurant-menu-editor__bulk {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.restaurant-menu-editor__sync-form {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.restaurant-menu-editor__help {
	font-size: .9rem;
	opacity: .75;
}

@media print {
	.restaurant-menu__tabs {
		display: none;
	}

	.restaurant-menu-card {
		break-inside: avoid;
	}
}

@media (max-width: 35rem) {
	.restaurant-menu__tabs-row {
		flex-wrap: wrap;
	}

	.restaurant-menu__grid {
		grid-template-columns: 1fr;
	}

	.restaurant-menu-card {
		grid-template-columns: 1fr;
	}

	.restaurant-menu-card--has-photo {
		grid-template-columns: minmax(4.5rem, 5.5rem) 1fr;
	}

	.restaurant-menu-editor__form,
	.restaurant-menu-editor__category-form,
	.restaurant-menu-editor__photo {
		grid-template-columns: 1fr;
	}
}
