/* Only the duplicate price in a fixed-price Mix and Match status row. */
body.single-product div.product.product-type-mix-and-match form.mnm_form .mnm_data[data-per_product_pricing="false"] > p.mnm_price > span.price {
	display: none !important;
}

/* Page 45 presentation; header identity rules are separately scoped below. */
body .site-header .sgff-header-identity,
body.page-id-45 .sgff-page {
	--sgff-burgundy: #6b2233;
	--sgff-burgundy-dark: #531826;
	--sgff-gold: #c2a052;
	--sgff-ivory: #fbf7ee;
	--sgff-cream: #f5ecdc;
	--sgff-ink: #2c2725;
	--sgff-muted: #6d625d;
}
body.page-id-45 .sgff-page {
	min-width: 0;
	color: var(--sgff-ink);
}
body.page-id-45 .sgff-page .sgff-masthead {
	background: transparent;
	color: var(--sgff-burgundy);
	border-block: 2px solid var(--sgff-gold);
	border-radius: 0;
	box-shadow: none;
	padding: 1rem .875rem;
}
body.page-id-45 .sgff-page .sgff-masthead-row {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
	align-items: center;
	gap: .75rem;
	text-align: center;
}
body.page-id-45 .sgff-page .sgff-masthead-row > * {
	min-width: 0;
	margin: 0 !important;
	max-width: none;
}
body.page-id-45 .sgff-page .sgff-event-title {
	grid-column: 2;
	grid-row: 1;
	font-size: clamp(1.75rem, 3.7vw, 2.75rem);
	line-height: 1.08;
	font-weight: 750;
	color: var(--sgff-burgundy);
	text-wrap: balance;
}
body.page-id-45 .sgff-page .sgff-day {
	font-size: 1.05rem;
	line-height: 1.4;
}
body.page-id-45 .sgff-page .sgff-day-friday {
	grid-column: 1;
	grid-row: 1;
}
body.page-id-45 .sgff-page .sgff-day-saturday {
	grid-column: 3;
	grid-row: 1;
}
body.page-id-45 .sgff-page .sgff-identity {
	margin: .75rem 0 0 !important;
	font-size: .95rem;
	line-height: 1.45;
	text-align: center;
	color: var(--sgff-burgundy);
}
body.page-id-45 .sgff-page .sgff-top-actions .wp-block-buttons {
	justify-content: center;
	flex-wrap: wrap;
	gap: .375rem;
}
body.page-id-45 .sgff-page .sgff-top-actions .wp-block-button {
	max-width: 100%;
}
body.page-id-45 .sgff-page .sgff-top-actions .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	max-width: 100%;
	box-sizing: border-box;
	font-size: 1rem;
	line-height: 1.35;
	padding: .4375rem .625rem;
	color: var(--sgff-burgundy);
	background: transparent;
	border: 1px solid var(--sgff-burgundy);
	border-radius: 2px;
	box-shadow: none;
}
body.page-id-45 .sgff-page .sgff-top-actions .wp-block-button__link:hover {
	background: var(--sgff-cream);
}
body.page-id-45 .sgff-page .sgff-section-title {
	margin: 1.5rem 0;
	padding: .5rem 0;
	font-size: clamp(1.3rem, 2.2vw, 1.65rem);
	line-height: 1.2;
	font-weight: 700;
	color: var(--sgff-burgundy);
	background: transparent;
	border-block: 2px solid var(--sgff-gold);
	border-radius: 0;
	box-shadow: none;
}
body.page-id-45 .sgff-page .sgff-order-title {
	font-size: 1.25rem;
	line-height: 1.3;
	color: var(--sgff-burgundy);
	margin: 0 0 .75rem;
}
body.page-id-45 .sgff-page .sgff-jump-rail {
	display: grid !important;
	grid-template-columns: repeat(6, max-content);
	justify-content: center;
	gap: 0;
	margin-block: .5rem !important;
	padding: .25rem 0;
	border-block: 1px solid var(--sgff-gold);
}
body.page-id-45 .sgff-page .sgff-jump-rail > p {
	position: relative;
	min-width: 0;
	margin: 0 !important;
	max-width: none;
	font-size: .8125rem;
	line-height: 1.25;
}
body.page-id-45 .sgff-page .sgff-jump-rail > p + p::before {
	content: '|';
	position: absolute;
	inset-inline-start: -.1em;
	top: 50%;
	transform: translateY(-50%);
	color: var(--sgff-gold);
}
body.page-id-45 .sgff-page .sgff-jump-rail a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 .625rem;
	color: var(--sgff-burgundy);
	text-decoration: none;
}
body.page-id-45 .sgff-page .sgff-jump-rail a:hover {
	text-decoration: underline;
}
body.page-id-45 .sgff-page .sgff-jump-rail a:focus-visible,
body.page-id-45 .sgff-page .sgff-top-actions a:focus-visible,
body.page-id-45 .sgff-page .sgff-simple-cart button:focus-visible,
body.page-id-45 .sgff-page .sgff-simple-cart input:focus-visible {
	outline: 2px solid var(--sgff-burgundy);
	outline-offset: 2px;
}
body.page-id-45 .sgff-page :is(#dinners, #bakery, #country-store) ul.products {
	display: grid !important;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
body.page-id-45 .sgff-page #dinners ul.products {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
body.page-id-45 .sgff-page :is(#bakery, #country-store) ul.products {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
body.page-id-45 .sgff-page :is(#dinners, #bakery, #country-store) ul.products::before,
body.page-id-45 .sgff-page :is(#dinners, #bakery, #country-store) ul.products::after {
	display: none !important;
}
body.page-id-45 .sgff-page :is(#dinners, #bakery, #country-store) ul.products > li.product {
	float: none !important;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
}
body.page-id-45 .sgff-page .sgff-support-options {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
}
body.page-id-45 .sgff-page .sgff-support-options > * {
	min-width: 0;
	margin: 0 !important;
	max-width: none;
}
body.page-id-45 .sgff-page .sgff-support-options h3 {
	font-size: 1.125rem;
	color: var(--sgff-burgundy);
	margin: 0 0 .5rem;
}
body.page-id-45 .sgff-page .sgff-support-levels {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .25rem .75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
body.page-id-45 .sgff-page .sgff-support-status {
	font-size: .9375rem;
	line-height: 1.4;
}
body.page-id-45 .sgff-page .sgff-future-cta {
	margin-top: .625rem;
	font-size: .9375rem;
	font-weight: 600;
	color: var(--sgff-burgundy);
}
body.page-id-45 .sgff-page .sgff-info-detail h3 {
	font-size: 1.125rem;
	line-height: 1.3;
	color: var(--sgff-burgundy);
}
body.page-id-45 .sgff-page .sgff-directions p {
	margin-block: .5rem;
}
body.page-id-45 .sgff-page .sgff-simple-cart {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .375rem;
	margin: .625rem 0 0;
}
body.page-id-45 .sgff-page .sgff-quantity-controls {
	display: inline-flex;
	align-items: center;
	gap: .125rem;
	width: 100%;
	max-width: 8rem;
	min-width: 0;
}
body.page-id-45 .sgff-page .sgff-quantity-controls .quantity {
	float: none;
	margin: 0;
	flex: 1 1 3.25rem;
	min-width: 0;
}
body.page-id-45 .sgff-page .sgff-quantity-controls input.qty {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-height: 44px;
	padding: .25rem;
	text-align: center;
	font-size: 1rem;
}
body.page-id-45 .sgff-page .sgff-quantity-controls button {
	box-sizing: border-box;
	min-width: 36px;
	flex: 0 0 36px;
	min-height: 44px;
	padding: .25rem;
	font-size: 1.125rem;
	line-height: 1;
	color: var(--sgff-burgundy);
	background: var(--sgff-cream);
	border: 1px solid var(--sgff-gold);
	border-radius: 2px;
}
body.page-id-45 .sgff-page .sgff-quantity-controls button[hidden] {
	display: none !important;
}
body.page-id-45 .sgff-page .sgff-quantity-controls button:disabled {
	opacity: .45;
	cursor: default;
}
body.page-id-45 .sgff-page .sgff-simple-cart .sgff-add-to-cart {
	min-height: 44px;
	padding: .5rem .625rem;
	margin: 0;
	white-space: normal;
	max-width: 100%;
	min-width: 0;
}
@media (max-width: 767px) {
	body.page-id-45 .sgff-page .sgff-masthead-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: .75rem .5rem;
	}
	body.page-id-45 .sgff-page .sgff-event-title {
		grid-column: 1 / -1;
		grid-row: 1;
		font-size: clamp(1.7rem, 6.5vw, 2.25rem);
	}
	body.page-id-45 .sgff-page .sgff-day-friday {
		grid-column: 1;
		grid-row: 2;
	}
	body.page-id-45 .sgff-page .sgff-day-saturday {
		grid-column: 2;
		grid-row: 2;
	}
	body.page-id-45 .sgff-page .sgff-day {
		font-size: 1rem;
	}
	body.page-id-45 .sgff-page .sgff-jump-rail {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		row-gap: 7px;
	}
	body.page-id-45 .sgff-page .sgff-jump-rail a {
		min-height: 44px;
		padding-inline: .25rem;
	}
	body.page-id-45 .sgff-page .sgff-jump-rail a > span {
		display: none;
	}
	body.page-id-45 .sgff-page .sgff-jump-rail a::after {
		content: attr(data-mobile-label);
	}
	body.page-id-45 .sgff-page .sgff-jump-rail > p:nth-child(4)::before {
		content: none;
	}
	body.page-id-45 .sgff-page :is(#dinners, #bakery, #country-store) ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem .75rem;
	}
	body.page-id-45 .sgff-page .sgff-support-options {
		grid-template-columns: minmax(0, 1fr);
		gap: 1rem;
	}
}
@media (max-width: 359px) {
	body.page-id-45 .sgff-page .sgff-masthead-row {
		grid-template-columns: minmax(0, 1fr);
		gap: .5rem;
	}
	body.page-id-45 .sgff-page .sgff-day-friday {
		grid-column: 1;
		grid-row: 2;
	}
	body.page-id-45 .sgff-page .sgff-day-saturday {
		grid-column: 1;
		grid-row: 3;
	}
}

body.page-id-45 .sgff-page .sgff-quantity-enhanced input.qty {
	appearance: textfield;
	-moz-appearance: textfield;
}
body.page-id-45 .sgff-page .sgff-quantity-enhanced input.qty::-webkit-inner-spin-button,
body.page-id-45 .sgff-page .sgff-quantity-enhanced input.qty::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Church name above the address; existing Astra home link remains intact. */
body .site-header .sgff-header-identity {
    display: block;
    max-width: 100%;
    font-size: .9375rem;
    line-height: 1.45;
    font-weight: 400;
    color: var(--sgff-burgundy);
    white-space: normal;
    overflow-wrap: anywhere;
    vertical-align: middle;
}

/* Natural card heights: every final action sits at its grid row's bottom. */
body.page-id-45 .sgff-page :is(#dinners, #bakery, #country-store) ul.products {
    align-items: stretch;
}
body.page-id-45 .sgff-page :is(#dinners, #bakery, #country-store) ul.products > li.product {
    display: flex;
    flex-direction: column;
    align-self: stretch;
}
body.page-id-45 .sgff-page :is(#dinners, #bakery, #country-store) ul.products > li.product > .astra-shop-summary-wrap {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}
body.page-id-45 .sgff-page :is(#dinners, #bakery, #country-store) ul.products > li.product .sgff-card-actions {
    margin-top: auto;
    padding-top: .625rem;
    min-width: 0;
}
body.page-id-45 .sgff-page :is(#dinners, #bakery, #country-store) .sgff-card-actions > .button,
body.page-id-45 .sgff-page :is(#dinners, #bakery, #country-store) .sgff-card-actions .sgff-add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    max-width: 100%;
    margin: 0;
    padding: .5rem .625rem;
    white-space: normal;
    color: var(--sgff-ivory);
    background: var(--sgff-burgundy);
    border: 1px solid var(--sgff-burgundy);
    border-radius: 2px;
    box-shadow: none;
}
body.page-id-45 .sgff-page :is(#dinners, #bakery, #country-store) .sgff-card-actions > .button:hover,
body.page-id-45 .sgff-page :is(#dinners, #bakery, #country-store) .sgff-add-to-cart:hover {
    background: var(--sgff-burgundy-dark);
    border-color: var(--sgff-burgundy-dark);
}
body.page-id-45 .sgff-page :is(#dinners, #bakery, #country-store) .sgff-card-actions a:focus-visible {
    outline: 2px solid var(--sgff-burgundy);
    outline-offset: 2px;
}
body.page-id-45 .sgff-page :is(#dinners, #bakery, #country-store) .woocommerce-loop-product__title {
    color: var(--sgff-burgundy);
    overflow-wrap: anywhere;
}
body.page-id-45 .sgff-page :is(#dinners, #bakery, #country-store) ul.products > li.product .astra-shop-thumbnail-wrap img,
body.page-id-45 .sgff-page :is(#dinners, #bakery, #country-store) ul.products > li.product > a.woocommerce-loop-product__link > img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
}
body.page-id-45 .sgff-page :is(#bakery, #country-store) .sgff-card-description {
    margin: .25rem 0 .5rem;
    font-size: .875rem;
    line-height: 1.45;
    color: var(--sgff-muted);
    overflow-wrap: anywhere;
}
body.page-id-45 .sgff-page .sgff-card-actions .sgff-simple-cart {
    margin: 0;
}
body.page-id-45 .sgff-page .sgff-cart-status {
    flex: 0 0 100%;
    margin: .25rem 0 0;
    font-size: .875rem;
    line-height: 1.4;
    color: var(--sgff-ink);
    overflow-wrap: anywhere;
}
body.page-id-45 .sgff-page .sgff-cart-status:empty {
    display: none;
}
body.page-id-45 .sgff-page .sgff-simple-cart .added_to_cart {
    font-size: .875rem;
    color: var(--sgff-burgundy);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
body.page-id-45 .sgff-page .sgff-add-to-cart:disabled {
    opacity: .65;
    cursor: wait;
}

body .site-header .sgff-header-identity > .site-title {
    display: block;
    margin: 0;
    font-size: inherit;
    line-height: 1.25;
}
body .site-header .sgff-header-identity .sgff-header-name {
    font-size: 1.40625rem;
    line-height: 1.25;
    font-weight: 600;
    color: var(--sgff-burgundy);
}
body .site-header .sgff-header-identity .sgff-header-address {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .125rem .5rem;
    margin-top: .125rem;
    font-size: .9375rem;
    line-height: 1.4;
    font-weight: 400;
    color: var(--sgff-ink);
}
body .site-header .sgff-header-identity .sgff-header-address > span {
    min-width: 0;
}
body .site-header .sgff-header-identity a.sgff-header-directions {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    font-size: inherit;
    font-weight: 400;
    color: var(--sgff-burgundy);
    text-decoration: underline;
    text-underline-offset: .15em;
    white-space: nowrap;
}
body .site-header .sgff-header-identity a.sgff-header-directions:hover {
    color: var(--sgff-burgundy-dark);
}
body .site-header .sgff-header-identity a.sgff-header-directions:focus-visible {
    outline: 2px solid var(--sgff-burgundy);
    outline-offset: 2px;
}

body.page-id-45 .sgff-page .wp-block-button__link {
    color: var(--sgff-ivory);
    background: var(--sgff-burgundy);
    border-color: var(--sgff-burgundy);
    box-shadow: none;
}
body.page-id-45 .sgff-page .wp-block-button__link:hover {
    background: var(--sgff-burgundy-dark);
}
body.page-id-45 .sgff-page .wp-block-button__link:focus-visible {
    outline: 2px solid var(--sgff-burgundy);
    outline-offset: 2px;
}

/* Shared section heading/rail containers use unfilled gold dividers. */
body.page-id-45 .sgff-page .sgff-title-bar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    align-items: center;
    gap: .25rem 1rem;
    margin: 1.5rem 0;
    padding: .5rem 0;
    color: var(--sgff-burgundy);
    background: transparent;
    border-block: 2px solid var(--sgff-gold);
}
body.page-id-45 .sgff-page .sgff-title-bar > .sgff-section-title {
    margin: 0;
    padding: 0;
    max-width: none;
    min-width: 0;
    border: 0;
    background: transparent;
    text-align: left;
}
body.page-id-45 .sgff-page .sgff-title-bar > .sgff-jump-rail {
    display: flex !important;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0;
    min-width: 0;
    max-width: none;
    margin: 0 !important;
    padding: 0;
    border: 0;
}
body.page-id-45 .sgff-page .sgff-title-bar .sgff-jump-rail a {
    min-height: 40px;
    padding-inline: .5rem;
}

/* A reserved bottom dock keeps the control out of the catalog's scroll viewport. */
html.sgff-cart-layout {
    overflow: hidden;
}
body.page-id-45.sgff-cart-layout {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--sgff-admin-offset, 0px));
    height: calc(100dvh - var(--sgff-admin-offset, 0px));
    overflow: hidden;
}
body.page-id-45.sgff-cart-layout > #page {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    scrollbar-gutter: stable;
    scroll-padding-block: 1rem;
}
body.page-id-45 #sgff-cart-dock {
    --sgff-burgundy: #6b2233;
    --sgff-burgundy-dark: #531826;
    --sgff-ivory: #fbf7ee;
    --sgff-gold: #c2a052;
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 100%;
    padding: .375rem max(.75rem, env(safe-area-inset-right)) max(.375rem, env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left));
    border-top: 1px solid var(--sgff-gold);
    background: var(--sgff-ivory);
}
body.page-id-45 #sgff-cart-control {
    display: flex;
    justify-content: flex-end;
}
body.page-id-45 #sgff-cart-dock[hidden],
body.page-id-45 #sgff-cart-control[hidden] {
    display: none !important;
}
body.page-id-45 #sgff-cart-control .sgff-cart-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .25rem .4rem;
    box-sizing: border-box;
    min-height: 44px;
    max-width: 100%;
    padding: .5rem .75rem;
    color: var(--sgff-ivory);
    background: var(--sgff-burgundy);
    border: 1px solid var(--sgff-burgundy);
    border-radius: 2px;
    font-size: .9375rem;
    line-height: 1.35;
    text-decoration: none;
}
body.page-id-45 #sgff-cart-control .sgff-cart-link:hover {
    background: var(--sgff-burgundy-dark);
}
body.page-id-45 #sgff-cart-control .sgff-cart-link:focus-visible {
    outline: 2px solid var(--sgff-burgundy);
    outline-offset: 2px;
}
@media (max-width: 767px) {
    body.page-id-45 .sgff-page .sgff-title-bar {
        grid-template-columns: minmax(0, 1fr);
        row-gap: .25rem;
    }
    body.page-id-45 .sgff-page .sgff-title-bar > .sgff-jump-rail {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        justify-self: end;
        width: min(100%, 25rem);
        row-gap: 7px;
    }
    body.page-id-45 .sgff-page .sgff-title-bar .sgff-jump-rail a {
        min-height: 40px;
        padding-inline: .25rem;
    }
    body.page-id-45 #sgff-cart-control .sgff-cart-link {
        width: 100%;
    }
}

