/* 예약 화면: 강의장 목록·상세·날짜/시간 모달·결제·완료. 색·글꼴은 /styles.css 의 :root 토큰을 쓴다.
   모양 규칙: 행동 버튼은 알약(100px), 카드·패널 16~20px, 입력칸·시간 칸 10~12px. */
:root { --bk-red: #c8372d; --bk-hdr: 90px; --bk-line-2: #cfd5d2; }

/* 공통 버튼 */
.bk-btn { width: 100%; height: 54px; padding: 0 24px; border-radius: 100px; font-size: 16px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s, transform .1s; }
.bk-btn:active:not(:disabled) { transform: translateY(1px); }
.bk-btn.solid { background: var(--accent); color: #fff; }
.bk-btn.solid:hover:not(:disabled) { background: var(--accent-strong); }
.bk-btn.line { background: #fff; border: 1px solid var(--bk-line-2); }
.bk-btn.line:hover { border-color: var(--accent); color: var(--accent); }
.bk-btn:disabled { background: #e4e7e5; color: #8b928e; cursor: default; }
.bk-link { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.bk-err { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--bk-red); }
.bk-empty { padding: 80px 0; text-align: center; color: var(--muted); }
.bk-bul li { position: relative; padding-left: 16px; }
.bk-bul li + li { margin-top: 6px; }
.bk-bul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.bk-kv > div { display: flex; gap: 16px; padding: 7px 0; font-size: 15px; line-height: 1.6; }
.bk-kv dt { width: 84px; flex: none; color: var(--muted); }
.bk-kv dd { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.bk-soft { background: var(--bg-soft); border-radius: 16px; padding: 16px 24px; }
.bk-lines { display: grid; gap: 8px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bk-lines li { display: flex; justify-content: space-between; gap: 12px; }
.bk-lines li span:last-child { flex: none; color: var(--ink-2); }
.bk-lines li.is-minus span:last-child { color: var(--accent); font-weight: 600; }
.bk-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bk-total span { font-size: 15px; font-weight: 700; }
.bk-total b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--accent); font-variant-numeric: tabular-nums; }

/* ===== 목록 ===== */
.bk-hero .hero-frame { height: 360px; }
.bk-hero .hero-copy { left: 72px; }
.bk-list { padding-top: 32px; padding-bottom: 140px; }
.bk-list-title { font-size: 34px; line-height: 44px; font-weight: 700; letter-spacing: -.02em; }
.bk-list-sub { margin-top: 10px; font-size: 16px; color: var(--muted); }
.bk-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.bk-tabs button { height: 42px; padding: 0 20px; border-radius: 100px; border: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--ink-2); transition: background-color .2s, color .2s, border-color .2s; }
.bk-tabs button:hover:not(:disabled):not(.on) { border-color: var(--ink); }
.bk-tabs button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.bk-tabs button:disabled { background: var(--bg-soft); color: var(--muted-2); cursor: default; }
.bk-branch { margin-top: 56px; }
.bk-branch-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.bk-branch-head h3 { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.bk-branch-head p { font-size: 14px; color: var(--muted); }
.bk-cards { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 24px; }
.bk-card { display: block; }
.bk-card .ph { aspect-ratio: 4 / 3; border: 0; border-radius: 16px; overflow: hidden; font-size: 14px; }
.bk-card-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(18, 26, 23, .58); color: #fff; font-size: 16px; font-weight: 700; font-style: normal; opacity: 0; transition: opacity .25s; }
.bk-card:hover .bk-card-more, .bk-card:focus-visible .bk-card-more { opacity: 1; }
.bk-card h4 { margin-top: 16px; font-size: 18px; line-height: 1.45; font-weight: 700; letter-spacing: -.01em; }
.bk-card-price { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--accent); }
.bk-card-price b { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bk-cta { margin-top: 120px; padding: 44px 52px; border-radius: 20px; background: var(--dark); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.bk-cta h3 { font-size: 24px; line-height: 1.4; font-weight: 700; letter-spacing: -.01em; }
.bk-cta p { margin-top: 8px; font-size: 15px; color: #a9b5b0; }
.bk-cta .pill { flex: none; height: 52px; padding: 0 28px; }

/* ===== 상세 ===== */
.bk-detail { display: grid; grid-template-columns: minmax(0, 1fr) 376px; gap: 64px; align-items: start; padding-bottom: 160px; }
.breadcrumb a:hover { color: var(--ink); }
.bk-gallery { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--bg-soft); }
.bk-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.bk-slide.on { opacity: 1; visibility: visible; transition: opacity .4s; }
.bk-slide .ph { height: 100%; border: 0; padding-inline: 76px; } /* 좌우 버튼(16 + 44) 밑으로 안 들어가게 */
.bk-gal-btn { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: rgba(255, 255, 255, .94); box-shadow: 0 4px 14px rgba(17, 40, 30, .14); transition: transform .1s; }
.bk-gal-btn::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -3px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); }
.bk-gal-btn.next::before { margin-left: -7px; transform: rotate(-135deg); }
.bk-gal-btn:active { transform: scale(.96); }
.bk-gal-btn.prev { left: 16px; }
.bk-gal-btn.next { right: 16px; }
.bk-gallery .ph { padding-inline: 72px; } /* 좌우 버튼(16px + 44px)에 자리표시 설명이 가리지 않게 */
.bk-gal-count { position: absolute; right: 16px; bottom: 16px; padding: 4px 11px; border-radius: 100px; background: rgba(18, 26, 23, .72); color: #fff; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bk-head { margin-top: 36px; }
.bk-head h1 { margin-top: 12px; font-size: 30px; line-height: 1.35; font-weight: 700; letter-spacing: -.02em; }
.bk-lead { margin-top: 14px; max-width: 65ch; font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.bk-lead:empty { display: none; }
.bk-anchors { position: sticky; top: var(--bk-hdr); z-index: 5; margin-top: 40px; background: #fff; border-bottom: 1px solid var(--line); display: flex; gap: 32px; overflow-x: auto; scrollbar-width: none; }
.bk-anchors::-webkit-scrollbar { display: none; }
.bk-anchors a { padding: 16px 0 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 15px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color .2s, border-color .2s; }
.bk-anchors a:hover { color: var(--ink); border-color: var(--ink); }
.bk-sec { padding-top: 56px; scroll-margin-top: calc(var(--bk-hdr) + 64px); }
.bk-sec h2 { margin-bottom: 20px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.bk-sec h3 { margin: 36px 0 12px; font-size: 16px; font-weight: 700; }
.bk-sec p, .bk-sec .bk-bul { font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.bk-info { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; padding: 10px 28px; border-radius: 16px; background: var(--bg-soft); }
.bk-info > div { display: flex; gap: 16px; padding: 14px 0; }
.bk-info dt { width: 72px; flex: none; font-size: 14px; font-weight: 600; color: var(--muted); }
.bk-info dd { font-size: 15px; font-weight: 600; line-height: 1.55; }
.bk-fac { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bk-fac li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; font-weight: 600; }
.bk-fac li.more { display: none; }
.bk-fac.open li.more { display: block; }
#facMore { margin-top: 14px; }
.bk-map .ph { height: 300px; border: 0; border-radius: 16px; }
#way .bk-kv { margin-top: 18px; }
.bk-faq details { border-bottom: 1px solid var(--line); }
.bk-faq details:first-of-type { border-top: 1px solid var(--ink); }
.bk-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 4px; font-size: 16px; font-weight: 600; cursor: pointer; }
.bk-faq summary::-webkit-details-marker { display: none; }
.bk-faq summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-top: -4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.bk-faq details[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
.bk-faq details p { padding: 0 4px 22px; }

/* 예약 박스 (데스크톱 sticky, 모바일 하단 고정) */
.bk-box { position: sticky; top: calc(var(--bk-hdr) + 24px); }
.bk-box-in { display: grid; gap: 18px; padding: 28px 24px 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 16px 40px -12px rgba(17, 40, 30, .14); }
.bk-rate { display: flex; align-items: baseline; gap: 4px; }
.bk-rate b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bk-rate span { font-size: 15px; color: var(--muted); }
.bk-rate em { margin-left: auto; padding: 3px 9px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; font-style: normal; }
.bk-rate em:empty { display: none; }
.bk-note { margin-top: 10px; text-align: center; font-size: 13px; color: var(--muted); }
.bk-box-sum { display: grid; gap: 18px; }
.bk-pick { width: 100%; border: 1px solid var(--bk-line-2); border-radius: 14px; text-align: left; transition: border-color .2s; }
.bk-pick:hover { border-color: var(--accent); }
.bk-pick span { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 16px; }
.bk-pick span + span { border-top: 1px solid var(--line); }
.bk-pick small { flex: none; font-size: 13px; font-weight: 600; color: var(--muted); }
.bk-pick b { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.bk-coupon label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.bk-coupon-row { display: flex; gap: 8px; }
.bk-coupon input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid var(--bk-line-2); border-radius: 10px; font: inherit; font-size: 15px; color: var(--ink); letter-spacing: .02em; }
.bk-coupon input::placeholder { color: #8b928e; letter-spacing: 0; }
.bk-coupon input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.bk-coupon input[aria-invalid="true"] { border-color: var(--bk-red); }
.bk-coupon button { flex: none; height: 46px; padding: 0 18px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; transition: background-color .2s; }
.bk-coupon button:disabled { background: #e4e7e5; color: #8b928e; cursor: default; }
.bk-box-sum .bk-total { padding-top: 18px; border-top: 1px solid var(--line); }
.bk-more-btn { display: none; }

/* ===== 날짜·시간 모달 (<dialog>) ===== */
html:has(dialog[open]) { overflow: hidden; }
.bk-modal { width: calc(100% - 40px); max-width: 720px; max-height: calc(100dvh - 40px); margin: auto; padding: 0; border: 0; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 30px 80px -20px rgba(10, 20, 16, .45); }
.bk-modal::backdrop, .bk-alert::backdrop { background: rgba(12, 18, 15, .55); }
.bk-modal-in { padding: 26px 28px 24px; }
.bk-modal-head { display: flex; align-items: center; justify-content: space-between; }
.bk-modal-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.bk-x { position: relative; width: 40px; height: 40px; margin-right: -8px; border-radius: 50%; transition: background-color .2s; }
.bk-x:hover { background: var(--bg-soft); }
.bk-x::before, .bk-x::after { content: ""; position: absolute; left: 11px; right: 11px; top: 19px; height: 2px; border-radius: 2px; background: var(--ink); transform: rotate(45deg); }
.bk-x::after { transform: rotate(-45deg); }
.bk-modal-body { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: 32px; }
.bk-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.bk-cal-head b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bk-cal-head button { width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; transition: background-color .2s; }
.bk-cal-head button:hover:not(:disabled) { background: var(--bg-soft); }
.bk-cal-head button:disabled { color: #cfd5d2; cursor: default; }
.bk-cal-week, .bk-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; }
.bk-cal-week span { padding: 6px 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.bk-day { position: relative; width: 40px; height: 40px; margin: 2px auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color .15s, color .15s; }
button.bk-day:hover:not([aria-disabled]):not(.is-sel) { background: var(--accent-soft); }
.bk-day[aria-disabled] { color: #c3c9c6; cursor: default; }
.bk-day.is-today::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.bk-day.is-sel { background: var(--accent); color: #fff; }
.bk-day.is-sel::after { background: #fff; }
.bk-slots h3 { font-size: 15px; font-weight: 700; }
.bk-slots-date { margin-top: 4px; font-size: 14px; color: var(--muted); }
.bk-slot-list { position: relative; margin-top: 12px; height: 330px; overflow-y: auto; overscroll-behavior: contain; user-select: none; -webkit-user-select: none; padding: 2px; }
.bk-slot-list li + li { margin-top: -1px; }
.bk-slot { position: relative; width: 100%; height: 44px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); background: #fff; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color .12s; }
.bk-slot-list li:first-child .bk-slot { border-radius: 10px 10px 0 0; }
.bk-slot-list li:last-child .bk-slot { border-radius: 0 0 10px 10px; }
.bk-slot:hover:not(.is-off):not(.is-on) { background: var(--accent-soft); }
.bk-slot-ic { width: 12px; height: 7px; margin-top: -3px; border-left: 2px solid #aab2ae; border-bottom: 2px solid #aab2ae; transform: rotate(-45deg); }
.bk-slot.is-on { z-index: 1; background: var(--accent); color: #fff; border-color: rgba(255, 255, 255, .22); box-shadow: inset 2px 0 var(--accent-strong), inset -2px 0 var(--accent-strong); }
.bk-slot.is-on.is-first { border-radius: 10px 10px 0 0; box-shadow: inset 2px 0 var(--accent-strong), inset -2px 0 var(--accent-strong), inset 0 2px var(--accent-strong); }
.bk-slot.is-on.is-last { border-radius: 0 0 10px 10px; box-shadow: inset 2px 0 var(--accent-strong), inset -2px 0 var(--accent-strong), inset 0 -2px var(--accent-strong); }
.bk-slot.is-on .bk-slot-ic { border-color: #fff; }
.bk-slot.is-off { background: var(--bg-soft); color: var(--muted-2); cursor: not-allowed; }
.bk-slot.is-off .bk-slot-ic { position: relative; width: 12px; height: 12px; margin: 0; border: 0; transform: none; }
.bk-slot.is-off .bk-slot-ic::before, .bk-slot.is-off .bk-slot-ic::after { content: ""; position: absolute; left: -1px; top: 5px; width: 14px; height: 2px; border-radius: 2px; background: var(--bk-red); transform: rotate(45deg); }
.bk-slot.is-off .bk-slot-ic::after { transform: rotate(-45deg); }
.bk-slots-sel { margin-top: 10px; min-height: 22px; font-size: 14px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.bk-modal-foot { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 24px; }
.bk-modal-notes { flex: 1; font-size: 13px; line-height: 1.75; color: var(--muted); }
.bk-modal-notes li { position: relative; padding-left: 12px; }
.bk-modal-notes li::before { content: ""; position: absolute; left: 0; top: .82em; width: 4px; height: 4px; border-radius: 50%; background: var(--muted-2); }
.bk-modal-foot .bk-btn { width: 200px; flex: none; }

/* ===== 결제 ===== */
.bk-pay { max-width: 720px; padding-top: 56px; padding-bottom: 160px; }
.bk-page-title { font-size: 32px; line-height: 1.3; font-weight: 700; letter-spacing: -.02em; }
.bk-eyebrow { margin-bottom: 12px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.bk-pay-intro { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.bk-use-fields { display: grid; gap: 18px; }
.bk-phone-fields { display: grid; grid-template-columns: minmax(0,1fr) 140px; gap: 12px; align-items: end; margin-top: 16px; }
.bk-phone-fields label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.bk-phone-fields input { width: 100%; min-width: 0; height: 48px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.bk-phone-fields .bk-btn { height: 48px; font-size: 14px; }
#phoneStatus { color: var(--muted); font-size: 14px; line-height: 1.6; }
.bk-use-fields label { display: grid; gap: 9px; font-size: 14px; font-weight: 600; }
.bk-use-fields input,.bk-use-fields select,.bk-use-fields textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; }
.bk-use-fields textarea { min-height: 100px; resize: vertical; }
.bk-use-fields :is(input,select,textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bk-payment-method { padding: 24px; border: 1.5px solid var(--accent); border-radius: 16px; background: var(--accent-soft); }
.bk-payment-heading { display: flex; align-items: center; gap: 12px; }
.bk-payment-heading h3 { font-size: 17px; line-height: 1.5; }
.bk-payment-heading p { margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.bk-payment-mark { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; }
.bk-payment-selected { margin-left: auto; flex: none; font-size: 12px; font-weight: 700; color: var(--accent); }
.bk-payment-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.bk-payment-options li { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 13px; font-weight: 600; }
.bk-payment-note,.bk-hold-note,.bk-payment-redirect { font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.bk-payment-note { margin-top: 16px; }
.bk-hold-note { margin-top: 12px; }
.bk-payment-redirect { margin-top: 12px; text-align: center; color: var(--muted); }
.bk-result-panel { padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-soft); }
.bk-result-panel #result { margin: 20px 0 28px; line-height: 1.8; }
.bk-pay-sec { margin-top: 44px; }
.bk-pay-sec h2 { margin-bottom: 14px; font-size: 18px; font-weight: 700; }
.bk-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bk-pay-sec .bk-total { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.bk-radio { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 18px; border: 2px solid var(--accent); border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; }
.bk-radio input, .bk-agree input { width: 20px; height: 20px; flex: none; accent-color: var(--accent); }
.bk-testbox { margin-top: 10px; padding: 14px 18px; border-radius: 12px; background: var(--bg-soft); font-size: 14px; color: var(--ink-2); }
.bk-agree { padding: 6px 22px 12px; border: 1px solid var(--line); border-radius: 16px; }
.bk-agree label { display: flex; align-items: center; gap: 12px; padding: 12px 0 6px; font-size: 15px; cursor: pointer; }
.bk-agree label.all { padding: 14px 0; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-weight: 700; }
.bk-agree em { font-style: normal; font-weight: 600; color: var(--accent); }
.bk-agree small { display: block; padding-left: 32px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.bk-pay-btn { margin-top: 32px; height: 64px; font-size: 18px; }
.bk-expired { padding: 100px 0 40px; text-align: center; }
.bk-expired h1 { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.bk-expired p { margin-top: 10px; color: var(--muted); }
.bk-expired .bk-btn { width: auto; margin-top: 32px; padding: 0 36px; }
.bk-alert { width: calc(100% - 40px); max-width: 400px; margin: auto; padding: 36px 28px 24px; border: 0; border-radius: 20px; text-align: center; color: var(--ink); }
.bk-alert p { font-size: 16px; line-height: 1.6; font-weight: 600; }
.bk-alert .bk-btn { margin-top: 26px; }

/* ===== 완료 ===== */
.bk-pay-simple { max-width: 620px; padding-top: 40px; padding-bottom: 72px; }
.bk-pay-simple .bk-page-title { font-size: 28px; }
.bk-simple-summary { margin-top: 26px; padding: 22px; border-radius: 12px; background: var(--bg-soft); }
.bk-simple-summary h2 { margin: 6px 0 10px; font-size: 18px; }
.bk-simple-summary p { font-size: 14px; line-height: 1.7; }
.bk-simple-muted { font-size: 13px; color: var(--muted); }
.bk-simple-section { padding: 24px 0; border-bottom: 1px solid var(--line); }
.bk-simple-section h2 { margin-bottom: 12px; font-size: 15px; }
.bk-simple-section > p { font-size: 14px; line-height: 1.6; }
.bk-simple-fields { grid-template-columns: minmax(0,1fr) minmax(0,1.5fr); gap: 12px; }
.bk-simple-fields label { font-size: 13px; font-weight: 500; }
.bk-simple-fields input,.bk-simple-fields select { padding: 12px; height: 46px; }
.bk-simple-details { margin-top: 12px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.bk-simple-details summary { cursor: pointer; width: fit-content; }
.bk-simple-details[open] summary { margin-bottom: 12px; }
.bk-simple-method { margin-top: 18px; color: var(--ink-2); }
.bk-simple-method span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.bk-simple-consent { padding-top: 22px; }
.bk-simple-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.6; cursor: pointer; }
.bk-simple-consent input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; margin-top: 2px; }
.bk-simple-consent details label { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; color: var(--ink-2); }
.bk-simple-consent details p { padding-left: 26px; }
.bk-pay-simple .bk-pay-btn { height: 54px; margin-top: 24px; font-size: 16px; border-radius: 10px; }
.bk-pay-simple .bk-pay-btn:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }
.bk-checkout-status { margin-top: 20px; padding: 12px 14px; background: var(--bg-soft); border-radius: 8px; color: var(--ink-2); font-size: 13px; line-height: 1.7; }
.bk-done { max-width: 560px; padding-top: 88px; padding-bottom: 160px; text-align: center; }
.bk-check { position: relative; display: block; width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; background: var(--accent); }
.bk-check::after { content: ""; position: absolute; left: 31px; top: 20px; width: 18px; height: 34px; border-right: 5px solid #fff; border-bottom: 5px solid #fff; border-radius: 2px; transform: rotate(45deg); }
.bk-done h1 { margin-top: 28px; font-size: 30px; line-height: 1.3; font-weight: 700; letter-spacing: -.02em; }
.bk-code { margin-top: 12px; font-size: 16px; color: var(--muted); }
.bk-code b { margin-left: 4px; color: var(--ink); letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.bk-done .bk-kv { margin-top: 36px; text-align: left; }
.bk-guide { margin-top: 24px; text-align: left; font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.bk-actions { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* 움직임: 상태 전환을 알려 주는 것만, 줄이기 설정이면 끔 */
@media (prefers-reduced-motion: no-preference) {
  .bk-modal[open], .bk-alert[open] { animation: bk-pop .22s cubic-bezier(.16, 1, .3, 1); }
  .bk-check { animation: bk-pop .4s cubic-bezier(.16, 1, .3, 1); }
  .bk-box-sum { animation: bk-fade .25s ease; }
}
@keyframes bk-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes bk-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .bk-slide, .bk-slide.on { transition: none; }
}

/* ===== 반응형 ===== */
@media (max-width: 1100px) {
  .bk-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-detail { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
}
@media (max-width: 960px) {
  .bk-info { grid-template-columns: 1fr; } /* 본문 칸이 좁아 2열이면 글이 카드 밖으로 넘침 */
}
@media (max-width: 760px) {
  :root { --bk-hdr: 64px; }
  .bk-hero .hero-frame { height: 260px; }
  .bk-hero .hero-copy { left: 24px; right: 24px; }
  .bk-hero .ph span { display: none; } /* 260px 틀에선 자리표시 설명이 문구와 겹침 */
  .bk-list-title { font-size: 26px; line-height: 36px; }
  .bk-cards { grid-template-columns: 1fr; gap: 36px; }
  .bk-cta { margin-top: 80px; padding: 32px 24px; flex-direction: column; align-items: flex-start; }

  .bk-detail { grid-template-columns: 1fr; gap: 0; }
  .bk-gallery { margin: 0 calc(-1 * var(--gutter)); border-radius: 0; }
  .bk-head h1 { font-size: 24px; }
  .bk-anchors { gap: 22px; margin: 32px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter); }
  .bk-info { grid-template-columns: 1fr; padding: 6px 20px; }
  .bk-fac { grid-template-columns: 1fr 1fr; }
  body[data-page="booking-detail"] { padding-bottom: var(--bk-bar-h, 96px); } /* booking.js 가 바 실제 높이로 갱신 */
  .bk-box { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 40; }
  .bk-box-in { gap: 12px; max-height: 78dvh; overflow-y: auto; padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom)); border-width: 1px 0 0; border-radius: 20px 20px 0 0; box-shadow: 0 -10px 30px -12px rgba(17, 40, 30, .25); }
  .bk-rate b { font-size: 20px; }
  .bk-box-empty { display: none; }
  .bk-box-sum { gap: 12px; }
  .bk-box:not(.open) .bk-coupon, .bk-box:not(.open) .bk-lines { display: none; }
  .bk-box-sum .bk-total { padding-top: 0; border-top: 0; }
  .bk-total b { font-size: 22px; }
  .bk-more-btn { display: block; justify-self: center; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
  .bk-box.open .bk-more-btn { order: 0; }

  .bk-modal { width: 100%; max-width: none; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .bk-modal-in { min-height: 100%; display: flex; flex-direction: column; padding: 12px 16px 0; }
  .bk-modal-body { margin-top: 8px; grid-template-columns: 1fr; gap: 12px; }
  .bk-day { width: 36px; height: 36px; margin: 1px auto; font-size: 14px; }
  .bk-slot-list { height: 200px; }
  /* 작은 화면에서도 '선택 완료' 가 보이게 아래에 고정 */
  .bk-modal-foot { position: sticky; bottom: 0; margin-top: auto; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: #fff; flex-direction: column; align-items: stretch; gap: 10px; }
  .bk-modal-notes { font-size: 12px; line-height: 1.6; }
  .bk-modal-foot .bk-btn { width: 100%; }

  .bk-pay { padding-top: 36px; }
  .bk-payment-method { padding: 20px 16px; }
  .bk-phone-fields { grid-template-columns: minmax(0,1fr) 112px; gap: 10px; }
  .bk-payment-heading { gap: 10px; }
  .bk-payment-selected { font-size: 11px; }
  .bk-page-title, .bk-done h1 { font-size: 26px; }
  .bk-soft { padding: 14px 18px; }
  .bk-agree { padding: 4px 16px 12px; }
  .bk-done { padding-top: 64px; }
  .bk-actions { grid-template-columns: 1fr; }
}
