/**
 * MR-2026-09-002 STEP 10 — Shared booking payment-choice chrome.
 * Foundation: car reserve #paymentChoices .radio-pill (お支払方法).
 * UI selection only. Provider tokenize / capture / redirect stay outside.
 * CAR ONLY (Paid fields / Paysys handoff / Yahoo copy) stay outside this module.
 */

.booking-payment-host,
.booking-payment-choice,
.nbp-shell {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  box-sizing: border-box;
}

.nbp-shell {
  display: grid;
  gap: 0;
}

.nbp-title {
  margin: 0 0 0.65rem;
  font-size: 18px;
  font-weight: 900;
  color: var(--accent, #0f6b5c);
  line-height: 1.4;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line, #cfd9e0);
}

.nbp-lead {
  margin: 0 0 1rem;
  color: var(--ink-muted, #5a6b78);
  font-size: 14px;
  line-height: 1.55;
}

.nbp-choices,
#paymentChoices.nbp-choices,
.booking-payment-shared-fields.nbp-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
}

.nbp-choice,
.booking-payment-shared-fields.nbp-choice,
#paymentChoices .nbp-choice {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line, #cfd9e0);
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  max-width: 100%;
  background: #fff;
  color: var(--ink, #1a2836);
  box-sizing: border-box;
  text-align: left;
  min-height: 48px;
}

.nbp-choice:has(input:checked),
.nbp-choice.is-selected,
#paymentChoices .nbp-choice:has(input:checked) {
  border-color: var(--accent, #0f6b5c);
  background: var(--accent-soft, #e8f5f1);
  font-weight: 700;
}

.nbp-choice input {
  width: auto;
  margin: 3px 0 0;
  flex: 0 0 auto;
}

.nbp-choice-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.nbp-choice-label {
  font-weight: inherit;
}

.nbp-choice-desc {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted, #5a6b78);
  line-height: 1.45;
}

.nbp-choice.is-disabled,
.nbp-choice.payment-disabled,
#paymentChoices .nbp-choice.payment-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.nbp-choice.is-hidden {
  display: none !important;
}

.nbp-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #eef2f6;
  color: var(--ink-muted, #5a6b78);
  font-size: 11px;
  font-weight: 700;
}

.nbp-notice {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--line, #cfd9e0);
  border-radius: 12px;
  background: #f7fafc;
  font-size: 13px;
  color: var(--ink-muted, #5a6b78);
  line-height: 1.5;
}

.nbp-notice.is-warn {
  background: #fffbeb;
  border-color: #fde68a;
}

.nbp-single {
  margin: 0 0 12px;
  padding: 14px;
  border: 1px solid var(--line, #cfd9e0);
  border-radius: 12px;
  background: var(--accent-soft, #e8f5f1);
  font-weight: 800;
  color: var(--ink, #1a2836);
}

.nbp-field-err {
  color: var(--bad, #b42318);
  font-size: 0.95rem;
  margin: 6px 0 0;
  min-height: 1.2em;
}

.nbp-nav {
  display: flex;
  gap: 0.55rem;
  margin-top: 1.1rem;
  flex-wrap: wrap;
}

.nbp-nav .btn {
  width: auto;
  min-width: 7rem;
  flex: 1;
  margin: 0;
  text-align: center;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-btn, 999px);
  border: 1px solid var(--line, #cfd9e0);
  background: #fff;
  cursor: pointer;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nbp-nav .btn.primary {
  background: var(--accent, #0f6b5c);
  color: #fff;
  border-color: var(--accent, #0f6b5c);
}

.nbp-nav .btn.ghost {
  background: #fff;
  border: 1px solid var(--accent, #0f6b5c);
  color: var(--accent, #0f6b5c);
}

.nbp-nav .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.nbp-empty {
  margin: 0 0 12px;
  color: var(--ink-muted, #5a6b78);
  font-size: 14px;
}

@media (max-width: 480px) {
  .nbp-choice,
  #paymentChoices .nbp-choice {
    flex: 1 1 100%;
  }
}


/* Car remount alias: shared choice also carries .radio-pill */
#paymentChoices .radio-pill.nbp-choice,
.nbp-choices .radio-pill.nbp-choice {
  /* styles inherited from .nbp-choice */
}

/* I150 — clearer payment selection (PC/mobile) */
.nbp-choices,
#paymentChoices.nbp-choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.nbp-choice,
.booking-payment-shared-fields.nbp-choice,
#paymentChoices .nbp-choice {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.nbp-choice.is-selected {
  box-shadow: inset 0 0 0 1px var(--accent, #0f6b5c);
}
@media (min-width: 640px) {
  .nbp-choices,
  #paymentChoices.nbp-choices {
    grid-template-columns: 1fr 1fr;
  }
}
