/* Profile (/dashboard/profile/): the public profile editor (public-profile.css, unchanged) and the stats and rates
   cards. Builds on /css/dash.css. */

/* The editor sits inside the page instead of being a page of its own. */
.pf .pp { padding: 0; max-width: none; }

/* The head's second line and the "Stats and rates" heading only while the editor shows. */
.pf-lead-pp, .pf-stats-h { display: none; }
.pf:has(#pp:not([hidden])) .pf-lead-pp { display: inline; }
.pf:has(#pp:not([hidden])) .pf-stats-h { display: flex; }
.pf:has(#pp:not([hidden])) .pf-stats { margin-top: 30px; }

/* Stats and rates */
.pf-stats .card-h { align-items: flex-start; }
.pf-stats .card-h > .linkish { margin-top: 3px; }
.pf-lst { margin-top: 2px; }
.pf-lst .lst-r { padding: 12px 0; }
.pf-lst .coin { flex: none; }
.pf-lst .lst-v.amt { font-size: 15px; }
.pf-lst .lst-v .cur { font-size: 12.5px; color: var(--muted); }
.pf-rate { font-size: 16px; font-weight: 600; color: var(--text); }
.pf-sk { display: inline-block; width: 64px; height: 14px; margin: 0; vertical-align: middle; }

/* Two coins side by side for a swap; the PayPal logo on its own */
.pf-pair { flex: none; width: 34px; height: 34px; position: relative; }
.pf-pair img { position: absolute; width: 23px; height: 23px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface); }
.pf-pair img:first-child { left: 0; top: 0; }
.pf-pair img + img { right: 0; bottom: 0; }
.pf-pair.one { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; }
.pf-pair.one img { position: static; width: 20px; height: 20px; border-radius: 0; box-shadow: none; object-fit: contain; }

@media (max-width: 750px) {
  /* The four profile tabs fit a phone's width without their icons */
  .dp-tabs { gap: 2px; }
  .ycp .dp-tabs a { padding: 0 6px; font-size: 13px; }
  .dp-tabs a .i { display: none; }
  .pf-stats .card-h { flex-wrap: wrap; row-gap: 6px; }
  .pf-stats .card-h > div { flex: 1 1 calc(100% - 48px); min-width: 0; }
  .pf-stats .card-h > .linkish { margin: 0 0 0 48px; }
  .pf-lst .lst-t span { white-space: normal; }
  .pf:has(#pp:not([hidden])) .pf-stats-h { text-align: center; justify-content: center; }
}

/* dash.css uses .opt for its choice tiles; here it is the "(optional)" note beside a field's label. */
.pf .pp-field > label .opt { display: inline; position: static; padding: 0; border: 0; border-radius: 0; background: none; color: var(--muted-2); font-weight: 400; transition: none; }
