/* ---------- botón de cuenta en el encabezado ---------- */
.acct-btn { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 12px; font-weight: 600; color: var(--ink); margin-left: auto; margin-right: 8px; max-width: 42vw; }
.acct-btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.acct-btn .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-btn + .cart-btn { margin-left: 0; }
@media (max-width: 380px) { .acct-btn .lbl { display: none; } .acct-btn { padding: 8px 10px; } }

/* ---------- ventana de cuenta ---------- */
#acct { position: fixed; inset: 0; z-index: 70; display: grid; place-items: end center; }
#acct[hidden] { display: none; }
.acct-ov { position: absolute; inset: 0; background: rgba(35, 15, 30, .55); }
.acct-box { position: relative; background: var(--surface); width: min(440px, 100%); max-height: 94vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 0 18px 22px; box-shadow: 0 -10px 40px rgba(0,0,0,.3); animation: acctup .22s ease-out; }
@media (min-width: 560px) { #acct { place-items: center; } .acct-box { border-radius: 22px; } }
@keyframes acctup { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .acct-box { animation: none; } }
.acct-head { position: sticky; top: 0; background: var(--surface); display: flex; align-items: center; gap: 8px; padding: 16px 0 10px; z-index: 2; }
.acct-head h2 { font-family: var(--display); font-weight: 600; font-size: 1.5rem; margin: 0; flex: 1; line-height: 1.15; }
.acct-x, .acct-back { border: 0; background: var(--veil); width: 36px; height: 36px; border-radius: 50%; font-size: 1.3rem; line-height: 1; flex: none; }
.acct-body h3 { font-family: var(--display); font-size: 1.2rem; margin: 22px 0 8px; }
.af { margin-bottom: 12px; }
.af label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 5px; }
.af input { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; background: var(--surface); font-size: 16px; color: var(--ink); }
.af.err input { border-color: var(--bad); }
.ah, .anote { font-size: .82rem; color: var(--muted); margin: 5px 0 0; line-height: 1.4; }
.anote { margin: 12px 0 0; }
.ae, .aerr { color: var(--bad); font-size: .86rem; font-weight: 600; margin-top: 5px; }
.aerr { margin: 4px 0 10px; text-align: center; }
.pwrap { position: relative; }
.pwrap input { padding-right: 76px; }
.eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: var(--veil); border-radius: 8px; padding: 6px 10px; font-size: .8rem; font-weight: 600; }
.abtn { width: 100%; border: 0; background: var(--p); color: #fff; border-radius: 999px; padding: 14px; font-weight: 700; font-size: 1rem; }
.abtn:disabled { opacity: .6; }
.abtn.sec { background: var(--surface); color: var(--p-dark); border: 1.5px solid var(--p); }
.alinks { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; }
.alinks button { border: 0; background: none; color: var(--p-dark); font-weight: 600; text-decoration: underline; padding: 4px 0; }
.sep { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--muted); font-size: .85rem; }
.sep::before, .sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.gbtn { display: flex; justify-content: center; min-height: 44px; }
.amail { margin: 0; color: var(--muted); font-size: .9rem; }
.adone { text-align: center; padding: 18px 4px 6px; }
.adone .ok { width: 62px; height: 62px; border-radius: 50%; background: #E3F3EA; color: var(--ok); display: grid; place-items: center; margin: 0 auto 12px; font-size: 1.9rem; }
.aord { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; }
.aord .ah2 { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.aord .am { font-size: .85rem; color: var(--muted); margin-top: 2px; }
.aord .ai { font-size: .88rem; margin-top: 4px; }
.st { font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.st.p { background: #FFF3D6; color: #8a5a00; } .st.ok { background: #E3F3EA; color: var(--ok); } .st.x { background: #FDE8E6; color: var(--bad); }
.apw { margin-top: 16px; } .apw summary { cursor: pointer; font-weight: 600; color: var(--p-dark); margin-bottom: 8px; }
body.lock-acct { overflow: hidden; }
body.lock-acct .wa-float { display: none; }
.acct-nudge { margin: 0 0 10px; font-size: .88rem; }
.acct-nudge button { border: 0; background: none; color: var(--p-dark); font-weight: 700; text-decoration: underline; padding: 0; }
