:root {
	--fo-cream: #f7f0e3;
	--fo-paper: #fffdf8;
	--fo-ink: #241b16;
	--fo-roast: #542f24;
	--fo-caramel: #c47b45;
	--fo-sage: #64715b;
	--fo-line: rgba(84, 47, 36, 0.18);
	--fo-shadow: 0 18px 55px rgba(36, 27, 22, 0.12);
}

.fo-app,
.fo-app * { box-sizing: border-box; }

.fo-app {
	color: var(--fo-ink);
	font-family: inherit;
	line-height: 1.5;
}

.fo-shell {
	width: min(1180px, calc(100% - 32px));
	margin: 40px auto;
	padding: clamp(24px, 4vw, 56px);
	background: var(--fo-cream);
	border: 1px solid var(--fo-line);
	border-radius: 28px;
	box-shadow: var(--fo-shadow);
}

.fo-loading {
	min-height: 340px;
	display: grid;
	place-items: center;
	color: var(--fo-roast);
	font-weight: 700;
}

.fo-eyebrow {
	margin: 0 0 8px;
	color: var(--fo-caramel);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.fo-app h2,
.fo-app h3,
.fo-app p { margin-top: 0; }

.fo-app h2 {
	max-width: 760px;
	margin-bottom: 12px;
	color: var(--fo-roast);
	font-family: Georgia, 'Times New Roman', serif;
	font-size: clamp(2.1rem, 5vw, 4.4rem);
	font-weight: 500;
	line-height: 1.02;
	letter-spacing: -0.035em;
}

.fo-app h3 {
	color: var(--fo-roast);
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 1.45rem;
}

.fo-lead { max-width: 620px; font-size: 1.06rem; }
.fo-address { color: rgba(36, 27, 22, 0.66); }

.fo-badge {
	display: inline-flex;
	align-items: center;
	padding: 6px 11px;
	background: #fff2cc;
	border: 1px solid #ddbe58;
	border-radius: 999px;
	color: #6b5100;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.fo-notice {
	margin: 18px 0;
	padding: 13px 16px;
	background: #fff4f0;
	border: 1px solid #d99179;
	border-radius: 12px;
	color: #71321f;
}

.fo-location-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-top: 34px;
}

.fo-location {
	min-height: 225px;
	padding: 28px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	background: var(--fo-paper);
	border: 1px solid var(--fo-line);
	border-radius: 20px;
	color: var(--fo-ink);
	cursor: pointer;
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.fo-location:hover,
.fo-location:focus-visible {
	transform: translateY(-4px);
	border-color: var(--fo-caramel);
	box-shadow: 0 16px 34px rgba(84, 47, 36, 0.12);
}

.fo-location__name {
	color: var(--fo-roast);
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 2rem;
}

.fo-location__address { max-width: 280px; margin-top: 8px; color: rgba(36, 27, 22, 0.7); }
.fo-location__action { margin-top: auto; color: var(--fo-caramel); font-weight: 800; }

.fo-menu-header,
.fo-checkout__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
}

.fo-menu-header h2,
.fo-checkout h2 { font-size: clamp(2rem, 4vw, 3.4rem); }

.fo-text-button {
	margin: 0 0 20px;
	padding: 0;
	background: transparent;
	border: 0;
	color: var(--fo-roast);
	font: inherit;
	font-weight: 750;
	cursor: pointer;
}

.fo-text-button:hover { color: var(--fo-caramel); }

.fo-categories {
	display: flex;
	gap: 9px;
	margin: 30px 0 24px;
	padding-bottom: 4px;
	overflow-x: auto;
}

.fo-categories button {
	padding: 9px 15px;
	background: transparent;
	border: 1px solid var(--fo-line);
	border-radius: 999px;
	color: var(--fo-roast);
	font: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
}

.fo-categories button.is-active {
	background: var(--fo-roast);
	border-color: var(--fo-roast);
	color: white;
}

.fo-order-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 28px;
	align-items: start;
}

