/* Top-right banner styles – MacroFinance brand */
#mf-gis-prompt-root {
  position: fixed;
  top: 12px;
  right: 12px;
  max-width: 1200px; /* restrict width to website template width */
  width: 100%;
  box-sizing: border-box;
  padding: 0 12px;
  z-index: 9999;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  left: 0;
  right: 0;
}

#mf-gis-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  padding: 10px 14px;
  border-radius: 0px;
  background: #7EB1A5;        /* swapped background */
  color: #08344B;             /* swapped text */
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}


#mf-gis-banner:hover,
#mf-gis-banner:focus {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
  background: #2C3747;        /* swapped background */
  color: #7ECDBA;             /* swapped text */
}

#mf-gis-banner:active {
  transform: translateY(0);
}

.mf-gis-google-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  background: #fff;
  position: relative;
}

.mf-gis-google-dot::before,
.mf-gis-google-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  mix-blend-mode: multiply;
}

/* Subtle multi-color nod to Google logo without external assets */
.mf-gis-google-dot { background: #4285F4; }      /* blue */
.mf-gis-google-dot::before { background: #EA4335; opacity: 0.7; }
.mf-gis-google-dot::after  { background: #FBBC05; opacity: 0.5; }
#mf-gis-banner:hover .mf-gis-google-dot { background: #34A853; } /* green on hover */

.mf-gis-text {
  white-space: nowrap;
}

/* Responsive: hide on very small screens if it overlaps */
@media (max-width: 420px) {
  #mf-gis-prompt-root {
    top: 8px;
    right: 8px;
  }
  #mf-gis-banner {
    font-size: 13px;
    padding: 8px 12px;
  }
}

/* Gap of ~1–2 rows from the top */
#mf-gis-prompt-root {
  top: calc(2.5rem + env(safe-area-inset-top)); /* ~two rows; tweak to taste */
}

/* If the WP admin bar is visible, push below it */
body.admin-bar #mf-gis-prompt-root {
  top: calc(2.5rem + env(safe-area-inset-top) + 40px);
}

/* Admin bar is taller on mobile */
@media (max-width: 782px) {
  body.admin-bar #mf-gis-prompt-root {
    top: calc(2.5rem + env(safe-area-inset-top) + 50px);
  }
}
