.nco-wrap,
.nco-wrap * { box-sizing: border-box; }

.nco-wrap {
  --nco-green: #075f43;
  --nco-green-2: #0a7653;
  --nco-yellow: #f7bd32;
  --nco-ink: #192824;
  --nco-muted: #73807b;
  --nco-line: #dbe2df;
  --nco-cream: #fffaf0;
  width: min(100%, 980px);
  margin: 28px auto;
  padding: clamp(20px, 4vw, 42px);
  border: 1px solid #ebe1ce;
  border-radius: 38px;
  background: var(--nco-cream);
  color: var(--nco-ink);
  font-family: inherit;
  box-shadow: 0 16px 45px rgba(36, 52, 46, .05);
}

.nco-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  margin-bottom: 34px;
  border: 1px solid var(--nco-line);
  border-radius: 18px;
  background: #fff;
}

.nco-tab {
  min-height: 48px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--nco-muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
}

.nco-tab.is-active {
  background: #e8f3ee;
  color: var(--nco-green);
}

.nco-panel { animation: ncoFade .25s ease; }
@keyframes ncoFade { from { opacity: .3; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.nco-kicker { color: var(--nco-green); font-weight: 900; margin-bottom: 10px; }
.nco-wrap h2 { margin: 0; font-size: clamp(27px, 4vw, 42px); line-height: 1.4; color: var(--nco-ink); }
.nco-lead { margin: 8px 0 28px; color: var(--nco-muted); font-size: 16px; line-height: 2; }

.nco-product-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.nco-product-summary > div {
  padding: 17px 19px;
  border: 1px solid var(--nco-line);
  border-radius: 16px;
  background: rgba(255,255,255,.75);
}
.nco-product-summary span { display: block; color: var(--nco-muted); font-size: 13px; margin-bottom: 5px; }
.nco-product-summary strong { font-size: 16px; }

.nco-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nco-field { display: block; margin-bottom: 20px; }
.nco-field > span { display: block; margin: 0 4px 8px; font-weight: 850; }
.nco-field b { color: #b4433d; }
.nco-field small { color: var(--nco-muted); font-weight: 500; }

.nco-field input,
.nco-field textarea {
  width: 100%;
  min-height: 58px;
  padding: 14px 17px;
  border: 1px solid #d5ddda;
  border-radius: 14px;
  outline: 0;
  background: #fff;
  color: var(--nco-ink);
  font: inherit;
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.nco-field textarea { resize: vertical; min-height: 128px; }
.nco-field input:focus,
.nco-field textarea:focus { border-color: var(--nco-green-2); box-shadow: 0 0 0 4px rgba(10,118,83,.10); }

.nco-pay-title { font-weight: 900; margin: 4px 0 10px; }
.nco-card-box {
  overflow: hidden;
  margin-bottom: 18px;
  border-radius: 22px;
  background: linear-gradient(145deg, var(--nco-green), #064f39);
  color: #fff;
}
.nco-card-head,
.nco-card-row { display: flex; align-items: center; gap: 14px; padding: 17px 20px; }
.nco-card-head { justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.16); font-weight: 900; }
.nco-card-head small { opacity: .75; }
.nco-card-row { border-bottom: 1px solid rgba(255,255,255,.13); }
.nco-card-row:last-child { border-bottom: 0; }
.nco-card-row > span { opacity: .72; min-width: 90px; }
.nco-card-row strong { flex: 1; font-size: 17px; letter-spacing: .2px; }
.nco-copy,
.nco-copy-code {
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  background: rgba(255,255,255,.1);
  color: inherit;
  padding: 9px 13px;
  font: inherit;
  cursor: pointer;
}

.nco-upload {
  display: flex;
  min-height: 220px;
  margin: 16px 0 22px;
  padding: 22px;
  border: 2px dashed #a9bab3;
  border-radius: 24px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  cursor: pointer;
  transition: .2s;
}
.nco-upload:hover { border-color: var(--nco-green-2); background: #fbfffd; }
.nco-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nco-upload-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 14px; border-radius: 15px; background: #e6f3ed; color: var(--nco-green); font-size: 31px; }
.nco-upload strong { font-size: 17px; }
.nco-upload small { margin-top: 6px; color: var(--nco-muted); }
.nco-upload em { margin-top: 13px; color: var(--nco-green-2); font-style: normal; }
.nco-preview { display: block; max-width: min(100%, 360px); max-height: 340px; margin-top: 18px; border-radius: 14px; object-fit: contain; box-shadow: 0 8px 26px rgba(0,0,0,.08); }

.nco-consent { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 20px; color: #4d5d57; line-height: 1.8; cursor: pointer; }
.nco-consent input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--nco-green); flex: 0 0 auto; }

.nco-submit {
  width: 100%;
  min-height: 64px;
  border: 0;
  border-radius: 17px;
  background: var(--nco-yellow);
  color: #14251f;
  font: inherit;
  font-size: 19px;
  font-weight: 950;
  cursor: pointer;
  transition: transform .2s, filter .2s;
}
.nco-submit:hover { filter: brightness(.98); transform: translateY(-1px); }
.nco-submit:disabled { opacity: .65; cursor: wait; transform: none; }
.nco-submit--green { background: var(--nco-green); color: #fff; }

.nco-message { margin: 12px 0; }
.nco-message.is-error { padding: 13px 15px; border: 1px solid #f0c8c5; border-radius: 12px; background: #fff2f1; color: #9b302a; }
.nco-success-card {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 20px;
  border: 1px solid #b8d8ca;
  border-radius: 18px;
  background: #effaf5;
  text-align: center;
}
.nco-success-card strong { color: var(--nco-green); }
.nco-success-card span { color: var(--nco-muted); }
.nco-success-card code { display: block; font-size: 24px; font-weight: 900; color: var(--nco-ink); background: transparent; }
.nco-copy-code { justify-self: center; color: var(--nco-green); border-color: #a9cabd; background: #fff; }

.nco-track-result { margin-top: 20px; padding: 20px; border: 1px solid var(--nco-line); border-radius: 18px; background: #fff; }
.nco-status-badge { padding: 13px 16px; border-radius: 12px; background: #fff2d8; color: #7b5200; font-weight: 900; text-align: center; }
.nco-status-badge.status-processing,
.nco-status-badge.status-completed { background: #e9f7ef; color: #07613f; }
.nco-status-badge.status-cancelled,
.nco-status-badge.status-failed { background: #fff0ef; color: #9b302a; }
.nco-track-result dl { margin: 16px 0 0; }
.nco-track-result dl > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid #edf0ef; }
.nco-track-result dl > div:last-child { border-bottom: 0; }
.nco-track-result dt { color: var(--nco-muted); }
.nco-track-result dd { margin: 0; font-weight: 750; }
.nco-hp { position: absolute !important; inset-inline-start: -9999px !important; }

@media (max-width: 720px) {
  .nco-wrap { margin: 14px auto; padding: 20px 14px 24px; border-radius: 24px; }
  .nco-tabs { margin-bottom: 24px; }
  .nco-grid,
  .nco-product-summary { grid-template-columns: 1fr; }
  .nco-card-head,
  .nco-card-row { padding: 15px; gap: 9px; }
  .nco-card-row { flex-wrap: wrap; }
  .nco-card-row > span { min-width: 100%; }
  .nco-card-row strong { font-size: 16px; word-break: break-word; }
  .nco-copy { margin-inline-start: auto; }
  .nco-upload { min-height: 190px; padding: 18px 12px; }
  .nco-submit { min-height: 58px; }
  .nco-track-result dl > div { grid-template-columns: 1fr; gap: 3px; }
}