.fo-products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.fo-product {
	min-height: 205px;
	padding: 22px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	background: var(--fo-paper);
	border: 1px solid var(--fo-line);
	border-radius: 18px;
	color: var(--fo-ink);
	font: inherit;
	cursor: pointer;
	transition: border-color 160ms ease, transform 160ms ease;
}

.fo-product:hover,
.fo-product:focus-visible { border-color: var(--fo-caramel); transform: translateY(-2px); }
.fo-product__category { color: var(--fo-sage); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.fo-product__name { margin-top: 8px; color: var(--fo-roast); font-family: Georgia, 'Times New Roman', serif; font-size: 1.45rem; line-height: 1.15; }
.fo-product__description { display: -webkit-box; margin-top: 8px; overflow: hidden; color: rgba(36, 27, 22, 0.65); font-size: 0.88rem; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-height: 1.45; }
.fo-product__price { margin-top: auto; padding-top: 14px; font-weight: 800; }

.fo-cart,
.fo-summary,
.fo-customer {
	background: var(--fo-paper);
	border: 1px solid var(--fo-line);
	border-radius: 18px;
}

.fo-cart { position: sticky; top: 24px; padding: 20px; }
.fo-cart__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--fo-line); }
.fo-cart__head h3 { margin-bottom: 0; }
.fo-cart__head span { color: rgba(36, 27, 22, 0.6); font-size: 0.85rem; }
.fo-cart-item { padding: 16px 0; border-bottom: 1px solid var(--fo-line); }
.fo-cart-item small,
.fo-summary__item small { display: block; margin-top: 3px; color: rgba(36, 27, 22, 0.6); }
.fo-cart-item__row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.fo-quantity { display: inline-flex; align-items: center; border: 1px solid var(--fo-line); border-radius: 999px; overflow: hidden; }
.fo-quantity button { width: 30px; height: 30px; padding: 0; background: transparent; border: 0; color: var(--fo-roast); font-size: 1.1rem; cursor: pointer; }
.fo-quantity span { min-width: 24px; text-align: center; font-weight: 800; }
.fo-cart__total,
.fo-summary__total { display: flex; justify-content: space-between; margin-top: 18px; font-size: 1.08rem; }
.fo-cart__fine { margin: 8px 0 16px; color: rgba(36, 27, 22, 0.58); font-size: 0.75rem; }
.fo-cart__empty { padding: 42px 10px; text-align: center; color: rgba(36, 27, 22, 0.56); }
.fo-cart__empty span { display: block; margin-bottom: 8px; font-size: 2rem; }

.fo-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 20px;
	background: var(--fo-roast);
	border: 1px solid var(--fo-roast);
	border-radius: 999px;
	color: white !important;
	font: inherit;
	font-weight: 800;
	text-decoration: none !important;
	cursor: pointer;
}

.fo-button:hover { background: #3e2119; }
.fo-button:disabled { cursor: wait; opacity: 0.58; }
.fo-button--secondary { background: transparent; color: var(--fo-roast) !important; }
.fo-cart .fo-button { width: 100%; }

.fo-mobile-cart { display: none; }

.fo-modal { position: fixed; z-index: 99999; inset: 0; display: grid; place-items: center; padding: 20px; }
.fo-modal__backdrop { position: absolute; inset: 0; background: rgba(22, 15, 12, 0.68); backdrop-filter: blur(4px); }
.fo-modal__panel { position: relative; width: min(620px, 100%); max-height: min(820px, calc(100vh - 40px)); padding: clamp(24px, 5vw, 42px); overflow-y: auto; background: var(--fo-paper); border-radius: 24px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25); }
.fo-modal__close { position: absolute; top: 15px; right: 17px; width: 38px; height: 38px; padding: 0; background: var(--fo-cream); border: 0; border-radius: 50%; color: var(--fo-roast); font-size: 1.6rem; cursor: pointer; }
.fo-modal__panel h3 { margin-bottom: 8px; font-size: 2rem; }
.fo-options { margin: 22px 0 0; padding: 0; border: 0; }
.fo-options legend { width: 100%; margin-bottom: 8px; color: var(--fo-roast); font-weight: 800; }
.fo-options legend small { float: right; color: rgba(36, 27, 22, 0.55); font-size: 0.72rem; font-weight: 600; }
.fo-options label { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--fo-line); cursor: pointer; }
.fo-options label span { flex: 1; }
.fo-options input { accent-color: var(--fo-roast); }
.fo-modal__footer { display: flex; gap: 14px; align-items: end; margin-top: 26px; }
.fo-modal__footer .fo-button { flex: 1; }
.fo-quantity-input { display: grid; gap: 5px; color: var(--fo-roast); font-size: 0.78rem; font-weight: 800; }
.fo-quantity-input input { width: 70px; min-height: 48px; padding: 8px; border: 1px solid var(--fo-line); border-radius: 10px; font: inherit; }

