/* 퍼블리싱 원본을 따르는 고객 화면의 공통 라이트 테마다. */
html:has(.home-surface) {
	color-scheme:light;
	--color-bg:#fff;
	--color-text:#1a1512;
	--color-muted:#6e625a;
	--color-primary:#d6490d;
	--color-border:#efe8e2;
	--home-accent:#eb5617;
	--home-ink:#d6490d;
	--home-soft:#fff4ed;
	--home-width:560px;
}

body.home-surface {
	margin:0;
	background:#fff;
	color:var(--color-text);
	font:16px/1.5 'Noto Sans KR','Pretendard Variable','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;
	display:flex;
	flex-direction:column;
	min-height:100dvh;
}

.home-surface * {
	min-width:0;
}

.home-surface button {
	font:inherit;
	color:inherit;
	cursor:pointer;
}

.home-surface img {
	display:block;
	max-width:100%;
}

.home-wrap {
	width:100%;
	max-width:var(--home-width);
	margin-inline:auto;
	padding-inline:max(16px,env(safe-area-inset-left,0px)) max(16px,env(safe-area-inset-right,0px));
}

.home-surface svg {
	width:22px;
	height:22px;
	fill:none;
	stroke:currentColor;
	stroke-width:2;
	stroke-linecap:round;
	stroke-linejoin:round;
	flex:none;
}

.home-surface a:focus-visible,.home-surface button:focus-visible {
	outline:3px solid var(--color-focus);
	outline-offset:2px;
}

.home-surface ::selection {
	background:#ffdcc6;
	color:#1a1512;
}

.home-header {
	container-type:inline-size;
}

.home-header .home-wrap {
	display:flex;
	align-items:center;
	gap:6px;
	padding-top:12px;
	padding-bottom:10px;
}

.home-brand {
	margin:0 auto 0 0;
	font-size:20px;
	line-height:1.2;
	font-weight:900;
	letter-spacing:-.03em;
	color:var(--color-text);
	text-decoration:none;
	overflow-wrap:anywhere;
}

.home-brand span {
	color:var(--home-ink);
}

.home-nav {
	display:flex;
	flex:none;
}

.home-nav a {
	position:relative;
	display:flex;
	flex-direction:column;
	align-items:center;
	justify-content:center;
	gap:1px;
	min-width:56px;
	min-height:52px;
	border:0;
	border-radius:12px 0 0 12px;
	background:none;
	font-size:12px;
	font-weight:500;
	color:inherit;
	text-decoration:none;
}

.home-nav .customer-icon {
	width:26px;
	height:26px;
}

.home-nav a:hover {
	background:#f7f4f1;
}

.home-nav a + a {
	border-left:1px solid var(--color-border);
	border-radius:0 12px 12px 0;
}

.home-badge {
	position:absolute;
	top:0;
	right:6px;
	min-width:19px;
	height:19px;
	padding:0 5px;
	border-radius:10px;
	background:var(--home-accent);
	color:#fff;
	font-size:12px;
	font-weight:900;
	line-height:19px;
	text-align:center;
}

.order-home {
	flex:1 0 auto;
	container-type:inline-size;
}

.order-home .connection:empty {
	display:none;
}

.order-home .connection {
	margin-block:12px;
}