body.page-id-45.sgff-cart-layout > #page:focus-visible {
    outline: 2px solid #6b2233;
    outline-offset: -2px;
}


/* Cart empty/start-over: scoped custom controls; native totals and checkout untouched. */
body.woocommerce-cart .sgff-empty-cart-control {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem 1rem;
    margin: 0 0 1rem;
}
body.woocommerce-cart .sgff-empty-cart-control[hidden] { display: none !important; }
body.woocommerce-cart .sgff-empty-cart-control .sgff-empty-cart-button {
    min-height: 44px;
    max-width: 100%;
    padding: .55rem 1rem;
    border: 1px solid #7b2631;
    border-radius: 4px;
    background: transparent;
    color: #7b2631;
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.4;
    text-transform: none;
    white-space: normal;
    box-shadow: none;
}
body.woocommerce-cart .sgff-empty-cart-control .sgff-empty-cart-button:hover {
    background: #f8f1e8;
    color: #64202a;
}
body.woocommerce-cart .sgff-empty-confirmation {
    flex-basis: 100%;
    margin: 0;
    text-align: right;
}
body.woocommerce-cart .sgff-empty-cancel {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .35rem .5rem;
    text-decoration: underline;
}
body.woocommerce-cart .sgff-empty-cart-state {
    padding: 1.5rem 0;
    text-align: center;
}
body.woocommerce-cart .sgff-empty-cart-state p {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    line-height: 1.5;
}
body.woocommerce-cart .sgff-empty-cart-state .sgff-return-to-ordering {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    max-width: 100%;
    padding: .65rem 1rem;
    background: #7b2631;
    border: 1px solid #7b2631;
    border-radius: 4px;
    color: #fff;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    text-transform: none;
}
body.woocommerce-cart .sgff-empty-cart-button:focus-visible,
body.woocommerce-cart .sgff-empty-cancel:focus-visible,
body.woocommerce-cart .sgff-return-to-ordering:focus-visible {
    outline: 2px solid #7b2631;
    outline-offset: 3px;
}

