/* ===========================================================
   TRANSACT PAGE
   Reuses design tokens (--cs-*) and shell layout classes
   (.cs-app, .cs-shell, .cs-frame, .cs-main, .cs-main-primary,
   .cs-main-rail, .cs-section-head, .cs-error-state, etc.) that
   are defined in dashboard.css. Load dashboard.css on this page
   too — this file only adds what's specific to Transact.
   =========================================================== */

/* ---------- mode toggle ---------- */

.cs-transact-toggle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--cs-cloud-100);
  border-radius: var(--cs-radius-md);
  padding: 5px;
}

.cs-transact-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  background: none;
  color: var(--cs-slate-600);
  font-family: var(--cs-font-body);
  font-weight: 600;
  font-size: 11.5px;
  line-height: 1.2;
  padding: 10px 6px;
  border-radius: calc(var(--cs-radius-md) - 4px);
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.cs-transact-toggle-btn.is-active {
  background: var(--cs-white);
  color: var(--cs-brand-700);
  box-shadow: 0 4px 14px -6px rgba(8, 42, 99, 0.25);
}

/* ---------- form card ---------- */

.cs-transact-card {
  background: var(--cs-white);
  border: 1px solid var(--cs-cloud-200);
  border-radius: var(--cs-radius-lg);
  padding: 20px;
}

.cs-transact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---------- fields (page-local, cs-prefixed so they don't
   collide with any global auth/form styles elsewhere) ---------- */

.cs-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cs-field-group--hidden {
  display: none;
}

.cs-field-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cs-ink-950);
}

.cs-field-optional {
  font-weight: 400;
  color: var(--cs-slate-400);
}

.cs-field-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cs-cloud-50);
  border: 1px solid var(--cs-cloud-200);
  border-radius: var(--cs-radius-sm);
  padding: 0 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cs-field-input-wrap:focus-within {
  border-color: var(--cs-brand-500);
  background: var(--cs-white);
}

.cs-field-icon {
  color: var(--cs-brand-600);
  flex: none;
}

.cs-field-prefix {
  flex: none;
  font-family: var(--cs-font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--cs-slate-600);
}

.cs-field-input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: none;
  outline: none;
  padding: 11px 0;
  font-family: var(--cs-font-body);
  font-size: 14px;
  color: var(--cs-ink-950);
}

.cs-field-input:disabled {
  color: var(--cs-slate-600);
  -webkit-text-fill-color: var(--cs-slate-600);
  opacity: 1;
}

.cs-field-input::placeholder {
  color: var(--cs-slate-400);
}

.cs-field-hint {
  font-size: 11.5px;
  color: var(--cs-slate-400);
  line-height: 1.4;
}

/* ---------- warning banner (pay-to-phone irreversibility notice) ---------- */

.cs-warning-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fff4e8;
  border: 1px solid #f3d9b3;
  border-radius: var(--cs-radius-sm);
  padding: 10px 12px;
  margin-top: 4px;
}

.cs-warning-icon {
  flex: none;
  color: var(--cs-gold-400);
  margin-top: 1px;
}

.cs-warning-banner span:last-child {
  font-size: 12px;
  line-height: 1.5;
  color: #7a4a12;
}

/* ---------- fee summary (live, inside the form) ---------- */

.cs-fee-summary {
  background: var(--cs-cloud-100);
  border-radius: var(--cs-radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cs-fee-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--cs-slate-600);
}

.cs-fee-summary-row--total {
  padding-top: 6px;
  border-top: 1px dashed var(--cs-cloud-200);
  font-family: var(--cs-font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--cs-ink-950);
}

/* ---------- PIN boxes ---------- */

.cs-pin-row {
  display: flex;
  gap: 10px;
}

