/* Mi cuenta comparte la tienda y ocupa el espacio útil de la ventana. */
body[data-page=cuenta]{background:var(--paper,#f7f8f5);font-family:Inter,"Segoe UI",sans-serif}
body[data-page=cuenta] .header{border-bottom:1px solid var(--line,#dce4dc)}
body[data-page=cuenta] .header .search{margin:0;min-width:120px;flex:1}
body[data-page=cuenta] .header .search>label{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
body[data-page=cuenta] .header .search>div{display:flex;align-items:center;padding:2px;border:1px solid var(--line,#dce4dc);border-radius:12px;background:var(--card,#fff)}
body[data-page=cuenta] .header .search input{min-width:0;flex:1;border:0;background:transparent;padding:6px 10px;font:inherit;font-size:12px;outline-offset:-2px}
body[data-page=cuenta] .header .search .button{padding:6px 12px;min-height:30px;margin:0}
body[data-page=cuenta] #account-link{background:var(--soft,#edf4e7);border-color:var(--green,#075740)}
body[data-page=cuenta] .cart-button{text-decoration:none;white-space:nowrap}
.account-main{width:min(1320px,100%);max-width:none;margin:0 auto;padding:12px 20px;box-sizing:border-box;min-height:0}
.account-main>h1{font-size:21px;line-height:1.2;margin:0 0 5px}
.account-main #account-status{font-size:12px;margin:0 0 5px;padding:0;min-height:0}
.account-main #account-status:empty{display:none}
.account-main .member-heading{padding:10px 14px;margin:0;gap:12px;border-radius:12px;background:var(--card,#fff)}
.account-main .member-heading h2{font-size:16px;line-height:1.3;margin:0}
.account-main .member-heading p{font-size:11px;margin:2px 0 0}
.account-main .member-heading .button{margin:0;font-size:11px;min-height:30px;padding:5px 10px}
.account-main .account-card{border-radius:12px;box-shadow:none;padding:14px;margin:0;background:var(--card,#fff)}
.account-main .account-card h2{font-size:16px;margin:0 0 8px}
.account-main .account-card h3{font-size:13px;margin:10px 0 5px}
.account-main p{font-size:12px;line-height:1.45;margin:5px 0}
.account-main .account-card label{font-size:12px;gap:3px;margin:4px 0}
.account-main .account-card input,.account-main .account-card select{min-height:33px;padding:5px 9px;font-size:12px;border-radius:8px}
.account-main .button{min-height:32px;padding:6px 11px;margin:5px 5px 0 0;font-size:12px;border-radius:8px}
.account-main .form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px 12px}
.account-main #address-form .form-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.account-main #address-form>h3{display:none}
.account-main .summary-grid{gap:12px}
.account-main .summary-grid strong{font-size:26px;line-height:1.25}
.account-main .account-row{padding:8px 0;font-size:12px}
.account-main #referral-qr svg{width:130px;max-width:100%;height:auto}
.account-main .profile-panel{min-width:0;min-height:0;scrollbar-gutter:stable;overscroll-behavior:contain}
.account-main .profile-tab-group{font-size:10px;font-weight:700;color:var(--muted,#5f746a);text-transform:uppercase;letter-spacing:.04em;padding:4px 10px 0}
.account-main #buy-for-store{margin-left:auto}
.account-main #commerce-section-label{display:none}
@media(max-width:999px){.account-main #commerce-section-label:not([hidden]){display:grid;gap:4px;font-size:12px;margin:0 0 10px}.account-main #commerce-section{width:100%;min-height:38px;border-radius:10px;border:1px solid var(--line,#dce4dc);padding:8px;background:var(--card,#fff);color:inherit}.account-main .profile-tabs[data-role=comercio_amigo]{display:none!important}}
@media(min-width:1000px){.account-main .profile-tabs[data-role=comercio_amigo] button{min-height:26px;padding:4px 10px}.account-main .profile-tabs[data-role=comercio_amigo]{gap:2px}}
.account-menu{width:min(340px,calc(100vw - 32px));padding:18px;border:1px solid var(--line,#dce4dc);border-radius:16px;background:var(--card,#fff);color:inherit}
.account-menu::backdrop{background:#15382e66;backdrop-filter:blur(4px)}
.account-menu nav{display:grid;gap:6px;padding-top:10px}.account-menu nav a{padding:10px;border-radius:8px;color:inherit;text-decoration:none;background:var(--soft,#edf4e7)}
.account-menu .close{position:static;margin-left:auto;display:block}
@media(min-width:1000px){
 body[data-page=cuenta]{height:100dvh;min-height:0;overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr) auto}
 body[data-page=cuenta] .header{position:relative;min-height:76px}
 body[data-page=cuenta] .account-main{display:flex;flex-direction:column;overflow:hidden;padding:10px 20px;margin:0 auto;max-width:1320px;width:100%;min-height:0}
 .account-main #member-panel:not([hidden]){flex:1;min-height:0;display:grid;grid-template-columns:164px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:12px}
 .account-main .member-heading{grid-column:1/-1}
 .account-main .profile-tabs{grid-column:1;grid-row:2;flex-direction:column;gap:3px;padding:7px;margin:0;align-self:stretch;overflow:auto;border-radius:12px;background:var(--card,#fff);box-shadow:none}
 .account-main .profile-tabs button{width:100%;text-align:left;white-space:normal;padding:6px 11px;font-size:12px;border-radius:8px;min-height:30px;flex:none}
 .account-main .profile-panel{grid-column:2;grid-row:2;overflow:auto;padding-right:3px}
 .account-main [data-panel=cuenta]>.account-card{max-width:none}
 body[data-page=cuenta] #site-footer{position:static;padding:9px 18px;margin:0;min-height:0}
}
@media(max-width:999px){
 body[data-page=cuenta] .header{flex-wrap:wrap;gap:8px;padding:2px 12px}
 body[data-page=cuenta] .header>nav{display:none}
 body[data-page=cuenta] .header .brand{width:92px;flex-basis:92px}
 body[data-page=cuenta] .header .search{order:5;flex-basis:100%;margin-bottom:7px}
 body[data-page=cuenta] .header nav{display:none!important}
 body[data-page=cuenta] .header .menu-toggle{display:block!important;border:1px solid var(--line,#dce4dc);border-radius:10px;background:var(--card,#fff);color:var(--green,#075740);padding:7px 10px;font-size:20px;cursor:pointer}
 body[data-page=cuenta] .header #account-link{margin-left:auto;padding:7px;font-size:11px}
 .account-main{padding:12px}.account-main .member-heading{margin-bottom:9px}
 .account-main .profile-tabs{margin:0 0 10px;padding:4px;gap:3px}.account-main .profile-tabs button{padding:8px 10px;font-size:12px}
 .account-main .form-grid,.account-main #address-form .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .account-main .profile-panel{overflow:visible}.account-main .summary-grid{gap:6px}.account-main .summary-grid .account-card{padding:10px}.account-main .summary-grid strong{font-size:21px}
}
@media(min-width:1000px) and (max-height:650px){
 .account-main .member-heading{padding:8px 12px}
 .account-main .account-card{padding:12px}
 .account-main .account-card label{margin:1px 0;line-height:15px;font-size:11px;gap:2px}
 .account-main .account-card input,.account-main .account-card select{min-height:30px;padding:4px 8px}
 .account-main .form-grid{gap:4px 10px}
}
@media(prefers-reduced-motion:reduce){.account-main .profile-panel{animation:none}}

@media(min-width:1000px){.account-main .profile-tabs button{min-height:27px;padding:4px 10px}.account-main .profile-tabs[data-role=comercio_amigo] button{min-height:25px;padding:3px 10px}}
