/* Preview de borda: um único desenho, alinhado ao limite externo do cartão. */
html .wc-shop #wc-live-preview .wc-preview-card.wc-composed-profile[data-has-border=true]::before{
 content:''!important;display:block!important;position:absolute!important;inset:-2.5%!important;
 border:0!important;border-image:none!important;border-radius:0!important;
 background:var(--wc-border-source) center/100% 100% no-repeat!important;
 filter:var(--wc-border-filter,none)!important;pointer-events:none!important;z-index:4!important;
}
html .wc-shop #wc-live-preview .wc-preview-card.wc-composed-profile[data-has-border=true]::after,
html .wc-shop #wc-live-preview .wc-preview-card.wc-composed-profile[data-has-border=true]>.wc-profile-border,
html .wc-shop #wc-live-preview .wc-preview-card.wc-composed-profile[data-has-border=true]>.wc-profile-frame{display:none!important;content:none!important}

/* Expande só o desenho da borda; a caixa do perfil continua no mesmo tamanho. */
html .wc-composed-profile[data-has-border=true]>.wc-profile-frame::before{inset:-2.5%!important}

/* A faixa segue a linha de identidade, como o nomeplate das listas de amigos. */
html #modal-overlay #modal-profile[data-profile-layout=v2] .profile-identity.wc-nameplate-surface,
html .wc-shop #wc-live-preview .wc-preview-body.wc-nameplate-surface{
 position:relative!important;isolation:isolate!important;overflow:hidden!important;
 border-radius:10px!important;padding:7px 10px!important;background:transparent!important;
}
html .wc-nameplate-surface>.wc-nameplate-art{
 position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
 object-fit:cover!important;opacity:.45!important;
 mask-image:linear-gradient(90deg,transparent,#000 70%)!important;
 pointer-events:none!important;z-index:-1!important;
}

/* No celular, a moldura não pode encolher o perfil rápido para 340px. */
@media(max-width:640px){
 html body #modal-overlay:not(.hidden):has(>#modal-profile[data-profile-layout=v2][data-profile-view=quick]:not(.hidden)){
  justify-content:center!important;padding:0 12px max(12px,env(safe-area-inset-bottom))!important;
 }
 html body #modal-overlay #modal-profile[data-profile-layout=v2][data-profile-view=quick]{
  width:calc(100vw - 24px)!important;max-width:430px!important;max-height:88dvh!important;
  margin:0!important;border-radius:18px!important;
 }
 html body #modal-overlay #modal-profile[data-profile-layout=v2][data-profile-view=quick] #profile-card{
  border-radius:18px!important;border-bottom:1px solid var(--wcp-line)!important;
 }
 html body #modal-overlay #modal-profile[data-profile-layout=v2][data-profile-view=quick]:has(#profile-card[data-has-border=true]){
  width:calc(100vw - 24px)!important;max-width:430px!important;
 }
}
