/* OTP HeroSMS Connect — wallet page (v1.4.0): /wallet/ with USDT
   (TRC20) auto top-ups + PayFast / Cryptomus hosted gateways.

   Standalone-document styles for templates/page-otp-wallet.php,
   which prints otp-home.css (chrome) + otp-buy.css (the palette
   variables on .otp-herosms, hero band, cards, buttons) +
   otp-auth.css (form fields) and then THIS file. Everything here
   is otp-wallet- prefixed and scoped under .otp-wallet where
   practical; the deposit panel / list / pills are unique to this
   page. */

.otp-wallet .otp-buy-wrap { padding-bottom: 40px; }

/* Cards on the wallet page reuse .otp-buy-card and add their own
   top margin rhythm (several stacked cards). */
.otp-wallet-card { margin-top: 26px; }
.otp-wallet-h2 {
    color: var(--otp-ink);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.2px;
    margin: 0 0 18px;
}

/* ---------- how-it-works mini list ---------- */
.otp-wallet-how {
    margin: 0 0 22px;
    padding-left: 22px;
    color: var(--otp-gray);
    font-size: 15px;
}
.otp-wallet-how li + li { margin-top: 6px; }
.otp-wallet-how strong { color: var(--otp-ink); }

/* ---------- create form ---------- */
.otp-wallet-create .otp-auth-field { max-width: 320px; }
.otp-wallet-create .otp-herosms-msg { margin-top: 14px; }

/* ---------- active deposit panel ---------- */
.otp-wallet-panel {
    margin-top: 26px;
    background: var(--otp-tint);
    border: 1px solid var(--otp-border);
    border-radius: 14px;
    padding: 24px;
}
.otp-wallet-panel-h {
    color: var(--otp-ink);
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 16px;
}
.otp-wallet-send-label {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--otp-gray);
    margin: 14px 0 6px;
}
.otp-wallet-send-label:first-of-type { margin-top: 0; }

/* Exact amount / address rows with their copy buttons. Monospace,
   tap-to-select friendly, wrapping-safe on phones. */
.otp-wallet-copyrow {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.otp-wallet-bigmono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--otp-ink);
    user-select: all;
    overflow-wrap: anywhere;
}
.otp-wallet-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--otp-ink);
    user-select: all;
    overflow-wrap: anywhere;
    word-break: break-all;
}
.otp-wallet-copy {
    flex: 0 0 auto;
    background: #fff;
    border: 1.5px solid var(--otp-input-border);
    color: var(--otp-blue);
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 8px;
    padding: 7px 14px;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.otp-wallet-copy:hover { border-color: var(--otp-blue); background: var(--otp-tint-2); }

/* QR box: white, centred, capped size; the SVG scales to fit. */
.otp-wallet-qr {
    margin: 20px auto 6px;
    max-width: 220px;
    background: #fff;
    border: 1px solid var(--otp-border);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}
.otp-wallet-qr:empty { display: none; }
.otp-wallet-qr svg { display: block; width: 100%; height: auto; }

/* Status line with the same pulsing dot language as the buy flow's
   waiting state (CSS-only, so text updates never disturb it). */
.otp-wallet-status-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--otp-ink);
    font-weight: 600;
    font-size: 15.5px;
    margin: 16px 0 4px;
}
.otp-wallet-status-line::before {
    content: "";
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--otp-blue);
    animation: otp-buy-pulse 1.6s ease-in-out infinite;
}
.otp-wallet-expires { font-size: 13.5px; margin: 0 0 16px; }
.otp-wallet-warn { font-size: 13.5px; margin: 16px 0 0; }

/* ---------- deposits list ---------- */
.otp-wallet-dep-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 13px 2px;
    border-bottom: 1px solid var(--otp-border);
}
.otp-wallet-dep-row:last-child { border-bottom: none; }
.otp-wallet-dep-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1 1 auto;
    min-width: 0;
}
.otp-wallet-dep-main strong { color: var(--otp-ink); font-size: 16.5px; }
.otp-wallet-dep-exact { font-size: 14px; }
.otp-wallet-dep-date { font-size: 13px; color: #8296B4; }
.otp-wallet-dep-tx {
    color: var(--otp-blue);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}
.otp-wallet-dep-tx:hover { text-decoration: underline; }
.otp-wallet-empty { font-size: 15px; margin: 0; }

/* Status pills. */
.otp-wallet-pill {
    flex: 0 0 auto;
    display: inline-block;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid var(--otp-border);
    background: var(--otp-tint);
    color: var(--otp-gray);
    text-transform: capitalize;
}
.otp-wallet-pill-pending { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.otp-wallet-pill-confirmed { background: rgba(34, 197, 94, 0.10); border-color: var(--otp-green); color: var(--otp-green-dark); }
.otp-wallet-pill-expired { background: var(--otp-tint); border-color: var(--otp-border); color: var(--otp-gray); }
.otp-wallet-pill-failed { background: #FEF2F2; border-color: var(--otp-red-border); color: var(--otp-red); }
.otp-wallet-pill-act { text-transform: capitalize; }

/* Recent numbers card footer link. */
.otp-wallet-acts-link { margin: 14px 0 0; font-size: 14.5px; }
.otp-wallet-acts-link a { color: var(--otp-blue); font-weight: 600; text-decoration: none; }
.otp-wallet-acts-link a:hover { text-decoration: underline; }

/* ---------- payment method chooser (v1.4.0) ---------- */
.otp-wallet-methods {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 24px;
}
.otp-wallet-method {
    flex: 1 1 180px;
    text-align: left;
    background: #fff;
    border: 1.5px solid var(--otp-input-border);
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.otp-wallet-method:hover { border-color: var(--otp-blue); }
.otp-wallet-method.is-active {
    border-color: var(--otp-blue);
    background: var(--otp-tint);
    box-shadow: 0 0 0 1px var(--otp-blue) inset;
}
.otp-wallet-method-name {
    display: block;
    color: var(--otp-ink);
    font-size: 15.5px;
    font-weight: 800;
}
.otp-wallet-method-sub {
    display: block;
    color: var(--otp-gray);
    font-size: 13px;
    margin-top: 3px;
}
.otp-wallet-method-panel[hidden] { display: none; }
.otp-wallet-pkr {
    font-size: 15px;
    font-weight: 700;
    color: var(--otp-ink);
    margin: 4px 0 14px;
    min-height: 20px;
}
/* Method tag inside a deposits-list row. */
.otp-wallet-dep-method {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--otp-blue);
    background: var(--otp-tint);
    border: 1px solid var(--otp-border);
    border-radius: 999px;
    padding: 2px 9px;
}

/* ---------- responsive ---------- */
@media (max-width: 640px) {
    .otp-wallet-methods { flex-direction: column; }
    .otp-wallet-method { flex: 1 1 auto; }
    .otp-wallet-panel { padding: 18px 16px; }
    .otp-wallet-bigmono { font-size: 23px; }
    .otp-wallet-mono { font-size: 13.5px; }
    .otp-wallet-create .otp-auth-field { max-width: none; }
    .otp-wallet-dep-row { gap: 8px 12px; }
}
