/* =========================================================
   EPHARO ACCOUNT MENU MODULE
   Samostatný dropdown mimo headeru
   ========================================================= */

.eph-account-menu{
  position:fixed !important;

  width:352px !important;
  min-width:352px !important;
  max-width:calc(100vw - 28px) !important;
  max-height:calc(100vh - 96px) !important;

  padding:10px !important;
  margin:0 !important;

  background:#ffffff !important;
  border:1px solid rgba(20,92,51,.14) !important;
  border-radius:24px !important;
  box-shadow:
    0 28px 70px rgba(15,23,42,.24),
    0 1px 0 rgba(255,255,255,.9) inset !important;

  color:#173b2a !important;
  text-align:left !important;
  box-sizing:border-box !important;

  z-index:13150 !important;
  overflow:hidden !important;

  opacity:0 !important;
  transform:translateY(-8px) scale(.985) !important;
  transform-origin:top right !important;
  pointer-events:none !important;

  transition:
    opacity .16s ease,
    transform .18s cubic-bezier(.19,1,.22,1) !important;
}

.eph-account-menu[hidden]{
  display:none !important;
}

.eph-account-menu:not([hidden]){
  display:block !important;
}

.eph-account-menu.is-open{
  opacity:1 !important;
  transform:translateY(0) scale(1) !important;
  pointer-events:auto !important;
}

.eph-account-menu::before{
  content:"" !important;
  position:absolute !important;
  right:18px !important;
  top:-8px !important;
  width:16px !important;
  height:16px !important;
  transform:rotate(45deg) !important;
  background:#ffffff !important;
  border-left:1px solid rgba(20,92,51,.12) !important;
  border-top:1px solid rgba(20,92,51,.12) !important;
}

.eph-account-menu-head{
  display:grid !important;
  grid-template-columns:46px minmax(0,1fr) !important;
  gap:12px !important;
  align-items:center !important;

  padding:10px 10px 12px !important;
  margin:0 0 6px !important;

  border-radius:18px !important;
  background:linear-gradient(135deg, rgba(246,251,247,.98), #ffffff) !important;
  border:1px solid rgba(20,92,51,.08) !important;
}

.eph-account-menu-avatar{
  width:46px !important;
  height:46px !important;
  border-radius:999px !important;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  background:#ffffff !important;
  border:1px solid rgba(20,92,51,.16) !important;
  box-shadow:0 8px 20px rgba(15,23,42,.08) !important;

  color:#165c34 !important;
  font-size:14px !important;
  font-weight:900 !important;
  letter-spacing:.04em !important;
  line-height:1 !important;

  overflow:hidden !important;
}

.eph-account-menu-title{
  display:block !important;
  color:#173b2a !important;
  font-size:15px !important;
  font-weight:900 !important;
  line-height:1.2 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

.eph-account-menu-sub{
  display:block !important;
  margin-top:4px !important;
  color:#4a5f52 !important;
  font-size:12px !important;
  font-weight:650 !important;
  line-height:1.25 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

.eph-account-section-label{
  display:block !important;
  padding:8px 10px 5px !important;
  color:rgba(74,95,82,.78) !important;
  font-size:10px !important;
  font-weight:900 !important;
  letter-spacing:.14em !important;
  text-transform:uppercase !important;
}

.eph-account-link{
  display:grid !important;
  grid-template-columns:34px minmax(0,1fr) !important;
  gap:10px !important;
  align-items:center !important;

  width:100% !important;
  padding:10px !important;
  margin:1px 0 !important;

  border-radius:15px !important;

  color:#173b2a !important;
  text-decoration:none !important;
  background:transparent !important;
  box-shadow:none !important;
  transform:none !important;
  box-sizing:border-box !important;
}

.eph-account-link:hover{
  background:rgba(23,107,61,.08) !important;
  color:#173b2a !important;
  transform:none !important;
  box-shadow:none !important;
  text-decoration:none !important;
}

.eph-account-link-mark{
  width:34px !important;
  height:34px !important;
  min-width:34px !important;
  max-width:34px !important;

  border-radius:999px !important;

  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;

  position:relative !important;

  background:#f6fbf7 !important;
  border:1px solid rgba(20,92,51,.12) !important;
  box-sizing:border-box !important;
}

.eph-account-link-mark::after{
  content:"" !important;
  width:8px !important;
  height:8px !important;
  border-radius:999px !important;
  background:#165c34 !important;
  box-shadow:0 0 0 4px rgba(23,107,61,.08) !important;
}

.eph-account-link:hover .eph-account-link-mark{
  background:#ffffff !important;
  border-color:rgba(23,107,61,.24) !important;
}

.eph-account-link strong{
  display:block !important;
  font-size:14px !important;
  font-weight:850 !important;
  color:#173b2a !important;
  line-height:1.2 !important;
  margin:0 !important;
}

.eph-account-link small{
  display:block !important;
  margin-top:3px !important;
  font-size:12px !important;
  font-weight:600 !important;
  color:#4a5f52 !important;
  line-height:1.28 !important;
}

.eph-account-divider{
  height:1px !important;
  margin:8px 4px !important;
  background:rgba(20,92,51,.12) !important;
}

.eph-account-link-danger strong{
  color:#9f1d1d !important;
}

.eph-account-link-danger:hover{
  background:rgba(159,29,29,.07) !important;
}

.eph-account-link-danger .eph-account-link-mark{
  background:rgba(159,29,29,.06) !important;
  border-color:rgba(159,29,29,.14) !important;
}

.eph-account-link-danger .eph-account-link-mark::after{
  background:#9f1d1d !important;
  box-shadow:0 0 0 4px rgba(159,29,29,.08) !important;
}

@media (max-width:640px){
  .eph-account-menu{
    top:78px !important;
    right:12px !important;
    left:12px !important;
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
    max-height:calc(100vh - 96px) !important;
    overflow-y:auto !important;
    transform-origin:top center !important;
  }

  .eph-account-menu::before{
    display:none !important;
  }
}