/* pf4: read-only account info card + avatar spacing under fixed top bar */
.vt-ro-card{background:linear-gradient(180deg,#faf8fd 0%,#f4f0fa 100%);border:1px solid #e3dbef;border-radius:16px;padding:6px 18px;margin:0 0 18px;box-shadow:0 1px 2px rgba(76,60,110,.06);max-width:100%;box-sizing:border-box}
.vt-ro-card .form-row{display:block!important;margin:0!important;padding:0!important}
.vt-ro-card .form-group-modern.vt-ro-field{display:flex;align-items:center;gap:12px;margin:0!important;padding:12px 0;border-bottom:1px solid #ebe5f3;min-width:0;width:100%;max-width:100%;flex-wrap:wrap}
.vt-ro-card .form-row:last-child .form-group-modern.vt-ro-field:last-child{border-bottom:0}
.vt-ro-field>label,.vt-ro-field .rw-phone-label-row{flex:0 0 auto;flex-basis:170px;min-width:0;margin:0!important;font-size:.82rem;font-weight:600;color:#7a6b93}
.vt-ro-field>label .text-danger,.vt-ro-field label sup,.vt-ro-field label .required{display:none}
.vt-ro-field .rw-phone-label-row{display:flex;align-items:center;gap:8px}
.vt-ro-field>div:not(.rw-phone-label-row){flex:1 1 180px;min-width:0}
.vt-ro-value{display:flex;align-items:center;gap:10px;min-width:0;color:#3b2f52;font-weight:600;font-size:.95rem;line-height:1.4}
.vt-ro-value i{position:static!important;transform:none!important;left:auto!important;top:auto!important;width:28px;height:28px;flex:0 0 28px;border-radius:8px;background:#ece5f6;color:#6d5a92;display:inline-flex;align-items:center;justify-content:center;font-size:.8rem}
.vt-ro-value span{overflow-wrap:anywhere;word-break:break-word;min-width:0}
.vt-ro-value span.is-empty{color:#a79bbb;font-weight:500}
.vt-ro-field .vt-ro-hidden{display:none!important}
@media (max-width:575.98px){.vt-ro-card{padding:4px 14px}.vt-ro-field>label,.vt-ro-field .rw-phone-label-row{min-width:0;width:100%}.vt-ro-field>div:not(.rw-phone-label-row){flex-basis:100%}}
.vt-ro-field>label::after,.vt-ro-field label span::after{content:none!important}
.vt-ro-field .rw-phone-label-row label{margin:0!important;font-size:inherit;color:inherit;font-weight:inherit}
.vt-ro-value .fa-whatsapp{color:#25D366}
.vt-ro-field .rw-phone-label-row label{white-space:nowrap}
/* pf4b: edit buttons + inline editor */
.vt-pf-edit-btn,.btn-phone-edit.vt-pf-edit-btn,body .btn-phone-edit{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;min-width:30px;padding:0!important;border-radius:9px!important;border:1px solid #d9cfe9!important;background:#f3eef9!important;color:#6d5a92!important;font-size:.85rem;line-height:1;cursor:pointer;box-shadow:none!important;transition:background .15s,border-color .15s,color .15s;flex:0 0 auto;vertical-align:middle}
.vt-pf-edit-btn:hover,body .btn-phone-edit:hover{background:#e8dff4!important;border-color:#c7b8de!important;color:#55437a!important}
.vt-pf-edit-btn:focus-visible,body .btn-phone-edit:focus-visible{outline:2px solid #b9a7d6;outline-offset:2px}
.vt-pf-edit-btn i,body .btn-phone-edit i{margin:0!important;font-size:.85rem}
.pf-mobile-name-row{display:flex!important;align-items:center;gap:8px;min-width:0;flex-wrap:nowrap}
.pf-mobile-name-row .pf-mobile-username{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vt-pf-inline-edit{width:100%;max-width:420px;min-width:0;margin:6px 0 2px;box-sizing:border-box}
.vt-ro-field .vt-pf-inline-edit{flex:1 1 220px;max-width:100%}
.vt-pf-inline-row{display:flex;align-items:center;gap:6px;min-width:0}
.vt-pf-prefix{flex:0 0 auto;padding:0 10px;height:38px;display:inline-flex;align-items:center;border:1px solid #d9cfe9;border-radius:10px;background:#f6f2fb;color:#5c4a80;font-weight:600;font-size:.9rem}
.vt-pf-inline-input{flex:1 1 auto;min-width:0;width:100%;height:38px;padding:0 12px;border:1px solid #d9cfe9;border-radius:10px;background:#fff;color:#3b2f52;font-size:.95rem;font-weight:600;box-sizing:border-box}
.vt-pf-inline-input:focus{outline:none;border-color:#8d79b3;box-shadow:0 0 0 3px rgba(141,121,179,.18)}
.vt-pf-inline-acts,.rw-phone-edit-actions{display:flex!important;gap:8px;margin-top:8px;flex-wrap:wrap}
.vt-pf-btn,body .btn-phone-save,body .btn-phone-cancel{height:34px;padding:0 16px!important;border-radius:9px!important;font-size:.88rem!important;font-weight:600!important;cursor:pointer;line-height:1;display:inline-flex!important;align-items:center;justify-content:center;box-shadow:none!important;min-width:72px}
.vt-pf-btn-update,body .btn-phone-save{background:#6d5a92!important;border:1px solid #6d5a92!important;color:#fff!important}
.vt-pf-btn-update:hover,body .btn-phone-save:hover{background:#5c4a80!important;border-color:#5c4a80!important}
.vt-pf-btn-cancel,body .btn-phone-cancel{background:#fff!important;border:1px solid #d9cfe9!important;color:#6d5a92!important}
.vt-pf-btn-cancel:hover,body .btn-phone-cancel:hover{background:#f3eef9!important}
.vt-pf-btn:disabled,body .btn-phone-save:disabled{opacity:.6;cursor:default}
.vt-pf-inline-err{color:#a3434a;font-size:.8rem;margin-top:6px;min-height:0}
.vt-pf-inline-err:empty{display:none}
/* name + edit button visible on desktop too (was mobile-only) */
@media (min-width:1024px){
  html body .profile-card-unified .profile-unified-left .pf-mobile-meta{display:block!important;text-align:center;margin:10px 0 4px;min-width:0;max-width:100%}
  html body .profile-card-unified .profile-unified-left .pf-mobile-name-row{justify-content:center}
  html body .profile-card-unified .profile-unified-left .pf-mobile-username{font-weight:700;color:#3b2f52;font-size:1rem}
  html body .profile-card-unified .profile-unified-left .pf-mobile-phone{color:#7a6b93;font-size:.85rem;margin-top:2px}
  html body .profile-card-unified .profile-unified-left .vt-pf-inline-edit{margin:6px auto 2px}
  html body .profile-card-unified .profile-unified-left .vt-pf-inline-acts{justify-content:center}
}
.vt-ro-field label::after,.vt-ro-field label .text-danger,.vt-ro-field label .required-star{content:none!important;display:none!important}
.vt-ro-field.vt-ro-editable{flex-wrap:wrap}
.vt-ro-field.vt-ro-editable>.vt-pf-edit-btn,.vt-ro-field>.btn-phone-edit{margin-left:auto}
.vt-ro-field.vt-ro-editable>.vt-ro-value{flex:1 1 160px}
.vt-pf-edit-btn[style*="none"],body .btn-phone-edit[style*="none"]{display:none!important}
/* pf4c: first-time merchant setup card */
body.vt-co-setup-mode .profile-content-panel[data-panel="company_profile"] .vt-ro-card,
body.vt-co-setup-mode .vt-pf-edit-btn{display:none!important}
.vt-co-setup{background:linear-gradient(180deg,#faf8fd 0%,#f4f0fa 100%);border:1px solid #e3dbef;border-radius:16px;padding:20px;margin:0 0 18px;box-sizing:border-box;max-width:100%;min-width:0}
.vt-co-head{display:flex;gap:14px;align-items:flex-start;margin-bottom:16px}
.vt-co-ico{flex:0 0 42px;width:42px;height:42px;border-radius:12px;background:#ece5f6;color:#6d5a92;display:inline-flex;align-items:center;justify-content:center;font-size:1.2rem}
.vt-co-head h3{margin:0 0 4px;font-size:1.05rem;font-weight:700;color:#3b2f52}
.vt-co-head p{margin:0;font-size:.85rem;color:#7a6b93;line-height:1.45}
.vt-co-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}
.vt-co-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.vt-co-field.is-wide{grid-column:1/-1}
.vt-co-field label{margin:0;font-size:.82rem;font-weight:600;color:#7a6b93}
.vt-co-field label::after{content:none!important}
.vt-co-req{font-style:normal;font-size:.7rem;color:#a3434a;background:#f8e9ea;border-radius:6px;padding:1px 6px;margin-left:4px}
.vt-co-field input,.vt-co-field select,.vt-co-field textarea{width:100%;max-width:100%;box-sizing:border-box;border:1px solid #d9cfe9;border-radius:10px;background:#fff;color:#3b2f52;font-size:.95rem;padding:9px 12px;min-height:40px;font-family:inherit}
.vt-co-field textarea{resize:vertical;min-height:84px}
.vt-co-field input:focus,.vt-co-field select:focus,.vt-co-field textarea:focus{outline:none;border-color:#8d79b3;box-shadow:0 0 0 3px rgba(141,121,179,.18)}
.vt-co-hint{margin:12px 0 0;font-size:.8rem;color:#7a6b93;overflow-wrap:anywhere}
.vt-co-err{color:#a3434a;font-size:.85rem;margin-top:10px}
.vt-co-err:empty{display:none}
.vt-co-acts{display:flex;justify-content:flex-end;margin-top:16px}
.vt-co-acts .vt-pf-btn{height:40px;padding:0 22px!important}
@media (max-width:575.98px){.vt-co-setup{padding:16px 14px}.vt-co-grid{grid-template-columns:minmax(0,1fr)}.vt-co-acts .vt-pf-btn{width:100%}}
/* pf4d: on phone/tablet the panel scrolls inside .profile-panel-scroll, which clipped the card with a square
   top edge. Rounding the scroll box (same width as the card there) makes the clipped edge round too. */
@media (max-width:1023.98px){
  html body .profile-content-panel .profile-panel-scroll{border-radius:16px}
}