.order-hero {
	background:linear-gradient(120deg,#fff7f1 0%,#fceee4 45%,#fedcc6 100%);
	color:#1a1512;
}

.order-hero .home-wrap {
	position:relative;
	padding-top:22px;
	padding-bottom:26px;
}

.home-art {
	position:absolute;
	right:max(10px,env(safe-area-inset-right,0px));
	bottom:18px;
	width:clamp(118px,36vw,145px);
	height:auto;
	pointer-events:none;
}

.home-event {
	display:inline-flex;
	align-items:center;
	gap:7px;
	margin:0;
	color:var(--home-ink);
	font-size:13px;
	font-weight:900;
	letter-spacing:.02em;
}

.home-event i {
	width:6px;
	height:6px;
	border-radius:50%;
	background:var(--home-ink);
}

.order-hero h1 {
	position:relative;
	margin:10px 0 0;
	font-size:clamp(26px,7.4vw,32px);
	line-height:1.22;
	font-weight:900;
	letter-spacing:-.03em;
}

.order-hero h1 span,.home-guide-head h3 span {
	color:var(--home-ink);
}

.order-hero .home-lead {
	position:relative;
	max-width:205px;
	margin:8px 0 0;
	font-size:14px;
	color:#5e5048;
	word-break:keep-all;
}

.home-surface .home-how-link {
	position:relative;
	display:inline-flex;
	align-items:center;
	gap:2px;
	min-height:40px;
	margin-top:14px;
	padding:0 12px 0 16px;
	border:1px solid #ffc3a5;
	border-radius:999px;
	background:#fff;
	color:var(--home-ink);
	font-size:14px;
	font-weight:800;
}

.home-how-link .home-chevron {
	width:16px;
	height:16px;
}

.home-how-link:hover {
	background:var(--home-soft);
}

.home-schedule {
	display:grid;
	grid-template-columns:1.15fr 1fr;
	gap:8px;
	margin:0;
	padding:16px 2px;
	border-bottom:1px solid var(--color-border);
}

.home-schedule > div {
	display:flex;
	align-items:center;
	gap:10px;
}

.home-schedule svg {
	color:var(--home-accent);
}

.home-schedule dt {
	font-size:13px;
	color:var(--color-muted);
}

.home-schedule dd {
	margin:0;
	font-size:14px;
	font-weight:800;
	letter-spacing:-.02em;
	font-variant-numeric:tabular-nums;
}

.home-section-head {
	display:flex;
	align-items:baseline;
	justify-content:space-between;
	flex-wrap:wrap;
	gap:8px;
	margin:22px 0 12px;
}

.home-section-head h2 {
	display:flex;
	align-items:center;
	gap:8px;
	margin:0;
	font-size:22px;
	font-weight:900;
	letter-spacing:-.02em;
}

.home-step {
	display:inline-grid;
	place-items:center;
	width:34px;
	height:34px;
	border-radius:50%;
	background:var(--home-soft);
	color:var(--home-ink);
	font-size:14px;
	font-weight:900;
	flex:none;
}

.home-section-head p {
	margin:0;
	font-size:14px;
	color:var(--color-muted);
}

.home-section-head strong {
	color:var(--home-ink);
}

.order-home .home-hint {
	margin:-4px 0 14px;
	font-size:14px;
	color:var(--color-muted);
}

.home-booths {
	display:grid;
	grid-template-columns:repeat(2,minmax(0,1fr));
	gap:12px;
	margin:12px 0 0;
	padding:0;
	list-style:none;
}

.home-booth {
	display:flex;
	flex-direction:column;
	height:100%;
	padding:0;
	border:1px solid var(--color-border);
	border-radius:18px;
	background:#fff;
	overflow:hidden;
	color:inherit;
	text-decoration:none;
}

.home-booth:hover {
	border-color:#e8a282;
}

.home-booth-photo {
	position:relative;
	aspect-ratio:4/3;
	border-radius:0;
	background:linear-gradient(145deg,#fff5ec,#ffe2cc);
}

.home-photo-fallback {
	position:absolute;
	inset:0;
	display:flex;
	flex-direction:column;
	align-items:center;
	justify-content:center;
	gap:8px;
	color:var(--color-muted);
	font-size:13px;
}

.home-photo-fallback .customer-icon {
	width:52px;
	height:52px;
	stroke-width:1.6;
}

.home-booth-photo img {
	position:absolute;
	inset:0;
	width:100%;
	height:100%;
	object-fit:cover;
}

.home-booth-info {
	padding:12px 10px 12px 12px;
}

.home-booth h3 {
	display:flex;
	align-items:center;
	gap:7px;
	margin:0;
	font-size:17px;
	font-weight:900;
	line-height:1.3;
	overflow-wrap:anywhere;
}

.home-booth-number {
	display:inline-grid;
	place-items:center;
	min-width:26px;
	min-height:26px;
	padding:0 5px;
	border-radius:8px;
	background:var(--home-accent);
	color:#fff;
	font-size:13px;
	font-weight:900;
	flex:none;
	font-variant-numeric:tabular-nums;
}

.home-booth-meta {
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:2px;
	margin-top:8px;
	font-size:13px;
	color:var(--color-muted);
	font-weight:500;
}

.home-booth-meta em {
	font-style:normal;
	font-weight:700;
}

.home-booth-status.is-open {
	color:var(--home-ink);
}

.home-booth-meta .home-chevron {
	width:20px;
	height:20px;
	color:var(--color-muted);
}

.order-home .home-note {
	margin:16px 0 0;
	padding:12px 14px;
	border-radius:12px;
	background:#f7f4f1;
	font-size:13px;
	color:var(--color-muted);
	line-height:1.6;
}

.home-footer {
	background:#f7f4f1;
	margin-top:28px;
	padding:22px 0 calc(22px + env(safe-area-inset-bottom,0px));
	font-size:13px;
	color:var(--color-muted);
}

body.home-surface .home-footer .seller-footer {
	max-width:var(--home-width);
	margin:0 auto;
	padding-block:0;
	border:0;
	background:transparent;
}

.home-footer .seller-footer dl {
	display:flex;
	flex-wrap:wrap;
	gap:4px 12px;
	margin:0;
}

.home-footer .seller-footer dl > div {
	flex:0 0 100%;
	display:flex;
	flex-wrap:wrap;
	gap:0 8px;
}

.home-footer .seller-footer dl > div:nth-child(-n+2) {
	flex:0 1 auto;
}

.home-footer .seller-footer dt {
	font-size:13px;
	font-weight:700;
	color:var(--color-muted);
}

.home-footer .seller-footer dd {
	margin:0;
	font-size:13px;
	color:var(--color-muted);
}

.home-footer .seller-policy-links {
	display:flex;
	gap:16px;
	margin-top:10px;
}

.home-footer .seller-policy-links a {
	padding:8px 0;
	font-size:14px;
	color:var(--color-text);
}

.home-cart-dock {
	container-type:inline-size;
	position:fixed;
	left:0;
	right:0;
	bottom:0;
	z-index:20;
	padding:10px 0 calc(10px + env(safe-area-inset-bottom,0px));
	background:#fff;
	border-top:1px solid var(--color-border);
	box-shadow:0 -6px 20px rgb(30 15 5 / .06);
}

.home-cart-dock .home-wrap {
	display:flex;
	align-items:center;
	gap:12px;
}

.home-cart-quantity {
	position:relative;
	display:flex;
	align-items:center;
	gap:8px;
	min-height:48px;
	color:inherit;
	text-decoration:none;
	font-size:16px;
	font-weight:700;
}

.home-cart-quantity .customer-icon {
	width:28px;
	height:28px;
}

.home-cart-quantity .home-badge {
	top:2px;
	right:auto;
	left:16px;
}

.home-cart-total {
	margin-left:auto;
	padding-left:12px;
	border-left:1px solid var(--color-border);
	font-size:20px;
	font-weight:900;
	color:var(--home-ink);
	white-space:nowrap;
}

.home-cart-go {
	display:flex;
	align-items:center;
	justify-content:center;
	min-height:52px;
	padding:0 22px;
	border-radius:14px;
	background:var(--home-accent);
	color:#fff;
	font-size:19px;
	font-weight:900;
	text-decoration:none;
}

.home-board-wrap {
	margin-top:18px;
}

.home-board {
	background:#fff6ef;
	border:1px solid #f3dfd0;
	border-radius:22px;
	padding:16px;
	margin-bottom:8px;
}

.home-board-head {
	display:flex;
	align-items:center;
	justify-content:space-between;
	flex-wrap:wrap;
	gap:8px;
	margin-bottom:12px;
}

.home-board-head h2 {
	margin:0;
	font-size:18px;
	font-weight:900;
}

.home-board-head > span {
	display:flex;
	align-items:center;
	gap:5px;
	font-size:12px;
	font-weight:700;
	color:var(--color-muted);
}

.home-board-head i {
	width:11px;
	height:11px;
	border:2px solid #d9c8bb;
	border-radius:4px;
	margin-left:4px;
}

.home-board-head i.ready {
	background:var(--home-accent);
	border-color:var(--home-accent);
}

.home-board-grid {
	display:grid;
	grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));
	gap:10px;
}

