/* The catering enquiry page (/catering/enquiry/): only what it has beyond the shared site and form
   styles in style.css and forms.css: the "$" budget box, dish picker (sizes and quantities) and selections. */

/* The "Catering" link above the heading: a little smaller and tighter than .eyebrow elsewhere */
.eyebrow {
	margin: 0 0 .4em;
	font-size: .85rem;
}
.page-head .eyebrow a {
	text-decoration: none;
}

.cater-form {
	display: block;
}
/* Details and dishes are one form: one background, and the dishes follow on like the other headings */
.cater-form .cater-details {
	padding-top: clamp(36px, 5vw, 60px);
	padding-bottom: 0;
}
.cater-form .cater-menu {
	padding-top: 32px;
}
.cater-fields {
	display: grid;
	gap: 16px;
}
/* The fields take the menu's column (.cater-layout below), so both line up on the left and the right */
.cater-fields {
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	column-gap: clamp(24px, 3vw, 40px);
}
.cater-fields > * {
	grid-column: 1;
}
.cater-fields h2 {
	margin: 16px 0 0;
	font-size: 1.6rem;
}
.cater-fields .required-note + h2 {
	margin-top: 0;
}
.cater-sent .success-panel {
	max-width: 640px;
	margin: clamp(36px, 5vw, 64px) auto;
}
.has-error .budget-hint {
	display: none;
}

/* "$" in front of the budget */
.input-prefix {
	position: relative;
}
.input-prefix > span {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	font-weight: 600;
	color: var(--muted);
	pointer-events: none;
}
.input-prefix input {
	padding-left: 30px;
}
.has-error .input-prefix > span {
	color: var(--error);
}

/* Menu: one card per dish */
.cater-menu-head {
	max-width: 740px; /* left-aligned like the fields above and the menu below */
	margin: 0 0 28px;
}
.cater-menu-head h2 {
	margin: 0 0 .4em;
	font-size: 1.6rem;
}
.cater-menu-head .lede {
	margin: 0;
	font-size: 1rem;
}
.dishes-error {
	scroll-margin-top: 110px;
	font-size: 1rem;
}
.diet-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 1rem;
	font-weight: 600;
	font-size: .95rem;
}
.allergen-note {
	margin: .75rem 0 0;
	font-size: .88rem;
	color: var(--muted);
}
.filter-btn {
	min-height: 40px;
	padding: .35em 1em;
	border: 1.5px solid var(--olive-500);
	border-radius: 999px;
	background: #fff;
	color: var(--olive-700);
	font: 600 .92rem var(--body);
	cursor: pointer;
}
.filter-btn[aria-pressed=true] {
	background: var(--olive-500);
	color: #fff;
}
.filter-btn[aria-pressed=true]::before {
	content: "\2713  ";
}

.cater-layout {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: clamp(24px, 3vw, 40px);
	align-items: start;
}
@media (max-width: 991px) {
	.cater-layout,
	.cater-fields {
		grid-template-columns: minmax(0, 1fr);
	}
}
.menu-loading {
	text-align: center;
}
.menu-category h2 {
	margin: 1.4em 0 .6em;
	padding-bottom: .3em;
	border-bottom: 1px solid var(--oak-line);
	font-size: 1.35rem;
}
.menu-category:first-child h2,
.menu-category[hidden] + .menu-category h2 {
	margin-top: 0;
}
.menu-item[hidden],
.menu-category[hidden] {
	display: none;
}
.menu-item {
	margin-bottom: 10px;
	background: #fff;
	border: 1.5px solid var(--oak-line);
	border-radius: 6px;
	transition: border-color .15s, background-color .15s;
}
.menu-item-top {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 16px;
}
.menu-item-info {
	flex: 1;
	min-width: 0;
}
.menu-item h3 {
	margin: 0 0 .25em;
	font-family: var(--body);
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--ink);
}
.menu-item p {
	margin: 0 0 .25em;
	color: var(--muted);
	font-size: .95rem;
}
.menu-item.chosen,
.menu-item.open {
	border-color: var(--olive-500);
	background: #F6F4E6;
}
.diet {
	display: inline-block;
	margin-right: 4px;
	padding: .15rem .6rem;
	border-radius: 999px;
	background: var(--olive-500);
	color: #fff;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .03em;
}
.addbtn {
	flex: 0 0 auto;
	min-width: 104px;
	min-height: 44px;
	padding: .45em 1.1em;
	font-size: .95rem;
}
.btn-added,
.btn-added:focus {
	background: var(--olive-700);
	border-color: var(--olive-700);
	color: #fff;
}
.btn-open,
.btn-open:focus {
	background: #fff;
	border-color: var(--olive-500);
	color: var(--olive-700);
}
.btn-open:hover {
	background: var(--beige);
	color: var(--olive-700);
}
.menu-item-sizes {
	display: inline-block;
	font-size: .85rem;
	font-weight: 600;
	color: var(--accent);
}

