/* /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-rule);
  background-color: var(--theme-panel);
  padding: 0.5rem 1.5rem;
  cursor: pointer;
}

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

/* 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-ink-faded);
  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;
  }
}
/* /Components/Pages/Admin/TextEditor/RichTextEditor.razor.rz.scp.css */
/* Here and not as Tailwind classes because quill.snow.css is not in a layer, and anything outside
   a layer beats every Tailwind utility, whatever its specificity */

rich-text-editor[b-0eghfthkjf]  .ql-container {
  font-family: inherit;
  font-size: 1rem;
}

/* The writing area gets RichTextColumn's width from the script. box-sizing is set again here because
   quill.snow.css's border-box beats the class's content-box, and would take Quill's padding out of
   the text's width. The line height is the page's, so a wrapped image has as many lines beside it */
rich-text-editor[b-0eghfthkjf]  .ql-editor {
  min-height: 16rem;
  box-sizing: content-box;
  margin: 0 auto;
  line-height: inherit;
}

/* A heading is font-heading, from its blot, with its words' own sizes as on the page. quill.snow.css sizes
   an h2 itself, and isn't in a layer, so it would beat the size classes on its words */
rich-text-editor[b-0eghfthkjf]  .ql-editor h2 {
  font-size: inherit;
}

/* Redo is Undo's icon turned round */
rich-text-editor[b-0eghfthkjf]  .ql-snow.ql-toolbar button.ql-redo svg {
  transform: scaleX(-1);
}

/* The Work and Heading buttons, which have text where the others have an icon. Quill sets the text at
   the top of the button, so it's centred here */
rich-text-editor[b-0eghfthkjf]  .ql-snow.ql-toolbar button.ql-artshop-heading,
rich-text-editor[b-0eghfthkjf]  .ql-snow.ql-toolbar button.ql-artshop-work {
  display: inline-flex;
  align-items: center;
  width: auto;
}

/* Where an image embed sits comes from EmbedLayoutClasses, the same classes the page uses.
   Only what belongs to editing is here: quill.snow.css gives every line a text cursor */
rich-text-editor[b-0eghfthkjf]  .artshop-work,
rich-text-editor[b-0eghfthkjf]  .artshop-image {
  cursor: pointer;
}

/* the figure is the size's width, from the script, and the image fills it, stretched if the file
   is narrower, as on the page */
rich-text-editor[b-0eghfthkjf]  .artshop-work img,
rich-text-editor[b-0eghfthkjf]  .artshop-image img {
  display: block;
  width: 100%;
  height: auto;
}

rich-text-editor[b-0eghfthkjf]  .artshop-work:hover img,
rich-text-editor[b-0eghfthkjf]  .artshop-image:hover img {
  outline: 2px solid var(--theme-accent);
}

rich-text-editor[b-0eghfthkjf]  .artshop-work span,
rich-text-editor[b-0eghfthkjf]  .artshop-image span {
  border: 1px dashed var(--theme-ink-unavailable);
  padding: 1rem;
  color: var(--theme-ink-faded);
}

/* Where a new image will go while it uploads: a box the medium size's width, and its image's shape
   once the script knows it. The message can make a very wide image's box taller */
rich-text-editor[b-0eghfthkjf]  .artshop-image-upload [data-part="box"] {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  padding: 1rem;
  border: 1px dashed var(--theme-ink-unavailable);
  color: var(--theme-ink-faded);
  text-align: center;
}

/* The video's frame is sized by EmbedLayoutClasses as the page sizes its player. The player fills
   it, and the cover over the player takes the clicks that would start the video */
rich-text-editor[b-0eghfthkjf]  .artshop-video > div {
  position: relative;
}

rich-text-editor[b-0eghfthkjf]  .artshop-video iframe {
  display: block;
  width: 100%;
  height: 100%;
}

rich-text-editor[b-0eghfthkjf]  .artshop-video [data-part="cover"] {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

rich-text-editor[b-0eghfthkjf]  .artshop-video:hover [data-part="cover"] {
  outline: 2px solid var(--theme-accent);
}

/* A long press picks an embed up to move it, so it mustn't also select the embed or open the
   phone's menu for its image. Only on a touch screen: with a mouse, a selection made with Shift and
   the arrow keys shows the embeds in it highlighted */
@media (pointer: coarse) {
  rich-text-editor[b-0eghfthkjf]  .artshop-work,
  rich-text-editor[b-0eghfthkjf]  .artshop-image,
  rich-text-editor[b-0eghfthkjf]  .artshop-image-upload,
  rich-text-editor[b-0eghfthkjf]  .artshop-video {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }
}

/* Where a dragged embed will go, a cursor over text or a line over another embed, and a cover
   fading the embed where it is. The script places and sizes them in Quill's box, which is
   position: relative, as the pointer moves */
rich-text-editor[b-0eghfthkjf]  [data-part="embed-drop-marker"] {
  position: absolute;
  z-index: 10;
  border-radius: 9999px;
  background: var(--theme-accent);
  pointer-events: none;
}

rich-text-editor[b-0eghfthkjf]  [data-part="embed-drag-cover"] {
  position: absolute;
  z-index: 10;
  background: rgb(255 255 255 / 0.6);
  pointer-events: none;
}