.home-order-booth {
	background:#fff;
	border:2px solid #eadcd0;
	border-radius:18px;
	padding:12px;
	box-shadow:0 2px 8px rgb(120 60 20 / .05);
}

.home-order-booth.has-ready {
	border-color:var(--home-accent);
}

.home-order-booth h3 {
	display:flex;
	align-items:center;
	gap:8px;
	margin:0 0 10px;
	font-size:17px;
	font-weight:900;
	overflow-wrap:anywhere;
}

.home-order-booth .home-booth-number {
	min-width:32px;
	min-height:26px;
	font-size:14px;
}

.home-order-stage h4 {
	display:flex;
	align-items:center;
	gap:7px;
	margin:0 0 6px;
	font-size:14px;
	font-weight:900;
	color:var(--color-muted);
}

.home-order-stage h4 i {
	width:10px;
	height:10px;
	border-radius:50%;
	border:2px solid #9a8b80;
}

.home-order-stage h4 > span {
	margin-left:auto;
	font-size:13px;
	font-weight:700;
	color:var(--color-muted);
}

.home-order-stage.is-ready h4 {
	color:var(--home-ink);
}

.home-order-stage.is-ready h4 i {
	box-shadow:0 0 0 4px rgb(235 86 23 / .18);
	border:0;
	background:var(--home-accent);
}

