/* ── NorthFlame Checkout — matches northflame.ca aesthetic ───── */

#nfc-checkout-wrap {
  max-width: 640px;
  margin: 0 auto 4rem;
  font-family: inherit;
  color: #111;
}

/* Test mode banner */
#nfc-test-banner {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: .85rem;
  color: #92400e;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* ── Product header ─────────────────────────────────────────── */
#nfc-product-header {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

#nfc-product-header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 1.1rem;
  overflow: hidden;
}

#nfc-product-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  flex-shrink: 0;
  border: 1px solid #e5e5e5;
  max-width: 72px;
  max-height: 72px;
  display: block;
}

#nfc-product-header-text {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex: 1;
}

#nfc-product-header-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}

#nfc-product-header-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: #111;
  white-space: nowrap;
  flex-shrink: 0;
}

#nfc-product-header-price span {
  font-size: .85rem;
  font-weight: 600;
  color: #555;
}

#nfc-header-divider {
  height: 2px;
  background: #111;
}

@media (max-width: 400px) {
  #nfc-product-thumb { width: 56px; height: 56px; }
}

/* ── Form steps ─────────────────────────────────────────────── */
.nfc-step h3 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #111;
  margin: 0 0 1.5rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid #e5e5e5;
}

.nfc-field {
  margin-bottom: 1rem;
}

.nfc-field label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #333;
  margin-bottom: .4rem;
}

.nfc-req    { color: #111; }
.nfc-optional { font-weight: 400; text-transform: none; letter-spacing: 0; color: #999; font-size: .8rem; }

.nfc-field input,
.nfc-field select,
.nfc-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #d1d1d1;
  border-radius: 4px;
  font-size: .95rem;
  box-sizing: border-box;
  background: #fff;
  color: #111;
  transition: border-color .15s;
  font-family: inherit;
}

.nfc-field input:focus,
.nfc-field select:focus,
.nfc-field textarea:focus {
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 2px rgba(17,17,17,.08);
}

/* Grid layouts */
.nfc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.nfc-row-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.nfc-row-qty {
  grid-template-columns: 120px 1fr;
  align-items: end;
}

@media (max-width: 540px) {
  .nfc-row,
  .nfc-row-3 { grid-template-columns: 1fr; }
  .nfc-row-qty { grid-template-columns: 100px 1fr; }
}

/* Total display */
.nfc-total {
  font-size: 1.3rem;
  font-weight: 800;
  color: #111;
  padding: 10px 0 9px;
  border-bottom: 1.5px solid #d1d1d1;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.nfc-btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  background: #111;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: background .15s;
  text-align: center;
  font-family: inherit;
  letter-spacing: .02em;
}

.nfc-btn-primary:hover:not(:disabled) { background: #333; }
.nfc-btn-primary:disabled { opacity: .5; cursor: not-allowed; }

.nfc-btn-ghost {
  display: inline-block;
  background: none;
  border: 1.5px solid #d1d1d1;
  color: #555;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: .9rem;
  cursor: pointer;
  margin-top: .75rem;
  transition: border-color .15s, color .15s;
  text-decoration: none;
  font-family: inherit;
}
.nfc-btn-ghost:hover { border-color: #111; color: #111; }

/* ── Order review (step 2) ───────────────────────────────────── */
.nfc-review-box {
  border: 1.5px solid #e5e5e5;
  border-radius: 4px;
  padding: .85rem 1rem;
  margin-bottom: 1.25rem;
  font-size: .9rem;
}

.nfc-review-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .25rem 0;
  color: #555;
}

.nfc-review-total {
  border-top: 1px solid #e5e5e5;
  margin-top: .35rem;
  padding-top: .5rem;
  font-weight: 700;
  color: #111;
  font-size: 1rem;
}

/* Payment element */
#nfc-payment-element {
  padding: 12px;
  border: 1.5px solid #d1d1d1;
  border-radius: 4px;
  background: #fff;
  min-height: 80px;
}

/* Error */
.nfc-error {
  background: #fff5f5;
  color: #c0392b;
  border: 1px solid #fcc;
  border-radius: 4px;
  padding: 10px 14px;
  margin-top: .75rem;
  font-size: .88rem;
}

/* Spinner */
.nfc-spinner {
  display: inline-block;
  width: 17px;
  height: 17px;
  border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: nfc-spin .65s linear infinite;
  vertical-align: middle;
}
@keyframes nfc-spin { to { transform: rotate(360deg); } }

/* Secure note */
.nfc-secure-note {
  text-align: center;
  font-size: .78rem;
  color: #aaa;
  margin-top: .85rem;
}

/* ── Success screen ──────────────────────────────────────────── */
#nfc-step-3 {
  text-align: center;
  padding: 4rem 1rem;
}

.nfc-success-icon { font-size: 3rem; margin-bottom: .75rem; }

#nfc-step-3 h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: .75rem;
  color: #111;
}

#nfc-step-3 p {
  font-size: 1rem;
  color: #555;
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Discount styles ───────────────────────── */
#nfc-price-orig {
  text-decoration: line-through;
  color: #aaa;
  font-size: .85em;
  margin-right: 6px;
}

#nfc-discount-badge {
  display: inline-block;
  background: #dcfce7;
  color: #15803d;
  font-size: .7em;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: .02em;
}

#nfc-discount-note {
  font-size: .82rem;
  color: #15803d;
  margin-top: 5px;
  font-weight: 500;
}
