@keyframes game-market-printers-view-rotate-animation {
  100% {
    rotate: 360deg;
  }
}


#game-market-printers-view {
  background: var(--viewkit-light-background);
  padding-bottom: 0;
  --printer-safe-bottom: var(--app-safe-bottom);
  width: 100%;
  max-width: 44rem;
  min-height: min(28rem, var(--app-sheet-height));
  max-height: var(--app-sheet-height);

  &[shown] {
    transition: none;
  }

  @media (width >= 680px) and (height >= 500px) {
    --printer-safe-bottom: 0px;

    &:not([hidden]) {
      border-radius: var(--sheet-border-radius);
      --viewkit-sheet-offset-y: var(--viewkit-sheet-centered-offset-y);
    }
  }


  > header {
    [action="reload"] {
      &[disabled] {
        animation: game-market-printers-view-rotate-animation 1.2s linear infinite;
      }
    }
  }


  > main {
    padding-bottom: var(--printer-safe-bottom);
    scroll-padding-bottom: var(--printer-safe-bottom);

    .title {
      margin-top: 0.8rem;
      padding-inline: 0.8rem;
    }


    .printer {
      min-height: 5.2rem;
      padding-block: 0.4rem;
      padding-inline: 0.8rem;
      display: flex;
      align-items: center;
      gap: 0.8rem;


      svg {
        aspect-ratio: 1 / 1;
        width: 2.8rem;
        height: auto;
      }


      .labels {
        flex: 1 1;
        min-width: 0;
        height: 4rem;
        display: flex;
        justify-content: center;
        flex-direction: column;
        gap: 0.2rem;
        text-align: start;
        line-height: 1.3;
        text-box: normal;

        span {
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
          font-weight: 400;
        }


        span {
          &:empty {
            display: none;
          }

          &.device-name {
            font-size: 1.3rem;
            color: var(--color-gray);
          }
        }
      }


      .rename {
        flex: 1 1 auto;
        min-width: 0;
        height: auto;
        padding: 0;
        gap: 0.8rem;
        background: transparent;
        border-radius: 0;

        > svg { flex-shrink: 0; }
      }

      .battery {
        flex-shrink: 0;
        font-size: 1.6rem;
        font-weight: 400;
        color: var(--color-gray);
        font-variant-numeric: tabular-nums;
      }
    }
  }

}