.home-order-stage + .home-order-stage {
	border-top:2px dashed #eadcd0;
	margin-top:10px;
	padding-top:10px;
}

.home-order-numbers {
	display:grid;
	grid-template-columns:repeat(2,minmax(0,1fr));
	gap:6px;
}

.home-order-numbers > span {
	display:grid;
	place-items:center;
	padding:6px 2px;
	border:2px solid #eadcd0;
	border-radius:12px;
	background:#f6f1ec;
	color:#4a3d34;
	font-size:18px;
	font-weight:900;
	font-variant-numeric:tabular-nums;
	overflow-wrap:anywhere;
}

.is-ready .home-order-numbers > span {
	min-height:52px;
	background:var(--home-accent);
	border-color:var(--home-accent);
	color:#fff;
	font-size:26px;
}

.home-order-empty {
	display:grid;
	place-items:center;
	min-height:40px;
	margin:0;
	padding:4px;
	border:2px dashed #eadcd0;
	border-radius:12px;
	font-size:13px;
	font-weight:700;
	color:var(--color-muted);
	text-align:center;
}

.is-ready .home-order-empty {
	min-height:52px;
}

.home-board-note {
	margin:12px 0 0;
	font-size:13px;
	color:var(--color-muted);
}

.home-more {
	display:flex;
	align-items:center;
	justify-content:space-between;
	min-height:48px;
	padding:12px 14px;
	border:1px solid var(--color-border);
	border-radius:12px;
	color:inherit;
	text-decoration:none;
	font-size:15px;
	font-weight:700;
}

.home-guide-dialog {
	width:min(560px,calc(100% - 24px));
	max-width:none;
	max-height:88svh;
	margin:auto;
	border:0;
	padding:0;
	border-radius:22px;
	background:#fff;
	color:var(--color-text);
}

