/* ==========================================================================
   payment.css — 결제 화면
   ========================================================================== */

.payment-app { padding-bottom: 0; }

/* #paymentForm {
  display: contents;
} */

/* 진행 단계 */
.payment-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--voda-line);
  background: #fff;
}
.payment-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--voda-ink-muted);
}
.payment-step span {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--voda-chip);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.payment-step.is-active { color: var(--voda-ink); font-weight: 600; }
.payment-step.is-active span {
  background: var(--voda-primary);
  color: #fff;
}
.payment-step + .payment-step::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--voda-line);
  margin-right: 4px;
}

/* 섹션 */
.pay-section {
  padding: 20px;
  background: #fff;
  border-bottom: 8px solid var(--voda-chip);
}
.pay-section__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--voda-ink);
  margin-bottom: 14px;
}

/* 예매 요약 */
.pay-summary {
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--voda-line);
  margin-bottom: 14px;
}
.pay-summary__poster {
  width: 56px;
  aspect-ratio: 2/3;
  border-radius: 6px;
  /* background: linear-gradient(135deg, #701A75, #18181B); */
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.pay-summary__category {
  font-size: 10px;
  color: var(--voda-ink-muted);
  letter-spacing: 0.1em;
  margin-bottom: 3px;
}
.pay-summary__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--voda-ink);
  margin-bottom: 3px;
}
.pay-summary__venue {
  font-size: 12px;
  color: var(--voda-ink-muted);
}

.pay-info-list { display: flex; flex-direction: column; gap: 8px; }
.pay-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.pay-info-row__label { color: var(--voda-ink-muted); }
.pay-info-row__value { color: var(--voda-ink); font-weight: 500; }
.pay-info-row__timer {
  color: var(--voda-primary);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* 폼 */
.pay-form { display: flex; flex-direction: column; gap: 12px; }
.pay-field { display: flex; flex-direction: column; gap: 6px; }
.pay-field[hidden] {
  display: none !important;
}
.pay-field__label {
  font-size: 12px;
  color: var(--voda-ink-muted);
}
.pay-field__input {
  padding: 12px 14px;
  border: 1px solid var(--voda-line);
  border-radius: 8px;
  font-size: 14px;
  color: var(--voda-ink);
  background: #fff;
  outline: none;
  font-family: inherit;
}
.pay-field__input:focus { border-color: var(--voda-ink); }

/* 리스트 버튼 */
.pay-list-btn {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--voda-line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  color: var(--voda-ink);
  font-family: inherit;
  margin-bottom: 12px;
  gap: 8px;
}
.pay-list-btn__hint {
  margin-left: auto;
  font-size: 12px;
  color: var(--voda-primary);
  font-weight: 600;
}

/* 체크박스 */
.pay-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
}
.pay-checkbox--all {
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--voda-line);
}
.pay-checkbox input { display: none; }
.pay-checkbox__box {
  width: 20px; height: 20px;
  border: 1.5px solid var(--voda-line);
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
}
.pay-checkbox input:checked + .pay-checkbox__box {
  background: var(--voda-ink);
  border-color: var(--voda-ink);
}
.pay-checkbox input:checked + .pay-checkbox__box::after {
  content: '';
  position: absolute;
  left: 5px; top: 1px;
  width: 6px; height: 12px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}
.pay-checkbox__label {
  flex: 1;
  font-size: 13px;
  color: var(--voda-ink);
}
.pay-checkbox__label--bold { font-weight: 700; }
.pay-checkbox__hint {
  color: var(--voda-ink-muted);
  font-weight: 400;
  margin-left: 4px;
}
.pay-checkbox__req {
  color: var(--voda-primary);
  font-weight: 600;
  margin-right: 4px;
}
.pay-checkbox__view {
  font-size: 11px;
  color: var(--voda-ink-muted);
  text-decoration: underline;
  cursor: pointer;
}
.pay-checkbox__view2 {
  font-size: 12px;
  color: var(--voda-ink-muted);
  cursor: pointer;
  width: 50px;
  height: 20px;
}

/* 결제 수단 */
.pay-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pay-method {
  display: block;
  cursor: pointer;
}
.pay-method input { display: none; }
.pay-method__box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid var(--voda-line);
  border-radius: 8px;
  background: #fff;
}
.pay-method input:checked + .pay-method__box {
  border-color: var(--voda-ink);
  border-width: 2px;
  padding: 13px 15px;
  background: var(--voda-chip);
}
.pay-method__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--voda-ink);
}
.pay-method__hint {
  font-size: 11px;
  color: var(--voda-ink-muted);
}

