/* m.booking.naver.com — the three reservation screens. */

.page-booking {
  background: #fff;
}

.bk-root {
  max-width: 640px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.bk-head {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 14px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.bk-head strong {
  flex: 1;
  min-width: 0;
  font-size: 17px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── designer hero ────────────────────────────────────────────── */
.bk-hero {
  aspect-ratio: 1 / 0.86;
  overflow: hidden;
  background: var(--fill);
}

.bk-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bk-designer {
  padding: 18px 16px 4px;
}

.bk-name {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.bk-expand {
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--chip);
}

.bk-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 13px;
  color: #666;
}

.bk-tags {
  margin-top: 10px;
}

.bk-desc {
  margin-top: 10px;
  font-size: 13.5px;
  color: #444;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bk-insta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--link);
  word-break: break-all;
}

/* ── tabs ─────────────────────────────────────────────────────── */
.bk-tabs {
  position: sticky;
  top: 52px;
  z-index: 30;
  display: flex;
  gap: 6px;
  margin: 16px 16px 0;
  padding: 4px;
  border-radius: 10px;
  background: var(--fill);
}

.bk-tabs a {
  flex: 1;
  text-align: center;
  padding: 9px 0;
  border-radius: 7px;
  font-size: 14px;
  color: #767676;
}

.bk-tabs a.on {
  background: #33363c;
  color: #fff;
  font-weight: 700;
}

.bk-tabs b {
  color: var(--naver-green);
}

.bk-tabs a.on b {
  color: #8ff0b6;
}

/* ── npay strip ───────────────────────────────────────────────── */
.npay-strip {
  margin: 16px;
  padding: 16px;
  border-radius: 12px;
  background: var(--fill-soft);
  text-align: center;
}

.npay-strip h2 {
  font-size: 14.5px;
  font-weight: 700;
}

.npay-strip p {
  margin-top: 6px;
  font-size: 12.5px;
  color: #767676;
  line-height: 1.5;
}

.npay-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.npay-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #fff;
  font-size: 12.5px;
  color: #444;
}

.npay-row b {
  padding: 1px 6px;
  border-radius: 4px;
  background: #e8f7ee;
  color: #067a3a;
  font-size: 11px;
}

.npay-row a {
  margin-left: auto;
  color: var(--link);
}

.instant-confirm {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 16px;
  font-size: 13px;
  color: #555;
}

.instant-confirm b {
  color: #067a3a;
  font-weight: 700;
}

/* ── steps ────────────────────────────────────────────────────── */
.bk-step {
  padding: 24px 16px;
  border-top: 8px solid var(--fill-soft);
}

.bk-step:first-of-type {
  border-top: 0;
}

.step-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #33363c;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.step-note {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── calendar ─────────────────────────────────────────────────── */
.cal {
  margin-top: 16px;
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 10px;
}

.cal-head strong {
  font-size: 16px;
  font-weight: 700;
}

.cal-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.cal-nav:disabled {
  opacity: 0.4;
}

.cal-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.cal-table th {
  padding: 6px 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.cal-table td {
  padding: 2px;
  text-align: center;
}

.cal-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 100%;
  height: 44px;
  border-radius: 8px;
  font-size: 15px;
  color: #222;
}

.cal-day:disabled {
  color: #d2d2d2;
}

.cal-day.on {
  background: var(--naver-green);
  color: #fff;
  font-weight: 700;
}

.cd-note {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1;
}

.cal-day.on .cd-note {
  color: #d8f7e5;
}

.cal-day.full .cd-note {
  color: #c0c0c0;
}

/* ── time slots ───────────────────────────────────────────────── */
.slot-group {
  margin-top: 20px;
}

.slot-label {
  margin-bottom: 8px;
  font-size: 13px;
  color: #666;
}

.slot-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.slot {
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  color: #222;
}

.slot:disabled {
  color: #cfcfcf;
  border-color: #eee;
  background: #fbfbfb;
}

.slot.on {
  border-color: var(--naver-green);
  background: #f0fbf4;
  color: #067a3a;
  font-weight: 700;
}

.slot-empty {
  margin-top: 18px;
  padding: 18px;
  border-radius: 8px;
  background: var(--fill-soft);
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

/* ── menus and notices ────────────────────────────────────────── */
.menu-cats {
  display: flex;
  gap: 6px;
  margin: 16px 0 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.menu-cats::-webkit-scrollbar {
  display: none;
}

.menu-list li {
  border-bottom: 1px solid var(--line);
}

.menu-item,
.notice-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 0;
  cursor: pointer;
}

/* The box IS the input: a real 20x20 hit target, so both a person and an agent
   can click the control itself rather than having to find the label. */
.mi-check {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid #cfcfcf;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.mi-check:checked {
  border-color: var(--naver-green);
  background-color: var(--naver-green);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12.6l4.6 4.4L19 6.8' fill='none' stroke='white' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
}

.mi-check:focus-visible {
  outline: 2px solid var(--naver-blue);
  outline-offset: 2px;
}

.mi-text {
  flex: 1;
  min-width: 0;
}

.mi-text b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.mi-line {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: #767676;
  line-height: 1.55;
}

.menu-list.plain li {
  padding: 14px 0;
}

.menu-list.plain b {
  font-size: 14.5px;
  font-weight: 700;
}

.deposit-box {
  margin-top: 20px;
  padding: 16px;
  border-radius: 10px;
  background: var(--fill-soft);
  text-align: center;
}

.dp-title {
  font-size: 14px;
  font-weight: 700;
}

.dp-amount {
  margin-top: 6px;
  font-size: 19px;
  font-weight: 800;
  color: #067a3a;
}

.dp-note {
  margin-top: 8px;
  font-size: 12.5px;
  color: #767676;
  line-height: 1.55;
}

.final-notice {
  margin-top: 18px;
  font-size: 13px;
  color: #555;
  line-height: 1.65;
}

.fn-title {
  font-weight: 700;
  color: #222;
  margin-bottom: 4px;
}

/* ── submit ───────────────────────────────────────────────────── */
.bk-submit {
  padding: 20px 16px 8px;
}

.next-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  border-radius: 8px;
  background: var(--naver-green);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.next-btn:disabled {
  background: #e3e5e8;
  color: #a8adb4;
}

.next-btn.link {
  text-decoration: none;
}

.submit-hint {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* ── confirm / complete ───────────────────────────────────────── */
.cf-root {
  padding: 20px 16px 0;
}

.cf-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cf-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
}

.cf-shop {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.cf-shop img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--fill);
}

.cf-shop b {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.cf-shop span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: #666;
}

.cf-list > div {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  font-size: 13.5px;
}

.cf-list dt {
  flex: 0 0 76px;
  color: var(--text-muted);
}

.cf-list dd {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: #222;
  line-height: 1.55;
}

.cf-sub {
  color: var(--text-muted);
  font-size: 12.5px;
}

.cf-error {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fdeceb;
  color: #c0392b;
  font-size: 13px;
}

.cf-sect {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cf-field {
  display: block;
  margin-bottom: 14px;
}

.cf-field > span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #555;
}

.cf-field em {
  font-style: normal;
  color: var(--text-muted);
}

.cf-field input,
.cf-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 15px;
  outline: 0;
  resize: vertical;
}

