.sgh-order {
	--sgh-evergreen: #19352b;
	--sgh-pine: #122820;
	--sgh-cream: #f9f0e3;
	--sgh-paper: #fffaf3;
	--sgh-ink: #29201c;
	--sgh-muted: #65564c;
	--sgh-gold: #e5bd83;
	--sgh-cherry: #7a2b37;
	--sgh-cherry-dark: #59212c;
	--sgh-border: #e3d4c3;
	--sgh-serif: Georgia, "Times New Roman", serif;
	--sgh-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--sgh-ink);
	font-family: var(--sgh-sans);
	font-size: 16px;
	line-height: 1.5;
	text-align: start;
}

.sgh-order [hidden] {
	display: none !important;
}

.sgh-order *,
.sgh-order *::before,
.sgh-order *::after {
	box-sizing: border-box;
}

.sgh-order :where(h2, h3, h4, p, fieldset, legend) {
	margin: 0;
	padding: 0;
}

.sgh-order button {
	min-width: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: none;
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
}

.sgh-order button:disabled {
	opacity: .58;
	cursor: default;
}

.sgh-order :where(button, a, input, select, textarea):focus-visible {
	outline: 3px solid #126f54;
	outline-offset: 3px;
}

html:has(.sgh-order__expander[open]) {
	overflow: hidden;
}

html:has(.sgh-order[data-scrollbar] .sgh-order__expander[open]) {
	scrollbar-gutter: stable;
}

.sgh-order .sgh-order__expander {
	--sgh-dialog-top: max(clamp(.6rem, 3vh, 2rem), env(safe-area-inset-top));
	--sgh-dialog-bottom: max(clamp(.6rem, 3vh, 2rem), env(safe-area-inset-bottom));
	--sgh-dialog-side: clamp(.6rem, 3.5vw, 3.5rem);
	position: fixed;
	inset: var(--sgh-dialog-top) env(safe-area-inset-right) auto env(safe-area-inset-left);
	width: min(74rem, calc(100% - 2 * var(--sgh-dialog-side) - env(safe-area-inset-left) - env(safe-area-inset-right)));
	max-width: none;
	max-height: calc(100vh - var(--sgh-dialog-top) - var(--sgh-dialog-bottom));
	max-height: calc(100dvh - var(--sgh-dialog-top) - var(--sgh-dialog-bottom));
	margin: 0 auto;
	padding: 0;
	overflow: auto;
	overscroll-behavior: contain;
	scroll-padding-block-start: 4.5rem;
	border: 1px solid #9f7450;
	border-radius: 1rem;
	background: var(--sgh-pine);
	box-shadow: 0 1.25rem 4rem #0c16118c;
	color: var(--sgh-ink);
	opacity: 0;
	transform: translateY(clamp(-7rem, -10vh, -3rem));
	transition: opacity .28s ease, transform .36s cubic-bezier(.22, .72, .28, 1);
}

.sgh-order .sgh-order__expander:not([open]) {
	display: none;
}

.sgh-order .sgh-order__expander::backdrop {
	background: transparent;
	transition: background-color .36s ease;
}

.sgh-order[data-open] .sgh-order__expander {
	opacity: 1;
	transform: none;
}

.sgh-order[data-open] .sgh-order__expander::backdrop {
	background-color: rgb(10 20 14 / .54);
}

.sgh-order__panel {
	background:
		radial-gradient(ellipse at 16% 2%, #365044, transparent 56%),
		var(--sgh-pine);
}

.sgh-order__shell {
	width: min(100%, 80rem);
	margin: 0 auto;
	padding: clamp(1.55rem, 4.9vw, 4.25rem) clamp(1rem, 4vw, 3.5rem);
}

.sgh-order__header {
	position: relative;
	padding: 0 3.25rem clamp(1.5rem, 3.2vw, 2.65rem) 0;
}

.sgh-order .sgh-order__title {
	max-width: 20ch;
	color: var(--sgh-cream);
	font-family: var(--sgh-serif);
	font-size: clamp(2.3rem, 6vw, 4.6rem);
	font-weight: 400;
	line-height: 1.02;
	letter-spacing: -.045em;
	text-wrap: balance;
	text-transform: none;
}

.sgh-order .sgh-order__intro {
	max-width: 61ch;
	margin-top: .875rem;
	color: #efe0cf;
	font: inherit;
}

.sgh-order .sgh-order__preview {
	display: inline-block;
	width: fit-content;
	margin-bottom: .75rem;
	padding: .3rem .6rem;
	border: 1px solid var(--sgh-gold);
	border-radius: .25rem;
	color: var(--sgh-cream);
	font-size: .84rem;
}

.sgh-order .sgh-order__close {
	position: sticky;
	z-index: 2;
	inset-block-start: .8rem;
	display: grid;
	width: 2.75rem;
	height: 2.75rem;
	margin: 0 0 -2.75rem auto;
	place-items: center;
	padding: 0;
	border: 1px solid #bdbaac;
	border-radius: 50%;
	background: var(--sgh-pine);
	box-shadow: 0 .125rem .35rem #101c16a6;
	color: var(--sgh-cream);
	font-family: var(--sgh-sans);
	font-size: 1.65rem;
	line-height: 1;
}

.sgh-order .sgh-order__close:hover {
	background: var(--sgh-cream);
	color: var(--sgh-pine);
}

.sgh-order .sgh-order__close:focus-visible,
.sgh-order .sgh-order__cake:focus-visible {
	outline-color: var(--sgh-gold);
}

.sgh-order__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.16fr);
	align-items: start;
	gap: clamp(1.5rem, 3.8vw, 3.5rem);
}

