/* An identity is received, held and carried forward through different waves. */
.cer-relay-identity {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 144px;
  margin: 0 auto 18px;
  color: var(--violet, #7000ef);
}
.cer-relay-identity-drawing { display: block; width: 100%; height: 144px; overflow: visible; }
.cer-relay-identity-wave,
.cer-relay-identity-pulse { fill: none; stroke: currentColor; stroke-linecap: round; }
.cer-relay-identity-wave { stroke-width: .85; opacity: .34; }
.cer-relay-identity-pulse {
  stroke-width: 1.65;
  stroke-dasharray: 8 200;
  stroke-dashoffset: 8;
  opacity: 0;
  animation-duration: 9s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.cer-relay-identity-incoming { animation-name: cer-relay-identity-receive; }
.cer-relay-identity-outgoing { animation-name: cer-relay-identity-continue; }
.cer-relay-identity-phase-1 { animation-delay: .11s; }
.cer-relay-identity-phase-2 { animation-delay: .22s; }
.cer-relay-identity-halo { fill: currentColor; opacity: .025; animation: cer-relay-identity-hold 9s ease-in-out infinite; }
.cer-relay-identity-mark { opacity: .8; animation: cer-relay-identity-presence 9s ease-in-out infinite; }
.cer-relay-identity-caption {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.cer-relay-identity-toggle {
  position: absolute;
  right: 0;
  bottom: 0;
  min-width: 66px;
  min-height: 44px;
  display: block;
  border: 0;
  border-radius: 12px;
  padding: 8px 10px;
  background: transparent;
  color: var(--muted, #39313f);
  font: 11px Helvetica, Arial, sans-serif;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
}
.cer-relay-identity-toggle:hover { color: var(--accent, #420078); text-decoration: underline; text-underline-offset: 3px; }
.cer-relay-identity-toggle:focus-visible { outline: 2px solid var(--accent, #420078); outline-offset: 1px; }
.cer-relay-identity-toggle[hidden] { display: none; }
.cer-relay-identity-paused .cer-relay-identity-pulse,
.cer-relay-identity-paused .cer-relay-identity-halo,
.cer-relay-identity-paused .cer-relay-identity-mark { animation-play-state: paused; }

@keyframes cer-relay-identity-receive {
  0%, 3% { stroke-dashoffset: 8; opacity: 0; }
  5% { stroke-dashoffset: 8; opacity: .85; }
  42% { stroke-dashoffset: -100; opacity: .85; }
  45%, 100% { stroke-dashoffset: -100; opacity: 0; }
}
@keyframes cer-relay-identity-continue {
  0%, 46% { stroke-dashoffset: 8; opacity: 0; }
  48% { stroke-dashoffset: 8; opacity: .85; }
  91% { stroke-dashoffset: -100; opacity: .85; }
  94%, 100% { stroke-dashoffset: -100; opacity: 0; }
}
@keyframes cer-relay-identity-hold {
  0%, 28%, 86%, 100% { opacity: .025; }
  45%, 64% { opacity: .1; }
}
@keyframes cer-relay-identity-presence {
  0%, 28%, 86%, 100% { opacity: .8; }
  45%, 64% { opacity: 1; }
}

.cer-relay-identity-reduced .cer-relay-identity-pulse,
.cer-relay-identity-reduced .cer-relay-identity-halo,
.cer-relay-identity-reduced .cer-relay-identity-mark { animation: none; }
.cer-relay-identity-reduced .cer-relay-identity-pulse { opacity: 0; }
.cer-relay-identity-reduced .cer-relay-identity-wave { opacity: .48; }
.cer-relay-identity-reduced .cer-relay-identity-mark { opacity: 1; }
.cer-relay-identity-reduced .cer-relay-identity-halo { opacity: .06; }
@media (prefers-reduced-motion: reduce) {
  .cer-relay-identity-pulse, .cer-relay-identity-halo, .cer-relay-identity-mark { animation: none; }
  .cer-relay-identity-pulse { opacity: 0; }
  .cer-relay-identity-wave { opacity: .48; }
  .cer-relay-identity-mark { opacity: 1; }
  .cer-relay-identity-halo { opacity: .06; }
  .cer-relay-identity-toggle { display: none; }
}
