/* Styles for the money screens: send, add funds (the YourCryptoPal link and top-ups) and the lists' search box.
   Tokens from base.css only (no hard-coded colours), so light and dark both work. */

/* ---------- Shared ---------- */
/* Lists with many columns: slightly tighter cells so the action column fits on laptops. */
.request-table .table th,
.request-table .table td {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.request-table .table th:first-child,
.request-table .table td:first-child {
  padding-left: 1.35rem;
}
.request-table .table th:last-child,
.request-table .table td:last-child {
  padding-right: 1.35rem;
}

/* The search box of the payouts list and the address book. */
.rf-search {
  position: relative;
}
.rf-search svg {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.rf-search .input {
  padding-left: 2.3rem;
}

/* ---------- Send and add funds: form beside a side column ---------- */

.wd-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-bottom: 0.3rem;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.wd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 980px) {
  .wd-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
.wd-form .input-group > .btn {
  min-height: 42px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-weight: 700;
  color: var(--primary);
}
.wd-form .input-group > .addon + .btn {
  border-left: 1px solid var(--border-strong);
}
.wd-form .input-group > .addon:not(:last-child) {
  border-radius: 0;
}
.wd-how {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.wd-how li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.wd-how li .wd-step-num {
  margin: 0;
}
.wd-how strong {
  display: block;
  color: var(--text);
}

/* The amount's source line, the summary under the form and its result. */
.wd-from {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.wd-from strong {
  display: block;
  color: var(--text);
}

.wd-cur {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 700;
}
.wd-sub {
  display: block;
  margin-top: 0.1rem;
  font-size: var(--fs-xs);
  color: var(--muted);
}
.wd-summary {
  margin: 1.1rem 0 0;
  padding: 0.95rem 1rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.wd-summary dd {
  text-align: right;
}
.wd-free {
  color: var(--ok-text);
  font-weight: 600;
}
.wd-arrives {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--ok-text);
}
.wd-arrives svg {
  width: 16px;
  height: 16px;
}

.wd-form .alert {
  margin-top: 1rem;
}
.wd-form > .alert:first-child {
  margin-top: 0;
}
.wd-form .form-actions {
  margin-top: 1.25rem;
}
.wd-form .form-actions .btn {
  min-width: 200px;
  justify-content: center;
}

/* The linked account and the limits (side column) */
.wd-acc {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
}
.wd-acc strong {
  display: block;
}
.wd-acc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-gradient);
  color: var(--on-brand);
}
.wd-acc-icon svg {
  width: 22px;
  height: 22px;
}

.wd-limit-fig {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}
.wd-limit-fig strong {
  font-size: var(--fs-xl);
}
.wd-limit-fig span {
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.wd-limit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}
.wd-limit-row > div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.wd-limit-row > strong {
  white-space: nowrap;
}
