/**
 * SSO-adjacent styles
 * Styles only the native Zendesk sign-in link and sign-out links.
 */

/*
 * Anti-flicker for silent SSO sign-in.
 *
 * When a visitor lands with a live IdP session but no Zendesk session, our
 * JS auto-triggers the native Zendesk sign-in — but that only happens after
 * the DOM is parsed, so without this rule the user sees a "Sign in" button
 * flash for ~500ms before the auto-redirect.
 *
 * We hide the "Sign in" links by default and reveal them only after
 * sso-helpers.js has decided the visitor is NOT going to be auto-signed-in
 * (by flipping data-sso-id from "false" to "resolved" on the wrapper).
 *
 * visibility (not display) keeps the layout stable — header height doesn't
 * jump when the button appears.
 */
.sso-link[data-sso-id="false"] {
  visibility: hidden;
}
.sso-link[data-sso-id="resolved"] {
  visibility: visible;
}

.button-sso,
a.button-sso,
.lt-btn.button-sso {
  color: #0d3ecc ;
  border: 2px solid #0d3ecc ;
}

.button-sso:hover,
a.button-sso:hover,
.lt-btn.button-sso:hover {
  background-color: #0d3ecc !important;
  color: #fff !important;
  text-decoration: none !important;
}

@media (max-width: 768px) {
  .button-sso:hover {
    background-color: #fff;
    color: #0d3ecc;
  }
}

.sso-out {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sso-out a {
  color: #0d3ecc;
  font-size: 0.889rem;
  font-weight: 400;
}

.sso-out svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 768px) {
  .sso-out {
    display: none;
  }
}

/* Focus styles for accessibility */
.sso-link .button-sso:focus-visible,
.sso-link .button-sso:focus {
  outline: 2px solid blue;
  color: #0d3ecc;
}