.fo-checkout__layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr); gap: 24px; margin-top: 28px; align-items: start; }
.fo-customer,
.fo-summary { padding: clamp(20px, 4vw, 34px); }
.fo-customer > label,
.fo-field-row label { display: grid; gap: 7px; margin-bottom: 16px; color: var(--fo-roast); font-size: 0.86rem; font-weight: 800; }
.fo-customer input,
.fo-customer textarea { width: 100%; min-height: 48px; padding: 11px 13px; background: white; border: 1px solid var(--fo-line); border-radius: 10px; color: var(--fo-ink); font: inherit; font-weight: 400; }
.fo-customer textarea { resize: vertical; }
.fo-customer input:focus,
.fo-customer textarea:focus { outline: 3px solid rgba(196, 123, 69, 0.2); border-color: var(--fo-caramel); }
.fo-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fo-card-field { min-height: 92px; padding: 14px 10px 0; background: white; border: 1px solid var(--fo-line); border-radius: 10px; }
.fo-payment-status { min-height: 24px; margin: 9px 0; color: rgba(36, 27, 22, 0.65); font-size: 0.8rem; }
.fo-pay { width: 100%; margin-top: 8px; }
.fo-secure { margin: 10px 0 0; text-align: center; color: rgba(36, 27, 22, 0.56); font-size: 0.75rem; }
.fo-summary { position: sticky; top: 24px; }
.fo-summary__item { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--fo-line); }
.fo-summary__item > span { white-space: nowrap; }
.fo-summary__total { margin-bottom: 5px; }
.fo-summary > small { color: rgba(36, 27, 22, 0.56); }

.fo-success { max-width: 760px; text-align: center; }
.fo-success h2 { margin-right: auto; margin-left: auto; }
.fo-success__mark { width: 70px; height: 70px; margin: 0 auto 20px; display: grid; place-items: center; background: var(--fo-sage); border-radius: 50%; color: white; font-size: 2rem; }
.fo-success__details { width: min(460px, 100%); margin: 28px auto; padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; text-align: left; background: var(--fo-paper); border: 1px solid var(--fo-line); border-radius: 14px; }
.fo-success__details strong { text-align: right; overflow-wrap: anywhere; }
.fo-success .fo-button { margin: 5px; }
.fo-setup { max-width: 780px; text-align: center; }
.fo-setup h2 { margin-right: auto; margin-left: auto; }
.fo-setup p:not(.fo-eyebrow) { max-width: 560px; margin-right: auto; margin-left: auto; }

.fo-app button:focus-visible,
.fo-app a:focus-visible,
.fo-app input:focus-visible { outline: 3px solid rgba(196, 123, 69, 0.42); outline-offset: 3px; }

