.abn-age-lock { 
  overflow: hidden !important; 
  height: 100%;
}

.abn-age-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
}

.abn-age-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: rgba(0, 0, 0, 0.7);
    z-index: 0;
    pointer-events: none;
}
.abn-age-overlay.is-visible {
  display: flex; 
  justify-content: center;
  align-items: center;
}

#abn-age-overlay .abn-age-logo a {
  pointer-events: none;
  cursor: default;
}

.abn-age-modal {
    box-sizing: border-box;
    width: min(600px, 100%);
    min-height: 370px;
    height: auto;
    color: #e5e5e5;
    border-radius: 16px;
    box-shadow: 0 0px 40px rgba(0, 0, 0, 0.4);
    padding: 30px;
    margin: 25px;
    text-align: center;
    position: relative;
    z-index: 1;
    filter: none !important;
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid #383838;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.abn-age-logo {
    width: 100%;
    height: auto;
    margin-top: 25px;
}

.abn-age-title {
   font-size: 30px;
   margin: 10px 0 10px;
   line-height: 1.3;
   font-weight: 600;
   color: white;
}
.abn-age-desc {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 18px;
    color: #888;
    letter-spacing: 0.1px;
}

.abn-age-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    flex-direction: column;
    align-items: center;
}

.abn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #f9f9f9;
  font-weight: 600;
  text-decoration: none;
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
  letter-spacing: 0.4px;
}

.abn-age-meta a {
    color: #b3b3b3;
    text-decoration: underline;
    letter-spacing: 0.4px;
}

.abn-btn-allow {
  background: #111;
  color: #fff;
  border-color: #111;
  font-size: 24px;
  text-transform: uppercase;
}

.abn-btn-deny {
    background: #303030;
    color: #707070;
    border: none;
    display: none;
}

.abn-age-meta {
  margin-top: 14px;
  font-size: 12px;
  opacity: .8;
}

.abn-noscript {
  position: fixed;
  bottom: 8px;
  left: 8px;
  right: 8px;
  background: #fff3cd;
  color: #111;
  border: 1px solid #ffeeba;
  border-radius: 8px;
  padding: 10px 12px;
  z-index: 999998;
  font-size: 14px;
}

@media (min-width: 541px) {

.abn-btn-deny:hover {
    color: #585858 !important;
}

.abn-btn-allow:hover {
    background: white !important;
    color: black !important;
}
}

@media (max-width: 540px) {
  .abn-age-title {
    font-size: 24px;
    line-height: 1.2;
  }

  .abn-age-desc {
    font-size: 13px;
    line-height: 1.5;
  }

  .abn-btn {
    padding: 10px;
  }

  .abn-btn-allow {
    font-size: 20px;
  }

  .abn-btn-deny {
    font-size: 14px;
  }
  
  .abn-age-meta {
    margin-top: 18px;
}
  .abn-age-modal {
    padding: 25px;
}

}

#abn-age-overlay .abn-age-modal { position: relative; }

#abn-age-overlay .abn-age-modal .abn-age-lang--floating {
  position: absolute;
  top: 12px;
  left: 50%;
  right: auto;
  transform: translate(-50%, 0);
  z-index: 5;
  user-select: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 100ms ease-out, transform 100ms ease-out;
}

#abn-age-overlay .abn-age-modal .abn-age-lang--floating.is-shown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

#abn-age-overlay .abn-age-modal .abn-age-lang--floating .abn-lang-list {
  position: absolute;
  top: 38px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.abn-lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 32px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    background: #202020;
    color: #979797;
    cursor: pointer;
    outline: none;
    gap: 5px;
}

.abn-lang-toggle:focus-visible { box-shadow: 0 0 0 2px rgba(255,255,255,.25); }

.abn-lang-list {
  position: absolute;
  top: 38px;
  right: 0;
  display: none;
  max-height: 220px;
  overflow: auto;
  background: rgba(0,0,0,0.85);
  border: 1px solid #444;
  border-radius: 10px;
  padding: 6px;
  list-style: none;
  margin: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.abn-lang-list.is-open { display: block; }
.abn-lang-item {
  padding: 6px 10px;
  font-size: 12px;
  color: #ddd;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.abn-lang-item:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

#abn-age-overlay .abn-lang-list {
  scrollbar-width: thin;                                   
  scrollbar-color: rgba(255,255,255,.28) transparent;      
}

#abn-age-overlay .abn-lang-list::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

#abn-age-overlay .abn-lang-list::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 10px;
}

#abn-age-overlay .abn-lang-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.22);
  border-radius: 10px;
  border: 2px solid rgba(0,0,0,.25);
  transition: background .2s ease, border-color .2s ease;
}

#abn-age-overlay .abn-lang-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,.32);
  border-color: rgba(0,0,0,.35);
}

#abn-age-overlay .abn-lang-list::-webkit-scrollbar-thumb:active {
  background: rgba(255,255,255,.42);
  border-color: rgba(0,0,0,.45);
}

@media (prefers-reduced-motion: reduce) {
  #abn-age-overlay .abn-age-modal .abn-age-lang--floating {
    transition: none;
    transform: translate(-50%, 0);
  }
  #abn-age-overlay .abn-age-modal .abn-age-lang--floating.is-shown {
    opacity: 1;
    pointer-events: auto;
  }
}
