/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-m2mox6z0s5],
.components-reconnect-repeated-attempt-visible[b-m2mox6z0s5],
.components-reconnect-failed-visible[b-m2mox6z0s5],
.components-pause-visible[b-m2mox6z0s5],
.components-resume-failed-visible[b-m2mox6z0s5],
.components-rejoining-animation[b-m2mox6z0s5] {
  display: none;
}

#components-reconnect-modal.components-reconnect-show
  .components-reconnect-first-attempt-visible[b-m2mox6z0s5],
#components-reconnect-modal.components-reconnect-show
  .components-rejoining-animation[b-m2mox6z0s5],
#components-reconnect-modal.components-reconnect-paused
  .components-pause-visible[b-m2mox6z0s5],
#components-reconnect-modal.components-reconnect-resume-failed
  .components-resume-failed-visible[b-m2mox6z0s5],
#components-reconnect-modal.components-reconnect-retrying[b-m2mox6z0s5],
#components-reconnect-modal.components-reconnect-retrying
  .components-reconnect-repeated-attempt-visible[b-m2mox6z0s5],
#components-reconnect-modal.components-reconnect-retrying
  .components-rejoining-animation[b-m2mox6z0s5],
#components-reconnect-modal.components-reconnect-failed[b-m2mox6z0s5],
#components-reconnect-modal.components-reconnect-failed
  .components-reconnect-failed-visible[b-m2mox6z0s5] {
  display: block;
}

#components-reconnect-modal[b-m2mox6z0s5] {
  /* the shared look is the artist-shop-modal class in the markup; these extras are this modal's own */
  font-family: inherit;
  animation: components-reconnect-modal-fade-in-b-m2mox6z0s5 0.2s ease-out both;
}

@keyframes components-reconnect-modal-fade-in-b-m2mox6z0s5 {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.components-reconnect-container[b-m2mox6z0s5] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

#components-reconnect-modal p[b-m2mox6z0s5] {
  margin: 0;
}

#components-reconnect-modal button[b-m2mox6z0s5] {
  border: 1px solid var(--theme-base, black);
  background-color: white;
  padding: 0.5rem 1.5rem;
  cursor: pointer;
}

#components-reconnect-modal button:hover[b-m2mox6z0s5] {
  color: var(--theme-hovered, blue);
}

/* one ring growing outwards, the second half a turn behind it */
.components-rejoining-animation[b-m2mox6z0s5] {
  position: relative;
  width: 3rem;
  height: 3rem;
}

.components-rejoining-animation div[b-m2mox6z0s5] {
  position: absolute;
  inset: 50%;
  border: 2px solid var(--theme-muted, grey);
  border-radius: 50%;
  animation: components-rejoining-animation-b-m2mox6z0s5 1.5s cubic-bezier(0, 0.2, 0.8, 1)
    infinite;
}

.components-rejoining-animation div:nth-child(2)[b-m2mox6z0s5] {
  animation-delay: -0.75s;
}

@keyframes components-rejoining-animation-b-m2mox6z0s5 {
  from {
    inset: 50%;
    opacity: 1;
  }

  to {
    inset: 0;
    opacity: 0;
  }
}
