/* Preserve Google's actual widget, iframe, links and native CF7 execution.
 * The provider's existing normal-flow parent now reserves the full badge area.
 */
body.almara-overlay-ux .grecaptcha-badge {
  position: relative !important;
  inset: auto !important;
  width: 256px !important;
  height: 60px !important;
  margin: 16px auto !important;
  transform: none !important;
  transition: none !important;
}
body.almara-overlay-ux .almara-recaptcha-slot {
  display: flow-root;
  padding-block-end: 24px;
}
body.almara-overlay-ux .almara-footer-utilities {
  padding-block: 14px;
  background: #fff;
  text-align: center;
}
/* Remove the fixed overlay even before the existing anchor is relocated. */
body.almara-overlay-ux #scrollUp {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
}
body.almara-overlay-ux #almara-scrollup-slot #scrollUp {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 10px 16px !important;
  overflow: visible !important;
  opacity: 1 !important;
  transform: none !important;
  border: 1px solid #81b5d0;
  border-radius: 6px !important;
  background: #005a87 !important;
  color: #fff !important;
  box-shadow: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: none;
  text-decoration: none;
}
body.almara-overlay-ux #almara-scrollup-slot #scrollUp:hover {
  background: #003f60 !important;
}
body.almara-overlay-ux .almara-provider-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 20px;
  row-gap: 4px;
  margin-block-start: 12px;
}
body.almara-overlay-ux .almara-provider-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px;
  color: #005a87;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-transform: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.almara-overlay-ux #hamburger {
  display: flex;
  width: 44px;
  margin-inline-start: auto;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}
body.almara-overlay-ux .close-nav {
  min-width: 44px;
  min-height: 44px;
}
body.almara-overlay-ux :is(#hamburger,.close-nav,#almara-scrollup-slot #scrollUp):focus-visible {
  outline: 3px solid #0089cd;
  outline-offset: 4px;
}
body.almara-overlay-ux .almara-provider-links a:focus-visible {
  outline: 3px solid #0089cd;
  outline-offset: 2px;
}

/* Keep the account control in the first toolbar row on very narrow owner views. */
@media (max-width: 359px) {
  body.almara-overlay-ux.admin-bar #wpadminbar #wp-admin-bar-wpseo-menu {
    display: none !important;
  }
}
