/* Menu page, item / pickup / cart sheets and the checkout pickup card. Matches the approved phone mockup. */
:root {
	--macs-red: #C8102E;
	--macs-red-dark: #9E0B23;
	--macs-red-soft: #FDECEE;
	--macs-ink: #141414;
	--macs-text-2: #4A4A4A;
	--macs-text-3: #5F5F5F;
	--macs-line: #ECECEC;
	--macs-line-2: #D9D9D9;
	--macs-ground-2: #F4F4F2;
	--macs-head: Veneer, Oswald, "Arial Narrow", sans-serif; /* fonts load in the theme */
	--macs-script: Blackflower, "Brush Script MT", cursive;
	--macs-top: calc(var(--wp-admin--admin-bar--height, 0px) + 60px); /* below the sticky header */
}

.macs-menu, .macs-sheet, .macs-orderbar { font-family: Inter, system-ui, sans-serif; color: var(--macs-ink); font-size: 15px; line-height: 1.4; }
.macs-menu *, .macs-sheet *, .macs-orderbar * { box-sizing: border-box; }
.macs-menu button, .macs-sheet button, .macs-orderbar button { font: inherit; color: inherit; cursor: pointer; }
.macs-wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.macs-h { font-family: var(--macs-head); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
.macs-icon { display: block; flex: 0 0 auto; }
[hidden] { display: none !important; }

/* ---------- Event band and pickup card ---------- */
.macs-band { background: var(--macs-ink); color: #fff; border-top: 4px solid var(--macs-red); padding: 22px 0 64px; }
.macs-eyebrow { font-family: var(--macs-script); font-size: 24px; line-height: 1.1; color: #FF8A8A; }
.macs-band h1 { margin: 6px 0 8px; font-size: 38px; line-height: 1.02; color: #fff; }
.macs-band p { margin: 0; color: #D6D6D6; max-width: 560px; }
.macs-pickup-card { position: relative; margin: -44px 0 0; max-width: 560px; background: #fff; border: 2px solid var(--macs-ink); border-radius: 12px; padding: 14px 16px; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.macs-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--macs-text-3); text-transform: uppercase; }
.macs-pc-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 6px; }
.macs-pc-store { font-weight: 700; font-size: 17px; }
.macs-pc-when { font-weight: 600; color: var(--macs-red); }
.macs-pc-addr { font-size: 13px; color: var(--macs-text-3); }
.macs-pc-ask { margin-top: 6px; font-weight: 600; font-size: 16px; }
.macs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border: 0; border-radius: 24px; background: var(--macs-red); color: #fff !important; font-weight: 700; font-size: 16px; text-decoration: none; }
.macs-btn:hover { background: var(--macs-red-dark); }
.macs-btn[disabled], .macs-btn.is-off { background: #E6E6E6; color: var(--macs-text-3) !important; cursor: not-allowed; }
.macs-btn-block { display: flex; width: 100%; }
.macs-btn-outline { flex: 0 0 auto; height: 44px; padding: 0 16px; border: 2px solid var(--macs-ink); border-radius: 22px; background: #fff; font-weight: 700; }
.macs-link { background: none; border: 0; padding: 10px 0; color: var(--macs-red); font-weight: 700; }

.macs-facts { margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; max-width: 560px; }
.macs-fact { display: flex; gap: 10px; align-items: flex-start; }
.macs-fact .macs-icon { margin-top: 1px; }

/* ---------- Tabs ---------- */
.macs-tabs { position: sticky; top: var(--macs-top); z-index: 40; margin-top: 18px; background: #fff; border-bottom: 1px solid #E2E2E2; }
.macs-tabs-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.macs-tabs-in::-webkit-scrollbar { display: none; }
.macs-tab { flex: 0 0 auto; padding: 14px 8px 12px; font-weight: 600; font-size: 14px; color: var(--macs-ink) !important; text-decoration: none !important; white-space: nowrap; border-bottom: 3px solid transparent; }
.macs-tab.is-on { border-bottom-color: var(--macs-red); }

/* ---------- Sections ---------- */
.macs-sec { padding: 22px 0 6px; scroll-margin-top: calc(var(--macs-top) + 52px); }
.macs-sec h2 { margin: 0; font-size: 24px; letter-spacing: .02em; }
.macs-sec-note { margin: 4px 0 0; color: var(--macs-text-3); font-size: 14px; }
.macs-cards { display: grid; gap: 12px; margin-top: 14px; }
.macs-card-pkg { display: flex; gap: 14px; align-items: stretch; width: 100%; text-align: left; padding: 12px; border: 1px solid var(--macs-line-2); border-radius: 12px; background: #fff; }
.macs-card-pkg:hover { border-color: var(--macs-ink); }
.macs-serves { flex: 0 0 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 8px; background: var(--macs-ink); color: #fff; padding: 8px 4px; text-align: center; }
.macs-serves small { font-size: 10px; font-weight: 700; letter-spacing: .16em; color: #FF8A8A; }
.macs-serves b { font-family: var(--macs-head); font-weight: 700; font-size: 34px; line-height: 1.05; }
.macs-serves b.is-long { font-size: 22px; }
.macs-card-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.macs-card-name { font-weight: 700; font-size: 17px; }
.macs-card-desc { color: var(--macs-text-2); font-size: 14px; }
.macs-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.macs-plus { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 18px; background: var(--macs-red); color: #fff; flex: 0 0 auto; }
.macs-rows { margin-top: 8px; display: grid; }
.macs-row { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 14px 0; border: 0; border-bottom: 1px solid var(--macs-line); background: none; }
.macs-row-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.macs-row-name { font-weight: 600; font-size: 16px; }
.macs-row-desc { color: var(--macs-text-3); font-size: 14px; }
.macs-row-price { font-weight: 600; font-size: 14px; margin-top: 2px; }
.macs-plus-line { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 18px; border: 2px solid var(--macs-ink); flex: 0 0 auto; }
.macs-foot-note { padding: 24px 0 120px; color: var(--macs-text-3); font-size: 13px; text-align: center; }
.macs-closed { max-width: 560px; margin: 64px auto; padding: 0 16px; text-align: center; font-family: Inter, system-ui, sans-serif; }
.macs-closed h1 { font-family: var(--macs-head); text-transform: uppercase; }

@media (min-width: 760px) {
	.macs-band h1 { font-size: 52px; }
	.macs-cards, .macs-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}

/* ---------- View order bar ---------- */
.macs-orderbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 12px 16px 20px; background: #fff; border-top: 1px solid #E2E2E2; }
.macs-orderbar button { display: flex; width: 100%; max-width: 560px; margin: 0 auto; height: 54px; align-items: center; justify-content: space-between; padding: 0 20px; border: 0; border-radius: 27px; background: var(--macs-red); color: #fff; font-weight: 700; font-size: 16px; box-shadow: 0 6px 18px rgba(0,0,0,.2); }

/* ---------- Sheets ---------- */
.macs-backdrop { position: fixed; inset: 0; z-index: 99990; width: 100%; height: 100%; border: 0; padding: 0; background: rgba(0,0,0,.55); }
.macs-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99991; max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column; background: #fff; border-radius: 18px 18px 0 0; }
@media (min-width: 760px) {
	.macs-sheet { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: 520px; max-height: 86vh; border-radius: 16px; }
}
.macs-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 6px 20px; }
.macs-sheet-head h2 { margin: 0; font-size: 26px; }
.macs-x { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 22px; background: #F1F1F1; }
.macs-sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 0 20px 16px; }
.macs-sheet-foot { display: flex; gap: 12px; align-items: center; padding: 12px 16px 20px; border-top: 1px solid #E2E2E2; }
.macs-item-name { margin: 0; font-size: 28px; line-height: 1.1; }
.macs-chip { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 12px; background: var(--macs-ink); color: #fff; font-size: 13px; font-weight: 700; }
.macs-item-desc { margin: 10px 0 0; color: #3A3A3A; }
.macs-group { margin-top: 22px; }
.macs-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.macs-group-head h3 { margin: 0; font-size: 17px; font-weight: 700; font-family: inherit; text-transform: none; }
.macs-badge { flex: 0 0 auto; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 700; background: var(--macs-red-soft); color: var(--macs-red-dark); }
.macs-badge.is-done { background: #E7F4EA; color: #1E6B34; }
.macs-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--macs-line); background: none; text-align: left; }
.macs-radio { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 11px; border: 2px solid #8A8A8A; background: #fff; }
.macs-opt[aria-pressed="true"] .macs-radio { border: 7px solid var(--macs-red); }
.macs-opt[aria-pressed="true"] .macs-opt-label { font-weight: 700; }
.macs-opt-label { flex: 1 1 auto; }
.macs-opt-sub { display: block; font-size: 13px; color: var(--macs-text-3); font-weight: 400; }
.macs-opt-add { flex: 0 0 auto; color: var(--macs-text-3); font-size: 14px; }
.macs-qty { flex: 0 0 auto; display: flex; align-items: center; border: 2px solid var(--macs-ink); border-radius: 24px; height: 48px; }
.macs-qty button { width: 44px; height: 44px; border: 0; background: none; display: flex; align-items: center; justify-content: center; }
.macs-qty span { min-width: 18px; text-align: center; font-weight: 700; }
.macs-sheet-foot .macs-btn { flex: 1 1 auto; height: 52px; border-radius: 26px; font-size: 15px; }

/* Pickup sheet */
.macs-step { margin: 18px 0 8px; font-size: 16px; font-weight: 700; font-family: inherit; text-transform: none; }
.macs-days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.macs-days::-webkit-scrollbar { display: none; }
.macs-day { flex: 0 0 auto; width: 64px; height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px solid #CFCFCF; border-radius: 12px; background: #fff; }
.macs-day small { font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.macs-day b { font-family: var(--macs-head); font-weight: 700; font-size: 20px; line-height: 1.1; }
.macs-times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.macs-time { height: 44px; border: 2px solid #CFCFCF; border-radius: 10px; background: #fff; font-weight: 600; font-size: 14px; }
.macs-day[aria-pressed="true"], .macs-time[aria-pressed="true"] { border-color: var(--macs-red); background: var(--macs-red); color: #fff; }
.macs-muted { margin: 6px 0 0; font-size: 13px; color: var(--macs-text-3); }
.macs-error { margin: 10px 0 0; color: #B00020; font-weight: 700; }

/* Cart sheet */
.macs-line { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--macs-line); }
.macs-line-body { flex: 1 1 auto; min-width: 0; }
.macs-line-name { font-weight: 700; }
.macs-line-sub { font-size: 13px; color: var(--macs-text-3); }
.macs-line-qty { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.macs-line-qty button { width: 36px; height: 36px; border: 1.5px solid #9A9A9A; border-radius: 18px; background: #fff; display: flex; align-items: center; justify-content: center; }
.macs-line-qty span { min-width: 24px; text-align: center; font-weight: 700; }
.macs-hot { display: flex; gap: 12px; align-items: flex-start; width: 100%; margin-top: 16px; padding: 14px; border: 2px solid #CFCFCF; border-radius: 12px; background: #fff; text-align: left; }
.macs-hot-box { flex: 0 0 auto; width: 24px; height: 24px; margin-top: 1px; border-radius: 6px; border: 2px solid #CFCFCF; background: #fff; color: #fff; display: flex; align-items: center; justify-content: center; }
.macs-hot[aria-pressed="true"] { border-color: var(--macs-red); background: var(--macs-red-soft); }
.macs-hot[aria-pressed="true"] .macs-hot-box { border-color: var(--macs-red); background: var(--macs-red); }
.macs-hot-text { display: flex; flex-direction: column; gap: 2px; }
.macs-hot-text small { font-size: 13px; color: var(--macs-text-2); }
.macs-totals { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; font-size: 14px; }
.macs-totals div { display: flex; justify-content: space-between; gap: 12px; }
.macs-totals .is-total { font-weight: 700; font-size: 17px; }
.macs-busy { opacity: .55; pointer-events: none; }
.macs-pending { pointer-events: none; }
.macs-pending .macs-totals, .macs-pending .macs-sheet-foot { opacity: .55; }

/* ---------- Checkout pickup card + wallet lock ---------- */
.macs-card { background: #fff; border-radius: 12px; padding: 16px; margin: 0 0 16px; border: 2px solid var(--macs-ink); font-family: Inter, system-ui, sans-serif; }
.macs-card h3 { margin: 0; font-size: 16px; font-weight: 700; }
.macs-card-top { display: flex; justify-content: space-between; align-items: center; }
.macs-pk-msg { margin: 8px 0 0; font-weight: 700; color: #B00020; }
button.macs-wallet-cover { display: none; }
.macs-wallet-locked { isolation: isolate; }
.macs-wallet-locked button.macs-wallet-cover { display: flex; position: absolute; inset: 0; z-index: 2147483000; align-items: center; justify-content: center; text-align: center; width: 100%; height: 100%; padding: 4px 12px; margin: 0; background: rgba(255,255,255,.94); border: 2px dashed var(--macs-red); border-radius: 8px; color: var(--macs-red); font-weight: 700; font-size: .9em; line-height: 1.2; cursor: pointer; }