body.woocommerce-cart .sgff-empty-cart-button:disabled {
    opacity: .55;
    cursor: wait;
}


/* Phone dock is viewport-anchored; #page ends above it so ordering controls are never covered. */
@media (max-width: 767px) {
    html.sgff-cart-mobile { overflow: hidden; }
    body.page-id-45.sgff-cart-mobile {
        display: block;
        min-height: 0;
        overflow: hidden;
    }
    body.page-id-45.sgff-cart-mobile #page {
        position: fixed;
        inset-inline: 0;
        top: calc(var(--sgff-mobile-top, 0px) + var(--sgff-admin-offset, 0px));
        width: auto;
        min-width: 0;
        min-height: 0 !important;
        height: max(0px, calc(var(--sgff-mobile-height, 100dvh) - var(--sgff-admin-offset, 0px) - var(--sgff-dock-height, 0px)));
        max-height: max(0px, calc(var(--sgff-mobile-height, 100dvh) - var(--sgff-admin-offset, 0px) - var(--sgff-dock-height, 0px)));
        margin: 0;
        overflow: auto;
        scroll-padding-block: 1rem;
        scrollbar-gutter: stable;
    }
    body.page-id-45.sgff-cart-mobile > #sgff-cart-dock {
        position: fixed;
        inset-inline: 0;
        bottom: var(--sgff-mobile-bottom, 0px);
        z-index: 1000;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    body.page-id-45.sgff-cart-mobile #sgff-cart-control,
    body.page-id-45.sgff-cart-mobile #sgff-cart-control .sgff-cart-link {
        min-width: 0;
        width: 100%;
    }
    body.page-id-45.sgff-cart-mobile #page:focus-visible {
        outline: 2px solid #6b2233;
        outline-offset: -2px;
    }
}


