/* Header authentication controls and notifications. */

.sv-header-auth{
  display:flex;
  gap:12px;
  align-items:center;
}

.sv-hbtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 18px;
  border-radius:999px;
  font-weight:600;
  line-height:1;
  text-decoration:none !important;
  white-space:nowrap;
  font-size:14px;
  transition:.18s ease;
}

.sv-hbtn-primary{
  background:#1BA365;
  color:#fff;
}
.sv-hbtn-primary:hover{
  color:#fff !important;
  opacity:1 !important;
}

.sv-hbtn-ghost{
  background:#fff;
  color:#1BA365;
  border:2px solid #1BA365;
}
.sv-hbtn-ghost:hover{
  background:#1BA365;
  color:#fff;
}

.sv-header-notifications{
  position:relative;
  display:inline-flex;
  align-items:center;
}

.sv-notify-toggle{
  position:relative;
  width:40px;
  height:40px;
  border:0;
  border-radius:0;
  background:transparent;
  color:#10231B;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:none;
  padding:0;
  transition:color .18s ease,transform .18s ease;
}
.sv-notify-toggle:hover,.sv-notify-toggle:focus-visible{
  color:#1BA365;
  transform:translateY(-1px);
  box-shadow:none;
  background:transparent;
}
.sv-notify-toggle svg{
  width:22px;
  height:22px;
}

.sv-notify-badge{
  position:absolute;
  right:-2px;
  bottom:-2px;
  min-width:16px;
  height:16px;
  padding:0 4px;
  border-radius:999px;
  background:#C4534A;
  color:#fff;
  font-size:10px;
  font-weight:700;
  line-height:16px;
  text-align:center;
  box-shadow:0 0 0 2px #fff;
  pointer-events:none;
}
.sv-notify-badge.is-dot{
  right:0;
  bottom:0;
  min-width:9px;
  width:9px;
  height:9px;
  padding:0;
  line-height:0;
  box-shadow:0 0 0 2px #fff;
}

.sv-header-notifications.has-unread .sv-notify-toggle{
  animation:none;
}

.sv-notify-dropdown{
  position:absolute;
  top:calc(100% + 12px);
  right:0;
  width:min(390px, calc(100vw - 24px));
  background:#fff;
  border:1px solid #E2ECE6;
  border-radius:20px;
  box-shadow:0 22px 58px rgba(15,23,42,.16),0 4px 16px rgba(15,23,42,.07);
  padding:0;
  overflow:hidden;
  z-index:9999;
  transform-origin:top right;
}

.sv-notify-dropdown:not([hidden]){
  animation:svNotifyDropdownIn .2s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes svNotifyDropdownIn{
  from{opacity:0;transform:translateY(-8px) scale(.975)}
  to{opacity:1;transform:translateY(0) scale(1)}
}

.sv-notify-head,
.sv-notify-actions,
.sv-notify-modal__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.sv-notify-head{padding:15px 16px 12px;border-bottom:1px solid #f0e7da;background:linear-gradient(180deg,#F7FAF8 0%,#fff 100%)}
.sv-notify-head strong,
.sv-notify-modal__head strong{font-size:17px;color:#10231B;line-height:1.2}

.sv-notify-mark-all,
.sv-notify-open-modal,
.sv-notify-close-modal{
  border:none;
  background:transparent;
  color:#1BA365;
  font-weight:600;
  cursor:pointer;
}

.sv-notify-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  max-height:380px;
  overflow:auto;
}

.sv-notify-item{
  display:flex;
  flex-direction:column;
  gap:6px;
  width:100%;
  text-align:left;
  padding:12px 13px;
  border-radius:14px;
  border:1px solid rgba(17,24,39,.06);
  background:#fff;
  text-decoration:none !important;
  color:#10231B;
  cursor:pointer;
  transition:.18s ease;
}

.sv-notify-item:hover{
  background:#fff8f1;
  border-color:rgba(255,106,0,.18);
}

.sv-notify-item.is-unread{
  background:#fff5ea;
  border-color:rgba(255,106,0,.20);
}

.sv-notify-item__top{
  display:flex;
  gap:10px;
  justify-content:space-between;
  align-items:flex-start;
}

.sv-notify-item__title{
  font-size:14px;
  font-weight:700;
  line-height:1.3;
}

.sv-notify-item__time{
  font-size:11px;
  white-space:nowrap;
  color:#5C6F67;
}

.sv-notify-item__message{
  font-size:13px;
  line-height:1.45;
  color:#5C6F67;
}

.sv-notify-empty{
  padding:18px 14px;
  border-radius:14px;
  background:#F7FAF8;
  color:#5C6F67;
  font-size:13px;
}

.sv-notify-actions{
  padding:10px 12px 12px;
  justify-content:stretch;
  border-top:1px solid #f0e7da;
  background:#fffbf4;
}

.sv-notify-modal{
  position:fixed;
  inset:0;
  z-index:100000;
}

.sv-notify-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.42);
}

