/* ==========================================================================
   NK CHECKOUT — self-hosted Payment Element page
   Loaded only on the page holding the [nk_checkout] shortcode.
   ========================================================================== */
.nk-co {
  max-width: 560px;
  margin: 0 auto;
  font-family: inherit;
  color: #222;
  box-sizing: border-box;
}
.nk-co *, .nk-co *::before, .nk-co *::after { box-sizing: border-box; }

/* --- product summary --- */
.nk-co__product {
  display: flex;
  gap: 16px;
  align-items: center;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 22px;
  background: #fff;
}
.nk-co__product-img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}
.nk-co__product-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .2px;
}
.nk-co__product-price { font-size: 24px; font-weight: 700; line-height: 1.2; }
.nk-co__product-sub   { font-size: 13px; color: #777; margin-top: 4px; }

/* --- steps --- */
.nk-co__step {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  color: #888;
  text-transform: uppercase;
  margin: 20px 0 8px;
}
.nk-co__email {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  font-size: 15px;
  background: #fff;
  color: #222;
}
.nk-co__email:focus { outline: none; border-color: #6AA2D9; box-shadow: 0 0 0 3px rgba(106,162,217,.18); }
.nk-co__hint { font-size: 12.5px; color: #888; margin: 7px 0 0; line-height: 1.45; }

.nk-co__pm-note {
  background: #eef4fd;
  color: #1f4e8c;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 14px;
  margin-bottom: 12px;
}

/* --- order bumps --- */
.nk-co__bumps-head {
  margin: 26px 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #1a7f37;
  letter-spacing: .3px;
}
.nk-co__bump {
  border: 2px dashed #46a758;
  border-radius: 10px;
  background: #fdfbe9;
  padding: 14px;
  margin-bottom: 14px;
}
.nk-co__bump.is-added { background: #eefbf0; border-style: solid; }
.nk-co__bump-top { display: flex; gap: 13px; }
.nk-co__bump-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}
.nk-co__bump-title { font-size: 15px; font-weight: 700; margin-bottom: 5px; line-height: 1.3; }
.nk-co__bump-desc  { font-size: 13px; line-height: 1.5; color: #55503f; margin: 0 0 9px; }
.nk-co__bump-prices { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.nk-co__bump-old { font-size: 13.5px; color: #999; text-decoration: line-through; }
.nk-co__bump-pct {
  background: #d63638;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}
.nk-co__bump-new { font-size: 17px; font-weight: 700; color: #1a1a1a; }
.nk-co__bump-add {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 12px;
  padding: 13px 15px;
  background: #fff;
  border: 1px solid #46a758;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14.5px;
  color: #1a7f37;
}
.nk-co__bump-cb { width: 19px; height: 19px; accent-color: #46a758; cursor: pointer; flex-shrink: 0; }

/* --- totals & pay --- */
.nk-co__secure { text-align: center; font-size: 12.5px; color: #777; margin: 18px 0 12px; }
.nk-co__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 15px;
  background: #fafafa;
}
.nk-co__total strong { font-size: 21px; }
.nk-co__guarantee {
  margin-top: 10px;
  padding: 11px 14px;
  background: #eefbf0;
  border-radius: 8px;
  font-size: 13.5px;
  color: #1a7f37;
}
.nk-co__pay {
  width: 100%;
  margin-top: 14px;
  padding: 17px 20px;
  border: 0;
  border-radius: 8px;
  background: #0570de;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s ease;
}
.nk-co__pay:hover:not(:disabled) { background: #0459b8; }
.nk-co__pay:disabled { opacity: .6; cursor: default; }

.nk-co__msg { margin-top: 12px; font-size: 14px; min-height: 20px; text-align: center; }
.nk-co__msg.is-error { color: #d63638; }

.nk-co__footer { margin-top: 16px; font-size: 12px; color: #999; text-align: center; line-height: 1.5; }

@media (max-width: 480px) {
  .nk-co__product { padding: 13px; gap: 12px; }
  .nk-co__product-img { width: 62px; height: 62px; }
  .nk-co__product-price { font-size: 21px; }
  .nk-co__bump-img { width: 54px; height: 54px; }
}

/* --- outcome banners (after returning from Stripe) --- */
.nk-co__alert { border-radius: 8px; padding: 13px 16px; margin: 0 0 18px; font-size: 14px; line-height: 1.5; }
.nk-co__alert--error { background: #fdecec; border: 1px solid #f1b0b0; color: #8a1c1c; }
.nk-co__alert--info  { background: #eef4fd; border: 1px solid #b9d0f0; color: #1f4e8c; }
