/* Stripe 결제 샘플 스타일 */

.pay-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  background: #f4f6f9;
  padding: 40px 16px;
  box-sizing: border-box;
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

.pay-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 28px 26px 32px;
  box-sizing: border-box;
}

.pay-title {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 700;
  color: #1a1f36;
  text-align: center;
}

/* 메시지 박스 - 화면 상단 근처 표시 */
.pay-msg {
  margin: 0 0 16px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-all;
}
.pay-msg-info    { background: #eef2ff; color: #3730a3; }
.pay-msg-error   { background: #fef2f2; color: #b91c1c; }
.pay-msg-success { background: #ecfdf5; color: #047857; }

.pay-section { margin-top: 4px; }

.pay-row {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  gap: 8px;
}
.pay-row label {
  width: 72px;
  flex: 0 0 72px;
  font-size: 13px;
  color: #4b5563;
  font-weight: 600;
}
.pay-row input,
.pay-row select {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d7dbe3;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
}
.pay-row input:focus,
.pay-row select:focus {
  border-color: #635bff;
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.12);
}
.pay-unit {
  font-size: 12px;
  color: #9ca3af;
  white-space: nowrap;
}

.pay-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #f7f8fb;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 14px;
  color: #1a1f36;
}
.pay-summary strong { font-size: 16px; color: #635bff; }

.pay-element {
  margin-bottom: 18px;
  min-height: 40px;
}

.pay-btn {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
.pay-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.pay-btn-main {
  background: #635bff;
  color: #fff;
}
.pay-btn-main:hover:not(:disabled) { background: #5249e0; }

.pay-btn-sub {
  background: #fff;
  color: #6b7280;
  border: 1px solid #d7dbe3;
  margin-top: 10px;
}
.pay-btn-sub:hover:not(:disabled) { background: #f7f8fb; }

.pay-test-info {
  margin-top: 16px;
  font-size: 11px;
  color: #9ca3af;
  text-align: center;
  line-height: 1.6;
}

/* 완료 화면 */
.pay-done { text-align: center; padding: 16px 0; }
.pay-check {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #10b981;
  font-size: 34px;
  line-height: 64px;
  font-weight: 700;
}
.pay-done h3 { margin: 0 0 10px; color: #1a1f36; }
.pay-done-id {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 22px;
  word-break: break-all;
}

/* 흐름 모드 배지 (direct/proxy) */
.pay-flow-badge {
  display: block;
  margin: -8px 0 14px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #1d4ed8;
  background: #eff6ff;
  border-radius: 20px;
  padding: 4px 12px;
}