@media (max-width: 900px) {
	.fo-order-layout { grid-template-columns: 1fr; }
	.fo-cart { display: none; }
	.fo-mobile-cart {
		position: sticky;
		z-index: 20;
		bottom: 14px;
		width: 100%;
		margin-top: 22px;
		padding: 15px 18px;
		display: flex;
		justify-content: space-between;
		background: var(--fo-roast);
		border: 0;
		border-radius: 999px;
		box-shadow: 0 10px 35px rgba(36, 27, 22, 0.28);
		color: white;
		font: inherit;
		cursor: pointer;
	}
	.fo-checkout__layout { grid-template-columns: 1fr; }
	.fo-summary { position: static; grid-row: 1; }
}

@media (max-width: 650px) {
	.fo-shell { width: min(100% - 18px, 1180px); margin: 16px auto; padding: 22px 16px; border-radius: 20px; }
	.fo-location-grid,
	.fo-products { grid-template-columns: 1fr; }
	.fo-location { min-height: 185px; }
	.fo-menu-header,
	.fo-checkout__head { display: block; }
	.fo-menu-header .fo-badge,
	.fo-checkout__head .fo-badge { margin-bottom: 16px; }
	.fo-field-row { grid-template-columns: 1fr; gap: 0; }
	.fo-modal { padding: 0; align-items: end; }
	.fo-modal__panel { width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; }
	.fo-success__details { grid-template-columns: 1fr; text-align: center; }
	.fo-success__details strong { margin-bottom: 8px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
	.fo-app * { scroll-behavior: auto !important; transition: none !important; }
}

/* 0.2.0: menu groups and location status */
.fo-group-title {
	grid-column: 1 / -1;
	margin: 22px 0 0;
	color: var(--fo-caramel);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.fo-group-title:first-child { margin-top: 0; }
.fo-location__status {
	display: block;
	margin-top: 10px;
	color: #9a3412;
	font-size: 0.85rem;
	line-height: 1.4;
}

/* 0.3.0: text menu rendered from the Square catalog */
.fm {
	max-width: 860px;
	margin: 0 auto;
	padding: 8px 0 4px;
	color: var(--fo-ink);
}
.fm * { box-sizing: border-box; }
.fm-title {
	margin: 0 0 6px;
	font-family: Georgia, "Cormorant Garamond", serif;
	font-weight: 400;
	font-size: clamp(28px, 4vw, 40px);
	line-height: 1.1;
	color: var(--fo-ink);
	text-transform: none;
	letter-spacing: 0;
}
.fm-note {
	margin: 0 0 26px;
	font-size: 13px;
	line-height: 1.5;
	color: rgba(36, 27, 22, 0.6);
}
.fm-group { margin-bottom: 30px; }
.fm-group-title {
	margin: 0 0 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--fo-line);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 2.4px;
	text-transform: uppercase;
	color: var(--fo-caramel);
}
.fm-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.fm-item {
	display: flex;
	align-items: baseline;
	gap: 14px;
	margin: 0;
	padding: 9px 0;
	border-bottom: 1px solid rgba(84, 47, 36, 0.08);
}
.fm-item:last-child { border-bottom: 0; }
.fm-item-main {
	flex: 1 1 auto;
	min-width: 0;
	display: block;
}
.fm-item-name {
	display: block;
	font-size: 16px;
	line-height: 1.35;
	color: var(--fo-ink);
}
.fm-item-desc {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	line-height: 1.45;
	color: rgba(36, 27, 22, 0.62);
}
.fm-item-price {
	flex: 0 0 auto;
	font-size: 15px;
	font-weight: 700;
	color: var(--fo-roast);
	white-space: nowrap;
}
.fm-cta { margin: 26px 0 0; }
.fm-btn {
	display: inline-block;
	padding: 15px 26px;
	border-radius: 10px;
	background: var(--fo-ink);
	color: var(--fo-paper);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
	transition: background .2s ease;
}
.fm-btn:hover,
.fm-btn:focus-visible {
	background: var(--fo-roast);
	color: var(--fo-paper);
}
@media (max-width: 560px) {
	.fm-item { gap: 10px; }
	.fm-item-name { font-size: 15px; }
}
