/* Payment choice layout. Existing typefaces are inherited unchanged. */

.ph-storefront-root .ph-payment-method-selector {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 9px !important;
  width: 100%;
  min-width: 0;
}

.ph-storefront-root .ph-pay-tab-btn {
  display: flex !important;
  min-width: 0 !important;
  min-height: 58px !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-direction: row !important;
  gap: 9px !important;
  padding: 11px 13px !important;
  border: 1px solid var(--commerce-border) !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: var(--commerce-muted) !important;
  font-size: 12px !important;
  font-weight: 800;
  line-height: 1.35;
  text-align: left !important;
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: break-word;
  writing-mode: horizontal-tb !important;
}

.ph-storefront-root .ph-pay-tab-btn > * {
  min-width: 0;
  writing-mode: horizontal-tb !important;
}

.ph-storefront-root .ph-pay-tab-btn svg {
  flex: 0 0 auto;
}

.ph-storefront-root .ph-pay-tab-btn:hover {
  border-color: var(--commerce-accent) !important;
  background: #f8fbf9 !important;
}

.ph-storefront-root .ph-pay-tab-btn.active,
.ph-storefront-root .ph-pay-tab-btn[aria-pressed="true"] {
  border-color: var(--commerce-accent-strong) !important;
  background: var(--commerce-surface-accent) !important;
  color: var(--commerce-ink) !important;
  box-shadow: inset 0 0 0 1px var(--commerce-accent-strong);
}

.ph-storefront-root .ph-pay-method-panel {
  display: grid;
  gap: 13px;
  margin-top: 1px;
  padding: 17px !important;
  background: linear-gradient(145deg, #f8fbf9, #fff) !important;
}

.ph-storefront-root .ph-panel-badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--commerce-surface-soft);
  color: var(--commerce-accent-strong);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
  white-space: normal;
}

.ph-storefront-root .ph-panel-badge.npay {
  background: #e8f8ee;
  color: #087a42;
}

.ph-storefront-root .ph-panel-desc,
.ph-storefront-root .ph-toss-subhint,
.ph-storefront-root .ph-bank-subnote {
  margin: 0;
  color: var(--commerce-muted) !important;
  font-size: 12px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.ph-storefront-root .ph-panel-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 9px !important;
}

.ph-storefront-root :where(
  .ph-btn-toss-submit,
  .ph-btn-tossme-submit,
  .ph-btn-bank-submit,
  .ph-btn-naver-submit,
  .ph-btn-kakao-submit,
  .ph-btn-copy-account,
  .ph-btn-outline-action,
  .ph-btn-primary-action
) {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  min-height: 52px !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px !important;
  border-radius: 14px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  word-break: keep-all;
}

.ph-storefront-root .ph-bank-direct-info {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--commerce-border);
  border-radius: 14px;
  background: var(--commerce-surface-soft);
}

.ph-storefront-root .ph-bank-row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.ph-storefront-root .ph-bank-row .ph-lbl {
  color: var(--commerce-faint);
  font-size: 11px;
  font-weight: 800;
}

.ph-storefront-root .ph-acc-highlight,
.ph-storefront-root .ph-bank-num {
  color: var(--commerce-ink) !important;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.ph-storefront-root .ph-btn-copy-mini {
  min-width: 44px;
  min-height: 40px;
  border: 1px solid var(--commerce-border);
  border-radius: 10px;
  background: #fff;
  color: var(--commerce-muted);
}

.ph-storefront-root .ph-cash-receipt-toggle,
.ph-storefront-root .ph-checkbox-label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--commerce-muted);
  line-height: 1.45;
}

.ph-storefront-root .ph-bank-account-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  background: var(--commerce-surface-soft);
}
