/* The disclosure shares the floating navigation's surface and safe-area spacing. */
.pwa-more-menu{
  --pwa-more-surface:#fff;
  --pwa-more-glass:#fff;
  --pwa-more-text:#111827;
  --pwa-more-muted:#111827;
  --pwa-more-hover:#f1f3f5;
  position:fixed;
  z-index:1042;
  left:max(12px, env(safe-area-inset-left, 0px));
  right:max(12px, env(safe-area-inset-right, 0px));
  bottom:calc(76px + var(--evi-bottom-nav-offset));
  max-width:480px;
  max-height:calc(100vh - 98px - env(safe-area-inset-top, 0px) - var(--evi-bottom-nav-offset));
  max-height:calc(100dvh - 98px - env(safe-area-inset-top, 0px) - var(--evi-bottom-nav-offset));
  margin-inline:auto;
  padding:18px 18px 8px;
  overflow-y:auto;
  overscroll-behavior:contain;
  border:0;
  border-radius:30px;
  color:var(--pwa-more-text);
  background:var(--pwa-more-surface);
  box-shadow:0 16px 48px rgba(15,23,42,.2);
  animation:pwa-more-reveal .22s cubic-bezier(.2,.75,.3,1) both;
  transform-origin:bottom right;
}

.pwa-more-backdrop{
  position:fixed;
  inset:0;
  z-index:1041;
  background:rgba(15,23,42,.18);
  animation:pwa-more-dim .18s ease-out both;
}

.pwa-more-menu[hidden],
.pwa-more-backdrop[hidden]{display:none;}

@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .pwa-more-menu{
    background:var(--pwa-more-glass);
    -webkit-backdrop-filter:blur(24px) saturate(150%);
    backdrop-filter:blur(24px) saturate(150%);
  }
}

.pwa-more-menu svg{
  flex:none;
  width:27px;
  height:27px;
}

.pwa-more-account{
  display:flex;
  align-items:center;
  gap:13px;
  min-height:56px;
  margin-bottom:12px;
  padding:2px 6px;
  border-radius:18px;
  color:var(--pwa-more-text);
  text-decoration:none;
}

.pwa-more-avatar{
  display:grid;
  flex:none;
  place-items:center;
  width:46px;
  height:46px;
  border:1px solid rgba(var(--evi-brand-rgb),.3);
  border-radius:50%;
  background:rgba(var(--evi-brand-rgb),.08);
  color:var(--evi-brand);
  font-size:1.35rem;
  font-weight:700;
}

.pwa-more-account-text{display:flex;flex:1;flex-direction:column;min-width:0;gap:2px;}
.pwa-more-account-text strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1.2rem;line-height:1.3;}
.pwa-more-account-text>span{color:var(--pwa-more-muted);font-size:.88rem;line-height:1.3;}
.pwa-more-account .pwa-more-account-arrow{width:23px;height:23px;color:var(--pwa-more-muted);}

.pwa-more-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px 2px;}
.pwa-more-grid svg{width:25px;height:25px;}
.pwa-more-link{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-width:0;
  min-height:68px;
  padding:8px 2px;
  border-radius:18px;
  color:var(--pwa-more-muted);
  text-align:center;
  text-decoration:none;
  font-size:.76rem;
  font-weight:700;
  line-height:1.2;
}

.pwa-more-actions{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:8px;margin-top:12px;}
.pwa-more-actions>:only-child{grid-column:1/-1;}
.pwa-more-action{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  width:100%;
  min-height:44px;
  padding:9px 8px;
  border:0;
  border-radius:999px;
  color:var(--pwa-more-muted);
  background:var(--pwa-more-hover);
  font:inherit;
  font-size:.82rem;
  line-height:1.2;
  text-decoration:none;
  cursor:pointer;
}
.pwa-more-action svg{width:20px;height:20px;}
.pwa-more-legal{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 18px;margin-top:8px;}
.pwa-more-legal a{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;color:var(--pwa-more-muted);text-decoration:none;font-size:.78rem;}
.pwa-more-legal svg{width:18px;height:18px;}

.pwa-more-account:hover,
.pwa-more-link:hover,
.pwa-more-link[aria-current="page"]{color:var(--evi-brand);background:var(--pwa-more-hover);}
.pwa-more-action:hover{color:var(--evi-brand);}
.pwa-more-legal a:hover{color:var(--evi-brand);}
.pwa-more-menu a:focus-visible,
.pwa-more-menu button:focus-visible,
.pwa-bottom-nav [data-pwa-more-toggle]:focus-visible{outline:3px solid var(--evi-brand);outline-offset:2px;}

.pwa-bottom-nav .pwa-more-close-icon{display:none;}
.pwa-bottom-nav.is-more-open{z-index:1042;}
.pwa-bottom-nav [aria-expanded="true"] .pwa-more-open-icon{display:none;}
.pwa-bottom-nav [aria-expanded="true"] .pwa-more-close-icon{display:grid;}
.pwa-bottom-nav.is-more-open .pwa-nav-indicator{visibility:hidden;}
.pwa-bottom-nav.is-more-open a.is-active{background:transparent;box-shadow:none;}
.pwa-bottom-nav [data-pwa-more-toggle].is-active,
.pwa-bottom-nav [data-pwa-more-toggle][aria-expanded="true"]{color:var(--evi-brand);background:var(--pwa-nav-active);box-shadow:var(--pwa-nav-active-shadow);}

html[data-theme="dark"] .pwa-more-menu{
  --pwa-more-surface:#252525;
  --pwa-more-glass:rgba(37,37,37,.94);
  --pwa-more-text:var(--evi-text);
  --pwa-more-muted:var(--evi-text-muted);
  --pwa-more-hover:rgba(255,255,255,.08);
}
html[data-theme="dark"] .pwa-bottom-nav [data-pwa-more-toggle].is-active,
html[data-theme="dark"] .pwa-bottom-nav [data-pwa-more-toggle][aria-expanded="true"]{color:var(--evi-brand);background:var(--pwa-nav-active);}

@keyframes pwa-more-reveal{from{opacity:0;transform:translateY(16px) scale(.98);}to{opacity:1;transform:translateY(0) scale(1);}}
@keyframes pwa-more-dim{from{opacity:0;}to{opacity:1;}}
@media(prefers-reduced-motion:reduce){.pwa-more-menu,.pwa-more-backdrop{animation:none;}}
@media(max-width:359px){.pwa-more-menu{padding-inline:12px;}.pwa-more-link{font-size:.7rem;}.pwa-more-action{font-size:.76rem;}.pwa-more-account{gap:10px;}}
