/* Scoped to the Ipoteco account link: no changes to the theme's own header. */
.ipoteco-header-account{list-style:none;flex-shrink:0;}
.ipoteco-header-account-link{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;padding:8px 11px!important;min-height:40px;white-space:nowrap;border-radius:999px;text-decoration:none!important;color:inherit!important;font:600 13px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif;transition:background .15s ease;}
.ipoteco-header-account-link:hover,.ipoteco-header-account-link:focus-visible{background:rgba(0,100,75,.09);outline-offset:2px;}
.ipoteco-header-account-link svg{display:block!important;visibility:visible!important;flex:0 0 21px;width:21px;height:21px;stroke:currentColor;}
.ipoteco-header-account--menu{display:flex;align-items:center;}
.ipoteco-header-account-slot{display:inline-flex!important;visibility:visible!important;flex:0 0 auto;align-items:center;justify-content:flex-end;margin-inline-start:auto;position:relative;z-index:5;min-width:40px;min-height:40px;}
.ipoteco-header-account-slot .ipoteco-header-account{display:inline-flex;align-items:center;}
@media(max-width:767px){
  .ipoteco-header-account-slot{margin-inline-start:auto;}
  .ipoteco-header-account--automatic .ipoteco-header-account-link{width:42px;height:42px;padding:8px!important;}
  .ipoteco-header-account--automatic .ipoteco-header-account-link span{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
}

/* Ipoteco's real Elementor header widget: keep the user icon next to Search.
   The account button is icon-only, with its accessible label retained. */
.ipo-header-actions > .ipoteco-header-account-slot--ipx {
  display:flex!important; align-items:center; justify-content:center;
  margin:0!important; padding:0!important; flex:0 0 42px!important;
  width:42px; min-width:42px; max-width:42px; height:42px; min-height:42px;
  order:1; position:relative; z-index:20;
}
.ipo-header-actions > .ipo-header-tools { order:0; }
.ipo-header-actions > .ipo-header-cta { order:2; }
.ipo-header-actions > .ipo-mobile-toggle { order:3; }
.ipo-header-actions .ipoteco-header-account--ipx,
.ipo-header-actions .ipoteco-header-account--automatic { display:flex!important; align-items:center; }
.ipo-header-actions .ipoteco-header-account-link {
  display:flex!important; align-items:center!important; justify-content:center!important;
  width:40px!important; height:40px!important; min-height:40px!important;
  padding:8px!important; border-radius:50%!important;
  color:#153d68!important; background:#e8f9f1!important;
  box-shadow:inset 0 0 0 1px rgba(0,159,104,.22);
}
.ipo-header-actions .ipoteco-header-account-link:hover,
.ipo-header-actions .ipoteco-header-account-link:focus-visible {
  color:#006c4e!important; background:#d1f5e3!important;
  outline:2px solid transparent; box-shadow:0 0 0 2px rgba(0,159,104,.38);
}
.ipo-header-actions .ipoteco-header-account-link svg {width:22px!important;height:22px!important;flex-basis:22px;stroke:currentColor!important;}
.ipo-header-actions .ipoteco-header-account-link span {
  position:absolute!important; width:1px!important;height:1px!important;
  padding:0!important;margin:-1px!important;overflow:hidden!important;
  clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;
}
/* The native Ipoteco header is a DIV, not a header/nav element. */
.ipo-default-header .ipoteco-header-account-slot--js {margin-left:12px!important;}
