/* ZUPIX PATCH-173 — profile dropdown in marketplace header */
html body .z18-actions>.z18-profile-toggle{
  flex:0 0 auto!important;
  margin:0 0 0 2px!important;
  border:1px solid transparent!important;
  outline:0!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  background:transparent!important;
  font:inherit!important;
  text-align:left!important;
  cursor:pointer!important;
}
html body .z18-actions>.z18-profile-toggle:hover,
html body .z18-actions>.z18-profile-toggle:focus-visible,
html body .z18-actions>.z18-profile-toggle.is-menu-open{
  background:#f7f8fb!important;
  border-color:#e9edf5!important;
}
html body .z18-actions>.z18-profile-toggle:focus-visible{
  box-shadow:0 0 0 3px rgba(91,75,245,.14)!important;
}
html body .z18-actions>.z18-profile-toggle>i{
  transition:transform .16s ease!important;
}
html body .z18-actions>.z18-profile-toggle.is-menu-open>i{
  transform:rotate(180deg)!important;
}

html body .z18-profile-menu{
  position:absolute!important;
  z-index:5400!important;
  top:calc(100% + 10px)!important;
  right:0!important;
  left:auto!important;
  width:320px!important;
  max-width:calc(100vw - 24px)!important;
  padding:10px!important;
  border:1px solid #e4e8f1!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 24px 60px rgba(24,35,66,.18)!important;
  box-sizing:border-box!important;
  white-space:normal!important;
}
html body .z18-profile-menu[hidden]{display:none!important}
html body .z18-profile-menu:before{
  content:"";
  position:absolute;
  right:30px;
  top:-6px;
  width:11px;
  height:11px;
  border-left:1px solid #e4e8f1;
  border-top:1px solid #e4e8f1;
  background:#fff;
  transform:rotate(45deg);
}
html body .z18-profile-menu-head{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:11px;
  min-width:0;
  padding:10px 10px 12px;
  border-bottom:1px solid #edf0f5;
}
html body .z18-profile-menu-avatar{
  width:44px;
  height:44px;
  flex:0 0 44px;
  display:grid;
  place-items:center;
  position:relative;
  overflow:hidden;
  border-radius:50%;
  background:linear-gradient(135deg,#201740,#7141ef);
  color:#fff;
  font-size:16px;
  font-weight:800;
}
html body .z18-profile-menu-avatar img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
html body .z18-profile-menu-avatar .z18-avatar-fallback{
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
}
html body .z18-profile-menu-head>div{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}
html body .z18-profile-menu-head b{
  display:block;
  max-width:230px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#172038;
  font-size:14px;
  font-weight:700;
  line-height:1.2;
}
html body .z18-profile-menu-head small{
  display:block;
  max-width:230px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#8a94a7;
  font-size:11.5px;
  font-weight:450;
  line-height:1.25;
}
html body .z18-profile-menu-links{
  display:grid;
  gap:3px;
  padding-top:7px;
}
html body .z18-profile-menu-links>a{
  min-height:54px;
  display:grid;
  grid-template-columns:38px minmax(0,1fr) 16px;
  align-items:center;
  gap:10px;
  padding:7px 9px;
  border-radius:12px;
  color:#273149;
  text-decoration:none;
  box-sizing:border-box;
  transition:background .15s ease,color .15s ease;
}
html body .z18-profile-menu-links>a:hover,
html body .z18-profile-menu-links>a:focus-visible{
  background:#f6f7fb;
  color:#5f43ee;
  outline:0;
}
html body .z18-profile-menu-icon{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:#f2f3f8;
  color:#58637b;
}
html body .z18-profile-menu-links>a:hover .z18-profile-menu-icon,
html body .z18-profile-menu-links>a:focus-visible .z18-profile-menu-icon{
  background:#efedff;
  color:#6847ef;
}
html body .z18-profile-menu-icon svg{
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.75;
  stroke-linecap:round;
  stroke-linejoin:round;
}
html body .z18-profile-menu-links>a>span:nth-child(2){
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
html body .z18-profile-menu-links>a b{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
  font-weight:650;
  line-height:1.2;
}
html body .z18-profile-menu-links>a small{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#939cad;
  font-size:10.5px;
  font-weight:450;
  line-height:1.2;
}
html body .z18-profile-menu-links>a>i{
  color:#a4acbb;
  font-style:normal;
  font-size:19px;
  line-height:1;
  text-align:center;
}
html body .z18-profile-menu-links>a:hover>i,
html body .z18-profile-menu-links>a:focus-visible>i{color:#6847ef}

@media (max-width:980px){
  html body .z18-profile-menu{
    top:calc(100% + 8px)!important;
    right:0!important;
    width:310px!important;
  }
}
@media (max-width:620px){
  html body .z18-profile-menu{
    right:0!important;
    width:min(310px,calc(100vw - 24px))!important;
    max-width:calc(100vw - 24px)!important;
    border-radius:16px!important;
  }
  html body .z18-profile-menu:before{display:none}
}
