/*
  Shared look for the three Payment Element form pages:
    element-card-only.html · element-full-billing.html · element-smart-address.html
  Same palette as demo-sandbox.html, so the family reads as one thing.
*/
:root { --navy:#003465; --blue:#367DF0; --bg:#F8FAFC; --line:rgba(0,52,101,.12);
        --green:#059669; --red:#e11d48; --amber:#d97706; --accent:var(--amber); }
* { box-sizing:border-box; }
body { margin:0; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
       background:var(--bg); color:var(--navy); }
.wrap { max-width:820px; margin:0 auto; padding:32px 20px 80px; }
.badge { display:inline-block; background:#fff7ed; color:var(--amber); border:1px solid #fed7aa;
         border-radius:999px; padding:3px 12px; font-size:12px; font-weight:700; letter-spacing:.04em; }
h1 { font-size:26px; margin:14px 0 4px; }
.sub { color:#5b6b7b; margin:0 0 18px; font-size:14px; line-height:1.5; }
.forms-nav { display:flex; gap:8px; flex-wrap:wrap; margin:0 0 20px; }
.forms-nav a { text-decoration:none; font-size:13px; font-weight:600; color:var(--navy); background:#fff;
               border:1px solid var(--line); border-radius:999px; padding:6px 12px; cursor:pointer; }
.forms-nav a:hover { border-color:var(--blue); color:var(--blue); }
.forms-nav a[aria-current="page"] { background:var(--navy); color:#fff; border-color:var(--navy); }
.note { background:#f0f6ff; border:1px solid #bfdbfe; color:#1e40af; border-radius:12px;
        padding:14px 16px; font-size:13px; margin:0 0 22px; line-height:1.55; }
.note code, .hint code, .test-card code { background:#fff; padding:1px 6px; border-radius:5px; border:1px solid var(--line); }
.card { background:#fff; border:1px solid var(--line); border-radius:14px; padding:22px; margin-bottom:18px;
        box-shadow:0 1px 2px rgba(0,52,101,.04); }
.card h2 { font-size:14px; text-transform:uppercase; letter-spacing:.05em; color:#5b6b7b; margin:0 0 14px; }
label { display:block; font-size:12px; font-weight:600; color:#5b6b7b; margin:0 0 6px; }
input { width:100%; padding:10px 12px; border:1px solid var(--line); border-radius:9px; font-size:14px;
        color:var(--navy); background:#fff; font-family:inherit; }
input:focus { outline:none; border-color:var(--blue); box-shadow:0 0 0 3px rgba(54,125,240,.15); }
.field { margin-bottom:14px; }
.row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.row-3 { display:grid; grid-template-columns:2fr 1fr 1fr; gap:12px; }
@media (max-width:560px) { .row, .row-3 { grid-template-columns:1fr; } }
button { font:inherit; font-weight:700; border:none; border-radius:10px; padding:12px 18px; cursor:pointer; }
.primary { background:var(--accent); color:#fff; width:100%; font-size:15px; }
.primary:disabled { opacity:.55; cursor:not-allowed; }
.hint { font-size:12px; color:#5b6b7b; margin-top:6px; line-height:1.5; }
.test-card { background:#f0f6ff; border:1px dashed var(--blue); border-radius:9px; padding:10px 12px;
             font-size:12.5px; color:var(--navy); margin-bottom:14px; line-height:1.6; }
#payment { min-height:80px; }
/* What came back on the charge. Rendered after onSuccess; hidden until then. */
.readback { display:none; margin-top:14px; border-radius:10px; padding:12px 14px; font-size:13px; line-height:1.7; }
.readback.ok { display:block; background:#ecfdf5; border:1px solid #a7f3d0; color:#065f46; }
.readback.warn { display:block; background:#fff7ed; border:1px solid #fed7aa; color:#9a3412; }
.readback .k { display:inline-block; min-width:72px; font-weight:700; }
.readback .v { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:12.5px; }
#out { white-space:pre-wrap; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:12.5px;
       background:#0b1f33; color:#d7e6ff; border-radius:10px; padding:16px; overflow:auto; max-height:380px;
       margin-top:14px; }
#out .ts { color:#7aa2d0; } #out .ok { color:#6ee7b7; } #out .err { color:#fda4af; }
#out .warn { color:#fcd34d; } #out .step { color:#93c5fd; } #out .info { color:#cbd5e1; }
.status { font-weight:700; padding:8px 12px; border-radius:8px; font-size:13px; margin-top:12px; display:none; }
.status.ok { background:#ecfdf5; color:var(--green); border:1px solid #a7f3d0; display:block; }
.status.err { background:#fef2f2; color:var(--red); border:1px solid #fecaca; display:block; }
.status.work { background:#eff6ff; color:var(--blue); border:1px solid #bfdbfe; display:block; }
.snippet { background:#0b1f33; color:#d7e6ff; border-radius:10px; padding:16px; overflow:auto;
           font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:12.5px; line-height:1.6; }
.snippet .c { color:#7aa2d0; }