.cf-field input:focus,
.cf-field textarea:focus {
  border-color: var(--naver-green);
}

.done-root {
  text-align: center;
}

.done-badge {
  margin: 20px 0 12px;
  display: flex;
  justify-content: center;
}

.done-title {
  font-size: 22px;
  font-weight: 800;
}

.done-sub {
  margin: 8px 0 20px;
  font-size: 14px;
  color: #666;
}

.done-sub b {
  color: #222;
  font-weight: 700;
}

.done-root .cf-card {
  text-align: left;
}

.done-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.done-btn {
  flex: 1;
  height: 48px;
  line-height: 48px;
  border-radius: 8px;
  background: var(--naver-green);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.done-btn.ghost {
  background: #fff;
  border: 1px solid var(--line-strong);
  color: #333;
}

.detail-copy {
  margin-top: 12px;
  font-size: 13.5px;
  color: #444;
  line-height: 1.7;
}

.detail-sub {
  margin-top: 20px;
  font-size: 15px;
  font-weight: 700;
}

.bk-404 {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
}

/* ── footer ───────────────────────────────────────────────────── */
.bk-foot {
  margin-top: 30px;
  padding: 20px 16px 40px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-muted);
}

.bf-links {
  display: flex;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.bf-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 0;
}

.bf-corp {
  line-height: 1.6;
  color: #b0b0b0;
}

.cal-day.outside:not(:disabled) {
  color: #222;
}

/* ── 예약 내역 (my bookings) ───────────────────────────────────── */
.my-root { padding: 20px 16px 0; }
.my-title { font-size: 22px; font-weight: 800; }
.my-sub { margin-top: 6px; font-size: 13px; color: var(--text-muted); }
.my-notice {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 8px;
  background: #eef7f0;
  color: #2f7d4f;
  font-size: 13px;
}

.hist-list { margin-top: 16px; }
.hist-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}
.hist-item.cancelled { opacity: 0.7; }

