/* AICS application button style, v4, 26/07/2026.
   Two upstream rules were painting every control light blue:
   the mirrored theme sets bare button with !important, and assets/app.css
   sets .button,button to var(--teal). Both are more general but the theme
   one carries !important, so these selectors deliberately carry the same
   :not() chain plus more, giving higher specificity. Bare buttons are
   covered too, so notification dismiss controls match. WordPress block
   buttons (home page, .the-team content blocks) are NOT targeted.
   Navigation, menu, account and skip controls are excluded. */
html body button:not(.wp-block-navigation-submenu__toggle):not(.wp-block-navigation__responsive-container-open):not(.wp-block-navigation__responsive-container-close):not(.aics-account-logout):not(.aics-account-link):not(.account-button):not(.skip-link):not(.delete-cross):not(.cmplz-btn):not(.cmplz-category-toggle):not(.cmplz-link):not(.aics-btn),
html body a.button,
html body input.button,
html body input[type="submit"]:not(.wp-block-navigation-submenu__toggle):not(.wp-block-navigation__responsive-container-open):not(.wp-block-navigation__responsive-container-close):not(.aics-account-logout):not(.aics-account-link):not(.account-button):not(.skip-link):not(.delete-cross):not(.cmplz-btn):not(.cmplz-category-toggle):not(.cmplz-link):not(.aics-btn),
html body input[type="button"]:not(.wp-block-navigation-submenu__toggle):not(.wp-block-navigation__responsive-container-open):not(.wp-block-navigation__responsive-container-close):not(.aics-account-logout):not(.aics-account-link):not(.account-button):not(.skip-link):not(.delete-cross):not(.cmplz-btn):not(.cmplz-category-toggle):not(.cmplz-link):not(.aics-btn),
html body .button.button{
  display:inline-block !important;
  background:#FFFFFF !important;
  background-color:#FFFFFF !important;
  background-image:none !important;
  color:#0D1B3E !important;
  border:1px solid #0D1B3E !important;
  border-radius:999px !important;
  padding:14px 28px !important;
  font-family:var(--aics-font-head) !important;
  font-size:1rem !important;
  font-weight:700 !important;
  line-height:1.2 !important;
  text-align:center !important;
  text-decoration:none !important;
  text-transform:none !important;
  cursor:pointer !important;
  width:auto !important;
  box-shadow:none !important;
  appearance:none !important;
  -webkit-appearance:none !important;
}
html body button:not(.wp-block-navigation-submenu__toggle):not(.wp-block-navigation__responsive-container-open):not(.wp-block-navigation__responsive-container-close):not(.aics-account-logout):not(.aics-account-link):not(.account-button):not(.skip-link):not(.delete-cross):not(.cmplz-btn):not(.cmplz-category-toggle):not(.cmplz-link):not(.aics-btn):hover,
html body button:not(.wp-block-navigation-submenu__toggle):not(.wp-block-navigation__responsive-container-open):not(.wp-block-navigation__responsive-container-close):not(.aics-account-logout):not(.aics-account-link):not(.account-button):not(.skip-link):not(.delete-cross):not(.cmplz-btn):not(.cmplz-category-toggle):not(.cmplz-link):not(.aics-btn):focus,
html body a.button:hover,
html body a.button:focus,
html body input[type="submit"]:not(.wp-block-navigation-submenu__toggle):not(.wp-block-navigation__responsive-container-open):not(.wp-block-navigation__responsive-container-close):not(.aics-account-logout):not(.aics-account-link):not(.account-button):not(.skip-link):not(.delete-cross):not(.cmplz-btn):not(.cmplz-category-toggle):not(.cmplz-link):not(.aics-btn):hover,
html body .button.button:hover{
  background:#F4F6FB !important;
  background-color:#F4F6FB !important;
  color:#0D1B3E !important;
  border-color:#0D1B3E !important;
}
html body button:not(.wp-block-navigation-submenu__toggle):not(.wp-block-navigation__responsive-container-open):not(.wp-block-navigation__responsive-container-close):not(.aics-account-logout):not(.aics-account-link):not(.account-button):not(.skip-link):not(.delete-cross):not(.cmplz-btn):not(.cmplz-category-toggle):not(.cmplz-link):not(.aics-btn):disabled,
html body button:not(.wp-block-navigation-submenu__toggle):not(.wp-block-navigation__responsive-container-open):not(.wp-block-navigation__responsive-container-close):not(.aics-account-logout):not(.aics-account-link):not(.account-button):not(.skip-link):not(.delete-cross):not(.cmplz-btn):not(.cmplz-category-toggle):not(.cmplz-link):not(.aics-btn)[aria-disabled="true"]{opacity:.5 !important;cursor:not-allowed !important}

