:root {
	--rs-eatrend-charcoal: #3d3d3d;
	--rs-eatrend-green: #b4c841;
	--rs-eatrend-green-dark: #72801f;
	--rs-eatrend-line: #c1c1c1;
	--rs-eatrend-soft-line: #e5e7eb;
	--rs-eatrend-surface: #fff;
}

.makoiovi-diet-selector { background: #fff; border: 1px solid #e2e7dd; border-radius: 16px; box-shadow: 0 10px 30px rgba(14,53,42,.08); margin: 0 auto 1.5rem; max-width: 48rem; padding: clamp(1rem,3vw,1.5rem); position: relative; }
.makoiovi-diet-selector label { color: var(--rs-eatrend-charcoal); display: block; font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; }
.makoiovi-diet-selector .makoiovi-diet-search { appearance: none; background: #f9faf7; border: 2px solid #cbd5c5; border-radius: 10px; box-shadow: none; color: #272727; font: inherit; min-height: 50px; padding: 0.7rem 0.9rem; width: 100%; }
.makoiovi-diet-search:focus { background: #fff; border-color: var(--rs-eatrend-green-dark); box-shadow: 0 0 0 3px rgba(180,200,65,.25); outline: 0; }
.makoiovi-diet-selector .makoiovi-diet-options { background: #fff; border: 1px solid #d8ded3; border-radius: 10px; box-shadow: none; margin-top: .6rem; max-height: 23rem; overflow-x: hidden; overflow-y: auto; position: relative; width: 100%; }
.makoiovi-diet-selector .makoiovi-diet-option { align-items: center; background: #fff; border: 0; border-bottom: 1px solid #edf0e9; border-radius: 0; box-shadow: none; color: #272727; cursor: pointer; display: grid; font: inherit; gap: .8rem; grid-template-columns: auto minmax(0,1fr); margin: 0; min-height: 0; padding: .75rem .9rem; text-align: left; transform: none; width: 100%; }
.makoiovi-diet-option:last-child { border-bottom: 0; }
.makoiovi-diet-selector .makoiovi-diet-option:hover, .makoiovi-diet-selector .makoiovi-diet-option:focus-visible, .makoiovi-diet-selector .makoiovi-diet-option.is-active { background: #f5f7ed; color: #272727; outline: 2px solid var(--rs-eatrend-green-dark); outline-offset: -2px; transform: none; }
.makoiovi-diet-option__code { background: var(--rs-eatrend-charcoal); border-radius: 999px; color: #fff; font-size: .78rem; font-weight: 700; padding: .3rem .55rem; }
.makoiovi-diet-option__text { min-width: 0; }
.makoiovi-diet-option__name { display: block; font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.makoiovi-diet-option__text small { color: #687064; display: block; font-size: .78rem; margin-top: .15rem; }
.makoiovi-diet-status { color: #62685f; font-size: 0.82rem; margin: 0.45rem 0 0; min-height: 1.3em; }
.makoiovi-diet-view[aria-busy="true"] { opacity: .55; pointer-events: none; }

.makoiovi-week-tabs,
.makoiovi-week-links {
	display: flex;
	gap: 1rem;
	margin: 0 0 1.5rem;
}

.makoiovi-week-tab,
.makoiovi-week-link {
	background: #f3f5f4;
	border: 2px solid transparent;
	border-radius: 12px;
	color: var(--rs-eatrend-charcoal);
	cursor: pointer;
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	font: inherit;
	gap: 0.25rem;
	min-height: 72px;
	padding: 0.8rem 1rem;
	text-align: left;
	text-decoration: none;
}

.makoiovi-week-tab span,
.makoiovi-week-link {
	font-weight: 700;
}

.makoiovi-week-tab small,
.makoiovi-week-link small {
	display: block;
	font-size: 0.8rem;
	font-weight: 400;
	line-height: 1.35;
}

.makoiovi-week-tab.is-active,
.makoiovi-week-link.is-active {
	background: var(--rs-eatrend-charcoal);
	border-color: var(--rs-eatrend-green);
	color: #fff;
}

.makoiovi-week-tab.is-active span {
	color: var(--rs-eatrend-green);
}

.makoiovi-week-panel[hidden] {
	display: none;
}

.makoiovi-etlap-table {
	background: var(--rs-eatrend-surface);
	border-radius: 8px 8px 0 0;
	max-width: 100%;
	overflow: auto;
	overscroll-behavior-inline: contain;
	scrollbar-gutter: stable;
	-webkit-overflow-scrolling: touch;
}

.makoiovi-etlap-table table.menu-table {
	border: 0;
	border-collapse: collapse;
	font-family: inherit;
	margin: 0;
	min-width: 1500px;
	table-layout: auto;
	width: 100%;
}

.makoiovi-etlap-table .menu-table thead tr:first-child {
	background: var(--rs-eatrend-charcoal);
	border: 0;
	color: #fff;
}

.makoiovi-etlap-table .menu-table thead th {
	background: transparent;
	border: 0;
	border-bottom: 2px solid var(--rs-eatrend-line);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.125rem;
	padding: 0.75rem;
	text-align: left;
	text-transform: capitalize;
}

.makoiovi-etlap-table .menu-table thead th span {
	display: block;
	font-weight: 400;
}

.makoiovi-etlap-table .menu-table thead th span:nth-child(2) {
	color: var(--rs-eatrend-green);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25rem;
	margin-top: 0.25rem;
}

.makoiovi-etlap-table .menu-table tbody {
	background: #fff;
}

.makoiovi-etlap-table .menu-table tbody tr {
	background: transparent;
	border-bottom: 2px solid var(--rs-eatrend-line);
	border-top: 2px solid var(--rs-eatrend-line);
}

.makoiovi-etlap-table .menu-table tbody tr:first-child {
	border-bottom: 0;
	border-top: 0;
}

.makoiovi-etlap-table .menu-table tbody td {
	background: #fff;
	border: 0;
	border-right: 1px solid var(--rs-eatrend-soft-line);
	color: #3d3d3d;
	font-size: 0.875rem;
	line-height: 1.125rem;
	padding: 1rem;
	text-align: center;
	vertical-align: top;
}

.makoiovi-etlap-table .menu-table tbody td:last-child {
	border-right: 0;
}

.makoiovi-etlap-table .menu-table tr > td:first-child {
	color: #374151;
	font-weight: 700;
	min-width: 6rem;
	padding-left: 1rem;
	text-align: left;
	white-space: nowrap;
}

.makoiovi-etlap-table .menu-table tr > td:nth-child(2) {
	min-width: 5rem;
}

.makoiovi-etlap-table .menu-table-column__title {
	font-weight: 400;
	text-align: left;
}

.makoiovi-etlap-table .menu-table-column__title span {
	display: block;
	font-size: 0.875rem;
	line-height: 1.25rem;
	overflow-wrap: anywhere;
}

.makoiovi-etlap-table .menu-table-column__content {
	margin-top: 1rem;
}

.makoiovi-etlap-table .menu-table-column__content > div {
	align-items: baseline;
	border-bottom: 1px solid #f3f3f3;
	display: flex;
	font-size: 0.75rem;
	justify-content: space-between;
	line-height: 1rem;
	padding: 0.375rem 0;
}

.makoiovi-etlap-table .menu-table-column__content .badge {
	background: transparent;
	color: #3d3d3d;
	font-weight: 700;
	margin-right: 0.5rem;
	text-align: left;
}

.makoiovi-etlap-table .menu-table-column__content small {
	font-size: 0.75rem;
	line-height: 1rem;
	text-align: right;
	white-space: nowrap !important;
}

.makoiovi-etlap-table .menu-table-column__footer {
	margin: 0.5rem -0.5rem 0;
	text-align: left;
}

.makoiovi-etlap-table .allergen-item {
	display: inline-flex;
	margin: 0.25rem 0.5rem;
}

.makoiovi-etlap-table .allergen-item .badge,
.makoiovi-etlap-table .menu-table-column__footer .badge {
	align-items: center;
	background: var(--rs-eatrend-green);
	border-radius: 4px;
	color: #27300d;
	display: inline-flex;
	font-size: 0.75rem;
	font-weight: 700;
	height: 1.5rem;
	justify-content: center;
	line-height: 1;
	margin: 0.25rem;
	min-width: 1.5rem;
	padding: 0 0.25rem;
}

.makoiovi-etlap-table .menu-table tfoot {
	background: #fff;
	border-bottom: 2px solid var(--rs-eatrend-line);
	border-top: 2px solid var(--rs-eatrend-line);
}

.makoiovi-etlap-table .menu-table tfoot td {
	border: 0;
	padding: 1rem;
	vertical-align: top;
}

.makoiovi-etlap-table .menu-table tfoot td:first-child {
	border-right: 1px solid var(--rs-eatrend-soft-line);
	font-weight: 700;
	white-space: nowrap;
}

.makoiovi-allergen-tooltip {
	background: #202420;
	border-radius: 6px;
	box-shadow: 0 5px 18px rgba(0, 0, 0, 0.25);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
	max-width: 240px;
	pointer-events: none;
	position: fixed;
	padding: 0.5rem 0.7rem;
	z-index: 1000000;
}

.makoiovi-etlap-scroll-hint {
	display: none;
}

.makoiovi-etlap-grid {
	display: grid;
	gap: clamp(1rem, 3vw, 2rem);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.makoiovi-etlap-card {
	align-items: flex-start;
	background: #fff;
	border: 1px solid #d8e2dd;
	border-radius: 18px;
	box-shadow: 0 12px 35px rgba(14, 53, 42, 0.08);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 190px;
	padding: clamp(1.25rem, 3vw, 2rem);
}

.makoiovi-etlap-card h3 {
	font-size: clamp(1.25rem, 2.4vw, 1.8rem);
	line-height: 1.25;
	margin: 0 0 2rem;
}

.makoiovi-etlap-button {
	background: var(--rs-eatrend-charcoal);
	border: 2px solid var(--rs-eatrend-green);
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	display: inline-block;
	font: inherit;
	font-weight: 700;
	padding: 0.75rem 1.25rem;
	text-decoration: none;
}

.makoiovi-etlap-button:hover {
	background: var(--rs-eatrend-green);
	color: #27300d;
}

.makoiovi-etlap-dialog {
	border: 0;
	border-radius: 18px;
	box-shadow: 0 25px 80px rgba(0, 0, 0, 0.28);
	max-height: 94vh;
	max-width: min(1600px, 96vw);
	padding: 0;
	width: 100%;
}

.makoiovi-etlap-dialog::backdrop { background: rgba(8, 25, 20, 0.72); }
.makoiovi-etlap-dialog__header { align-items: center; background: var(--rs-eatrend-charcoal); color: #fff; display: flex; justify-content: space-between; padding: 1rem 1.5rem; }
.makoiovi-etlap-dialog__header h2 { margin: 0; }
.makoiovi-etlap-dialog__close { background: transparent; border: 0; color: #fff; cursor: pointer; font-size: 2rem; line-height: 1; }
.makoiovi-etlap-dialog__body { max-height: calc(94vh - 80px); overflow: auto; padding: 1.5rem; }

.makoiovi-etlap-table:focus-visible,
.makoiovi-week-tab:focus-visible,
.makoiovi-week-link:focus-visible,
.makoiovi-etlap-button:focus-visible,
.makoiovi-etlap-dialog__close:focus-visible,
.menu-table-column__footer .badge:focus-visible {
	outline: 3px solid var(--rs-eatrend-green-dark);
	outline-offset: 3px;
}

@media (min-width: 1512px) {
	.makoiovi-etlap-table table.menu-table { min-width: 100%; }
}

@media (max-width: 767px) {
	.makoiovi-diet-selector { border-radius: 12px; padding: 1rem; }
	.makoiovi-diet-option { align-items: start; gap: .55rem; padding: .7rem; }
	.makoiovi-diet-option__name { overflow: visible; text-overflow: clip; white-space: normal; }
	.makoiovi-etlap-grid { grid-template-columns: 1fr; }
	.makoiovi-week-tabs, .makoiovi-week-links { gap: 0.5rem; }
	.makoiovi-week-tab, .makoiovi-week-link { min-width: 0; padding: 0.65rem; }
	.makoiovi-week-tab small, .makoiovi-week-link small { font-size: 0.7rem; }
	.makoiovi-etlap-scroll-hint { background: #f1f5d8; border-left: 4px solid var(--rs-eatrend-green-dark); display: block; font-size: 1rem; line-height: 1.5; margin: 0 0 0.75rem; padding: 0.75rem 1rem; }
	.makoiovi-etlap-table { border: 1px solid #b8c9c1; max-width: calc(100vw - 2rem); }
	.makoiovi-etlap-table table.menu-table { font-size: 0.95rem; line-height: 1.5; min-width: 1050px; }
	.makoiovi-etlap-table .menu-table tr > :first-child { box-shadow: 3px 0 5px rgba(8,25,20,.16); left: 0; position: sticky; z-index: 2; }
	.makoiovi-etlap-table .menu-table thead tr > :first-child { background: var(--rs-eatrend-charcoal); z-index: 3; }
	.makoiovi-etlap-button, .makoiovi-etlap-dialog__close, .makoiovi-week-tab { min-height: 44px; }
	.makoiovi-etlap-dialog__body { padding: 0.75rem; }
}

@media (forced-colors: active) {
	.makoiovi-etlap-table:focus-visible,
	.makoiovi-week-tab:focus-visible,
	.makoiovi-etlap-button:focus-visible { outline-color: CanvasText; }
}
