/* Minimal, clean popup styling */
#hab-popup.hab-popup { 
  position: fixed; inset: 0; z-index: 999999; 
  display: none; 
  font-family: inherit;
}
#hab-popup.hab-popup.is-open { display: block; }
#hab-popup .hab-popup__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
}
#hab-popup .hab-popup__dialog {
  position: relative;
  max-width: 720px;
  margin: 8vh auto 0 auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 15px 60px rgba(0,0,0,.3);
  overflow: hidden;
  transform: translateY(0);
}
#hab-popup .hab-popup__header {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
#hab-popup .hab-popup__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}
#hab-popup .hab-popup__body {
  padding: 18px;
  font-size: 16px;
  line-height: 1.45;
}
#hab-popup .hab-popup__footer {
  padding: 14px 18px;
  border-top: 1px solid rgba(0,0,0,.08);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
#hab-popup .hab-popup__btn {
  appearance: none;
  border: 0;
  background: #1d4ed8;
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 15px;
  cursor: pointer;
}
#hab-popup .hab-popup__btn:hover { filter: brightness(0.95); }
#hab-popup .hab-popup__x {
  position: absolute;
  top: 10px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 0;
  background: rgba(0,0,0,.06);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
#hab-popup .hab-popup__x:hover { background: rgba(0,0,0,.10); }

/* Prevent background scrolling when open */
html.hab-popup-open, html.hab-popup-open body { overflow: hidden; }

@media (max-width: 760px) {
  #hab-popup .hab-popup__dialog { 
    width: calc(100% - 24px);
    margin-top: 10vh;
    border-radius: 12px;
  }
  #hab-popup .hab-popup__title { font-size: 18px; }
}

/* Link-button should look like a button */
#hab-popup a.hab-popup__btn--link { 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
