/* Mellow Chic Core — reservation calendar (front) + day-view (admin). */

.mc-book {
	--mc-ink:#2A1B0C; --mc-muted:#7A6249; --mc-mango:#F0870F; --mc-leaf:#0E5B4C; --mc-paper:#FFF4E2; --mc-paper2:#FBE8CC;
	max-width: 560px; margin: 0 auto;
	background: #fff; color: var(--mc-ink);
	border: 1px solid rgba(42,27,12,.1); border-radius: 20px; overflow: hidden;
	box-shadow: 0 20px 50px rgba(42,27,12,.1);
}

/* steps */
.mc-book__steps { display: flex; margin: 0; padding: 0; list-style: none; background: var(--mc-paper2); }
.mc-book__steps li {
	flex: 1; text-align: center; padding: 14px 8px; font-size: .82rem; font-weight: 600;
	color: var(--mc-muted); position: relative;
}
.mc-book__steps li.is-active { color: var(--mc-ink); }
.mc-book__steps li.is-done::after { content: " ✓"; color: var(--mc-leaf); }
.mc-book__steps li.is-active::before {
	content: ""; position: absolute; left: 20%; right: 20%; bottom: 0; height: 3px; background: var(--mc-mango); border-radius: 3px;
}

.mc-book__panel { display: none; padding: 22px; }
.mc-book__panel.is-active { display: block; }

/* party stepper */
.mc-book__party { text-align: center; margin-bottom: 20px; }
.mc-book__label { display: block; font-weight: 600; margin-bottom: 10px; }
.mc-book__stepper { display: inline-flex; align-items: center; gap: 18px; }
.mc-book__stepper button {
	width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(42,27,12,.2);
	background: none; font-size: 1.3rem; cursor: pointer; color: inherit;
}
.mc-book__stepper b { font-size: 1.6rem; min-width: 34px; }
.mc-book__party-hint { display: block; margin-top: 8px; font-size: .84rem; color: var(--mc-mango); font-weight: 600; min-height: 1.2em; }

/* calendar */
.mc-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mc-cal__title { margin: 0; font-size: 1.1rem; }
.mc-cal__prev, .mc-cal__next {
	width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(42,27,12,.16);
	background: none; font-size: 1.2rem; cursor: pointer; color: inherit;
}
.mc-cal__dows { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 6px; }
.mc-cal__dows span { text-align: center; font-size: .72rem; font-weight: 700; color: var(--mc-muted); text-transform: uppercase; }
.mc-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mc-cal__pad { aspect-ratio: 1; }
.mc-cal__day {
	aspect-ratio: 1; border: 0; border-radius: 10px; background: var(--mc-paper2); color: var(--mc-ink);
	font: inherit; font-weight: 600; cursor: pointer; transition: background .15s, transform .1s;
}
.mc-cal__day:hover:not(:disabled) { background: var(--mc-mango); color: #1B1004; }
.mc-cal__day.is-today { box-shadow: inset 0 0 0 2px var(--mc-mango); }
.mc-cal__day.is-sel { background: var(--mc-ink); color: var(--mc-paper); }
.mc-cal__day.is-closed, .mc-cal__day:disabled { background: transparent; color: rgba(42,27,12,.24); cursor: default; }
.mc-cal__loading { text-align: center; color: var(--mc-muted); font-size: .9rem; padding: 10px; }

/* back link + chosen */
.mc-book__back { background: none; border: 0; color: var(--mc-mango); font: inherit; font-weight: 600; cursor: pointer; padding: 0 0 12px; }
.mc-book__chosen, .mc-book__summary { font-weight: 700; font-size: 1.05rem; margin: 0 0 16px; }

/* slots */
.mc-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.mc-slot {
	border: 1.5px solid rgba(42,27,12,.18); background: #fff; border-radius: 12px;
	padding: 12px 6px; font: inherit; font-weight: 700; cursor: pointer; text-align: center; line-height: 1.1; color: inherit;
	transition: border-color .15s, background .15s;
}
.mc-slot small { display: block; font-weight: 500; font-size: .68rem; color: var(--mc-muted); margin-top: 3px; }
.mc-slot:hover:not(:disabled) { border-color: var(--mc-mango); background: #fff6ea; }
.mc-slot.is-full, .mc-slot:disabled { opacity: .4; cursor: default; }
.mc-slots__none { color: var(--mc-muted); grid-column: 1 / -1; text-align: center; padding: 24px; }

/* form */
.mc-book__grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .mc-book__grid2 { grid-template-columns: 1fr; } }
.mc-book .mc-field { display: block; margin-bottom: 14px; }
.mc-book .mc-field > span { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--mc-muted); margin-bottom: 6px; }
.mc-book input, .mc-book select, .mc-book textarea {
	width: 100%; font: inherit; padding: 12px 14px; border-radius: 10px;
	border: 1.5px solid rgba(42,27,12,.16); background: #fff; color: inherit;
}
.mc-book input:focus, .mc-book select:focus, .mc-book textarea:focus { outline: 2px solid var(--mc-mango); outline-offset: 1px; border-color: transparent; }
.mc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mc-book__submit { width: 100%; margin-top: 4px; }
.mc-book.is-sending .mc-book__submit { opacity: .6; pointer-events: none; }
.mc-book__note { min-height: 1.3em; margin: 10px 0 0; font-size: .9rem; text-align: center; }
.mc-book__note.is-err { color: #b32d2e; }

/* success */
.mc-book__done { text-align: center; padding: 40px 22px; }
.mc-book__tick { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--mc-leaf); color: #fff; font-size: 2rem; display: grid; place-items: center; }
.mc-book__done h3 { margin: 0 0 8px; }
.mc-book__done p { color: var(--mc-muted); margin: 0 0 18px; }

.mc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 600; padding: 14px 26px; border-radius: 999px; text-decoration: none; }
.mc-btn--primary { background: var(--mc-mango); color: #1B1004; }
.mc-btn--ghost { background: transparent; color: var(--mc-ink); border: 1.5px solid rgba(42,27,12,.28); }

@media (prefers-reduced-motion: reduce) { .mc-cal__day { transition: none; } }

/* ============================================================ admin day view */
.mc-bday__nav { display: flex; align-items: center; gap: 10px; margin: 14px 0 18px; }
.mc-bday__count { color: #646970; font-weight: 600; }
.mc-bday__table td { vertical-align: middle; }
.mc-brow__time { font-weight: 700; font-variant-numeric: tabular-nums; }
.mc-brow__occ { display: inline-block; margin-left: 6px; font-size: .72rem; background: #fff6ea; color: #8a6d1f; border-radius: 6px; padding: 1px 7px; }
.mc-brow--cancelled { opacity: .5; }
.mc-brow--cancelled .mc-brow__time { text-decoration: line-through; }
.mc-brow--confirmed { background: #f4fbf5; }
.mc-brow--seated { background: #eef6fb; }
.mc-brow__select { min-width: 120px; }