.sv-notify-modal__dialog{
  position:relative;
  width:min(720px, calc(100vw - 24px));
  max-height:min(80vh, 760px);
  margin:70px auto 24px;
  background:#fff;
  border-radius:24px;
  box-shadow:0 30px 80px rgba(15,23,42,.28);
  overflow:hidden;
}

.sv-notify-modal__head{
  padding:18px 20px;
  border-bottom:1px solid rgba(17,24,39,.08);
}

.sv-notify-modal__body{
  padding:16px 16px 18px;
  max-height:calc(80vh - 74px);
  overflow:auto;
}

body.sv-notify-modal-open{
  overflow:hidden;
}

@media (max-width: 544px){
  #ast-mobile-header .sv-notify-dropdown{
    position:fixed !important;
    left:12px !important;
    right:12px !important;
    width:auto !important;
    max-width:none !important;
    box-sizing:border-box !important;
    z-index:999999 !important;
    transform-origin:top center;
  }

  #ast-mobile-header .sv-notify-list{
    max-height: 60vh !important;
    overflow-y: auto !important;
  }

  #ast-mobile-header .sv-notify-item,
  #ast-mobile-header .sv-notify-item__title,
  #ast-mobile-header .sv-notify-item__message{
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

#ast-mobile-header .site-header-primary-section-right{
  min-width:0 !important;
  overflow:visible !important;
}
#ast-mobile-header .ast-builder-layout-element[data-section="section-header-mobile-trigger"]{
  margin-left:8px !important;
}
#ast-mobile-header .sv-header-auth{
  min-width:0 !important;
  flex:1 1 auto !important;
}
#ast-mobile-header .ast-builder-layout-element[data-section="section-hb-button-1"] .ast-builder-button-wrap{
  display:none !important;
}
#ast-mobile-header .sv-header-auth{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:nowrap;
}
#ast-mobile-header .sv-hbtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius:999px;
  font-weight:600;
  line-height:1;
  text-decoration:none !important;
  white-space:nowrap;
  font-size:14px;
  transition:.18s ease;
}
#ast-mobile-header .sv-hbtn-primary{
  background:#1BA365;
  color:#fff;
}
#ast-mobile-header .sv-hbtn-primary:hover{
  color:#fff !important;
  opacity:1 !important;
}
#ast-mobile-header .sv-hbtn-ghost{
  background:#fff;
  color:#1BA365;
  border:2px solid #1BA365;
}
#ast-mobile-header .sv-hbtn-ghost:hover{
  background:#1BA365;
  color:#fff;
}
#ast-mobile-header .sv-notify-toggle{
  width:36px;
  height:36px;
}

@media (max-width: 420px){
  #ast-mobile-header .sv-header-auth{ gap:6px !important; }
  #ast-mobile-header .sv-hbtn{ padding:8px 12px !important; font-size:12px !important; }
  #ast-mobile-header .sv-notify-toggle{ width:34px; height:34px; }
}
@media (max-width: 360px){
  #ast-mobile-header .sv-hbtn{ padding:7px 10px !important; font-size:11px !important; }
}
@media (max-width: 340px){
  #ast-mobile-header .sv-hbtn{ padding:6px 9px !important; font-size:10.5px !important; }
}

/* Apsauga nuo registracijos / prisijungimo puslapių bendrinių link CSS taisyklių */
body .sv-header-auth a.sv-hbtn,
body .sv-header-auth a.sv-hbtn:visited,
body .sv-header-auth a.sv-hbtn:hover,
body .sv-header-auth a.sv-hbtn:focus{
  text-decoration:none !important;
  box-shadow:none !important;
}
body .sv-header-auth a.sv-hbtn-primary,
body .sv-header-auth a.sv-hbtn-primary:visited{
  background:#1BA365 !important;
  border-color:#1BA365 !important;
  color:#fff !important;
}
body .sv-header-auth a.sv-hbtn-primary:hover,
body .sv-header-auth a.sv-hbtn-primary:focus{
  background:#1BA365 !important;
  border-color:#1BA365 !important;
  color:#fff !important;
}
body .sv-header-auth a.sv-hbtn-ghost,
body .sv-header-auth a.sv-hbtn-ghost:visited{
  background:#fff !important;
  border-color:#1BA365 !important;
  color:#1BA365 !important;
}
body .sv-header-auth a.sv-hbtn-ghost:hover,
body .sv-header-auth a.sv-hbtn-ghost:focus{
  background:#1BA365 !important;
  border-color:#1BA365 !important;
  color:#fff !important;
}
body .sv-header-auth a.sv-hbtn-primary:hover,
body .sv-header-auth a.sv-hbtn-primary:focus-visible,
body .sv-header-auth a.sv-hbtn-ghost:hover,
body .sv-header-auth a.sv-hbtn-ghost:focus-visible{
  background:#10231B !important;
  border-color:#10231B !important;
  color:#fff !important;
  box-shadow:0 7px 18px rgba(16,35,27,.20) !important;
  transform:translateY(-1px);
}
