/*
 * AOA 예약 조회 1.0.0
 * 모든 규칙을 .aoa-mp 안으로 한정하고, 글꼴은 사이트 기본(Pretendard)을 물려받습니다.
 */

.aoa-mp {
	--mp-line: #e2e5ea;
	--mp-text: #1f2329;
	--mp-dim: #6b7280;
	--mp-main: #1b64da;
	--mp-soft: #eaf1fe;
	--mp-bad: #d93025;
	--mp-good: #12805c;
	--mp-radius: 10px;

	box-sizing: border-box;
	max-width: 640px;
	margin: 0 auto;
	color: var(--mp-text);
	line-height: 1.6;
	word-break: keep-all;
	overflow-wrap: break-word;
}

.aoa-mp *,
.aoa-mp *::before,
.aoa-mp *::after { box-sizing: inherit; }

.aoa-mp [hidden] { display: none !important; }

.aoa-mp h2 {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 700;
}

.aoa-mp-lead {
	margin: 0 0 20px;
	font-size: 14px;
	color: var(--mp-dim);
}

/* ---------- 입력 ---------- */

.aoa-mp-field { margin-bottom: 16px; }

.aoa-mp-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
}

.aoa-mp-field small {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: var(--mp-dim);
}

.aoa-mp-row {
	display: flex;
	gap: 8px;
}

.aoa-mp input[type="tel"],
.aoa-mp input[type="text"] {
	flex: 1 1 auto;
	min-width: 0;
	padding: 12px 14px;
	border: 1px solid var(--mp-line);
	border-radius: var(--mp-radius);
	background: #fff;
	font-family: inherit;
	font-size: 16px;
	color: var(--mp-text);
	-webkit-appearance: none;
	appearance: none;
}

.aoa-mp input:focus {
	outline: 0;
	border-color: var(--mp-main);
	box-shadow: 0 0 0 3px var(--mp-soft);
}

/* ---------- 버튼 ---------- */

.aoa-mp-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 18px;
	border: 0;
	border-radius: var(--mp-radius);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
}

.aoa-mp-btn-main { background: var(--mp-main); color: #fff; }

.aoa-mp-btn-sub {
	border: 1px solid var(--mp-main);
	background: #fff;
	color: var(--mp-main);
}

.aoa-mp-link {
	padding: 0;
	border: 0;
	background: transparent;
	font-family: inherit;
	font-size: 14px;
	color: var(--mp-dim);
	text-decoration: underline;
	cursor: pointer;
}

/* ---------- 안내 문구 ---------- */

.aoa-mp-msg {
	margin: 12px 0 0;
	font-size: 14px;
	font-weight: 600;
}

.aoa-mp-msg.is-good { color: var(--mp-good); }
.aoa-mp-msg.is-bad { color: var(--mp-bad); }

.aoa-mp-empty {
	padding: 28px 16px;
	border: 1px dashed var(--mp-line);
	border-radius: var(--mp-radius);
	text-align: center;
	font-size: 14px;
	color: var(--mp-dim);
}

.aoa-mp-warn {
	padding: 16px;
	border: 1px solid #f0c36d;
	border-radius: 10px;
	background: #fdf6e3;
	font-size: 15px;
	color: #7a5b00;
}

/* ---------- 목록 ---------- */

.aoa-mp-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.aoa-mp-card {
	padding: 18px;
	margin-bottom: 14px;
	border: 1px solid var(--mp-line);
	border-radius: 12px;
	background: #fff;
}

.aoa-mp-card.is-past { opacity: .72; }

.aoa-mp-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}

.aoa-mp-status {
	padding: 4px 10px;
	border-radius: 999px;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.aoa-mp-no {
	font-size: 12px;
	color: var(--mp-dim);
	letter-spacing: .02em;
}

.aoa-mp-when {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 12px;
}

.aoa-mp-when strong { font-size: 17px; font-weight: 700; }
.aoa-mp-when span { font-size: 15px; color: var(--mp-dim); }

.aoa-mp-rows { margin: 0 0 14px; }

.aoa-mp-rows > div {
	display: flex;
	gap: 12px;
	padding: 6px 0;
}

.aoa-mp-rows dt {
	flex: 0 0 64px;
	margin: 0;
	font-size: 13px;
	color: var(--mp-dim);
}

.aoa-mp-rows dd {
	flex: 1 1 auto;
	margin: 0;
	font-size: 14px;
}

.aoa-mp-rows em {
	font-style: normal;
	font-size: 13px;
	color: var(--mp-dim);
}

/* 변경 · 취소 기한이 지난 예약 안내 (1.4.0) */
.aoa-mp-late {
	margin: 0;
	padding-top: 12px;
	border-top: 1px solid var(--mp-line);
	font-size: 14px;
	color: #7a5b00;
}

.aoa-mp-acts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 14px;
	border-top: 1px solid var(--mp-line);
}

.aoa-mp-acts button {
	flex: 1 1 auto;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--mp-line);
	border-radius: var(--mp-radius);
	background: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--mp-text);
	cursor: pointer;
}