/* 금액 */
.pay-total-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pay-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--voda-ink);
}
.pay-total-row__discount { color: var(--voda-primary); font-weight: 600; }
.pay-total-row--final {
  border-top: 1px solid var(--voda-line);
  padding-top: 12px;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 800;
}
.pay-total-row--final span:last-child {
  color: var(--voda-primary);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

/* CTA */
/* .pay-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 1px solid var(--voda-line);
  padding: 12px 16px calc(12px + var(--voda-safe-bottom));
  z-index: 20;
} */
 /* 하단 CTA */
.pay-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 1px solid var(--voda-line);
  padding: 12px 16px calc(12px + var(--voda-safe-bottom));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  z-index: 20;
}
.pay-cta__label {
  font-size: 11px;
  color: var(--voda-ink-muted);
  margin-bottom: 2px;
}
.pay-cta__total { display: flex; align-items: baseline; gap: 2px; }
.pay-cta__amount {
  font-size: 20px;
  font-weight: 800;
  color: var(--voda-primary);
  font-variant-numeric: tabular-nums;
}
.pay-cta__unit {
  font-size: 12px;
  color: var(--voda-primary);
  font-weight: 600;
}
.pay-cta .voda-btn {
  flex: 1;
  width: 100%;
  padding: 14px 32px;
}

/* 쿠폰 시트 */
.coupon-list { display: flex; flex-direction: column; gap: 8px; }
.coupon-item { display: block; cursor: pointer; }
.coupon-item input { display: none; }
.coupon-item__box {
  padding: 16px;
  border: 1px solid var(--voda-line);
  border-radius: 10px;
  background: #fff;
}
.coupon-item input:checked + .coupon-item__box {
  border-color: var(--voda-primary);
  background: var(--voda-primary-soft);
}
.coupon-item__amount {
  font-size: 20px;
  font-weight: 800;
  color: var(--voda-primary);
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.coupon-item__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--voda-ink);
  margin-bottom: 3px;
}
.coupon-item__hint {
  font-size: 11px;
  color: var(--voda-ink-muted);
}



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

.policy-modal[hidden] {
  display: none;
}

.policy-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.policy-modal__panel {
  position: relative;
  z-index: 1;
  width: min(600px, 100%);
  max-height: min(700px, 90vh);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.policy-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #eee;
}

.policy-modal__header h3 {
  margin: 0;
  font-size: 18px;
}

.policy-modal__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
}

.policy-modal__body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.7;
  color: #333;
}

.policy-modal__body h4 {
  margin: 20px 0 8px;
  font-size: 15px;
}

.policy-modal__body h4:first-child {
  margin-top: 0;
}

.policy-modal__body p {
  margin: 0 0 12px;
}

.policy-modal__footer {
  padding: 12px 20px 20px;
  border-top: 1px solid #eee;
}

body.modal-open {
  overflow: hidden;
}

/* =========================================================
  결제 버튼 반응형
  PC / Mobile 모두 하단 고정 CTA(.pay-cta) 사용
  ========================================================= */

/* 본문 안에 있는 결제 버튼은 모든 화면에서 숨김 */
#btnPayment {
  display: none !important;
}

/* 하단 고정 결제 버튼은 PC와 모바일 모두 표시 */
.payment-app .pay-cta {
  display: flex;
}

.policy-content {
  white-space: pre-line;
}

/* =========================================================
 * 포인트 사용
 * ========================================================= */

 .pay-point-box {
  margin-top: 16px;
}

.pay-point-box__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.pay-point-box__title {
  font-weight: 600;
}

.pay-point-box__balance {
  font-size: 14px;
  color: var(--voda-ink-muted);
}

.pay-point-box__input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pay-point-box__input {
  flex: 1;
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  text-align: right;
  box-sizing: border-box;
}

.pay-point-box__input:focus {
  outline: none;
  border-color: var(--voda-primary);
}

.pay-point-box__unit {
  flex: 0 0 auto;
  font-weight: 600;
}

.pay-point-box__all {
  flex: 0 0 auto;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.pay-point-box__hint {
  margin-top: 7px;
  font-size: 13px;
  color: var(--voda-ink-muted);
}