.home-guide-dialog[open] {
	display:flex;
	flex-direction:column;
}

.home-guide-dialog::backdrop {
	background:rgb(26 21 18 / .5);
}

.home-guide-top {
	flex:none;
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:12px;
	padding:16px;
	border-bottom:1px solid var(--color-border);
}

.home-guide-top h2 {
	margin:0;
	font-size:20px;
	font-weight:900;
}

.home-guide-top button {
	display:grid;
	place-items:center;
	width:44px;
	height:44px;
	border:0;
	border-radius:12px;
	background:#f7f4f1;
}

.home-guide-content {
	min-height:0;
	overflow-y:auto;
	padding:20px 16px;
}

.home-guide-head h3 {
	margin:10px 0 0;
	font-size:28px;
	font-weight:900;
	line-height:1.25;
}

.home-guide-head > p:last-child {
	margin:12px 0 0;
	font-size:14px;
	color:var(--color-muted);
}

.home-guide-steps {
	list-style:none;
	margin:24px 0;
	padding:0;
	display:grid;
	gap:24px;
}

.home-guide-steps li {
	display:flex;
	align-items:flex-start;
	gap:12px;
}

.home-guide-steps h3 {
	margin:0;
	font-size:18px;
	font-weight:900;
}

.home-guide-steps p {
	margin:6px 0 0;
	font-size:14px;
	color:var(--color-muted);
}

.home-surface .home-guide-return {
	display:block;
	width:100%;
	min-height:52px;
	border:0;
	border-radius:14px;
	background:var(--home-accent);
	color:#fff;
	font-size:19px;
	font-weight:900;
}

body.home-surface:has(.home-guide-dialog[open]) {
	overflow:hidden;
}

@media (min-width:600px) {
	.order-hero .home-wrap {
		min-height:300px;
	}

	.home-art {
		bottom:26px;
		right:max(16px,env(safe-area-inset-right,0px));
		width:255px;
	}

	.order-hero .home-lead {
		max-width:none;
	}

}
/* 원본 구도를 유지하되 작은 화면·확대에서 본문과 고정 바가 겹치지 않게 한다. */
@media (max-width:359px) {
	.home-cart-dock .home-wrap {
		gap:8px;
	}

	.home-cart-quantity {
		font-size:13px;
		gap:4px;
	}

	.home-cart-go {
		padding:0 12px;
		font-size:16px;
	}

	.home-cart-total {
		font-size:17px;
		padding-left:8px;
	}

}
@container (max-width:280px) {
	.home-header .home-wrap {
		flex-wrap:wrap;
	}

	.home-brand {
		flex-basis:100%;
	}

	.home-nav {
		margin-left:auto;
	}

	.home-cart-quantity {
		font-size:12px;
		gap:4px;
	}

	.home-cart-quantity .customer-icon {
		width:20px;
		height:20px;
	}

	.home-cart-dock .home-wrap {
		flex-wrap:wrap;
	}

	.home-cart-go {
		flex:1 0 100%;
	}

	.home-cart-total {
		font-size:16px;
		padding-left:0;
		border:0;
	}

	.home-art {
		position:static;
		width:120px;
		margin:16px 0 0 auto;
	}

	.home-schedule,.home-booths {
		grid-template-columns:minmax(0,1fr);
	}

	.home-section-head h2 {
		flex-wrap:wrap;
	}

}

/* 원본 카드 폭에서는 긴 업체명을 줄이고, 확대해 한 열이 되면 전체 이름을 표시한다. */
@container (min-width:281px) {
	.home-booth .home-booth-name {
		overflow:hidden;
		text-overflow:ellipsis;
		white-space:nowrap;
	}
}

/* 고정 바가 나타날 때만 실제 높이만큼 푸터 링크 아래에 자리를 둔다. */
.home-surface:has(.home-cart-dock:not([hidden])) .home-footer {
	padding-bottom:calc(22px + var(--cart-dock-height, 73px));
}

