@layer seed-components {
  .seed-skeleton {
    box-sizing: border-box;
    --seed-box-width-base: initial;
    --seed-box-width-sm: var(--seed-box-width-base);
    --seed-box-width-md: var(--seed-box-width-sm);
    --seed-box-width-lg: var(--seed-box-width-md);
    --seed-box-width-xl: var(--seed-box-width-lg);
    --seed-box-width: var(--seed-box-width-base);
    --seed-box-height-base: initial;
    --seed-box-height-sm: var(--seed-box-height-base);
    --seed-box-height-md: var(--seed-box-height-sm);
    --seed-box-height-lg: var(--seed-box-height-md);
    --seed-box-height-xl: var(--seed-box-height-lg);
    --seed-box-height: var(--seed-box-height-base);
    width: var(--seed-box-width);
    height: var(--seed-box-height);
    display: inline-block;
    overflow: hidden;
  }

  .seed-skeleton:after {
    content: "";
    width: 100%;
    height: 100%;
    animation-name: slide-x;
    animation-duration: 1.5s;
    animation-fill-mode: forwards;
    animation-timing-function: var(--seed-timing-function-easing);
    background-repeat: no-repeat;
    animation-iteration-count: infinite;
    display: block;
  }

  .seed-skeleton--radius_0 {
    border-radius: 0;
  }

  .seed-skeleton--radius_8 {
    border-radius: 8px;
  }

  .seed-skeleton--radius_16 {
    border-radius: 16px;
  }

  .seed-skeleton--radius_full {
    border-radius: var(--seed-radius-full);
  }

  .seed-skeleton--tone_neutral {
    background: var(--seed-color-palette-gray-200);
  }

  .seed-skeleton--tone_neutral:after {
    background-image: linear-gradient(90deg, var(--seed-gradient-shimmer-neutral));
  }

  .seed-skeleton--tone_magic {
    background: var(--seed-color-bg-magic-weak);
  }

  .seed-skeleton--tone_magic:after {
    background-image: linear-gradient(90deg, var(--seed-gradient-shimmer-magic));
  }

  @media (width >= 480px) {
    .seed-skeleton {
      --seed-box-width: var(--seed-box-width-sm);
      --seed-box-height: var(--seed-box-height-sm);
    }
  }

  @media (width >= 768px) {
    .seed-skeleton {
      --seed-box-width: var(--seed-box-width-md);
      --seed-box-height: var(--seed-box-height-md);
    }
  }

  @media (width >= 1280px) {
    .seed-skeleton {
      --seed-box-width: var(--seed-box-width-lg);
      --seed-box-height: var(--seed-box-height-lg);
    }
  }

  @media (width >= 1440px) {
    .seed-skeleton {
      --seed-box-width: var(--seed-box-width-xl);
      --seed-box-height: var(--seed-box-height-xl);
    }
  }
}