.aoa-mp-acts .is-pay {
	border-color: var(--mp-main);
	background: var(--mp-main);
	color: #fff;
}

.aoa-mp-acts .is-cancel { color: var(--mp-bad); }

/* ---------- 팝업 ---------- */

body.aoa-mp-locked { overflow: hidden; }

.aoa-mp-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.aoa-mp-modal-bg {
	position: absolute;
	inset: 0;
	background: rgba(17, 20, 24, .5);
}

.aoa-mp-modal-panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 460px;
	max-height: 86vh;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 20px 48px rgba(0, 0, 0, .25);
	overflow: hidden;
}

.aoa-mp-modal-head,
.aoa-mp-modal-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 18px;
}

.aoa-mp-modal-head { border-bottom: 1px solid var(--mp-line); }

.aoa-mp-modal-head h3 { margin: 0; font-size: 17px; font-weight: 700; }

.aoa-mp-modal-x {
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	font-family: inherit;
	font-size: 24px;
	line-height: 1;
	color: var(--mp-dim);
	cursor: pointer;
}

.aoa-mp-modal-body {
	flex: 1 1 auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 18px;
}

.aoa-mp-modal-foot {
	border-top: 1px solid var(--mp-line);
	background: #fafbfc;
}

.aoa-mp-modal-foot .aoa-mp-btn { flex: 1 1 0; }

/* ---------- 달력 ---------- */

.aoa-mp-cal {
	border: 1px solid var(--mp-line);
	border-radius: var(--mp-radius);
	overflow: hidden;
}

.aoa-mp-cal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px;
	border-bottom: 1px solid var(--mp-line);
	background: #fafbfc;
}

.aoa-mp-cal-head strong { font-size: 15px; font-weight: 700; }

.aoa-mp-cal-nav {
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid var(--mp-line);
	border-radius: 8px;
	background: #fff;
	font-family: inherit;
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
}

.aoa-mp-cal-nav:disabled { opacity: .35; cursor: default; }

.aoa-mp-cal-dow,
.aoa-mp-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
}

.aoa-mp-cal-dow { padding: 8px 6px 2px; }

.aoa-mp-cal-dow span {
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	color: var(--mp-dim);
}

.aoa-mp-cal-grid { gap: 2px; padding: 4px 6px 10px; }

.aoa-mp-cal-day {
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	font-family: inherit;
	font-size: 14px;
	color: var(--mp-text);
	cursor: pointer;
}

.aoa-mp-cal-day.is-sun { color: #d93025; }
.aoa-mp-cal-day.is-sat { color: #1b64da; }
.aoa-mp-cal-day:hover:not(:disabled) { background: var(--mp-soft); }

.aoa-mp-cal-day.is-off,
.aoa-mp-cal-day:disabled {
	color: #c3c7cd;
	cursor: default;
	text-decoration: line-through;
}

.aoa-mp-cal-day.is-on {
	background: var(--mp-main);
	color: #fff;
	font-weight: 700;
}

/* ---------- 오전·오후 ---------- */

.aoa-mp-ampm {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin-top: 14px;
}

.aoa-mp-pick { display: block; cursor: pointer; }

.aoa-mp-pick input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.aoa-mp-pick span {
	display: block;
	padding: 14px;
	border: 1px solid var(--mp-line);
	border-radius: var(--mp-radius);
	background: #fff;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
}

.aoa-mp-pick input:checked + span {
	border-color: var(--mp-main);
	background: var(--mp-soft);
	box-shadow: inset 0 0 0 1px var(--mp-main);
}

/* ---------- 진행 중 ---------- */

.aoa-mp-busy {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 16px;
	font-size: 14px;
	color: var(--mp-dim);
}

.aoa-mp-busy span {
	width: 18px;
	height: 18px;
	border: 2px solid var(--mp-line);
	border-top-color: var(--mp-main);
	border-radius: 50%;
	animation: aoa-mp-spin .8s linear infinite;
}

@keyframes aoa-mp-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
	.aoa-mp-busy span { animation: none; }
}

/* ---------- 휴대폰 ---------- */

@media (max-width: 600px) {
	.aoa-mp h2 { font-size: 20px; }

	.aoa-mp-row { flex-wrap: wrap; }
	.aoa-mp-row .aoa-mp-btn { width: 100%; }

	.aoa-mp-modal { padding: 0; align-items: flex-end; }

	.aoa-mp-modal-panel {
		max-width: none;
		max-height: 92vh;
		border-radius: 14px 14px 0 0;
	}

	.aoa-mp-acts button { flex: 1 1 100%; }
}

/* ---------- 로그인 칸은 단추처럼 둥글게 ---------- */

/*
 * 로그인 화면에만 줍니다. 목록·팝업의 칸까지 둥글게 하면 글이 많은 자리가
 * 읽기 어려워집니다.
 */
.aoa-mp-login input[type="tel"],
.aoa-mp-login input[type="text"] {
	padding-left: 18px;
	padding-right: 18px;
	border-radius: 999px;
}

.aoa-mp-login .aoa-mp-btn { border-radius: 999px; }
