/*!
 * bank-transfer.css
 * ----------------------------------------------------------------------------
 * 무통장입금 모달 / 입금안내 카드 / 상태뱃지 / 재방문 배너 스타일.
 * 계약서 8항 디자인 토큰을 var(--brand, #143A6B) 형태 폴백과 함께 사용한다.
 * 코랄(--accent)은 화면당 주 CTA 1개(신청 제출 버튼)에만 적용한다.
 * 모바일 우선 설계, 터치 타깃 44px 이상.
 */

/* ---------------------------------------------------------------------
 * 모달 오버레이 / 컨테이너
 * --------------------------------------------------------------------- */
.bt-noscroll {
  overflow: hidden;
}

.bt-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
  padding: 0;
}

.bt-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius, 12px) var(--radius, 12px) 0 0;
  padding: 24px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.18);
}

@media (min-width: 640px) {
  .bt-overlay {
    align-items: center;
  }
  .bt-modal {
    border-radius: var(--radius, 12px);
    padding: 28px 28px 24px;
  }
}

.bt-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--text, #334155);
  cursor: pointer;
}

.bt-modal__close:hover,
.bt-modal__close:focus-visible {
  background: var(--surface, #F7F8FA);
  outline: 2px solid var(--brand-link, #2E5FD0);
  outline-offset: 2px;
}

.bt-body {
  color: var(--text, #334155);
  line-height: 1.7;
}

.bt-title {
  margin: 0 0 16px;
  font-size: 19px;
  font-weight: 700;
  color: var(--text-strong, #0F172A);
  padding-right: 32px;
}

/* ---------------------------------------------------------------------
 * 상품 요약
 * --------------------------------------------------------------------- */
.bt-product {
  background: var(--surface, #F7F8FA);
  border: 1px solid var(--border, #E2E5EB);
  border-radius: var(--radius, 12px);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.bt-product__name {
  font-size: 14px;
  color: var(--text, #334155);
  margin-bottom: 4px;
}

.bt-product__amount {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-strong, #0F172A);
  display: flex;
  align-items: center;
  gap: 8px;
}

.bt-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand, #143A6B);
  background: rgba(20, 58, 107, 0.08);
  border-radius: 999px;
  padding: 3px 9px;
}

/* ---------------------------------------------------------------------
 * 폼
 * --------------------------------------------------------------------- */
.bt-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bt-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-strong, #0F172A);
}

.bt-field em {
  color: var(--danger, #DC2626);
  font-style: normal;
}

.bt-field input {
  min-height: 44px;
  font-size: 16px; /* iOS 확대 방지 */
  font-weight: 400;
  padding: 0 12px;
  border: 1px solid var(--border, #E2E5EB);
  border-radius: 8px;
  color: var(--text-strong, #0F172A);
  background: #fff;
}

.bt-field input:focus-visible {
  outline: 2px solid var(--brand-link, #2E5FD0);
  outline-offset: 1px;
}

.bt-field input[readonly] {
  background: var(--surface, #F7F8FA);
  color: var(--text, #334155);
}

.bt-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text, #334155);
  cursor: pointer;
  min-height: 44px;
}

.bt-check input {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  accent-color: var(--brand, #143A6B);
}

.bt-check a {
  color: var(--brand-link, #2E5FD0);
}

.bt-hint {
  font-size: 12.5px;
  color: var(--text, #334155);
  opacity: 0.85;
  margin: 0;
}

.bt-hint--ok {
  color: var(--success, #0E7A50);
  opacity: 1;
  font-weight: 600;
}

.bt-hint--warn {
  color: var(--warning, #8A5A00);
  opacity: 1;
  font-weight: 600;
}

.bt-minor-consent:not([hidden]) {
  background: var(--surface, #F7F8FA);
  border: 1px solid var(--border, #E2E5EB);
  border-radius: 8px;
  padding: 10px 12px;
}

.bt-error {
  font-size: 13px;
  font-weight: 600;
  color: var(--danger, #DC2626);
  background: rgba(220, 38, 38, 0.08);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0;
}

/* ---------------------------------------------------------------------
 * 버튼 (코랄 accent 는 주 CTA 1개에만)
 * --------------------------------------------------------------------- */
.bt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

.bt-btn--primary {
  background: var(--accent, #E2431F);
  color: #fff;
  margin-top: 4px;
}

.bt-btn--primary:hover,
.bt-btn--primary:focus-visible {
  filter: brightness(0.94);
  outline: 2px solid var(--brand-link, #2E5FD0);
  outline-offset: 2px;
}

.bt-btn--primary:disabled {
  background: var(--border, #E2E5EB);
  color: var(--text, #334155);
  cursor: not-allowed;
}

.bt-btn--ghost {
  background: #fff;
  color: var(--brand, #143A6B);
  border: 1px solid var(--brand, #143A6B);
  min-height: 44px;
  width: auto;
  padding: 0 14px;
}

.bt-btn--ghost:hover,
.bt-btn--ghost:focus-visible {
  background: var(--surface, #F7F8FA);
}

/* ---------------------------------------------------------------------
 * 입금 안내 카드 (강조)
 * --------------------------------------------------------------------- */
.bt-account-card {
  border: 1.5px solid var(--brand, #143A6B);
  border-radius: var(--radius, 12px);
  background: linear-gradient(180deg, rgba(20, 58, 107, 0.05), rgba(20, 58, 107, 0));
  padding: 4px 16px;
  margin: 16px 0;
}

.bt-account-card__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border, #E2E5EB);
  font-size: 14px;
}

.bt-account-card__row:last-child {
  border-bottom: none;
}

.bt-account-card__row span {
  flex: 0 0 64px;
  color: var(--text, #334155);
}

.bt-account-card__row strong {
  flex: 1;
  color: var(--text-strong, #0F172A);
  font-size: 15px;
  word-break: break-all;
}

.bt-copy {
  flex: 0 0 auto;
  min-width: 56px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--brand, #143A6B);
  background: #fff;
  color: var(--brand, #143A6B);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.bt-copy:hover,
.bt-copy:focus-visible {
  background: var(--brand, #143A6B);
  color: #fff;
  outline: 2px solid var(--brand-link, #2E5FD0);
  outline-offset: 2px;
}

.bt-callout {
  background: rgba(226, 67, 31, 0.08);
  border-left: 3px solid var(--accent, #E2431F);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13.5px;
  color: var(--text-strong, #0F172A);
  margin: 12px 0;
}

.bt-fallback-hint {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--text, #334155);
  text-align: center;
}

.bt-fallback-hint a {
  color: var(--brand-link, #2E5FD0);
  font-weight: 700;
}

/* ---------------------------------------------------------------------
 * 상태 뱃지
 * --------------------------------------------------------------------- */
.bt-status-badge {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 12px;
  margin: 4px 0 12px;
}

.bt-status-badge--wait {
  background: rgba(138, 90, 0, 0.12);
  color: var(--warning, #8A5A00);
}

.bt-status-badge--paid {
  background: rgba(14, 122, 80, 0.12);
  color: var(--success, #0E7A50);
}

.bt-status-badge--expired,
.bt-status-badge--cancel {
  background: rgba(220, 38, 38, 0.10);
  color: var(--danger, #DC2626);
}

/* ---------------------------------------------------------------------
 * 상태 조회 결과 목록
 * --------------------------------------------------------------------- */
.bt-status-result {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bt-order-row {
  border: 1px solid var(--border, #E2E5EB);
  border-radius: 8px;
  padding: 10px 12px;
}

.bt-order-row__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.bt-order-row__amount {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong, #0F172A);
}

/* ---------------------------------------------------------------------
 * 재방문 배너 ("입금 안내 다시 보기")
 * --------------------------------------------------------------------- */
.bt-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 9000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: var(--brand, #143A6B);
  color: #fff;
  border-radius: var(--radius, 12px);
  padding: 12px 14px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25);
}

.bt-banner__text {
  flex: 1 1 220px;
  font-size: 13.5px;
  line-height: 1.5;
}

.bt-banner .bt-btn--ghost {
  border-color: #fff;
  color: var(--brand, #143A6B);
  background: #fff;
}

.bt-banner__close {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  border-radius: 50%;
}

.bt-banner__close:hover,
.bt-banner__close:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

@media (min-width: 640px) {
  .bt-banner {
    left: auto;
    right: 20px;
    bottom: 20px;
    max-width: 380px;
  }
}
