.preset-preview-cell {
  position: relative;
  display: inline-block;
  cursor: pointer;

  &--sm &__thumbnail {
    width: 40px;
    height: 40px;
  }

  &--md &__thumbnail {
    width: 60px;
    height: 60px;
  }

  &--lg &__thumbnail {
    width: 400px;
    height: 300px;
    object-fit: contain;
  }

  &__thumbnail {
    object-fit: cover;
    border-radius: 6px;
    border-radius: var(--style-radius-s);
    border: 1px solid var(--theme-elevation-150);
    overflow: hidden;
  }

  &--lg &__thumbnail {
    border-radius: 8;
    border: none;
  }

  &__popup {
    position: fixed;
    z-index: 10000;
    background: var(--theme-elevation-0);
    border: 1px solid var(--theme-elevation-200);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    padding: 8px;
    pointer-events: none;
  }

  &__popup-image {
    display: block;
    border-radius: 4px;
  }

  &__empty-popup-image {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 4px;
  }

  &__empty {
    color: var(--theme-elevation-400);
  }
}

.preset-shimmer--sm,
.preset-shimmer--md {
  border-radius: 6px;
}

.preset-shimmer--lg {
  border-radius: 8px;
}

.preset-admin-preview {
  --preset-admin-preview-max-width: 400px;
  --preset-admin-preview-max-height: 300px;
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex-direction: column;
  overflow: hidden;

  &__image {
    border-radius: 8px;
    border: 1px solid var(--theme-elevation-150);
    max-width: 100%;
    height: auto;
    object-fit: contain;
    max-height: var(--preset-admin-preview-max-height);
    width: 100%;
    max-width: var(--preset-admin-preview-max-width);
  }
}
