/* SCREEN-3 · 결제 진행 — S3 에이전트 전용 CSS (Figma 5543-7798)
 * 중앙 단일 컬럼(요약/상세/액션 카드). 여기엔 .ck-s3* 만.
 * 공용 토큰/클래스(checkout.css)를 재사용하고, 화면 고유 레이아웃만 정의. */

.ck-s3 {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;                 /* spacing/lg — 섹션 간 간격 */
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

/* ---- 타이틀 영역 ---- */
.ck-s3-title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.ck-s3-title {
  margin: 0;
  font-size: 30px;           /* text/heading/xl */
  line-height: 39px;
  font-weight: 800;          /* ExtraBold */
  color: var(--ck-strong, #27262E);
}
.ck-s3-sub {
  margin: 0;
  font-size: 13px;           /* text/body/sm/m */
  line-height: 18.2px;
  font-weight: 500;
  color: var(--ck-label, #5D5E69);
}

/* =====================================================================
 * 요약 카드 — Figma: 테두리 없이 그림자만 (공용 .ck-summary-card 그대로 사용)
 * ===================================================================== */
.ck-s3 .ck-summary-card { width: 100%; }

/* =====================================================================
 * 상세 카드 영역 — Figma: 테두리(#E9EAF2) + 그림자, 내부에 '내용 수정' 버튼
 * 공용 _detail_card 파셜은 건드리지 않고 래퍼로 카드 외형을 구성한다.
 * ===================================================================== */
.ck-s3-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;                 /* spacing/md — 정보 ↔ 버튼 */
  background: var(--ck-card, #FFFFFF);
  border: 1px solid var(--ck-border, #E9EAF2);
  border-radius: var(--ck-radius, 16px);
  box-shadow: var(--ck-shadow);
  padding: 24px;
}
/* 내부 공용 카드는 외형(그림자/패딩/배경)을 래퍼에 위임 — 콘텐츠만 노출 */
.ck-s3-detail .ck-detail-card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

/* '내용 수정' — Figma: neutral outline(회색), 40px */
.ck-s3-edit {
  height: 40px;
  border-color: var(--button-border-outlined-neutral, rgba(28, 27, 31, 0.12));
  color: var(--ck-label, #5D5E69);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--button-radius-md, 8px);
}

/* =====================================================================
 * 액션 카드 — Figma: 테두리(#E9EAF2) + 그림자, 가운데 정렬 안내 + 버튼 2개
 * ===================================================================== */
.ck-s3-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;                  /* spacing/xs — 안내문 ↔ 버튼 ↔ 버튼 */
  background: var(--ck-card, #FFFFFF);
  border: 1px solid var(--ck-border, #E9EAF2);
  border-radius: var(--ck-radius, 16px);
  box-shadow: var(--ck-shadow);
  padding: 24px;
}
.ck-s3-mail {
  margin: 0 0 4px;
  text-align: center;
  font-size: 13px;           /* text/body/sm/m */
  line-height: 18.2px;
  font-weight: 500;
  color: var(--ck-label, #5D5E69);
}
.ck-s3-mail .js-payer-email {
  display: inline-block;
}

/* '바로 결제하기' — 그라데이션 primary 는 항상 활성 표시.
 * 공용 .ck-btn-primary:not(.is-active) 의 비활성(회색) 규칙보다 특이도를 높여 재정의. */
.ck-s3 .ck-s3-pay,
.ck-s3 .ck-s3-pay:not(.is-active) {
  background: var(--ck-gradient);
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
}

/* '행정실 전달용 결제 링크 복사' — Figma: alternative outline (#A49BFF 테두리) */
.ck-s3-copy {
  border-color: var(--button-border-outlined-alternative, #A49BFF);
  color: var(--ck-primary-strong, #5748F2);
  font-size: 16px;
  font-weight: 600;
}

/* =====================================================================
 * 반응형 — 좁은 화면에서 카드 패딩만 살짝 축소
 * ===================================================================== */
@media (max-width: 600px) {
  .ck-s3-title { font-size: 26px; line-height: 34px; }
  .ck-s3-detail,
  .ck-s3-actions { padding: 20px; }
}
