/* ADL Sticky Bar — frontend v1.0.2 */
:root{
  --adl-sticky-top-height:0px;
  --adl-sticky-bottom-height:0px;
  --adl-brand-accent:var(--dg-header-accent,#cca355);
}

.adl-sticky-bars{
  position:fixed;
  left:0;
  right:0;
  z-index:999999;
  width:100%;
  pointer-events:none;
	    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);

}

.adl-sticky-bars--top{top:0}
.adl-sticky-bars--bottom{bottom:0}

/*
 * DG Custom Header integráció.
 * A fejléc fixed/sticky állapotban mindig a felső sticky bar ALATT kezdődik.
 * A változót a frontend.js valós időben frissíti, ezért működik bezárásnál,
 * resizenál és mobil/desktop váltásnál is.
 */
.dg-site-header.dg-site-header--fixed,
.dg-site-header.dg-site-header--sticky{
  top:var(--adl-sticky-top-height,0px)!important;
}

.admin-bar .dg-site-header.dg-site-header--fixed,
.admin-bar .dg-site-header.dg-site-header--sticky{
  top:calc(32px + var(--adl-sticky-top-height,0px))!important;
}

@media(max-width:782px){
  .admin-bar .dg-site-header.dg-site-header--fixed,
  .admin-bar .dg-site-header.dg-site-header--sticky{
    top:calc(46px + var(--adl-sticky-top-height,0px))!important;
  }
}

.adl-sticky-bar{
  --adl-bg:#111827;
  --adl-text:#fff;
  --adl-link:#fff;
  --adl-button-bg:#fff;
  --adl-button-text:#111827;
  position:relative;
  isolation:isolate;
  width:100%;
  box-sizing:border-box;
  overflow:hidden;
  background:var(--adl-bg);
  color:var(--adl-text);
  font:inherit;
  pointer-events:auto;
  box-shadow:0 5px 18px rgba(45,52,54,.09);
}

/* Finom fény/textúra, hogy ne hasson egyszerű „színes csíknak”. */
.adl-sticky-bar::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(circle at 22% 50%,rgba(255,255,255,.075),transparent 32%),
    linear-gradient(90deg,rgba(255,255,255,.025),transparent 35%,rgba(0,0,0,.035));
}

/* A header arany accent-vonalának visszafogott folytatása. */
.adl-sticky-bar::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
  pointer-events:none;
  background:linear-gradient(90deg,transparent,var(--adl-brand-accent),transparent);
  opacity:.58;
}

.adl-sticky-bar[hidden]{display:none!important}

.adl-sticky-bar__inner{
  width:min(1280px,calc(100% - 44px));
  min-height:48px;
  margin:0 auto;
  padding:8px 42px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  position:relative;
  box-sizing:border-box;
}

.adl-sticky-bar__message{
  text-align:center;
  line-height:1.35;
  font-size:14px;
  font-weight:600;
  letter-spacing:.012em;
}

.adl-sticky-bar__message a,
.adl-sticky-bar__text-link{
  color:var(--adl-link);
  text-decoration:none;
  text-underline-offset:3px;
  transition:opacity .18s ease,text-decoration-color .18s ease;
}

.adl-sticky-bar__message a:hover,
.adl-sticky-bar__text-link:hover{
  opacity:.88;
  text-decoration:underline;
  text-decoration-thickness:1px;
}

.adl-sticky-bar__button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  min-height:32px;
  padding:7px 16px;
  border:1px solid rgba(255,255,255,.24);
  border-radius:999px;
  background:var(--adl-button-bg);
  color:var(--adl-button-text)!important;
  box-shadow:0 7px 18px rgba(45,52,54,.12);
  font-size:13px;
  font-weight:700;
  line-height:1;
  letter-spacing:.015em;
  text-decoration:none!important;
  transition:transform .18s ease,box-shadow .18s ease,opacity .18s ease;
}

.adl-sticky-bar__button:hover{
  transform:translateY(-1px);
  box-shadow:0 9px 22px rgba(45,52,54,.16);
  opacity:.95;
}

.adl-sticky-bar__button:focus-visible,
.adl-sticky-bar__text-link:focus-visible,
.adl-sticky-bar__close:focus-visible{
  outline:2px solid var(--adl-brand-accent);
  outline-offset:2px;
}

.adl-sticky-bar__close{
  position:absolute;
  right:4px;
  top:50%;
  transform:translateY(-50%);
  width:32px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:1px solid rgba(255,255,255,.18);
  border-radius:50%;
  background:rgba(255,255,255,.06);
  color:var(--adl-text);
  font-size:20px;
  font-weight:300;
  line-height:1;
  cursor:pointer;
  opacity:.82;
  transition:opacity .18s ease,background-color .18s ease,transform .18s ease;
}

.adl-sticky-bar__close:hover{
  opacity:1;
  background:rgba(255,255,255,.12);
  transform:translateY(-50%) scale(1.04);
}

.adl-device-none{display:none!important}

@media(max-width:767px){
  .adl-device-desktop{display:none!important}

  .adl-sticky-bar__inner{
    width:100%;
    min-height:46px;
    /*padding:8px 46px 8px 14px;*/
    gap:8px;
    flex-wrap:wrap;
  }

  .adl-sticky-bar__message{
    font-size:13px;
    line-height:1.3;
  }

  .adl-sticky-bar__button{
    min-height:30px;
    font-size:12px;
    padding:6px 12px;
  }

  .adl-sticky-bar__close{
    right:8px;
    width:30px;
    height:30px;
    font-size:19px;
  }
}

@media(min-width:768px){
  .adl-device-mobile{display:none!important}
}

/* WordPress admin toolbar */
.admin-bar .adl-sticky-bars--top{top:32px}
@media(max-width:782px){
  .admin-bar .adl-sticky-bars--top{top:46px}
}

@media(prefers-reduced-motion:reduce){
  .adl-sticky-bar__button,
  .adl-sticky-bar__close,
  .adl-sticky-bar__message a,
  .adl-sticky-bar__text-link{
    transition:none!important;
  }
}