/* Small icon controls stay compact rather than becoming full pill buttons. */
html body .notification button:not(.wp-block-navigation-submenu__toggle):not(.wp-block-navigation__responsive-container-open):not(.wp-block-navigation__responsive-container-close):not(.aics-account-logout):not(.aics-account-link):not(.account-button):not(.skip-link):not(.delete-cross):not(.cmplz-btn):not(.cmplz-category-toggle):not(.cmplz-link):not(.aics-btn),
html body .notice-dismiss:not(.wp-block-navigation-submenu__toggle):not(.wp-block-navigation__responsive-container-open):not(.wp-block-navigation__responsive-container-close):not(.aics-account-logout):not(.aics-account-link):not(.account-button):not(.skip-link):not(.delete-cross):not(.cmplz-btn):not(.cmplz-category-toggle):not(.cmplz-link):not(.aics-btn),
html body button.dismiss:not(.wp-block-navigation-submenu__toggle):not(.wp-block-navigation__responsive-container-open):not(.wp-block-navigation__responsive-container-close):not(.aics-account-logout):not(.aics-account-link):not(.account-button):not(.skip-link):not(.delete-cross):not(.cmplz-btn):not(.cmplz-category-toggle):not(.cmplz-link):not(.aics-btn){padding:6px 14px !important;font-size:.9rem !important}

/* Navigation, menu, account and skip controls keep the theme appearance. */
html body .wp-block-navigation button,
html body .wp-block-navigation .button,
html body .wp-block-navigation__responsive-container-open,
html body .wp-block-navigation__responsive-container-close,
html body .wp-block-navigation-submenu__toggle,
html body .aics-account-logout,
html body .aics-account-link,
html body .account-button,
html body .skip-link{
  background:none !important;
  background-color:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  padding:0 !important;
  color:inherit !important;
  font-family:inherit !important;
  font-size:inherit !important;
  font-weight:inherit !important;
  width:auto !important;
}

/* Cookie banner controls keep their own plugin appearance. */
html body .cmplz-btn, html body .cmplz-category-toggle{all:revert}

/* Notification delete control is a plain cross, not a pill button. */
html body .delete-cross,
html body button.delete-cross{
  all: unset !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  font-size: 1.35rem !important;
  line-height: 1 !important;
  font-weight: 400 !important;
  color: #5A6478 !important;
  background: none !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 4px !important;
  padding: 0 !important;
  cursor: pointer !important;
  box-shadow: none !important;
}
html body .delete-cross:hover,
html body .delete-cross:focus{
  color: #0D1B3E !important;
  background-color: rgba(13,27,62,0.06) !important;
}
html body .notification form,
html body .notification-item form{margin:0 !important}