/* Stage 5H: keep the full desktop rail; the extra Cart link is phone-only. */
body.page-id-45 .sgff-page .sgff-jump-rail > .sgff-mobile-cart-item {
    display: none;
}
@media (max-width: 767px) {
    body.page-id-45 .sgff-page .sgff-top-actions .wp-block-buttons {
        gap: .25rem !important;
    }
    body.page-id-45 .sgff-page .sgff-top-actions .wp-block-button__link {
        min-height: 40px;
        padding: .25rem .4375rem !important;
        font-size: .9375rem !important;
        line-height: 1.3 !important;
    }
    body.page-id-45 .sgff-page #dinners ul.products {
        grid-template-columns: minmax(0, 1fr);
    }
    body.page-id-45 .sgff-page .sgff-title-bar > .sgff-jump-rail.sgff-mobile-utility {
        display: flex !important;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        justify-self: center;
        width: 100%;
        max-width: none;
        gap: .125rem 0;
        background: transparent;
    }
    body.page-id-45 .sgff-page .sgff-jump-rail.sgff-mobile-utility > .sgff-desktop-jump {
        display: none;
    }
    body.page-id-45 .sgff-page .sgff-jump-rail.sgff-mobile-utility > .sgff-mobile-cart-item {
        display: block;
    }
    body.page-id-45 .sgff-page .sgff-title-bar .sgff-jump-rail.sgff-mobile-utility a {
        min-height: 40px;
        padding-inline: .625rem;
        font-size: .875rem;
        line-height: 1.25;
    }
}

