/* =========================================================
   simpleis site — 결제(구매) 화면
   landing.css 의 토큰·버튼을 그대로 씁니다.
   ========================================================= */
.ck-body { background: #F5F6F7; }

.ck-header { background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; backdrop-filter: blur(12px); }
.ck-header__inner {
  max-width: 1040px; margin: 0 auto; padding: 0 24px; height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.ck-header__back {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  padding: 8px 12px; border-radius: 10px; background: var(--bg-soft);
}
.ck-header__back:hover { background: var(--line); }
.ck-header__back svg { width: 15px; height: 15px; }

.ck-main { padding: 44px 0 72px; }
.ck-wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

.ck-head { margin-bottom: 26px; }
.ck-steps { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--gray-2); }
.ck-steps li { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.ck-steps li + li::before { content: ""; width: 18px; height: 1px; background: var(--line); margin-right: 4px; }
.ck-steps span {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--line); color: var(--gray); font-size: 11px; font-weight: 700;
}
.ck-steps li.is-on { color: var(--ink-2); }
.ck-steps li.is-on span { background: var(--ink); color: #fff; }
.ck-title { margin-top: 14px; font-size: clamp(24px, 3.2vw, 32px); font-weight: 800; letter-spacing: -.04em; line-height: 1.35; }
.ck-sub { margin-top: 8px; font-size: 14.5px; line-height: 1.7; color: var(--gray); word-break: keep-all; }

.ck-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.ck-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.ck-card { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.ck-card--soft { background: #FAFBFC; }
.ck-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ck-card h2 { font-size: 16.5px; font-weight: 700; letter-spacing: -.02em; }
.ck-card__plain { margin-bottom: 12px; }
.ck-chip { padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 11.5px; font-weight: 700; }
.ck-hint { font-size: 12px; color: var(--gray-2); }

/* 선택한 디자인 */
.ck-design { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 18px; align-items: start; }
.ck-design__thumb { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); aspect-ratio: 16 / 11; }
.ck-design__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ck-design__cat { font-size: 11.5px; font-weight: 700; color: var(--accent); }
.ck-design__body h3 { margin-top: 4px; font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.ck-design__body > p:not(.ck-design__cat) { margin-top: 6px; font-size: 13.5px; line-height: 1.6; color: var(--gray); word-break: keep-all; }
.ck-design__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.ck-design__tags li { padding: 3px 8px; border-radius: 6px; background: var(--bg-soft); font-size: 11.5px; color: var(--ink-2); }
.ck-design__links { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--gray-2); }
.ck-design__links a { color: var(--ink-2); font-weight: 600; border-bottom: 1px solid var(--line); }
.ck-design__links a:hover { color: var(--accent-ink); border-color: var(--accent); }

.ck-switch { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.ck-switch__label { font-size: 12.5px; font-weight: 600; color: var(--gray); }
.ck-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ck-chips a {
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 500; color: var(--ink-2); background: #fff;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.ck-chips a:hover { border-color: #cfd6dd; }
.ck-chips a.is-on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }

/* 결제 수단 */
.ck-pays { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ck-pay {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px;
  cursor: pointer; background: #fff; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.ck-pay:hover { border-color: #cfd6dd; }
.ck-pay input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ck-pay.is-on { border-color: var(--ink); background: #FFFDFC; box-shadow: 0 0 0 1px var(--ink) inset; }
.ck-pay__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--bg-soft); color: var(--ink-2); flex: none; }
.ck-pay__icon svg { width: 21px; height: 21px; }
.ck-pay.is-on .ck-pay__icon { background: var(--accent-soft); color: var(--accent-ink); }
.ck-pay__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ck-pay__text strong { font-size: 14.5px; font-weight: 700; }
.ck-pay__text span { font-size: 12.5px; color: var(--gray); }
.ck-pay__radio { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 1.6px solid var(--line); flex: none; position: relative; }
.ck-pay.is-on .ck-pay__radio { border-color: var(--accent); }
.ck-pay.is-on .ck-pay__radio::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--accent); }
.ck-paynote { margin-top: 12px; font-size: 12.5px; line-height: 1.6; color: var(--gray-2); }

/* 약관 */
.ck-check { display: flex; align-items: flex-start; gap: 10px; padding: 4px 0; cursor: pointer; font-size: 13.5px; color: var(--ink-2); }
.ck-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ck-check__box {
  position: relative; flex: none; width: 20px; height: 20px; margin-top: 1px;
  border: 1.6px solid var(--line); border-radius: 6px; background: #fff;
  transition: background-color .15s ease, border-color .15s ease;
}
.ck-check__box::after {
  content: ""; position: absolute; left: 6px; top: 2.5px; width: 5px; height: 10px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(42deg) scale(.4); opacity: 0; transition: opacity .12s ease, transform .12s ease;
}
.ck-check input:checked + .ck-check__box { background: var(--accent); border-color: var(--accent); }
.ck-check input:checked + .ck-check__box::after { opacity: 1; transform: rotate(42deg) scale(1); }
.ck-check--all { padding: 14px 16px; border-radius: 12px; background: var(--bg-soft); font-size: 14.5px; }
.ck-checks { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; padding-left: 4px; }
.ck-check em { font-style: normal; font-weight: 700; color: var(--accent-ink); }
.ck-error { margin-top: 10px; font-size: 12.5px; color: #E5484D; }

/* 확인 목록 */
.ck-notes { display: flex; flex-direction: column; gap: 7px; }
.ck-notes li { position: relative; padding-left: 16px; font-size: 13px; line-height: 1.65; color: var(--gray); word-break: keep-all; }
.ck-notes li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 4px; height: 4px; border-radius: 50%; background: var(--gray-2); }

/* 주문 요약 */
.ck-col--aside { position: sticky; top: 88px; }
.ck-summary { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.ck-summary h2 { font-size: 16.5px; font-weight: 700; letter-spacing: -.02em; }
.ck-price { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.ck-price__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--gray); }
.ck-price__row strong { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.ck-price__row em { font-style: normal; margin-left: 5px; font-size: 11.5px; color: var(--gray-2); }
.ck-price__row--total { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); font-weight: 600; }
.ck-price__row--total strong { font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: var(--accent-ink); }
.ck-price__row--total em { display: inline-block; margin-left: 6px; }
.ck-summary .btn { margin-top: 18px; }
.ck-pg-note { margin-top: 12px; font-size: 11.5px; line-height: 1.6; color: var(--gray-2); }
.ck-talk {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 100%;
  margin-top: 12px; padding: 12px 14px; border-radius: 12px;
  border: 1px dashed #d7dce2; background: #FAFBFC;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer;
}
.ck-talk:hover { border-color: var(--accent); color: var(--accent-ink); background: #FFF9F6; }
.ck-talk__dot { width: 7px; height: 7px; border-radius: 50%; background: #12B76A; box-shadow: 0 0 0 3px rgba(18, 183, 106, .16); }
.ck-safe { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 6px; }
.ck-safe li { position: relative; padding-left: 18px; font-size: 12px; color: var(--gray); }
.ck-safe li::before { content: ""; position: absolute; left: 3px; top: 5px; width: 9px; height: 5px; border-left: 1.6px solid #12B76A; border-bottom: 1.6px solid #12B76A; transform: rotate(-45deg); }

/* 결제 시안 안내 */
.ck-done { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(16, 21, 27, .55); }
.ck-done[hidden] { display: none; }
.ck-done__box {
  width: 100%; max-width: 460px; max-height: calc(100vh - 40px); overflow: auto;
  padding: 28px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-lg);
  text-align: center;
  animation: ckIn .22s ease both;
}
@keyframes ckIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.ck-done__icon { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #EAF8F0; color: #12B76A; }
.ck-done__icon svg { width: 26px; height: 26px; }
.ck-done__box h2 { margin-top: 14px; font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.ck-done__box > p { margin-top: 8px; font-size: 13.5px; line-height: 1.7; color: var(--gray); word-break: keep-all; }
.ck-done__list { margin: 18px 0 0; padding: 16px; border-radius: 14px; background: var(--bg-soft); display: flex; flex-direction: column; gap: 8px; text-align: left; }
.ck-done__list > div { display: flex; gap: 12px; font-size: 13px; }
.ck-done__list dt { flex: none; width: 68px; color: var(--gray-2); }
.ck-done__list dd { margin: 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.ck-done__list em { font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--gray-2); }
.ck-done__box .btn--primary { margin-top: 18px; }
.ck-done__acts { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }

.ck-footer { padding: 26px 24px 40px; text-align: center; font-size: 12px; color: var(--gray-2); display: flex; flex-direction: column; gap: 6px; }
.ck-footer a { color: var(--gray); }
.ck-footer a:hover { color: var(--accent-ink); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .ck-grid { grid-template-columns: 1fr; }
  .ck-col--aside { position: static; order: 2; }
  .ck-design { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; }
  .ck-main { padding: 28px 0 56px; }
}
@media (max-width: 620px) {
  .ck-wrap { padding: 0 16px; }
  .ck-header__inner { padding: 0 16px; height: 60px; }
  .ck-header__back { font-size: 13px; padding: 7px 10px; }
  .ck-card { padding: 20px; border-radius: 18px; }
  .ck-design { grid-template-columns: 1fr; }
  .ck-design__thumb { aspect-ratio: 16 / 9; }
  .ck-title { font-size: 24px; }
  .ck-done__box { padding: 22px; }
}

/* 키보드 접근 — 숨긴 체크박스 대신 표시 상자에 포커스를 보여 줍니다 */
.ck-check input:focus-visible + .ck-check__box { box-shadow: 0 0 0 3px rgba(255, 85, 31, .18); border-color: var(--accent); }
.ck-pay input:focus-visible ~ .ck-pay__radio { box-shadow: 0 0 0 3px rgba(255, 85, 31, .18); }

/* =========================================================
   v13 — 약관 보기 링크 · 고객 정보 모달 · 페이앱 안내
   ========================================================= */
.ck-check-row { display: flex; align-items: center; gap: 8px; }
.ck-check-row .ck-check { flex: 1 1 auto; min-width: 0; }
.ck-view {
  flex: none; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: 11.5px; font-weight: 600; color: var(--gray); text-decoration: none;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.ck-view:hover { border-color: var(--accent); color: var(--accent-ink); background: #FFF9F6; }
.ck-checks__foot { margin-top: 12px; padding-left: 4px; font-size: 12px; }
.ck-checks__foot a { color: var(--gray-2); text-decoration: underline; text-underline-offset: 2px; }
.ck-checks__foot a:hover { color: var(--ink-2); }
.ck-paybrand { margin-top: 10px; font-size: 11.5px; color: var(--gray-2); text-align: center; }
.ck-paybrand b { font-weight: 700; color: var(--gray); }

.ck-cust { text-align: left; position: relative; }
.ck-cust h2 { margin-top: 0; font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.ck-cust > p { margin-top: 8px; font-size: 13.5px; line-height: 1.7; color: var(--gray); word-break: keep-all; }
.ck-cust__close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--bg-soft); color: var(--gray); cursor: pointer;
}
.ck-cust__close:hover { background: var(--line); color: var(--ink); }
.ck-cust__close svg { width: 16px; height: 16px; }
.ck-cust__form { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.ck-field { display: block; }
.ck-field__label { display: block; margin-bottom: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.ck-field__input {
  width: 100%; height: 50px; padding: 0 15px;
  border: 1px solid var(--line); border-radius: 13px; background: #fff;
  font-family: inherit; font-size: 15px; font-weight: 500; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ck-field__input::placeholder { color: #B0B8C1; font-weight: 400; }
.ck-field__input:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(25, 31, 40, .07); }
.ck-field__input.is-invalid { border-color: #E5484D; background: #FFF7F7; }
.ck-field__input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(229, 72, 77, .14); }
.ck-field__err { display: block; margin-top: 6px; font-size: 12px; font-style: normal; color: #E5484D; }
.ck-field__err[hidden] { display: none; }
.ck-cust__note { font-size: 11.5px; line-height: 1.65; color: var(--gray-2); text-align: center; }
.ck-cust__form .btn { margin-top: 0; }
.ck-cust__form .btn + .btn { margin-top: 0; }
.ck-done__help {
  margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--bg-soft);
  font-size: 12px; line-height: 1.65; color: var(--gray); text-align: left;
}
@media (max-width: 620px) {
  .ck-cust h2 { font-size: 18.5px; }
  .ck-field__input { height: 48px; font-size: 16px; }
}

/* 사이트 아이디 입력 — 접두사 없이 일반 입력칸, 주소는 아래에 미리보기로 */
.ck-field__preview {
  display: block; margin-top: 7px; font-size: 12px; line-height: 1.5;
  color: var(--gray-2); word-break: break-all;
}
.ck-field__preview b { color: var(--ink-2); font-weight: 700; }
.ck-field__preview.is-empty b { color: var(--gray-2); font-weight: 600; }
.ck-field__ok { display: block; margin-top: 6px; font-size: 12px; font-style: normal; font-weight: 600; color: #0F9960; }
.ck-field__ok[hidden] { display: none; }
@media (max-width: 620px) { .ck-idwrap { height: 48px; } .ck-idwrap__input { font-size: 16px; } }

/* 완료 화면 버튼 표시/숨김 — .btn 의 display 가 [hidden] 을 덮어쓰지 않도록 */
.ck-done__box [hidden] { display: none !important; }

@media (max-width: 620px) { #custId { font-size: 16px; } }