/* Keep the account controls and menu trigger in the same compact header row. */
html body header.site-header .aics-header-actions,
html body header.site-header .wp-block-group.is-nowrap:has(> .aics-account-control),
html body header.site-header .wp-block-group.is-nowrap:has(> .aics-account-link){
  flex-wrap: nowrap !important;
  justify-content: flex-end !important;
  align-items: center !important;
}
html body header.site-header .aics-account-control{
  flex: 0 1 18rem !important;
  max-width:18rem !important;
  width: auto !important;
  order: 1 !important;
  display: inline-flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  min-width: 0 !important;
}
html body header.site-header .aics-account-control form{margin:0 !important;display:inline-flex !important}
html body header.site-header .wp-block-group.is-nowrap > .aics-account-link{
  display:inline-flex !important;
  align-items:center !important;
  flex:0 0 auto !important;
  font-family:inherit !important;
  font-size:.88rem !important;
  font-weight:inherit !important;
  line-height:1 !important;
  white-space:nowrap !important;
  color:#007f99 !important;
}
html body header.site-header .aics-account-control .aics-account-link{
  display:block !important;
  max-width:12rem !important;
  flex:1 1 auto !important;
  min-width:0 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  font-size:.88rem !important;
  white-space: nowrap !important;
}
html body header.site-header .aics-account-control .aics-account-logout{
  display:inline-flex !important;
  flex:0 0 auto !important;
  align-items:center !important;
  min-height:0 !important;
  border:0 !important;
  border-radius:0 !important;
  padding:0 !important;
  background:transparent !important;
  color:#007f99 !important;
  font-size:.88rem !important;
  font-weight:inherit !important;
  line-height:1 !important;
  white-space:nowrap !important;
  text-decoration:none !important;
  visibility:visible !important;
  opacity:1 !important;
}
html body header.site-header .aics-account-control form{
  flex:0 0 auto !important;
  visibility:visible !important;
  opacity:1 !important;
}
html body header.site-header .aics-account-control .aics-account-logout:hover,
html body header.site-header .aics-account-control .aics-account-logout:focus-visible{
  background:transparent !important;
  color:#086c7c !important;
  text-decoration:underline !important;
}

@media (max-width: 720px) {
  html body.aics-standalone-application>header.site-header{
    display:block !important;
    padding:0 !important;
  }
  html body header.site-header>.wp-block-group{
    padding:.7rem .85rem !important;
  }
  html body header.site-header .alignwide.is-content-justification-space-between{
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:.55rem !important;
  }
  html body header.site-header .alignwide.is-content-justification-space-between>a{
    flex:0 1 auto !important;
    min-width:0 !important;
  }
  html body header.site-header .alignwide.is-content-justification-space-between>a img{
    height:32px !important;
    max-width:43vw !important;
  }
  html body header.site-header .aics-header-actions,
  html body header.site-header .wp-block-group.is-nowrap:has(> .aics-account-control),
  html body header.site-header .wp-block-group.is-nowrap:has(> .aics-account-link){
    display:flex !important;
    flex:0 1 auto !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:.45rem !important;
    margin-left:auto !important;
    min-width:0 !important;
  }
  html body header.site-header nav.wp-block-navigation{
    order:2 !important;
    flex:0 0 40px !important;
    margin:0 !important;
  }
  html body header.site-header .aics-account-control{
    order:1 !important;
    flex:0 1 11.5rem !important;
    max-width:11.5rem !important;
    gap:.4rem !important;
    min-width:0 !important;
  }
  html body header.site-header .aics-account-control .aics-account-link{
    max-width:7.25rem !important;
    font-size:.76rem !important;
    line-height:1.1 !important;
  }
  html body header.site-header .aics-account-control .aics-account-logout{
    min-height:0 !important;
    padding:0 !important;
    font-size:.74rem !important;
  }
  html body header.site-header .wp-block-group.is-nowrap > .aics-account-link{
    font-size:.74rem !important;
  }
  html body header.site-header .wp-block-navigation__responsive-container-open{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:40px !important;
    height:40px !important;
    margin:0 !important;
    padding:8px !important;
  }
}

@media (max-width: 390px) {
  html body header.site-header .aics-account-control{
    flex-basis:10.25rem !important;
    max-width:10.25rem !important;
  }
  html body header.site-header .aics-account-control .aics-account-link{
    max-width:6rem !important;
    font-size:.7rem !important;
  }
  html body header.site-header .aics-account-control .aics-account-logout{
    padding:0 !important;
    font-size:.7rem !important;
  }
  html body header.site-header .wp-block-group.is-nowrap > .aics-account-link{
    font-size:.7rem !important;
  }
}