/* Stage 5I: outside spacing, compact ordering start, and single-row phone rails. */
body.page-id-45 .sgff-page.sgff-masthead-raised {
    margin-top: var(--sgff-page-top-margin) !important;
}
body.page-id-45 .sgff-page #order-online {
    display: flow-root;
    margin-block-start: 0 !important;
    padding-block-start: .5rem;
}
body.page-id-45 .sgff-page #order-online > .sgff-order-title {
    display: none;
}
body.page-id-45 .sgff-page #order-online > #dinners {
    margin-block-start: 0 !important;
}
body.page-id-45 .sgff-page :is(#dinners, #bakery, #country-store, #sponsorships, #pickup, #directions) {
    display: flow-root;
}
body.page-id-45 .sgff-page .sgff-title-bar.sgff-title-bar-standalone {
    grid-template-columns: minmax(0, 1fr);
}
@media (max-width: 767px) {
    body.page-id-45 .sgff-page .sgff-title-bar {
        grid-template-columns: minmax(0, 1fr);
        margin-block: 1.25rem;
        row-gap: .25rem;
    }
    body.page-id-45 .sgff-page .sgff-title-bar > .sgff-section-title {
        grid-column: 1;
        grid-row: 1;
    }
    body.page-id-45 .sgff-page .sgff-title-bar > .sgff-jump-rail.sgff-mobile-utility {
        display: flex !important;
        grid-column: 1;
        grid-row: 2;
        justify-self: center;
        justify-content: center;
        justify-content: safe center;
        align-items: center;
        flex-wrap: nowrap;
        width: max-content;
        max-width: 100%;
        min-width: 0;
        gap: 0;
        white-space: nowrap;
        /* Keep unusually enlarged text within this rail, never wider than the page. */
        overflow-x: auto;
    }
    body.page-id-45 .sgff-page .sgff-jump-rail.sgff-mobile-utility > p {
        flex: 0 0 auto;
    }
    body.page-id-45 .sgff-page .sgff-title-bar .sgff-jump-rail.sgff-mobile-utility a {
        box-sizing: border-box;
        min-height: 40px;
        min-width: 24px;
        padding-inline: clamp(0px, calc((100vw - 320px) / 10), 4px);
        font-size: .875rem;
        line-height: 1.25;
        white-space: nowrap;
    }
    body.page-id-45 .sgff-page .sgff-jump-rail.sgff-mobile-utility > p + p::before {
        content: '|';
        position: static;
        transform: none;
        padding-inline: 2px;
        align-self: center;
    }
    body.page-id-45 .sgff-page .sgff-jump-rail.sgff-mobile-utility > p:not(.sgff-desktop-jump) {
        display: flex;
        align-items: center;
    }
}

/* The approved phone action centering now applies to every Page 45 catalog viewport. */
body.page-id-45 .sgff-page :is(#dinners, #bakery, #country-store) .sgff-card-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    text-align: center;
}
body.page-id-45 .sgff-page :is(#dinners, #bakery, #country-store) .sgff-card-actions .sgff-simple-cart {
    width: 100%;
    justify-content: center;
}

/* Runtime marks only the standalone permanent Page 45 core Buttons block. */
body.page-id-45 .sgff-page .wp-block-buttons.sgff-legacy-cart {
    display: none !important;
}

/* Same-control confirmation, followed only by server-confirmed success. */
.sgff-empty-cart-button.sgff-empty-confirm {background:#a61b1b!important;border-color:#a61b1b!important;color:#fff!important}
.sgff-empty-cart-button.sgff-empty-success {background:#24663b!important;border-color:#24663b!important;color:#fff!important;opacity:1}

.sgff-combo-review {margin:1rem 0;overflow-wrap:anywhere}
.sgff-combo-review h3 {font-size:1.2rem;margin:.75rem 0 .35rem}
.sgff-cart-add-another {display:inline-flex;margin-left:1rem;min-height:44px;align-items:center}
