.hb-language-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  padding: 20px;
  background: rgba(8, 18, 30, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hb-language-popup-overlay.is-active {
  display: block;
}

.hb-language-popup-dialog {
  position: relative;
  max-width: 360px;
  margin: 80px auto 0;
  padding: 26px 25px 25px;
  background: #fff;
  border-radius: 0;
  text-align: center;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.hb-language-popup-dialog::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0f6cbd 0%, #39a0ff 50%, #7dd3ff 100%);
}

.hb-language-popup-overlay.is-active .hb-language-popup-dialog {
  display: block !important;
}

/* Let Magnific Popup control inline visibility while keeping the CSS fallback intact. */
.hb-language-popup-dialog.mfp-hide {
  display: none !important;
}

.mfp-content .hb-language-popup-dialog {
  display: block !important;
}

.mfp-content .hb-language-popup-close {
  display: none;
}

.hb-language-popup-title {
  margin: 0 0 15px;
  font-size: 18px;
}

.hb-language-detect-prompt {
  display: none;
  margin-bottom: 18px;
  padding: 12px 14px;
  background: #f8f8f8;
  border-radius: 6px;
}

.hb-language-detect-message {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
}

.hb-language-detect-actions .btn {
  margin: 0 4px 8px;
}

.hb-language-popup-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  padding: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

#google_translate_element select {
  width: 100%;
  padding: 10px;
  font-size: 14px;
}