.sgh-order .sgh-order__menu-title,
.sgh-order .sgh-order__form-title {
	margin: 0 0 .9rem;
	color: inherit;
	font-family: var(--sgh-serif);
	font-size: clamp(1.6rem, 2.8vw, 2.1rem);
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: -.025em;
	text-transform: none;
}

.sgh-order .sgh-order__menu-title {
	color: var(--sgh-cream);
}

.sgh-order__cakes {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(.65rem, 1.5vw, 1.1rem);
}

.sgh-order .sgh-order__cake {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	width: 100%;
	min-width: 0;
	padding: 0;
	border: 1px solid #9e876a;
	border-radius: .65rem;
	background: var(--sgh-cream);
	color: var(--sgh-ink);
	text-align: start;
	transition: box-shadow .18s ease, border-color .18s ease;
}

.sgh-order .sgh-order__cake:hover {
	border-color: var(--sgh-gold);
	box-shadow: 0 .2rem .85rem #080e0b70;
}

.sgh-order__cake-media {
	display: block;
	position: relative;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 4 / 3;
	background: #e5d4bc;
}

.sgh-order .sgh-order__cake-media img {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border-radius: 0;
	object-fit: cover;
}

.sgh-order__cake-media:has(.sgh-order__cake-placeholder) {
	min-height: 2.65rem;
	aspect-ratio: auto;
}

.sgh-order__cake-placeholder {
	display: grid;
	position: absolute;
	inset: 0;
	place-items: center;
	background:
		radial-gradient(ellipse at 50% 0, #fff6df80, transparent 75%),
		#eadbc5;
}

.sgh-order__cake-placeholder::before {
	width: .65rem;
	height: .65rem;
	border: 1px solid #986f53;
	content: "";
	transform: rotate(45deg);
}

.sgh-order__cake-content {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: .35rem;
	width: 100%;
	padding: clamp(.65rem, 1.5vw, 1.05rem);
}

.sgh-order__cake-title {
	color: var(--sgh-ink);
	font-family: var(--sgh-serif);
	font-size: clamp(1.155rem, 2.1vw, 1.55rem);
	font-weight: 400;
	line-height: 1.13;
	overflow-wrap: anywhere;
}

.sgh-order__cake-desc {
	color: var(--sgh-muted);
	font-size: .82rem;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.sgh-order__cake-price {
	color: var(--sgh-ink);
	font-size: .88rem;
	font-weight: 650;
}

.sgh-order__cake-cta {
	display: inline-flex;
	align-items: center;
	gap: .3em;
	margin-top: auto;
	padding-top: .375rem;
	color: var(--sgh-cherry);
	font-size: .85rem;
	font-weight: 700;
}

.sgh-order__cake:hover .sgh-order__cake-cta {
	text-decoration: underline;
	text-underline-offset: .14em;
}

.sgh-order__form {
	min-width: 0;
	padding: clamp(.9rem, 2.5vw, 1.9rem);
	border: 1px solid #d8c7b4;
	border-radius: .85rem;
	background: var(--sgh-paper);
	box-shadow: 0 .55rem 1.8rem #0c1a1450;
}

.sgh-order .sgh-order__form-title {
	color: var(--sgh-ink);
}

.sgh-order__item {
	position: relative;
	min-inline-size: 0;
	padding: .75rem .85rem .85rem;
	border: 1px solid var(--sgh-border);
	border-radius: .55rem;
}

.sgh-order__item + .sgh-order__item {
	margin-top: .8rem;
}

.sgh-order__item legend {
	width: auto;
	max-width: 100%;
	padding: 0 .35rem;
	border: 0;
	color: var(--sgh-ink);
	font: 700 .88rem/1.3 var(--sgh-sans);
}

.sgh-order__item-fields,
.sgh-order__contact {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: end;
	gap: .75rem;
}

.sgh-order__contact {
	margin-top: 1.15rem;
}

.sgh-order__wide {
	grid-column: 1 / -1;
}

.sgh-order__field {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: .25rem;
	min-width: 0;
	margin: 0;
	color: var(--sgh-ink);
	font-family: var(--sgh-sans);
	font-size: .875rem;
	font-weight: 650;
	line-height: 1.35;
}

.sgh-order .sgh-order__field :is(input, select, textarea),
.sgh-order .sgh-order__field :is(input, select, textarea):focus {
	width: 100%;
	min-width: 0;
	min-height: 2.75rem;
	margin: 0;
	padding: .5rem .58rem;
	border: 1px solid #a99988;
	border-radius: .35rem;
	box-shadow: none;
	background: #fffefc;
	color: var(--sgh-ink);
	font: 400 1rem/1.3 var(--sgh-sans);
	letter-spacing: normal;
	text-transform: none;
}

.sgh-order .sgh-order__field :is(input, select, textarea):focus-visible {
	outline: 2px solid #126f54;
	outline-offset: 1px;
}

.sgh-order .sgh-order__field select,
.sgh-order .sgh-order__consent input[type="checkbox"] {
	appearance: auto;
}

.sgh-order .sgh-order__field input[readonly],
.sgh-order .sgh-order__field input:disabled,
.sgh-order .sgh-order__field select:disabled {
	background: #f1eadd;
	color: #51433a;
}

.sgh-order .sgh-order__field textarea {
	min-height: 5rem;
	resize: vertical;
}

.sgh-order .sgh-order__remove,
.sgh-order .sgh-order__add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .35em;
	min-height: 2.75rem;
	padding: .35rem .65rem;
	border: 1px solid #a99988;
	border-radius: .35rem;
	color: var(--sgh-cherry);
	font-size: .875rem;
	font-weight: 700;
}

.sgh-order .sgh-order__remove {
	margin-top: .6rem;
}

.sgh-order .sgh-order__add {
	margin-top: .75rem;
}

.sgh-order .sgh-order__remove:hover:not(:disabled),
.sgh-order .sgh-order__add:hover:not(:disabled) {
	border-color: var(--sgh-cherry);
	background: #f8ece4;
}

.sgh-order__consent {
	display: flex;
	gap: .65rem;
	align-items: flex-start;
	min-height: 2.75rem;
	margin: .9rem 0;
	color: var(--sgh-ink);
	font-size: .89rem;
	line-height: 1.45;
}

.sgh-order__consent input[type="checkbox"] {
	flex: 0 0 auto;
	width: 1.2rem;
	height: 1.2rem;
	margin: .1rem 0 0;
	accent-color: var(--sgh-evergreen);
}

.sgh-order__consent a {
	color: var(--sgh-cherry);
	text-decoration: underline;
	text-underline-offset: .14em;
}

.sgh-order .sgh-order__submit,
.sgh-order .sgh-order__launch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .45em;
	min-height: 2.9rem;
	padding: .67rem 1.15rem;
	border: 1px solid var(--sgh-cherry);
	border-radius: .375rem;
	background: var(--sgh-cherry);
	color: #fffaf4;
	font-size: .96rem;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
}