.cs-pin-box {
  width: 52px;
  height: 56px;
  border: 1px solid var(--cs-cloud-200);
  border-radius: var(--cs-radius-sm);
  background: var(--cs-cloud-50);
  text-align: center;
  font-family: var(--cs-font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--cs-ink-950);
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cs-pin-box:focus {
  border-color: var(--cs-brand-500);
  background: var(--cs-white);
}

/* ---------- submit button ---------- */

.cs-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  background: linear-gradient(135deg, var(--cs-brand-600), var(--cs-brand-800));
  color: var(--cs-white);
  font-family: var(--cs-font-display);
  font-weight: 700;
  font-size: 14px;
  padding: 14px 20px;
  border-radius: var(--cs-radius-pill);
  cursor: pointer;
  margin-top: 4px;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.cs-submit-btn:hover {
  transform: translateY(-1px);
}

.cs-submit-btn:disabled,
.cs-submit-btn.is-loading {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ---------- fee table card (rail on desktop, stacked on mobile) ---------- */

.cs-fee-table-card {
  background: var(--cs-white);
  border: 1px solid var(--cs-cloud-200);
  border-radius: var(--cs-radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cs-fee-table {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 320px;
  overflow-y: auto;
  border-top: 1px solid var(--cs-cloud-200);
}

.cs-fee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 2px;
  border-bottom: 1px solid var(--cs-cloud-100);
  font-size: 12.5px;
}

.cs-fee-range {
  color: var(--cs-slate-600);
}

.cs-fee-amount {
  font-family: var(--cs-font-display);
  font-weight: 700;
  color: var(--cs-ink-950);
}

.cs-fee-note {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--cs-slate-400);
}

/* ---------- important information card ---------- */

.cs-info-card {
  background: var(--cs-cloud-100);
  border: 1px solid var(--cs-cloud-200);
  border-radius: var(--cs-radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cs-info-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cs-info-card-icon {
  color: var(--cs-brand-700);
}

.cs-info-card-head h2 {
  margin: 0;
  font-family: var(--cs-font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--cs-ink-950);
}

.cs-info-card-lead {
  margin: 0;
  font-size: 12.5px;
  color: var(--cs-slate-600);
  line-height: 1.5;
}

.cs-info-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-info-list li {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--cs-ink-950);
}

/* ---------- generic hide utility ---------- */

.cs-hidden {
  display: none !important;
}

/* ---------- deposit guide wrapper ---------- */

.cs-deposit-guide {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---------- manual deposit steps ---------- */

.cs-steps-card {
  background: var(--cs-white);
  border: 1px solid var(--cs-cloud-200);
  border-radius: var(--cs-radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cs-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cs-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cs-step-index {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cs-cloud-100);
  color: var(--cs-brand-700);
  font-family: var(--cs-font-display);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-step-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 3px;
}

.cs-step-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--cs-ink-950);
}

.cs-step-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--cs-slate-600);
}

.cs-steps-note {
  margin: 0;
  padding-top: 10px;
  border-top: 1px dashed var(--cs-cloud-200);
  font-size: 12px;
  color: var(--cs-slate-400);
  line-height: 1.5;
}

/* ---------- paybill sticker ---------- */

.cs-sticker {
  width: min(100%, 520px);
  max-width: 520px;
  margin: 0 auto;
  border-radius: var(--cs-radius-lg);
  overflow: hidden;
  background: var(--cs-white);
  box-shadow: var(--cs-shadow-card);
  border: 1px solid var(--cs-cloud-200);
}

.cs-sticker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 22px;
  background: linear-gradient(
    135deg,
    var(--cs-brand-600),
    var(--cs-brand-800)
  );
  color: var(--cs-white);
}

.cs-sticker-title {
  font-family: var(--cs-font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.02em;
  text-align:center;
}

.cs-sticker-title strong {
  font-weight: 800;
}

.cs-sticker-mark {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-sticker-subbar {
  background: var(--cs-ink-950);
  color: var(--cs-white);
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
  padding: 7px 12px;
  letter-spacing: 0.02em;
}

/* Main sticker content */
.cs-sticker-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.cs-sticker-section-label {
  font-family: var(--cs-font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--cs-brand-700);
  letter-spacing: 0.01em;
  text-align: center;
}

.cs-sticker-digit-row {
  display: flex;
  justify-content: center;
  gap: 0;
  border: 1px solid var(--cs-ink-950);
  border-radius: 6px;
  overflow: hidden;
  width: fit-content;
  margin-bottom: 4px;
}

.cs-sticker-digit-box {
  width: 34px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--cs-font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--cs-ink-950);
  border-right: 1px solid var(--cs-cloud-200);
}

.cs-sticker-digit-box:last-child {
  border-right: none;
}

.cs-sticker-business-row {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--cs-ink-950);
  border-radius: 6px;
  padding: 9px 12px;
  text-align: center;
}

.cs-sticker-business-label {
  flex: none;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--cs-slate-600);
}

.cs-sticker-business-value {
  font-family: var(--cs-font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--cs-ink-950);
  overflow-wrap: anywhere;
}

/* ---------- INNER FOOTER BAR ---------- */

.cs-sticker-footer-bar {
  width: calc(100% - 44px);
  margin: 0 22px 12px;
  box-sizing: border-box;

  background: var(--cs-brand-700);
  color: var(--cs-white);

  font-size: 12px;
  font-weight: 600;
  text-align: center;

  padding: 9px 12px;
  border-radius: 6px;

  line-height: 1.4;
}

/* ---------- NOTE ---------- */

.cs-sticker-note {
  margin: 4px 22px 0;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cs-slate-400);
  text-align: center;
}

.cs-sticker-networks {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px 20px;
  flex-wrap: wrap;
}

.cs-sticker-network-badge {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--cs-slate-600);
  background: var(--cs-cloud-100);
  border-radius: var(--cs-radius-pill);
  padding: 4px 10px;
}


/* ---------- small screens ---------- */

@media (max-width: 380px) {

  .cs-sticker {
    width: calc(100% - 20px);
    max-width: none;
  }

  .cs-pin-box {
    width: 46px;
    height: 50px;
    font-size: 19px;
  }

  .cs-transact-toggle-btn span:last-child {
    font-size: 11.5px;
  }

  .cs-sticker-body {
    padding: 18px 12px;
  }

  .cs-sticker-digit-box {
    width: 28px;
    height: 38px;
    font-size: 16px;
  }

  .cs-sticker-footer-bar {
    width: calc(100% - 24px);
    margin-left: 12px;
    margin-right: 12px;
  }

}