/* Sizes and quantities, opened by the dish's Add button */
.size-chooser {
	padding: 4px 16px 16px;
	border-top: 1px dashed var(--oak-line);
}
.size-chooser[hidden] {
	display: none;
}
.size-hint {
	margin: .6em 0 .2em !important;
	font-size: .88rem !important;
}
.size-row {
	display: flex;
	align-items: center;
	gap: 8px 14px;
	padding: 10px 0;
	border-bottom: 1px solid var(--oak);
}
.size-label {
	flex: 1 1 0;
	min-width: 0;
}
.size-label strong {
	display: block;
	font-size: 1rem;
}
.size-label span {
	font-size: .85rem;
	color: var(--muted);
}
.size-price {
	font-weight: 700;
	color: var(--accent);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.stepper {
	display: flex;
	flex: 0 0 auto;
	border: 1.5px solid var(--oak-line);
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
}
.stepper button {
	width: 44px;
	height: 44px;
	border: 0;
	background: var(--beige);
	color: var(--ink);
	font: 700 1.25rem/1 var(--body);
	cursor: pointer;
}
.stepper button:hover:not(:disabled) {
	background: var(--oak-line);
}
.stepper button:disabled {
	opacity: .35;
	cursor: default;
}
.stepper input {
	width: 56px;
	height: 44px;
	border: 0;
	border-radius: 0;
	padding: 0;
	text-align: center;
	font: 600 1rem var(--body);
	font-variant-numeric: tabular-nums;
}

/* Selections, beside the menu (below it on phones) */
.cater-aside {
	position: sticky;
	top: 92px;
}
/* Beside the menu the card never runs past the bottom of the screen: a long list scrolls inside it,
   with the total and the send button always in view */
@media (min-width: 992px) {
	.selections-card {
		display: flex;
		flex-direction: column;
		max-height: calc(100vh - 92px - 16px);
	}
	.selections-card > * {
		flex-shrink: 0;
	}
	.selections-card #selections {
		flex: 0 1 auto;
		min-height: 80px;
		overflow-y: auto;
		overscroll-behavior: contain;
		margin-right: -8px;
		padding-right: 8px;
	}
}
.selections-card {
	padding: 24px;
	background: #fff;
	border: 1px solid var(--oak-line);
	border-top: 4px solid var(--btn);
	border-radius: 6px;
	scroll-margin-top: 90px;
}
.selections-card h3 {
	margin-top: 0;
}
.plain-list {
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}
.plain-list li {
	margin-bottom: 6px;
}
#selections li {
	display: flex;
	align-items: flex-start;
	gap: 0;
	border-radius: 6px;
	transition: background-color .6s ease;
}
#selections li.sel-changed {
	background-color: var(--beige);
	transition: none;
}
.sel-line {
	flex: 1;
	min-width: 0;
}
.sel-line small {
	display: block;
	color: var(--muted);
	font-size: .85rem;
}
.sel-amount {
	margin-left: 10px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}
.selections-total {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--oak-line);
}
.selections-total[hidden] {
	display: none;
}
.selections-total p {
	display: flex;
	justify-content: space-between;
	margin: 0;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.selections-total .delivery-line {
	margin-bottom: 6px;
	font-weight: 400;
}
.selections-total .delivery-line[hidden] {
	display: none;
}
.cater-terms {
	margin-top: 16px;
	padding: 12px 14px;
	background: var(--beige);
	border-radius: 6px;
	font-size: .85rem;
	line-height: 1.45;
}
.cater-terms h4 {
	margin: 0 0 4px;
	font-size: .9rem;
}
.cater-terms ul {
	margin: 0;
	padding-left: 18px;
}
.cater-terms li + li {
	margin-top: 2px;
}
.selections-total .total-note {
	display: block;
	margin-top: 4px;
	font-weight: 400;
	font-size: .85rem;
	color: var(--muted);
}
.selections-empty {
	padding: 12px;
	border: 1.5px dashed var(--oak-line);
	border-radius: 4px;
	color: var(--muted);
	font-size: .95rem;
}
.removebtn {
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	margin: 2px .75rem 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--olive-700);
	color: #fff;
	font-size: 1.1rem;
	line-height: 26px;
	text-align: center;
	cursor: pointer;
}
.removebtn:hover {
	background: var(--error);
}
.selections-card .form-actions {
	justify-items: stretch;
	margin-top: 16px;
}

/* Phones: "Review & send" bar while scrolling the menu */
.mobile-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px var(--gutter);
	padding-bottom: max(10px, env(safe-area-inset-bottom));
	background: var(--olive-900);
	color: var(--on-dark);
	font-weight: 600;
	box-shadow: 0 -4px 16px rgba(0, 0, 0, .15);
}
.mobile-bar[hidden] {
	display: none;
}
@media (min-width: 992px) {
	.mobile-bar {
		display: none !important;
	}
}
/* An added dish shows what's chosen and its cost without opening it (js/catering-menu.js) */
.menu-item .menu-item-chosen {
	margin: 8px 0 0;
	font-weight: 700;
	color: var(--ink);
}
.menu-item .menu-item-chosen[hidden] {
	display: none;
}
/* A dish's name in the list of what's chosen jumps to it in the menu */
.sel-name {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	color: inherit;
	text-align: left;
	cursor: pointer;
}
.sel-name:hover,
.sel-name:focus-visible {
	color: var(--accent);
}
.menu-item.flash {
	box-shadow: 0 0 0 3px var(--leaf-light);
	transition: box-shadow .3s;
}