.sgh-order .sgh-order__submit:hover:not(:disabled),
.sgh-order .sgh-order__launch:hover {
	border-color: var(--sgh-cherry-dark);
	background: var(--sgh-cherry-dark);
}

.sgh-order .sgh-order__launch {
	position: fixed;
	z-index: 9998;
	right: max(.85rem, env(safe-area-inset-right));
	bottom: max(.85rem, env(safe-area-inset-bottom));
	max-width: calc(100% - 1.7rem);
	border-color: #e5bd83;
	box-shadow: 0 .25rem 1rem #17141055;
}

.sgh-order .sgh-order__launch:focus-visible {
	outline-color: var(--sgh-gold);
}

.sgh-order__status {
	min-width: 0;
	font-size: .925rem;
	overflow-wrap: anywhere;
}

.sgh-order__status:not(:empty) {
	margin-top: .85rem;
	padding: .65rem .75rem;
	border: 1px solid var(--sgh-border);
	border-radius: .35rem;
}

.sgh-order__status[data-kind="success"] {
	border-color: #9db4a2;
	background: #eaf3e9;
	color: #234734;
}

.sgh-order__status[data-kind="error"] {
	border-color: #cf9e9d;
	background: #faece7;
	color: #722833;
}

.sgh-order__honeypot {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	white-space: nowrap;
	clip-path: inset(50%);
}

@media (max-width: 760px) {
	.sgh-order .sgh-order__expander {
		--sgh-dialog-top: max(.4rem, env(safe-area-inset-top));
		--sgh-dialog-bottom: max(.4rem, env(safe-area-inset-bottom));
		--sgh-dialog-side: .4rem;
		border-radius: .75rem;
	}

	.sgh-order__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.sgh-order__header {
		padding-bottom: 1.3rem;
	}
}

@media (max-width: 400px) {
	.sgh-order__item-fields,
	.sgh-order__contact {
		gap: .65rem .5rem;
	}

	.sgh-order .sgh-order__submit {
		width: 100%;
	}
}

@media (max-width: 340px) {
	.sgh-order__item-fields .sgh-order__field:has(input:is([type="date"], [type="time"])) {
		grid-column: 1 / -1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sgh-order .sgh-order__expander,
	.sgh-order .sgh-order__expander::backdrop,
	.sgh-order .sgh-order__cake {
		transition: none;
	}
}