.home-more:is(:hover,:focus-visible),
.home-guide-top button:is(:hover,:focus-visible) {
	background:var(--home-soft);
	color:var(--home-ink);
}

.home-more:is(:hover,:focus-visible) {
	border-color:#ffc3a5;
}

.home-surface .home-guide-return:is(:hover,:focus-visible) {
	background:#b83b09;
}

/* 한글 상점명의 글자 중심을 부스 번호의 숫자 중심에 맞춘다. */
.home-booth-name {
	position:relative;
	top:-1px;
}

.home-cart-dock[hidden],.home-badge[hidden] {
	display:none;
}

.catalog-back {
	display:grid;
	place-items:center;
	flex:none;
	width:40px;
	height:44px;
	margin-left:-8px;
	border-radius:10px;
	color:inherit;
}

.catalog-back svg {
	width:26px;
	height:26px;
}

.catalog-back:hover {
	background:#f7f4f1;
}

/* 장바구니와 주문서가 같은 제목·부스 카드·수령 안내를 사용한다. */
.order-heading {
	margin:8px 0 14px;
}
.order-heading h1 {
	margin:0;
	font-size:26px;
	font-weight:900;
	letter-spacing:-.02em;
}
.order-heading p {
	margin:4px 0 0;
	font-size:15px;
	color:var(--color-muted);
}
.order-box {
	margin:0 0 12px;
	padding:16px;
	border:1px solid var(--color-border);
	border-radius:18px;
	background:white;
}
.order-box h2 {
	margin:0;
	font-size:18px;
	font-weight:900;
}
.order-booth {
	margin-bottom:4px;
	padding-bottom:12px;
	border-bottom:1px solid var(--color-border);
}
.order-booth h2 {
	display:flex;
	align-items:center;
	gap:10px;
}
.order-booth .home-booth-number {
	min-width:34px;
	min-height:28px;
	padding:0 7px;
	font-size:15px;
}
.order-policy {
	margin:0;
	padding:12px 0 0 18px;
	border-top:1px solid var(--color-border);
	color:var(--color-muted);
	font-size:15px;
	line-height:1.7;
}

/* 장바구니와 내 주문의 빈 화면은 같은 메뉴 탐색 동선을 제공한다. */
.order-empty {
	padding:40px 8px;
	text-align:center;
}
.order-empty h2 {
	font-size:20px;
}
.order-empty p {
	margin:8px 0 18px;
	color:var(--color-muted);
	font-size:15px;
}
.order-browse {
	display:inline-flex;
	align-items:center;
	justify-content:center;
	gap:8px;
	min-height:50px;
	margin-top:14px;
	padding:0 24px;
	border-radius:14px;
	background:var(--home-accent);
	color:white;
	font-size:17px;
	font-weight:900;
	text-decoration:none;
}
.order-browse:is(:hover,:focus-visible) {
	background:var(--home-ink);
	color:white;
}
/* 주문 조회 환경과 결제 도움말은 읽기 전용 안내 영역에 둔다. */
.order-info {
	display:flex;
	gap:10px;
	margin-top:14px;
	padding:14px;
	border-radius:14px;
	background:#f7f4f1;
	color:var(--color-muted);
	font-size:14px;
	line-height:1.6;
}
.order-info > svg {
	width:20px;
	height:20px;
	margin-top:1px;
}
.order-info h2 {
	margin:0;
	color:var(--color-text);
	font-size:15px;
	font-weight:700;
}
.order-info p {
	margin:0;
}

/* 자동 갱신이 지연될 때 마지막 주문 정보와 함께 연결 상태를 안내한다. */
.order-home .connection:not(:empty) {
	padding:var(--space-3) var(--space-4);
	border:1px solid var(--color-border);
	background:var(--home-soft);
	color:var(--color-preparing);
}