.hist-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.hist-status {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
}
.hist-status.on { background: #e8f7ee; color: #067a3a; }
.hist-status.off { background: #f0f0f0; color: #8e8e8e; }
.hist-no { font-size: 12px; color: var(--text-muted); }

.hist-body { display: flex; gap: 12px; align-items: flex-start; }
.hist-body img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; background: var(--fill); }
.hist-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hist-text b { font-size: 14.5px; font-weight: 700; }
.hist-shop { font-size: 12.5px; color: #555; }
.hist-when { font-size: 13.5px; color: #067a3a; font-weight: 600; }
.hist-menu { font-size: 12.5px; color: var(--text-muted); }

.hist-actions { display: flex; gap: 8px; margin-top: 14px; }
.hist-btn {
  flex: 1;
  height: 40px;
  line-height: 38px;
  text-align: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #333;
  background: #fff;
}
.hist-btn.danger { color: #d0463b; border-color: #f0cfcc; }
.hist-cancelled-note { margin-top: 10px; font-size: 12.5px; color: var(--text-muted); }

.my-empty { text-align: center; padding: 60px 20px; }
.my-empty-mark { display: flex; justify-content: center; margin-bottom: 14px; }
.my-empty p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.my-empty .done-btn { display: inline-block; width: auto; padding: 0 24px; }

.done-more { text-align: center; margin-top: 14px; }
.done-more a { font-size: 13px; color: var(--text-muted); text-decoration: underline; }

.my-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}
.my-tabs a {
  flex: 1;
  text-align: center;
  padding: 12px 0 11px;
  font-size: 14px;
  color: #8e8e8e;
  border-bottom: 2px solid var(--line);
}
.my-tabs a.on { color: var(--text-strong); font-weight: 700; border-bottom-color: #222; }
.my-tabs b { color: var(--naver-green); font-weight: 700; }
.my-tabs a.on b { color: #067a3a; }
.my-root { padding-top: 8px; }

/* 예약 변경 (reschedule) */
.resch-root { padding-bottom: 40px; }
.resch-current { margin: 16px; padding: 14px 16px; border-radius: 12px; background: var(--fill-soft); }
.resch-label { font-size: 12px; color: var(--text-muted); }
.resch-cur { margin-top: 4px; font-size: 14.5px; font-weight: 700; }
.resch-cur-when { margin-top: 3px; font-size: 13.5px; color: #067a3a; font-weight: 600; }

/* 리뷰 작성 */
.rvw-root { padding-bottom: 40px; }
.rvw-form { padding: 0 16px; }
.rvw-stars { display: flex; gap: 6px; margin-bottom: 10px; }
.rvw-star input { position: absolute; opacity: 0; width: 0; height: 0; }
.rvw-star span { display: inline-block; font-size: 22px; color: #dcdcdc; letter-spacing: 2px; cursor: pointer; padding: 4px 6px; border: 1px solid var(--line); border-radius: 8px; }
.rvw-star input:checked ~ span { color: #ff8a1f; border-color: #ffd9a8; background: #fff8ef; }
.rvw-star input:focus-visible ~ span { outline: 2px solid var(--naver-blue); }
.hist-review-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 13px; color: #067a3a; font-weight: 600; }
.hist-review-done { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 13px; color: #067a3a; }

/* 저장 목록 */
.saved-title { padding: 20px 16px 8px; font-size: 18px; font-weight: 800; }
.saved-title b { color: var(--naver-green); }
.saved-list { padding: 0 8px; }
.saved-item a { display: flex; align-items: center; gap: 10px; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.saved-name { flex: 1; font-size: 15px; font-weight: 600; }
.mp-save-form, .pp-save-form { display: inline-flex; }

/* 받은 쿠폰 / 내 리뷰 목록 */
.coupon-mylist { padding: 8px 16px; }
.coupon-myitem { display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 10px; border: 1px solid #ffe0b8; border-radius: 12px; background: #fff9f0; }
.cm-icon { display: inline-flex; }
.cm-text { flex: 1; }
.cm-text strong { display: block; font-size: 14px; font-weight: 700; }
.cm-text span { font-size: 12.5px; color: var(--text-muted); }
.cm-badge { padding: 3px 9px; border-radius: var(--radius-pill); background: #fff0dc; color: #c0692a; font-size: 12px; font-weight: 700; }
.myrv { padding: 0 16px; }
.rv-stars { color: #ff8a1f; font-size: 15px; letter-spacing: 1px; }
.rv-stars-off { color: #e0e0e0; }

.my-nav { display: flex; gap: 6px; padding: 12px 16px 4px; }
.my-nav a { flex: 1; text-align: center; padding: 8px 0; border-radius: 8px; background: var(--fill-soft); font-size: 13px; color: #555; }
.my-nav a.on { background: #33363c; color: #fff; font-weight: 700; }
